/* =========================================================
   《夜色沉溺》短剧宣传 / 下载落地页 —— 科技风视觉主题
   风格：深紫粉底 + 霓虹粉 / 紫霓虹 + HUD 网格 + 玻璃拟态
   ========================================================= */

/* ---------- 1. 主题变量 ---------- */
:root {
  /* 底色（深紫粉黑） */
  --bg: #0e0611;
  --bg-soft: #170a1c;
  --bg-deep: #070209;

  /* 底色 RGB（供半透明背景取用） */
  --bg-rgb: 14, 6, 17;
  --bg-soft-rgb: 23, 10, 28;
  --bg-deep-rgb: 7, 2, 9;

  /* 霓虹主色（粉色为主） */
  --primary: #ff5fa2;   /* 霓虹粉 */
  --secondary: #b45cff; /* 霓虹紫 */
  --accent: #ffc2dd;    /* 浅粉高亮 */
  --ink: #1c0512;       /* 亮底上的深色文字 */

  /* 主色 RGB（供半透明光效取用） */
  --primary-rgb: 255, 95, 162;
  --secondary-rgb: 180, 92, 255;
  --accent-rgb: 255, 194, 221;

  /* 文字 */
  --text: #ffe9f3;
  --text-rgb: 255, 233, 243;
  --text-muted: rgba(255, 233, 243, 0.64);
  --text-dim: rgba(255, 233, 243, 0.4);

  /* 结构 */
  --line: rgba(255, 95, 162, 0.18);
  --line-soft: rgba(255, 233, 243, 0.08);
  --card: rgba(38, 12, 30, 0.62);
  --card-hover: rgba(56, 18, 44, 0.82);

  /* 圆角（科技风偏方正） */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* 渐变与光效 */
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-text: linear-gradient(120deg, #ffffff 0%, var(--accent) 34%, var(--primary) 68%, var(--secondary) 100%);
  --grad-line: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  --shadow-glow: 0 0 0 1px rgba(var(--primary-rgb), 0.45), 0 14px 40px -14px rgba(var(--primary-rgb), 0.7);
  --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 1);

  /* 等宽字体（HUD 数字 / 标签） */
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --header-h: 68px;
  --container: 1180px;
}

/* ---------- 2. 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  border-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--primary);
  color: var(--ink);
}

/* 科技风滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* ---------- 3. 全局科技背景（网格 + 光晕） ---------- */
/* 3.1 会缓慢漂移的 HUD 网格 */
body::before {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 28%, transparent 82%);
  mask-image: radial-gradient(115% 85% at 50% 0%, #000 28%, transparent 82%);
  animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-54px, -54px, 0); }
}

/* 3.2 顶部霓虹光晕 */
body::after {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 680px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at 12% 0%, rgba(var(--primary-rgb), 0.16), transparent 70%),
    radial-gradient(42% 42% at 88% 4%, rgba(var(--secondary-rgb), 0.2), transparent 70%);
}

/* ---------- 4. 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.035) 24%, transparent);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

/* HUD 风格小标题：// HIGHLIGHTS */
.section-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  text-shadow: 0 0 14px rgba(var(--primary-rgb), 0.55);
}

.section-kicker::before {
  content: "// ";
  opacity: 0.65;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

/* 标题下方的霓虹光线 */
.section-head .section-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--grad-line);
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.75);
}

.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 5. 科技角标（HUD 四角装饰） ---------- */
.feature-card,
.story-text,
.cast-panel,
.episode-wrap,
.gallery-item,
.download-item,
.download-panel,
.faq-item {
  position: relative;
}

.feature-card::before,
.story-text::before,
.cast-panel::before,
.episode-wrap::before,
.download-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--primary);
  border-left: 1px solid var(--primary);
  pointer-events: none;
  opacity: 0.85;
}

.feature-card::after,
.story-text::after,
.cast-panel::after,
.episode-wrap::after,
.download-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: var(--grad);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}

/* 悬停时的高光扫过 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.7), 0 20px 50px -16px rgba(var(--primary-rgb), 0.95);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--accent);
  box-shadow: 0 0 22px -6px rgba(var(--primary-rgb), 0.6);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
  flex-direction: column;
  gap: 0;
}

.btn-lg .btn-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0.08em;
}

.btn-block {
  width: 100%;
}

/* ---------- 7. 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -28px rgba(var(--primary-rgb), 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.55), 0 0 24px -4px rgba(var(--primary-rgb), 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* 选中项底部的霓虹短线 */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.9);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(var(--primary-rgb), 0.07);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.8);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 8. 首屏 Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 84px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.9) contrast(1.08) hue-rotate(160deg);
}

/* 图片之上叠加网格与渐隐，使其融入科技底 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.75) 0%, rgba(var(--bg-rgb), 0.9) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.06) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(var(--primary-rgb), 0.06) 1px, transparent 1px) 0 0 / 54px 54px,
    radial-gradient(60% 55% at 80% 30%, rgba(var(--secondary-rgb), 0.28), transparent 70%);
}

/* 首屏扫描线（自上而下循环扫过） */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.85), transparent);
  box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.8);
  animation: scanSweep 6.5s linear infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(760px); opacity: 0; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.08);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 22px;
  box-shadow: inset 0 0 20px -8px rgba(var(--primary-rgb), 0.8);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: 0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(var(--primary-rgb), 0.35));
}

.hero-title-sub {
  display: block;
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  filter: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 22px;
}

.tag {
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(var(--primary-rgb), 0.05);
  font-size: 13px;
  color: var(--text-muted);
}

.tag-hot {
  border-color: transparent;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 20px -6px rgba(var(--primary-rgb), 0.9);
}

.hero-desc {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 40px;
}

/* 数据看板：HUD 读数格 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  position: relative;
  padding: 0 14px;
  border-left: 1px solid var(--line-soft);
}

.hero-stats li:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-stats li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.9);
}

.hero-stats li:first-child::before {
  left: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* 竖版海报 */
.hero-poster {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

/* 海报四角 HUD 括号 */
.hero-poster::before,
.hero-poster::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid var(--primary);
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
  box-shadow: 0 0 16px -4px rgba(var(--primary-rgb), 0.9);
}

.hero-poster::before {
  top: -12px;
  left: -12px;
  border-right: none;
  border-bottom: none;
}

.hero-poster::after {
  right: -12px;
  bottom: -12px;
  border-left: none;
  border-top: none;
}

.poster-frame {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.14), 0 40px 90px -40px rgba(0, 0, 0, 1);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(var(--bg-deep-rgb), 0.94));
}

/* 海报内的横向扫描线 */
.poster-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.18), transparent);
  animation: posterScan 4.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes posterScan {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(420%); }
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(var(--bg-rgb), 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--primary-rgb), 0.7);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.08), 0 0 30px -6px rgba(var(--primary-rgb), 0.9);
  transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.poster-play svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  margin-left: 3px;
}

.poster-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
  box-shadow: 0 0 0 12px rgba(var(--primary-rgb), 0.1), 0 0 40px -4px rgba(var(--primary-rgb), 1);
}

.poster-play:hover svg {
  fill: var(--ink);
}

.poster-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: rgba(var(--bg-rgb), 0.75);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.poster-glow {
  position: absolute;
  inset: 14% -16% -16% -16%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--primary-rgb), 0.42), rgba(var(--secondary-rgb), 0.24) 45%, transparent 72%);
  filter: blur(42px);
}

/* ---------- 9. 卡片网格 ---------- */
.card-grid {
  display: grid;
  gap: 20px;
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.55);
  background: var(--card-hover);
  box-shadow: 0 26px 60px -30px rgba(var(--primary-rgb), 0.65);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 22px -10px rgba(var(--primary-rgb), 0.9);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

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

/* ---------- 10. 剧情 & 演员 ---------- */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

.story-text {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-text p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 16px;
  text-indent: 2em;
}

.story-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.story-points li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.story-points strong {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

.cast-panel {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-title {
  font-size: 16px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
  box-shadow: -2px 0 14px -4px rgba(var(--primary-rgb), 0.9);
}

.cast-list {
  display: grid;
  gap: 14px;
}

.cast-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.cast-item:hover {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: var(--line);
}

.cast-item img {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 0 18px -6px rgba(var(--primary-rgb), 0.8);
}

.cast-item strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.cast-item span {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- 11. 选集 ---------- */
.episode-wrap {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.episode-grid.is-collapsed {
  max-height: 268px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

.ep-chip {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(var(--primary-rgb), 0.035);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: all 0.22s ease;
}

.ep-chip:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--grad);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -12px rgba(var(--primary-rgb), 0.95);
}

/* 最新更新的集数 */
.ep-chip.is-latest {
  color: var(--accent);
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: inset 0 0 18px -10px rgba(var(--primary-rgb), 0.95);
}

#episodeToggle {
  margin-top: 24px;
}

/* ---------- 12. 剧照 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: zoom-in;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 24px 60px -30px rgba(var(--primary-rgb), 0.8);
  outline: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 18px 14px;
  font-size: 13.5px;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(var(--bg-deep-rgb), 0.92));
}

.gallery-item figcaption::before {
  content: "▍";
  color: var(--primary);
  margin-right: 4px;
}

/* ---------- 13. 下载中心 ---------- */
.download {
  scroll-margin-top: var(--header-h);
}

.download::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(45% 55% at 50% 50%, rgba(var(--primary-rgb), 0.12), transparent 72%);
  pointer-events: none;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 24px;
  align-items: start;
}

.download-list {
  display: grid;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

/* 左侧霓虹指示条 */
.download-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.download-item:hover::before {
  transform: scaleY(1);
}

.download-item:hover {
  transform: translateX(6px);
  border-color: rgba(var(--primary-rgb), 0.5);
  background: var(--card-hover);
  box-shadow: 0 22px 55px -32px rgba(var(--primary-rgb), 0.9);
}

.download-item.is-primary {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.14), rgba(var(--secondary-rgb), 0.12));
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.18), 0 24px 60px -34px rgba(var(--primary-rgb), 0.95);
}

.dl-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(var(--bg-deep-rgb), 0.55);
  border: 1px solid var(--line);
  font-size: 24px;
}

.dl-body {
  flex: 1;
  min-width: 0;
}

.dl-body strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.dl-body em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-go {
  flex: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 22px -8px rgba(var(--primary-rgb), 0.95);
}

/* 下载侧栏 */
.download-panel {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.07);
  box-shadow: inset 0 0 26px -14px rgba(var(--primary-rgb), 1);
}

.code-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.code-box strong {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(var(--primary-rgb), 0.75);
}

.safe-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.safe-list li {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- 14. FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--line);
}

.faq-item.is-open {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: var(--card-hover);
  box-shadow: 0 20px 50px -32px rgba(var(--primary-rgb), 0.95);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.faq-arrow {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.faq-arrow::before,
.faq-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.9);
  transition: transform 0.28s ease;
}

.faq-arrow::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-arrow::after {
  transform: rotate(0deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 52px 0 120px;
  background: var(--bg-deep);
}

/* 顶部渐变霓虹分割线 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-line);
}

.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.footer-brand p {
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 760px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.9;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(var(--text-rgb), 0.26);
}

/* ---------- 16. 底部悬浮下载条 ---------- */
.float-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 95;
  width: min(680px, calc(100% - 32px));
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--bg-soft-rgb), 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.12), 0 24px 60px -24px rgba(0, 0, 0, 1), 0 -6px 40px -24px rgba(var(--primary-rgb), 0.9);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  opacity: 0;
}

/* 顶部呼吸霓虹线 */
.float-bar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--grad-line);
  animation: floatPulse 2.4s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.float-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.float-info strong {
  display: block;
  font-size: 14.5px;
  letter-spacing: 0.03em;
}

.float-info span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- 17. 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 94;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(var(--bg-soft-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  box-shadow: 0 0 24px -6px rgba(var(--primary-rgb), 0.95);
  transform: translateY(-3px);
}

/* ---------- 18. 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(var(--bg-deep-rgb), 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 76vh;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.18), 0 40px 90px -30px rgba(0, 0, 0, 1), 0 0 70px -20px rgba(var(--primary-rgb), 0.75);
}

.lightbox-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  background: rgba(var(--bg-soft-rgb), 0.85);
}

.lightbox-close:hover {
  background: var(--grad);
  border-color: transparent;
  color: var(--ink);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 19. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 130;
  transform: translate(-50%, -18px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--bg-soft-rgb), 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.14), 0 18px 44px -22px rgba(var(--primary-rgb), 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 20. 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 40px;
  }

  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(var(--bg-rgb), 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 16px;
  }

  .nav-link::after {
    left: 14px;
    right: auto;
    width: 22px;
  }

  .nav-cta {
    margin: 10px 0 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 44px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge,
  .tag-list,
  .hero-actions {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .hero-poster {
    order: -1;
    max-width: 300px;
  }

  .story-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .story-text p {
    text-indent: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 68px 0;
  }

  .container {
    padding: 0 18px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .cols-4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .hero-stats li:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .hero-actions .btn-lg {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 9px;
  }

  .episode-wrap,
  .story-text,
  .cast-panel {
    padding: 20px;
  }

  .download-item {
    gap: 14px;
    padding: 16px;
  }

  .dl-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .dl-body em {
    white-space: normal;
  }

  .dl-go {
    padding: 8px 15px;
    font-size: 13px;
  }

  .float-bar {
    padding: 10px 12px 10px 16px;
  }

  .back-top {
    right: 16px;
    bottom: 88px;
  }

  .site-footer {
    padding-bottom: 108px;
  }
}

/* 用户系统开启「减少动态效果」时关闭循环动画 */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero::after,
  .poster-frame::before,
  .float-bar::before,
  .hero-badge .dot {
    animation: none;
  }
}
