/* =============================================
   里番网 - 主样式文件
   品牌色：深紫 #2D1B69 | 亮紫 #7C3AED | 青色 #06B6D4 | 橙色 #F97316
   ============================================= */

:root {
  --brand-dark: #1A0A3C;
  --brand-primary: #7C3AED;
  --brand-secondary: #06B6D4;
  --brand-accent: #F97316;
  --brand-pink: #EC4899;
  --bg-dark: #0F0720;
  --bg-card: #1E1040;
  --bg-card2: #160D35;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: rgba(124,58,237,0.3);
  --gradient-main: linear-gradient(135deg, #2D1B69 0%, #1A0A3C 50%, #0F0720 100%);
  --gradient-card: linear-gradient(135deg, #1E1040 0%, #160D35 100%);
  --gradient-accent: linear-gradient(90deg, #7C3AED, #06B6D4);
  --shadow-glow: 0 0 20px rgba(124,58,237,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--brand-secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--brand-accent); }

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

ul, ol { list-style: none; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 3px; }

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  color: #fff;
  letter-spacing: 1px;
}

.top-bar a { color: #fff; font-weight: 600; }

/* ===== 头部导航 ===== */
.site-header {
  background: rgba(15,7,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}


.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-slogan {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ===== 主导航 ===== */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(124,58,237,0.2);
}

.main-nav a.active {
  color: var(--brand-secondary);
}

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.search-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 6px 16px;
  flex: 1;
  max-width: 560px;
  gap: 10px;
  transition: border-color 0.3s;
}

.search-wrap:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.search-wrap input::placeholder { color: var(--text-muted); }

.search-btn {
  background: var(--gradient-accent);
  border: none;
  border-radius: 20px;
  padding: 7px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.search-btn:hover { opacity: 0.85; }

.search-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.search-tag {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.search-tag:hover {
  background: rgba(124,58,237,0.3);
  color: var(--text-primary);
}

/* ===== 容器 ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== 区块通用 ===== */
.section { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 12px;
  color: var(--brand-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 卡片通用 ===== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.3);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1a0a3c;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-play-btn { opacity: 1; }

.play-circle {
  width: 56px;
  height: 56px;
  background: rgba(124,58,237,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform 0.3s;
}

.video-card:hover .play-circle { transform: scale(1.1); }

.play-circle svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px;
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

.video-info { padding: 14px; }

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.video-stats { display: flex; gap: 12px; }

.video-stats span { display: flex; align-items: center; gap: 4px; }

/* ===== Hero 横幅 ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-main);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,7,32,0.92) 40%, rgba(15,7,32,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  color: var(--brand-secondary);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ===== 统计数字 ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-num {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 分类标签栏 ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ===== 专家卡片 ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.expert-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid rgba(124,58,237,0.4);
}

.expert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.expert-role {
  font-size: 12px;
  color: var(--brand-secondary);
  margin-bottom: 10px;
}

.expert-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.expert-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-xs {
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid;
  text-decoration: none;
}

.btn-xs.primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-xs.outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-xs:hover { opacity: 0.8; }

/* ===== 评论区 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.3s;
}

.review-card:hover { transform: translateY(-4px); }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-stars {
  font-size: 12px;
  color: #FBBF24;
  margin-top: 2px;
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--brand-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== 合作品牌 ===== */
.partners-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
  white-space: nowrap;
}

.partner-logo:hover {
  border-color: var(--brand-primary);
  color: var(--brand-secondary);
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 二维码 ===== */
.qr-section {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.qr-item { text-align: center; }

.qr-box {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-box canvas { width: 100% !important; height: 100% !important; }

.qr-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 社交分享 ===== */
.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}

.share-wechat { background: #07C160; color: #fff; }
.share-weibo { background: #E6162D; color: #fff; }
.share-douyin { background: #000; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00A1D6; color: #fff; }

.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--brand-dark);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--brand-secondary); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--brand-secondary); }

.footer-links { display: flex; gap: 16px; }

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--brand-secondary); }

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--brand-secondary); }
.breadcrumb-inner .sep { color: var(--border-color); }
.breadcrumb-inner .current { color: var(--text-primary); }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--brand-secondary);
  margin: 2px;
}

/* ===== 进度条动画 ===== */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 1s ease;
}

/* ===== 通知条 ===== */
.notice-strip {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== 汉堡菜单 ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== 移动端适配 ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(15,7,32,0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }

  .site-header { position: relative; }

  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .search-tags { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 懒加载占位 ===== */
img[data-src] {
  background: linear-gradient(90deg, #1E1040 25%, #2D1B69 50%, #1E1040 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

/* ===== 内页 Hero ===== */
.page-hero {
  background: var(--gradient-main);
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ===== 侧边栏 ===== */
.sidebar-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* ===== 动漫标签特效 ===== */
.anime-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #7C3AED, #EC4899);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* ===== 热门标签 ===== */
.hot-tag {
  position: relative;
}

.hot-tag::after {
  content: 'HOT';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #E6162D;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

/* ===== 渐变分隔线 ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 40px 0;
}

/* ===== 加载动画 ===== */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
