/* =============================================
   樱桃视频 - 主样式文件
   xundahui9.cn | 首页在线观看 · 点此进入官网 · 樱桃视频平台
   ============================================= */

/* ---- CSS变量 ---- */
:root {
  --primary: #1a3a6b;
  --primary-light: #2557a7;
  --accent: #e8401c;
  --accent-light: #ff6b47;
  --gold: #d4a017;
  --dark: #0d1b2e;
  --dark2: #152540;
  --text: #1c2b3a;
  --text-light: #4a6080;
  --bg: #f4f7fb;
  --bg2: #eaf0f8;
  --white: #ffffff;
  --border: #d0dce8;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-hover: 0 8px 36px rgba(26,58,107,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ---- 重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ---- 通用工具类 ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); }
.section-dark { background: var(--dark); color: var(--white); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.section-dark .section-title { color: var(--white); }
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.section-dark .section-sub { color: rgba(255,255,255,0.7); }
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }

/* ---- 顶部公告条 ---- */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--gold); }
.top-bar a:hover { color: var(--white); }

/* ---- 导航栏 ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26,58,107,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: var(--bg2);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- 搜索框 ---- */
.search-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.search-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  flex: 1;
  max-width: 600px;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--primary-light); }
.search-wrap input {
  flex: 1;
  padding: 9px 18px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text);
}
.search-wrap button {
  padding: 9px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition);
}
.search-wrap button:hover { background: var(--primary-light); }
.search-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-tags a {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all var(--transition);
}
.search-tags a:hover { color: var(--primary); border-color: var(--primary); }

/* ---- 面包屑 ---- */
.breadcrumb {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---- Hero轮播 ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-slider {
  position: relative;
  height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  z-index: 2;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dots span.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ---- 统计数据条 ---- */
.stats-bar {
  background: var(--primary);
  color: var(--white);
  padding: 20px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ---- 视频卡片 ---- */
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark2);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  opacity: 0;
}
.video-card:hover .play-btn {
  opacity: 1;
  background: rgba(0,0,0,0.35);
}
.play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform var(--transition);
}
.video-card:hover .play-icon { transform: scale(1); }
.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-info {
  padding: 14px 16px;
}
.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  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;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.video-meta span { display: flex; align-items: center; gap: 3px; }

/* ---- 内容分类卡片 ---- */
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}
.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
.cat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---- 专家卡片 ---- */
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: 220px;
}
.expert-info { padding: 20px; }
.expert-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.expert-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.expert-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.expert-tag {
  font-size: 0.72rem;
  background: var(--bg2);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.expert-actions { display: flex; gap: 8px; }

/* ---- 合作品牌 ---- */
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all var(--transition);
  height: 72px;
}
.partner-logo:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

/* ---- 评论卡片 ---- */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-hover); }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.review-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.review-date { font-size: 0.75rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  user-select: none;
}
.faq-q:hover { background: var(--bg2); }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ---- How-To 步骤 ---- */
.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.step-content p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ---- 联系区域 ---- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-label { font-size: 0.75rem; color: var(--text-light); }
.contact-val { font-weight: 600; color: var(--text); }
.qr-wrap { text-align: center; }
.qr-wrap img { width: 120px; height: 120px; border: 1px solid var(--border); border-radius: 8px; margin: 0 auto 8px; }
.qr-label { font-size: 0.78rem; color: var(--text-light); }

/* ---- 社交分享 ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  color: var(--white);
}
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #010101; }
.share-bilibili { background: #00a1d6; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ---- 页脚 ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-wrap { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold); }
.footer-qr {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.footer-qr-item { text-align: center; }
.footer-qr-item img {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  margin: 0 auto 6px;
}
.footer-qr-item span { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

/* ---- 内页Banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 56px 0;
  color: var(--white);
}
.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-banner p { font-size: 1rem; color: rgba(255,255,255,0.75); }

/* ---- 图片画廊 ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.82rem; font-weight: 600; }

/* ---- 特色块 ---- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.feature-img img { width: 100%; height: 320px; object-fit: cover; }
.feature-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature-text p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.feature-list { margin-bottom: 24px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- 通知/标签条 ---- */
.tag-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.tag-blue { background: #e8f0fe; color: var(--primary); }
.tag-red { background: #fde8e4; color: var(--accent); }
.tag-gold { background: #fef3d0; color: #b07d00; }
.tag-green { background: #e6f7ee; color: #1a7a45; }

/* ---- 弹幕效果 ---- */
.danmu-wrap {
  position: relative;
  overflow: hidden;
  height: 48px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  margin-top: 12px;
}
.danmu-item {
  position: absolute;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--white);
  top: 50%;
  transform: translateY(-50%);
  animation: danmu-scroll 12s linear infinite;
}
@keyframes danmu-scroll {
  from { left: 100%; }
  to { left: -100%; }
}

/* ---- 直播标签 ---- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content { padding: 0 40px; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 999; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .hero-slider { height: 360px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content { padding: 0 24px; }
  .hero-btns .btn { padding: 9px 18px; font-size: 0.85rem; }
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-tags { display: none; }
  .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-slider { height: 280px; }
  .hero-content h1 { font-size: 1.3rem; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 懒加载占位 ---- */
img[data-src] {
  background: var(--bg2);
  min-height: 80px;
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ---- 选中文字颜色 ---- */
::selection { background: var(--primary); color: var(--white); }

/* ---- 动画 ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- 内页专用 ---- */
.inner-content { padding: 48px 0; }
.sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-list li { padding: 7px 0; border-bottom: 1px solid var(--bg2); font-size: 0.85rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text); display: flex; justify-content: space-between; }
.sidebar-list li a:hover { color: var(--primary); }
.sidebar-list li .count { color: var(--text-light); font-size: 0.78rem; }

/* ---- 视频播放模态框 ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--accent); }
.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
