/* 云线列车 · hero
   配色全部实测自参考录屏（1922×1080）：
   天空顶 #1d3a8c → 天空下 #4170bd · 云海南缘 #f3ebe7
   桥面 #5b4560 · 车头深棕 #2b1c22 · 车厢暖粉 #ecb89a / #f8dcc9 */

:root{
  --sky-top:#1d3a8c;
  --sky-low:#4170bd;
  --ink:#241a20;
  --paper:#f5edec;
  --deck:#5b4560;
  --car-a:#ecb89a;
  --car-b:#f8dcc9;
  --white:#ffffff;
  --pad:clamp(24px,5vw,96px);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Instrument Serif","Noto Serif SC","Songti SC",Georgia,serif;
  background:var(--sky-top);color:var(--white);
  -webkit-font-smoothing:antialiased;
}

.hero{position:relative;width:100%;height:100vh;min-height:560px;overflow:hidden;isolation:isolate}

/* 兜底天空：只有 ref/bg.jpg 取不到时才会露出来（SVG 在它上面一层） */
.hero-bg{
  position:absolute;inset:0;z-index:0;
  background:
    linear-gradient(180deg,var(--sky-top) 0%,#2746a4 34%,var(--sky-low) 62%,#7ba6da 82%,#e0dce1 100%);
}

.hero-art{position:absolute;inset:0;z-index:1;width:100%;height:100%;display:block}

/* ---------- 导航 ---------- */
.nav{
  position:absolute;z-index:3;top:0;left:0;right:0;
  display:flex;align-items:center;gap:clamp(18px,3vw,56px);
  padding:clamp(18px,3.4vh,34px) var(--pad);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--white)}
.brand-mark{
  width:14px;height:14px;border-radius:50%;
  background:var(--white);box-shadow:0 0 0 4px rgba(255,255,255,.22);
}
.brand-txt{font-size:22px;letter-spacing:.02em}
.nav-links{display:flex;gap:clamp(14px,2vw,34px);margin-left:auto}
.nav-links a{
  font-family:ui-sans-serif,-apple-system,"Noto Sans SC",sans-serif;
  font-size:14px;letter-spacing:.06em;color:rgba(255,255,255,.82);text-decoration:none;
  padding-bottom:3px;border-bottom:1px solid transparent;transition:.25s;
}
.nav-links a:hover{color:var(--white);border-bottom-color:rgba(255,255,255,.6)}
.nav-cta{
  font-family:ui-sans-serif,-apple-system,"Noto Sans SC",sans-serif;
  font-size:14px;letter-spacing:.06em;text-decoration:none;
  color:var(--ink);background:var(--white);
  padding:9px 20px;border-radius:999px;transition:.25s;
}
.nav-cta:hover{background:var(--paper);transform:translateY(-1px)}

/* ---------- 左侧文字 ---------- */
.copy{
  position:absolute;z-index:2;left:var(--pad);
  top:clamp(120px,20vh,230px);
  max-width:min(680px,72vw);
}
.headline{font-weight:400;line-height:1.06;letter-spacing:-.012em}
.headline .line{
  display:block;font-size:clamp(34px,5.6vw,80px);
  opacity:0;transform:translateY(.42em);
  filter:blur(6px);
}
/* 第二行必须单行落定：10 个字的自然宽 ≈ 字号 × 10.94，
   栏宽 680/503/376/281 → 上限 62/46/34/25.7，留余量取 61 与 4.35vw，地板 24 */
.headline .line:nth-child(2){font-size:clamp(24px,4.35vw,61px);color:rgba(255,255,255,.94);white-space:nowrap}
.sub{
  margin-top:clamp(18px,2.6vh,34px);
  font-family:ui-sans-serif,-apple-system,"Noto Sans SC",sans-serif;
  font-size:clamp(14px,1.35vw,19px);line-height:1.65;letter-spacing:.02em;
  color:rgba(255,255,255,.8);max-width:34em;
  opacity:0;transform:translateY(14px);
}
.times{
  list-style:none;display:flex;gap:clamp(20px,3.4vw,60px);
  margin-top:clamp(30px,5vh,68px);
  padding-top:16px;border-top:1px solid rgba(255,255,255,.28);
}
.times li{
  display:flex;flex-direction:column;gap:5px;
  opacity:0;transform:translateY(12px);
}
.times b{
  font-family:ui-monospace,"SF Mono",Menlo,monospace;font-weight:400;
  font-size:clamp(16px,1.7vw,24px);letter-spacing:.04em;
  font-variant-numeric:tabular-nums;
}
.times i{
  font-style:normal;font-family:ui-sans-serif,-apple-system,"Noto Sans SC",sans-serif;
  font-size:12px;letter-spacing:.16em;color:rgba(255,255,255,.62);
}

/* 进场：线条画完之后再轮到文字 */
.hero.play .headline .line{
  animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero.play .headline .line:nth-child(2){animation-delay:.14s}
.hero.play .sub{animation:fade .8s .5s cubic-bezier(.2,.7,.2,1) forwards}
.hero.play .times li{animation:fade .7s cubic-bezier(.2,.7,.2,1) forwards}
.hero.play .times li:nth-child(1){animation-delay:.62s}
.hero.play .times li:nth-child(2){animation-delay:.74s}
.hero.play .times li:nth-child(3){animation-delay:.86s}
@keyframes rise{to{opacity:1;transform:none;filter:blur(0)}}
@keyframes fade{to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .headline .line,.sub,.times li{animation:none!important;opacity:1!important;
    transform:none!important;filter:none!important}
}

@media (max-width:760px){
  .nav-links{display:none}
  .copy{top:auto;bottom:clamp(120px,26vh,220px)}
  .times{gap:22px}
}
