/* ============================================
   糖心vlog 游戏解说主题 - 全站样式
   域名: eyueajf.cn
   配色: 深色电竞风 (#0a0a1a / #00D4FF / #8B5CF6)
   ============================================ */

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --accent-blue: #00D4FF;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  --text-primary: #E8E8F0;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border-color: rgba(139,92,246,0.2);
  --gradient-main: linear-gradient(135deg, #00D4FF, #8B5CF6);
  --gradient-warm: linear-gradient(135deg, #F59E0B, #EC4899);
  --shadow-glow: 0 0 20px rgba(0,212,255,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1280px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-purple); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---- Header / 导航 ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 100%;
  justify-content: space-between;
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 40px; width: auto; }
.logo-wrap span {
  font-size: 1.25rem; font-weight: 700;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--text-secondary); padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: .9rem;
  transition: all .25s;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff; background: rgba(139,92,246,0.15);
}

.mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}

/* ---- 搜索框 ---- */
.search-bar-wrap {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border-color);
  padding: 12px 0; margin-top: var(--header-h);
}
.search-bar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 10px;
}
.search-bar-inner input {
  flex: 1; padding: 10px 18px; border-radius: 24px;
  border: 1px solid var(--border-color); background: var(--bg-card);
  color: var(--text-primary); font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.search-bar-inner input:focus { border-color: var(--accent-blue); }
.search-bar-inner button {
  padding: 10px 28px; border-radius: 24px; border: none;
  background: var(--gradient-main); color: #fff; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.search-bar-inner button:hover { opacity: .85; }

/* ---- Hero Banner ---- */
.hero-banner {
  position: relative; width: 100%;
  min-height: 420px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,26,0.5) 0%, rgba(10,10,26,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 40px 20px;
}
.hero-content h1 {
  font-size: 2.6rem; font-weight: 800; margin-bottom: 16px;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.15rem; color: var(--text-secondary);
  margin-bottom: 24px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 12px 32px; border-radius: 30px;
  background: var(--gradient-main); color: #fff; font-weight: 600;
  font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: #fff; }
.btn-outline {
  display: inline-block; padding: 12px 32px; border-radius: 30px;
  border: 2px solid var(--accent-purple); color: var(--accent-purple);
  font-weight: 600; font-size: 1rem; transition: all .2s;
}
.btn-outline:hover { background: var(--accent-purple); color: #fff; }

/* ---- 统计条 ---- */
.stats-bar {
  background: var(--bg-secondary); padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item p { color: var(--text-secondary); font-size: .9rem; margin-top: 4px; }

/* ---- 通用区块 ---- */
.section { padding: 60px 0; }
.section-dark { background: var(--bg-secondary); }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 10px;
}
.section-title h2 span {
  background: var(--gradient-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title p { color: var(--text-secondary); font-size: 1rem; }

/* ---- 视频卡片 ---- */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border-color);
}
.video-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-glow);
}
.video-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  cursor: pointer;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 56px; height: 56px;
  background: rgba(0,212,255,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.play-btn::after {
  content: ''; border-left: 20px solid #fff;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent-purple); color: #fff;
  padding: 3px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600;
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: .75rem;
}
.video-info { padding: 14px 16px; }
.video-info h4 {
  font-size: .95rem; font-weight: 600; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.video-meta {
  display: flex; gap: 12px; color: var(--text-muted); font-size: .8rem;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { padding: 0 16px 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.video-tags span {
  background: rgba(0,212,255,0.1); color: var(--accent-blue);
  padding: 2px 10px; border-radius: 12px; font-size: .75rem;
}

/* ---- 分类标签栏 ---- */
.tab-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 30px;
}
.tab-bar a {
  padding: 8px 20px; border-radius: 20px;
  background: var(--bg-card); color: var(--text-secondary);
  font-size: .9rem; border: 1px solid var(--border-color);
  transition: all .2s;
}
.tab-bar a:hover, .tab-bar a.active {
  background: var(--gradient-main); color: #fff; border-color: transparent;
}

/* ---- 专家卡片 ---- */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
.expert-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  border: 1px solid var(--border-color); transition: transform .3s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient-main); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
}
.expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { color: var(--accent-purple); font-size: .85rem; margin-bottom: 10px; }
.expert-card p { color: var(--text-secondary); font-size: .85rem; line-height: 1.6; }
.expert-links { margin-top: 14px; display: flex; gap: 10px; justify-content: center; }
.expert-links a {
  padding: 6px 16px; border-radius: 16px; font-size: .8rem;
  border: 1px solid var(--accent-blue); color: var(--accent-blue);
  transition: all .2s;
}
.expert-links a:hover { background: var(--accent-blue); color: #fff; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius-sm);
  margin-bottom: 12px; border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--accent-blue); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 20px; color: var(--text-secondary); font-size: .9rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ---- 用户评论 ---- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.review-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--border-color);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-warm); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.review-name { font-weight: 600; font-size: .95rem; }
.review-date { color: var(--text-muted); font-size: .8rem; }
.review-stars { color: var(--accent-orange); font-size: .9rem; margin-bottom: 8px; }
.review-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

/* ---- 社区动物视频 ---- */
.community-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px;
}
.community-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-color);
  transition: transform .3s;
}
.community-card:hover { transform: translateY(-4px); }
.community-icon {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1));
}
.community-card h4 { padding: 14px 16px 4px; font-size: 1rem; }
.community-card p { padding: 0 16px 14px; color: var(--text-secondary); font-size: .85rem; }

/* ---- How-To ---- */
.howto-steps {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.howto-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-card); padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--border-color);
}
.step-num {
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-main); display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 6px; }
.howto-step p { color: var(--text-secondary); font-size: .9rem; }

/* ---- 合作Logo墙 ---- */
.partner-wall {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; align-items: center;
}
.partner-item {
  width: 120px; height: 60px; background: var(--bg-card);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-muted); font-size: .8rem; font-weight: 600;
  transition: border-color .2s;
}
.partner-item:hover { border-color: var(--accent-blue); }

/* ---- 分享按钮 ---- */
.share-bar {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; padding: 20px 0;
}
.share-btn {
  padding: 10px 22px; border-radius: 24px;
  font-size: .85rem; font-weight: 600; color: #fff;
  transition: opacity .2s; cursor: pointer; border: none;
}
.share-btn:hover { opacity: .8; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; border: 1px solid #444; }
.share-bilibili { background: #FB7299; }

/* ---- 联系我们 ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.contact-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-color);
}
.contact-card h4 { font-size: 1rem; margin-bottom: 12px; color: var(--accent-blue); }
.contact-card p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 6px; }
.contact-card a { color: var(--accent-blue); }

/* ---- AI赋能 ---- */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.ai-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border-color);
  transition: transform .3s;
}
.ai-card:hover { transform: translateY(-4px); }
.ai-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-main); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.ai-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ai-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem; margin-bottom: 14px;
  color: var(--accent-blue);
}
.footer-col p, .footer-col a {
  color: var(--text-secondary); font-size: .85rem;
  display: block; margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-blue); }
.footer-qr { display: flex; gap: 20px; }
.footer-qr img { width: 100px; height: 100px; border-radius: 8px; }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted); font-size: .8rem;
}
.footer-bottom a { color: var(--text-muted); }

/* ---- 面包屑 ---- */
.breadcrumb {
  padding: 14px 0; font-size: .85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; }

/* ---- 内页通用 ---- */
.page-hero {
  padding: 100px 0 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: var(--text-secondary); font-size: 1rem; }

.content-area { padding: 40px 0 60px; }
.content-area h2 { font-size: 1.5rem; margin-bottom: 20px; }
.content-area h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--accent-blue); }
.content-area p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.8; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.show {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-primary); padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .hero-banner { min-height: 320px; }
  .hero-content h1 { font-size: 1.6rem; }
  .video-grid { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item h3 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.3rem; }
  .video-grid { grid-template-columns: 1fr; }
  .search-bar-inner { flex-direction: column; }
}
