/* ============================================
   91短剧官网 - 共享样式系统
   暗色影院风 + 紫粉渐变 · 移动端优先响应式
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --bg: #0a0a14;
  --bg-elevated: #12121e;
  --surface: #161623;
  --surface-2: #1c1c2e;
  --surface-3: #24243a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5fa;
  --text-dim: #9494a8;
  --text-muted: #6b6b80;
  --primary: #a855f7;
  --primary-light: #c084fc;
  --secondary: #ec4899;
  --accent: #ff6b6b;
  --success: #22c55e;
  --warning: #fbbf24;
  --gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #fbbf24 100%);
  --gradient-cool: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(168, 85, 247, 0.25);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --header-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ---------- 通用背景 ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-decor::before, .bg-decor::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.18;
}
.bg-decor::before {
  width: 500px; height: 500px; background: var(--primary); top: -150px; right: -100px;
}
.bg-decor::after {
  width: 600px; height: 600px; background: var(--secondary); bottom: -200px; left: -150px;
}

/* ---------- 布局 ---------- */
.container {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
}
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

/* ---------- 文字工具 ---------- */
.text-gradient {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent-gradient {
  background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- 区块标题 ---------- */
.section-head { margin-bottom: 28px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 10px;
}
.section-head .eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--gradient); border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
}
.section-head p { margin-top: 10px; color: var(--text-dim); font-size: 15px; max-width: 600px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap; border: none; cursor: pointer;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(168, 85, 247, 0.5); }
.btn-accent {
  background: var(--gradient-accent); color: #1a1a1a; font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 107, 107, 0.45); }
.btn-outline {
  background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-dim); padding: 8px 16px; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { display: flex; width: 100%; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
.nav-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.nav-logo .logo-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  color: var(--text-dim); transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--text); background: rgba(168, 85, 247, 0.15); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
  transition: all var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 64px 0 56px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 30%, rgba(168, 85, 247, 0.22), transparent 50%),
              radial-gradient(ellipse at 80% 60%, rgba(236, 72, 153, 0.18), transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 13px; font-weight: 600; color: var(--primary-light); margin-bottom: 20px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px;
}
.hero h1 .line2 { display: block; }
.hero-desc { font-size: 17px; color: var(--text-dim); margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat .num { font-size: 24px; font-weight: 800; }
.hero-stat .label { font-size: 13px; color: var(--text-dim); }

/* Hero 视觉海报 */
.hero-visual { position: relative; }
.hero-poster {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg); aspect-ratio: 3/4;
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 60%, #3d1a2e 100%);
}
.hero-poster-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.hero-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.95) 0%, rgba(10,10,20,0.3) 50%, transparent 100%);
}
.hero-poster-tag {
  position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 100px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600;
  color: var(--accent); display: flex; align-items: center; gap: 6px;
}
.hero-poster-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
.hero-poster-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.hero-poster-ep { font-size: 13px; color: var(--text-dim); }
.hero-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.4); transition: all var(--transition);
}
.hero-play:hover { background: var(--gradient); border-color: transparent; transform: translate(-50%, -50%) scale(1.1); }
.hero-play svg { width: 24px; height: 24px; margin-left: 3px; color: #fff; }
.hero-float-card {
  position: absolute; bottom: -16px; right: -12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); font-size: 13px;
}
.hero-float-card .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; color: #1a1a1a; }
.hero-float-card .icon svg { width: 20px; height: 20px; }
.hero-float-card .info .num { font-weight: 800; font-size: 15px; }
.hero-float-card .info .label { color: var(--text-dim); font-size: 11px; }

/* ---------- 短剧卡片 ---------- */
.drama-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.drama-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.drama-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.drama-poster {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2);
}
.drama-poster .poster-bg { position: absolute; inset: 0; }
.drama-poster .poster-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.9) 0%, transparent 60%);
}
.drama-poster .poster-title {
  position: absolute; bottom: 12px; left: 14px; font-size: 15px; font-weight: 700; z-index: 2;
}
.drama-poster .badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; z-index: 2;
}
.badge-hot { background: var(--gradient-accent); color: #1a1a1a; }
.badge-new { background: var(--success); color: #0a0a14; }
.badge-ai { background: var(--gradient); color: #fff; }
.badge-rank { background: rgba(255,107,107,0.9); color: #fff; }
.drama-poster .play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all var(--transition); z-index: 2;
}
.drama-card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drama-poster .play-icon svg { width: 20px; height: 20px; margin-left: 2px; color: #fff; }
.drama-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.drama-info .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.drama-info .meta .sep { opacity: 0.5; }
.drama-info .desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; flex: 1; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama-info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.drama-info .tag {
  font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); color: var(--text-dim);
}
.drama-info .tag.ai { background: rgba(168,85,247,0.15); color: var(--primary-light); }

/* ---------- 卡片海报背景（渐变模拟） ---------- */
.poster-bg-1 { background: linear-gradient(135deg, #4a1a6e 0%, #2d1b4e 50%, #6b2a5e 100%); }
.poster-bg-2 { background: linear-gradient(135deg, #1a3a5e 0%, #2d1b4e 50%, #3d5a6e 100%); }
.poster-bg-3 { background: linear-gradient(135deg, #6e1a3a 0%, #4a1a2e 50%, #5e2a4a 100%); }
.poster-bg-4 { background: linear-gradient(135deg, #1a5e4a 0%, #2d3a1b 50%, #2a4a5e 100%); }
.poster-bg-5 { background: linear-gradient(135deg, #5e1a1a 0%, #3a1a2d 50%, #5e2a1a 100%); }
.poster-bg-6 { background: linear-gradient(135deg, #1a1a5e 0%, #2d1b4e 50%, #3a2a5e 100%); }
.poster-bg-7 { background: linear-gradient(135deg, #1a5e5e 0%, #2d4a1b 50%, #1a3a5e 100%); }
.poster-bg-8 { background: linear-gradient(135deg, #5e3a1a 0%, #3a1a4e 50%, #5e1a3a 100%); }

/* ---------- AI 特性卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: rgba(168,85,247,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary-light);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card:nth-child(2) .feature-icon { background: rgba(236,72,153,0.12); color: var(--secondary); }
.feature-card:nth-child(3) .feature-icon { background: rgba(255,107,107,0.12); color: var(--accent); }
.feature-card:nth-child(4) .feature-icon { background: rgba(99,102,241,0.12); color: #818cf8; }
.feature-card:nth-child(5) .feature-icon { background: rgba(34,197,94,0.12); color: var(--success); }
.feature-card:nth-child(6) .feature-icon { background: rgba(251,191,36,0.12); color: var(--warning); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---------- 数据统计条 ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
}
.stat-cell {
  background: var(--surface); padding: 32px 24px; text-align: center;
}
.stat-cell .num { font-size: 36px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-cell .label { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* ---------- App 下载区 ---------- */
.app-cta {
  background: linear-gradient(135deg, rgba(168,85,247,0.1) 0%, rgba(236,72,153,0.06) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.app-cta::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%); pointer-events: none;
}
.app-cta h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-bottom: 12px; }
.app-cta p { color: var(--text-dim); margin-bottom: 24px; max-width: 460px; }
.app-downloads { display: flex; flex-direction: column; gap: 12px; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-strong); transition: all var(--transition); min-width: 160px;
}
.app-store-btn:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }
.app-store-btn .store-icon { width: 32px; height: 32px; color: var(--text); }
.app-store-btn .store-info .size { font-size: 11px; color: var(--text-dim); }
.app-store-btn .store-info .name { font-size: 15px; font-weight: 700; }

/* ---------- 手机壳展示 ---------- */
.phone-mockup {
  width: 220px; height: 440px; background: var(--surface-3); border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.05); position: relative;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg); border-radius: 28px; overflow: hidden; position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px;
  background: var(--surface-3); border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-app-hero {
  height: 40%; background: var(--gradient); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; position: relative;
}
.phone-app-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); }
.phone-app-hero h4 { font-size: 14px; font-weight: 800; color: #fff; z-index: 1; }
.phone-app-hero span { font-size: 10px; color: rgba(255,255,255,0.8); z-index: 1; }
.phone-tabs { display: flex; padding: 12px 16px; gap: 8px; }
.phone-tab { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.phone-tab.active { background: var(--gradient); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.phone-grid-item { aspect-ratio: 3/4; border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.phone-grid-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }

/* ---------- 播放器 ---------- */
.player-wrap {
  background: #000; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 16/9; box-shadow: var(--shadow-lg);
}
.player-bg {
  position: absolute; inset: 0; background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 50%, #3d1a2e 100%);
}
.player-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.player-play-btn {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.3); transition: all var(--transition); margin-bottom: 12px;
}
.player-play-btn:hover { background: var(--gradient); border-color: transparent; transform: scale(1.1); }
.player-play-btn svg { width: 28px; height: 28px; margin-left: 4px; color: #fff; }
.player-title-bar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.player-title-bar .ep-now { font-size: 12px; color: var(--primary-light); font-weight: 600; margin-bottom: 4px; }
.player-title-bar h3 { font-size: 16px; font-weight: 700; }
.player-controls {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface);
}
.player-progress { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.player-progress-fill { width: 35%; height: 100%; background: var(--gradient); border-radius: 2px; }
.player-time { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.player-control-btn { color: var(--text-dim); display: flex; }
.player-control-btn svg { width: 20px; height: 20px; }

/* ---------- 剧集列表 ---------- */
.episode-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.episode-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; text-align: center; transition: all var(--transition); cursor: pointer; position: relative;
}
.episode-item:hover { border-color: var(--primary); background: rgba(168,85,247,0.08); transform: translateY(-2px); }
.episode-item.active { border-color: var(--primary); background: rgba(168,85,247,0.15); }
.episode-item.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.episode-item .ep-num { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.episode-item.active .ep-num { color: var(--text); }
.episode-item .ep-title { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }
.episode-item .ep-free { position: absolute; top: 6px; right: 6px; font-size: 9px; color: var(--success); font-weight: 700; }

/* ---------- 分类筛选条 ---------- */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.filter-bar::-webkit-scrollbar { height: 4px; }
.filter-bar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }
.filter-chip {
  padding: 8px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-dim); white-space: nowrap; transition: all var(--transition); cursor: pointer;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ---------- 搜索框 ---------- */
.search-box {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px; transition: all var(--transition);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,85,247,0.15); }
.search-box svg { width: 20px; height: 20px; color: var(--text-dim); flex-shrink: 0; }
.search-box input { background: none; border: none; outline: none; color: var(--text); font-size: 15px; width: 100%; }
.search-box input::placeholder { color: var(--text-muted); }

/* ---------- 排行榜 ---------- */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); cursor: pointer;
}
.rank-item:hover { border-color: var(--border-strong); transform: translateX(4px); background: var(--surface-2); }
.rank-num {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.rank-num.n1 { background: var(--gradient-accent); color: #1a1a1a; }
.rank-num.n2 { background: rgba(255,255,255,0.1); color: var(--text); }
.rank-num.n3 { background: rgba(255,165,0,0.2); color: var(--warning); }
.rank-num.other { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.rank-thumb { width: 48px; height: 64px; border-radius: 6px; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.rank-info .meta .heat { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; text-align: left; transition: color var(--transition);
}
.faq-q:hover { color: var(--primary-light); }
.faq-q .icon { width: 20px; height: 20px; color: var(--text-dim); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-dim); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all var(--transition);
}
.footer-social a:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.footer-social a svg { width: 18px; height: 18px; }

/* ---------- SEO 文字区 ---------- */
.seo-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; line-height: 1.9; font-size: 15px; color: var(--text-dim);
}
.seo-content h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.seo-content h3:first-child { margin-top: 0; }
.seo-content p { margin-bottom: 12px; }
.seo-content strong { color: var(--text); font-weight: 700; }
.seo-content a { color: var(--primary-light); }
.seo-content a:hover { text-decoration: underline; }
.seo-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.seo-keywords .kw {
  font-size: 13px; padding: 6px 12px; border-radius: 100px; background: rgba(168,85,247,0.1);
  color: var(--primary-light); border: 1px solid rgba(168,85,247,0.2);
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: var(--gradient); border-radius: var(--radius-xl); padding: 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15), transparent 50%);
}
.cta-banner h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.9); margin-bottom: 24px; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-accent { background: #fff; color: #1a1a1a; }

/* ---------- 双栏布局 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

/* ---------- 动画 ---------- */
.fade-up { animation: fadeUp 0.6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

/* ---------- 页面头 ---------- */
.page-header { padding: 40px 0 24px; }
.page-header h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.page-header p { color: var(--text-dim); margin-top: 8px; max-width: 600px; }

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .app-cta { grid-template-columns: 1fr; padding: 32px; }
  .app-cta .phone-mockup { display: none; }
  .episode-list { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================
   响应式 - 手机
   ============================================ */
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }

  /* 导航 */
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-elevated); flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; transform: translateX(100%); transition: transform var(--transition);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: 14px 16px; font-size: 16px; border-radius: var(--radius); }
  .nav-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 20px; }
  .hero-cta .btn { flex: 1; }

  /* 卡片网格 */
  .drama-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 20px 12px; }
  .stat-cell .num { font-size: 28px; }

  /* 播放器 */
  .episode-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .episode-item { padding: 10px 8px; }

  /* 排行 */
  .rank-thumb { width: 40px; height: 54px; }

  /* FAQ */
  .faq-q { padding: 14px 16px; font-size: 14px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* 搜索 */
  .search-box { padding: 10px 14px; }

  /* SEO */
  .seo-content { padding: 20px; font-size: 14px; }

  /* CTA */
  .cta-banner { padding: 28px 20px; }
  .app-cta { padding: 24px; }

  .section-head h2 { font-size: 22px; }
}

/* ============================================
   响应式 - 小手机
   ============================================ */
@media (max-width: 380px) {
  .drama-grid { grid-template-columns: 1fr; }
  .episode-list { grid-template-columns: repeat(2, 1fr); }
  .hero-float-card { display: none; }
}
