/* ============================================================
   ZZCJHZ.COM · AI 短剧《旅途失界》前八集 · 主题样式
   设计：暗夜旅行 · 关系迁移 · 心理叙事
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #0b0f1a;
  --bg-2: #10131a;
  --surface: #161c2c;
  --surface-2: #1d2540;
  --line: #2a3247;
  --line-2: #3a4467;

  --text: #f3ead5;
  --text-2: #d4c8a8;
  --muted: #8b96b3;
  --muted-2: #6b7793;

  --accent: #e8c87a;
  --accent-2: #c9a14a;
  --warn: #c45a5a;
  --cool: #6f8db3;
  --hot: #d68a5a;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-1: 0 6px 24px rgba(0,0,0,.35);
  --shadow-2: 0 18px 60px rgba(0,0,0,.55);

  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "Songti SC", "宋体", serif;
  --sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --gap: clamp(16px, 3vw, 28px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(232,200,122,.06), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(111,141,179,.07), transparent 60%);
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- 跳到主内容 ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 1000;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------- 顶部进度条 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(232,200,122,.5);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,26,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--accent);
  font-size: 18px;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 1px rgba(232,200,122,.1);
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .14em;
}

.topnav {
  display: flex;
  gap: clamp(8px, 2vw, 22px);
  flex-wrap: wrap;
  align-items: center;
}

.topnav a {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .25s var(--ease);
}

.topnav a:hover { color: var(--accent); }
.topnav a:hover::after { right: 0; }

@media (max-width: 720px) {
  .topnav { display: none; }
}

/* ---------- 侧边章节点 ---------- */
.dotnav {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.dotnav a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
  position: relative;
  transition: all .25s var(--ease);
}

.dotnav a::after {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}

.dotnav a:hover,
.dotnav a.active {
  background: var(--accent);
  transform: scale(1.3);
}

.dotnav a:hover::after,
.dotnav a.active::after { opacity: 1; color: var(--accent); }

@media (max-width: 720px) { .dotnav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 8vw, 80px) var(--pad) clamp(28px, 6vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.18;
  margin: 0 0 22px;
  letter-spacing: .01em;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-2);
  line-height: 1.9;
  margin: 0 0 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0 28px;
}

.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta .l {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-meta .v {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  border-color: transparent;
  font-weight: 700;
}

.btn.primary:hover {
  color: var(--bg);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(232,200,122,.25);
}

/* ---------- Hero 封面 ---------- */
.hero-cover {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4/5;
  background: var(--surface);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.hero-cover:hover img { transform: scale(1.04); }

.hero-cover-stamp {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  background: rgba(11,15,26,.78);
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .18em;
  border-radius: 6px;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.hero-cover-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(11,15,26,.92) 0%, rgba(11,15,26,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-2);
}

.hero-cover-tag .l { color: var(--accent); }

/* ---------- 速览条 ---------- */
.facts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  background: var(--bg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .25s var(--ease);
}

.fact:hover { background: var(--surface); }

.fact .k {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.fact .v {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  letter-spacing: .04em;
}

.fact .v em {
  font-style: normal;
  color: var(--accent);
  font-size: 14px;
}

/* ---------- 通用章节 ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--pad);
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .36em;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 38px);
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: .01em;
}

.section-head p {
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- 故事章节 ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(22,28,44,.6) 100%);
  border: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(232,200,122,.06), transparent 50%);
  pointer-events: none;
}

.story.reverse { grid-template-columns: 1fr 1fr; }
.story.reverse .story-image { order: 2; }

.story-image {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  box-shadow: var(--shadow-1);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.story-image:hover img { transform: scale(1.03); }

.story-image-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: rgba(11,15,26,.75);
  border: 1px solid var(--line-2);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--accent);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.story-image-num {
  position: absolute;
  bottom: -10px; right: 16px;
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 700;
  color: var(--accent);
  opacity: .15;
  line-height: 1;
  z-index: 1;
}

.story-text { position: relative; z-index: 2; }

.story-num {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--accent);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.story-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 0 0 6px;
  letter-spacing: .01em;
  line-height: 1.32;
}

.story-sub {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.story-text .lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin: 0 0 18px;
  font-weight: 500;
}

.story-text p {
  color: var(--text-2);
  margin: 0 0 14px;
  line-height: 1.85;
}

.pull {
  margin: 22px 0 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(232,200,122,.06);
  font-family: var(--serif);
  font-size: 16px;
  font-style: normal;
  color: var(--text);
  letter-spacing: .02em;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (max-width: 760px) {
  .hero-grid,
  .story,
  .story.reverse {
    grid-template-columns: 1fr;
  }
  .story.reverse .story-image { order: 0; }
}

/* ---------- 关键台词 ---------- */
.dialogue {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--pad);
  text-align: center;
}

.dialogue blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.9;
  color: var(--text);
  padding: 0 12px;
  position: relative;
}

.dialogue blockquote::before,
.dialogue blockquote::after {
  content: """;
  position: absolute;
  font-family: var(--serif);
  font-size: 80px;
  color: var(--accent);
  opacity: .25;
  line-height: 1;
}

.dialogue blockquote::before {
  top: -20px;
  left: -10px;
}

.dialogue blockquote::after {
  bottom: -50px;
  right: -10px;
}

.dialogue cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--muted);
}

/* ---------- 人物卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .35s var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}

.card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card-image img { transform: scale(1.04); }

.card-role {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: rgba(11,15,26,.78);
  border: 1px solid var(--line-2);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--accent);
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-name {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  letter-spacing: .02em;
}

.card-tagline {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
}

.card-body p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.75;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.card-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(232,200,122,.07);
  border: 1px solid rgba(232,200,122,.2);
  color: var(--text-2);
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ---------- 看点 ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.highlight {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(22,28,44,.4) 100%);
  transition: all .3s var(--ease);
}

.highlight:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}

.highlight .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.highlight h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: .02em;
  line-height: 1.4;
}

.highlight p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.8;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .5;
}

.timeline-item {
  position: relative;
  padding: 22px 24px 22px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all .3s var(--ease);
}

.timeline-item:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent);
}

.timeline-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: .02em;
  line-height: 1.4;
}

.timeline-item h3 em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-right: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.8;
}

/* ---------- 终章 ---------- */
.finale {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--pad);
  text-align: center;
}

.finale .big {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 80px);
  margin: 0 0 22px;
  letter-spacing: .04em;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.finale .small {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-2);
  line-height: 2;
  margin: 0 auto 28px;
  max-width: 720px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.badges span {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}

.badges span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px var(--pad);
}

footer .row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

footer .domain {
  font-family: var(--serif);
  color: var(--accent);
  letter-spacing: .04em;
}

footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer .links a {
  font-size: 13px;
  color: var(--text-2);
}

footer .links a:hover { color: var(--accent); }

footer .copy {
  max-width: var(--maxw);
  margin: 18px auto 0;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .04em;
  text-align: center;
}

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* ---------- 图片缩放弹层 ---------- */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(11,15,26,.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.zoom-modal.open {
  display: flex;
  animation: fadeIn .3s var(--ease);
}

.zoom-modal img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: var(--shadow-2);
}

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

/* ---------- 减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar,
  .progress,
  .dotnav,
  .hero-cta,
  .zoom-modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 600px) {
  .topbar-inner { padding: 12px 16px; }
  .brand small { display: none; }
  .hero { padding-top: 32px; }
  .hero-cover-tag { font-size: 11px; padding: 10px 14px; }
  .story { padding: 18px; }
  .timeline-item { padding-left: 60px; }
  .timeline::before { left: 22px; }
  .timeline-item::before { left: 16px; }
}