/* ==========================================================================
   AI短剧《揭穿学姐的另一副面孔》第1-2集 · crbhyllh.com
   深度优化样式：暗色长页 · 现代排版 · 响应式 · 无障碍
   ========================================================================== */

/* ---------- 0. Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg-0: #07101c;
  --c-bg-1: #0a1626;
  --c-bg-2: #112038;
  --c-bg-3: #1a2c48;
  --c-line: rgba(220, 180, 120, .14);
  --c-line-2: rgba(220, 180, 120, .26);
  --c-text: #e9e3d4;
  --c-text-2: #b8b1a1;
  --c-text-3: #8d8676;
  --c-accent: #b8893a;
  --c-accent-2: #e9b65a;
  --c-accent-soft: rgba(184, 137, 58, .14);
  --c-warn: #d27676;
  --c-good: #6db287;
  --c-shadow: 0 20px 50px rgba(0, 0, 0, .55);

  --ff-zh: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "FZShuTi", "KaiTi", "STKaiti", serif;
  --ff-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --container: 1200px;
  --gutter: 28px;

  --tx: cubic-bezier(.2, .8, .2, 1);
}

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

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184, 137, 58, .16), transparent 60%),
    radial-gradient(1000px 500px at 0% 10%, rgba(120, 60, 60, .12), transparent 60%),
    linear-gradient(180deg, var(--c-bg-0), var(--c-bg-1) 35%, var(--c-bg-0));
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: var(--c-accent); color: #0a1626; }
::-moz-selection { background: var(--c-accent); color: #0a1626; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-accent);
  color: var(--c-bg-0);
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; outline: 3px solid var(--c-accent-2); }

/* ---------- 1. Container / Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.kicker {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  color: var(--c-accent-2);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(184, 137, 58, .08);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--tx), background .25s ease, box-shadow .25s ease, color .25s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--c-accent-2); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 10px 24px rgba(184, 137, 58, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184, 137, 58, .5); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-2);
}
.btn-ghost:hover { background: rgba(220, 180, 120, .08); transform: translateY(-2px); }

/* ---------- 2. Header ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 16, 28, .92), rgba(7, 16, 28, .78));
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-text);
  font-family: var(--ff-zh);
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7a1f1c, var(--c-accent));
  color: #f3e7c8;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(184, 137, 58, .4);
  font-family: var(--ff-zh);
}
.brand small {
  display: block;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--c-text-3);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-list a {
  color: var(--c-text-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 6px;
  position: relative;
  transition: color .25s ease;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--c-accent-2); }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--tx);
  border-radius: 2px;
}
.nav-list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--c-line-2);
  background: rgba(255, 255, 255, .02);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(184, 137, 58, .22), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, rgba(122, 31, 28, .3), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero-text .kicker { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--ff-zh);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: .01em;
  margin-bottom: 22px;
  color: #f6efde;
  font-weight: 700;
}
.hero h1 .accent {
  display: block;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 500;
  color: var(--c-accent-2);
  margin-top: 14px;
  letter-spacing: .04em;
  line-height: 1.5;
}
.hero .lead {
  font-size: 16.5px;
  color: var(--c-text-2);
  margin-bottom: 28px;
}
.hero .lead strong { color: var(--c-accent-2); font-weight: 700; }

.hero-meta {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin-bottom: 30px;
  padding-top: 22px;
  border-top: 1px dashed var(--c-line-2);
}
.hero-meta li { font-size: 14.5px; color: var(--c-text-2); }
.hero-meta b { color: var(--c-accent-2); font-weight: 600; margin-right: 6px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--c-shadow);
  border: 1px solid var(--c-line-2);
  background: var(--c-bg-2);
  aspect-ratio: 4 / 5;
}
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--tx);
}
.hero-figure:hover img { transform: scale(1.04); }
.hero-figure .badge {
  position: absolute;
  top: 18px; left: 18px;
  padding: 7px 16px;
  background: rgba(7, 16, 28, .7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--c-accent-2);
  font-weight: 600;
  z-index: 1;
}
.hero-figure .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
  color: var(--c-text);
}
.hero-figure .caption b { color: var(--c-accent-2); display: block; margin-bottom: 4px; letter-spacing: .12em; }
.hero-figure .caption { font-size: 13.5px; color: var(--c-text-2); }

/* ---------- 4. Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section + .section { border-top: 1px solid var(--c-line); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--ff-zh);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  color: #f6efde;
  margin-bottom: 16px;
  font-weight: 700;
}
.section-head p { color: var(--c-text-2); font-size: 16px; }

.story { max-width: 880px; margin: 0 auto; }
.story p { color: var(--c-text); margin-bottom: 18px; }
.story .lede {
  font-family: var(--ff-zh);
  font-size: 19px;
  line-height: 1.85;
  color: var(--c-text);
  border-left: 3px solid var(--c-accent);
  padding: 4px 0 4px 20px;
  margin-bottom: 30px;
}
.story h3 {
  font-family: var(--ff-zh);
  font-size: 24px;
  color: var(--c-accent-2);
  margin: 32px 0 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.story h3::before {
  content: "▍";
  color: var(--c-accent);
  margin-right: 10px;
  font-size: 18px;
}
.story blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(184, 137, 58, .1), rgba(122, 31, 28, .08));
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  font-family: var(--ff-zh);
  font-size: 17px;
  color: var(--c-text);
  line-height: 1.85;
}
.story blockquote b { color: var(--c-accent-2); }

/* Fact grid (key facts) */
.fact-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 30px 0;
}
.fact-grid li {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .3s var(--tx), border-color .3s ease, background .3s ease;
}
.fact-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--c-line-2);
  background: rgba(184, 137, 58, .08);
}
.fact-grid .label {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-text-3);
  text-transform: uppercase;
}
.fact-grid .value { font-size: 16px; color: var(--c-accent-2); font-weight: 700; }

/* ---------- 5. Chapter Cards ---------- */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.chapter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--tx), border-color .4s ease, box-shadow .4s ease;
}
.chapter-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-accent);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .45);
}
.chapter-card .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.chapter-card .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--tx);
}
.chapter-card:hover .cover img { transform: scale(1.07); }
.chapter-card .cover .ep {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(7, 16, 28, .7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  color: var(--c-accent-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
.chapter-card .body { padding: 22px 22px 24px; }
.chapter-card h3 {
  font-family: var(--ff-zh);
  font-size: 18px;
  color: #f6efde;
  margin-bottom: 10px;
  font-weight: 700;
}
.chapter-card p { color: var(--c-text-2); font-size: 14.5px; margin-bottom: 12px; }
.chapter-card .more {
  display: inline-block;
  color: var(--c-accent-2);
  font-size: 13px;
  letter-spacing: .1em;
  border-bottom: 1px dashed var(--c-accent);
  padding-bottom: 2px;
}

/* ---------- 6. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-bg-2);
  cursor: pointer;
  transition: transform .4s var(--tx), border-color .4s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--c-accent);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--tx), filter .4s ease;
}
.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 9px 12px;
  background: rgba(7, 16, 28, .78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  color: var(--c-accent-2);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s var(--tx);
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.1); }

/* ---------- 7. Timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  margin-top: 24px;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--c-accent), transparent);
}
.timeline-item {
  position: relative;
  padding: 18px 22px 22px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform .35s var(--tx), border-color .35s ease;
}
.timeline-item:hover { transform: translateX(4px); border-color: var(--c-accent); }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 24px;
  width: 14px; height: 14px;
  background: var(--c-accent);
  border: 3px solid var(--c-bg-1);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184, 137, 58, .25);
}
.timeline-item h4 {
  font-family: var(--ff-zh);
  color: var(--c-accent-2);
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
}
.timeline-item p { color: var(--c-text-2); font-size: 14.5px; }

/* ---------- 8. FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.faq details[open] { border-color: var(--c-accent); background: rgba(184, 137, 58, .06); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--ff-zh);
  font-size: 17px;
  font-weight: 600;
  color: #f6efde;
  position: relative;
  transition: color .25s ease;
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-accent-2);
  transition: transform .3s var(--tx);
  font-weight: 300;
}
.faq details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.faq .answer {
  padding: 4px 24px 22px;
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.85;
  border-top: 1px dashed var(--c-line);
}

/* ---------- 9. CTA Band ---------- */
.cta-band {
  margin-top: 60px;
  padding: 48px 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(184, 137, 58, .14), rgba(122, 31, 28, .14)),
    rgba(7, 16, 28, .6);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(184, 137, 58, .25), transparent 70%);
  pointer-events: none;
}
.cta-band h3 {
  font-family: var(--ff-zh);
  font-size: clamp(22px, 2.6vw, 30px);
  color: #f6efde;
  margin-bottom: 12px;
  font-weight: 700;
}
.cta-band p { color: var(--c-text-2); max-width: 660px; margin: 0 auto 24px; }

/* ---------- 10. Footer ---------- */
.site-foot {
  margin-top: 80px;
  padding: 40px 0 32px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-text-3);
}
.site-foot .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot .links a {
  color: var(--c-text-2);
  text-decoration: none;
  transition: color .25s ease;
}
.site-foot .links a:hover { color: var(--c-accent-2); }

/* ---------- 11. Back to top button ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .35s ease, visibility .35s, transform .35s var(--tx), box-shadow .35s ease;
  z-index: 90;
  box-shadow: 0 10px 26px rgba(184, 137, 58, .45);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: 0 14px 32px rgba(184, 137, 58, .65); transform: translateY(-3px); }
.to-top:focus-visible { outline: 3px solid var(--c-accent-2); outline-offset: 3px; }

/* ---------- 12. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s var(--tx);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 540px; margin: 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 16, 28, .98);
    backdrop-filter: blur(12px);
    padding: 18px var(--gutter) 26px;
    gap: 6px;
    align-items: stretch;
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--tx), opacity .3s ease;
  }
  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list a {
    padding: 12px 4px;
    border-bottom: 1px dashed var(--c-line);
    font-size: 15px;
  }
  .hero { padding: 36px 0 60px; }
  .section { padding: 50px 0; }
  .hero-meta { grid-template-columns: 1fr; gap: 8px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .site-foot .inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 24px; }
}

/* ---------- 14. Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-top, .site-foot, .to-top, .nav-toggle, .hero-cta, .cta-band { display: none !important; }
  .section { padding: 18px 0; border: none; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
