/* 黄果短剧 - 全站样式 */
:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e12;
  --card: #141419;
  --line: rgba(255, 255, 255, 0.08);
  --red: #dc2626;
  --red-bright: #ef4444;
  --red-deep: #991b1b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --faint: #6b7280;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: #fff; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px -6px rgba(220, 38, 38, 0.7);
  color: #fff; font-size: 15px;
}
.logo em { font-style: normal; color: var(--red-bright); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.main-nav a { transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--red-bright); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff !important;
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 10px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-bright); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 12px;
  transition: all 0.2s; cursor: pointer; border: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(220, 38, 38, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(220, 38, 38, 0.7); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.16); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22), transparent 65%);
  top: -180px; left: -160px; filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #f87171;
  background: rgba(127, 29, 29, 0.28); border: 1px solid rgba(153, 27, 27, 0.6);
  padding: 7px 14px; border-radius: 999px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900; line-height: 1.18; color: #fff;
}
.hero h1 .hl { color: var(--red-bright); }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 520px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 480px; }
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 800; color: #fff; }
.hero-stats .stat b i { font-style: normal; color: var(--red-bright); font-size: 14px; margin-left: 2px; }
.hero-stats .stat span { font-size: 12px; color: var(--faint); }

.hero-art { position: relative; }
.hero-art .frame {
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(153, 27, 27, 0.5);
  box-shadow: 0 24px 70px -20px rgba(220, 38, 38, 0.4);
}
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-card {
  position: absolute; left: 22px; bottom: -26px;
  width: 260px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card .row { display: flex; align-items: center; gap: 12px; }
.hero-card .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(153, 27, 27, 0.5);
  color: var(--red-bright);
  display: flex; align-items: center; justify-content: center;
}
.hero-card b { font-size: 14px; color: #fff; display: block; }
.hero-card small { font-size: 11px; color: var(--faint); }
.hero-card .bar { margin-top: 12px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.hero-card .bar i { display: block; height: 100%; width: 75%; border-radius: 999px; background: var(--red); }

/* 热搜词 */
.hot-words { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hot-words .container { display: flex; align-items: center; gap: 14px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap; }
.hot-words .label { font-size: 13px; color: var(--faint); flex-shrink: 0; }
.hot-words .label i { color: var(--red-bright); margin-right: 6px; }
.hot-words a {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; transition: all 0.2s;
}
.hot-words a:hover { color: var(--red-bright); border-color: rgba(220, 38, 38, 0.55); }

/* ===== 通用区块 ===== */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--red-bright); text-transform: uppercase;
}
.section-head h2 { margin-top: 10px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #fff; line-height: 1.3; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-more { font-size: 13px; color: var(--faint); }
.section-more a { color: var(--red-bright); }
.section-more a:hover { text-decoration: underline; }

/* ===== 排行榜 ===== */
.rank-list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.rank-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  transition: all 0.2s;
}
.rank-item:hover { border-color: rgba(220, 38, 38, 0.5); background: rgba(127, 29, 29, 0.14); transform: translateY(-2px); }
.rank-no {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: var(--faint);
  border-radius: 9px; background: rgba(255, 255, 255, 0.05);
  font-style: italic;
}
.rank-item:nth-child(1) .rank-no, .rank-item:nth-child(2) .rank-no, .rank-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info b { display: block; font-size: 15px; color: #fff; }
.rank-info span { font-size: 12px; color: var(--faint); }
.rank-hot { font-size: 12px; color: var(--red-bright); flex-shrink: 0; font-weight: 600; }
.rank-hot i { margin-right: 4px; }

/* ===== 剧集卡片 ===== */
.card-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.drama-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  transition: all 0.25s;
}
.drama-card:hover { transform: translateY(-5px); border-color: rgba(220, 38, 38, 0.55); box-shadow: 0 20px 44px -18px rgba(220, 38, 38, 0.35); }
.drama-card .thumb { position: relative; overflow: hidden; }
.drama-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.drama-card:hover .thumb img { transform: scale(1.05); }
.drama-card .ep {
  position: absolute; right: 10px; top: 10px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 7px;
}
.drama-card .body { padding: 18px 20px 20px; }
.drama-card .tags { display: flex; gap: 8px; font-size: 11px; }
.drama-card .tags .t { background: var(--red); color: #fff; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.drama-card .tags .n { color: var(--faint); padding: 3px 0; }
.drama-card h3 { margin-top: 10px; font-size: 17px; font-weight: 800; color: #fff; }
.drama-card h3 a:hover { color: var(--red-bright); }
.drama-card .desc { margin-top: 8px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 剧场分类 ===== */
.cat-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  border-radius: var(--radius); padding: 26px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  transition: all 0.2s;
}
.cat-card:hover { border-color: rgba(220, 38, 38, 0.6); background: rgba(127, 29, 29, 0.14); }
.cat-card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(220, 38, 38, 0.14); border: 1px solid rgba(153, 27, 27, 0.55);
  color: var(--red-bright); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.cat-card h3 { margin-top: 16px; font-size: 18px; font-weight: 800; color: #fff; }
.cat-card p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cat-card .meta { margin-top: 14px; font-size: 12px; color: var(--red-bright); font-weight: 600; }
.cat-card .meta i { margin-right: 5px; }

/* ===== 对比 ===== */
.compare-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-card { border-radius: var(--radius); padding: 30px; }
.compare-card.plain { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.compare-card.brand {
  background: linear-gradient(150deg, rgba(69, 10, 10, 0.55), rgba(20, 20, 25, 0.9));
  border: 1px solid rgba(153, 27, 27, 0.65);
  box-shadow: 0 0 46px -10px rgba(220, 38, 38, 0.4);
}
.compare-card .head { display: flex; align-items: center; gap: 12px; }
.compare-card .head .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.compare-card.plain .head .ic { background: rgba(255, 255, 255, 0.06); color: var(--faint); }
.compare-card.brand .head .ic { background: var(--red); color: #fff; }
.compare-card h3 { font-size: 17px; color: #fff; }
.compare-card .rec { margin-left: auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 6px; }
.compare-card ul { margin-top: 20px; display: grid; gap: 13px; }
.compare-card li { display: flex; gap: 11px; font-size: 14px; }
.compare-card.plain li { color: var(--faint); }
.compare-card.plain li i { color: #4b5563; margin-top: 3px; }
.compare-card.brand li { color: #d1d5db; }
.compare-card.brand li i { color: var(--red-bright); margin-top: 3px; }

/* ===== 口碑 ===== */
.voice-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice-card { border-radius: var(--radius); padding: 26px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.voice-card .stars { color: var(--red-bright); font-size: 13px; display: flex; gap: 3px; }
.voice-card blockquote { margin-top: 14px; font-size: 14px; color: var(--text); }
.voice-card figcaption { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.voice-card .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(220, 38, 38, 0.18); border: 1px solid rgba(153, 27, 27, 0.6);
  color: var(--red-bright); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.voice-card b { font-size: 14px; color: #fff; display: block; }
.voice-card small { font-size: 11px; color: var(--faint); }
.score-row { display: flex; gap: 28px; }
.score-row .score b { font-size: 32px; font-weight: 900; color: #fff; }
.score-row .score b i { font-style: normal; font-size: 16px; color: var(--red-bright); }
.score-row .score span { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 780px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); padding: 20px 22px; transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(153, 27, 27, 0.65); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; font-weight: 600; font-size: 15px; color: #fff; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--red-bright); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ===== CTA ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #7f1d1d, #991b1b 45%, #1a0505);
  border-top: 1px solid rgba(185, 28, 28, 0.5); border-bottom: 1px solid rgba(185, 28, 28, 0.5);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band .container { position: relative; padding-top: 54px; padding-bottom: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: #fff; }
.cta-band h2 .hl { color: #fecaca; }
.cta-band p { margin-top: 10px; font-size: 14px; color: rgba(254, 226, 226, 0.85); max-width: 520px; }
.cta-band .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--red-deep); }
.btn-white:hover { background: #fee2e2; transform: translateY(-2px); }
.cta-note { font-size: 12px; color: rgba(254, 226, 226, 0.7); display: flex; align-items: center; gap: 7px; }

/* ===== 页脚 ===== */
.site-footer { background: #08080a; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 10px; font-size: 13px; color: var(--faint); }
.footer-grid ul a:hover { color: var(--red-bright); }
.footer-brand p { margin-top: 14px; font-size: 13px; color: var(--faint); max-width: 340px; }
.footer-bottom {
  margin-top: 42px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #4b5563;
}

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 12px; color: var(--faint); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb i { margin: 0 8px; font-size: 10px; }
.breadcrumb .sep { margin: 0 8px; color: #374151; }

/* ===== 详情页 ===== */
.detail-hero { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.detail-hero .poster { border-radius: 18px; overflow: hidden; border: 1px solid rgba(153, 27, 27, 0.5); box-shadow: 0 20px 60px -20px rgba(220, 38, 38, 0.35); }
.detail-hero .poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-info h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; color: #fff; }
.detail-info .meta-row { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-info .meta-row .m {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.detail-info .meta-row .m.red { color: var(--red-bright); border-color: rgba(220, 38, 38, 0.5); }
.detail-info .lead { margin-top: 20px; font-size: 15px; color: var(--muted); }
.detail-info .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 16px; font-size: 24px; font-weight: 800; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul.points { display: grid; gap: 12px; margin: 8px 0 18px; }
.prose ul.points li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.prose ul.points li i { color: var(--red-bright); margin-top: 4px; }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 110px 20px; }
.notfound .code { font-size: 90px; font-weight: 900; color: var(--red); text-shadow: 0 0 60px rgba(220, 38, 38, 0.5); }
.notfound p { margin: 18px 0 30px; color: var(--muted); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 76px; }
  .hero-art { max-width: 640px; }
  .rank-list { grid-template-columns: 1fr; }
  .card-grid, .cat-grid, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero .poster { max-width: 520px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .card-grid, .cat-grid, .voice-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stats .stat b { font-size: 18px; }
  .hero-card { width: 220px; left: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
