/* ---------- hero: the 天光 mark at the size of the screen ---------- */
.hero {
  position: relative; min-height: max(660px, 100svh); padding-top: var(--header-h); overflow: hidden;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
}
.hero.dragging { cursor: grabbing; }
.hero a, .hero button:not(.sun-handle) { cursor: pointer; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky-glow {
  position: absolute; left: 0; top: 0; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%;
  transform: translate(var(--sx, 50vw), var(--sy, 60vh)); opacity: var(--glow, .6);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 20%, transparent), color-mix(in oklab, var(--accent) 6%, transparent) 55%, transparent);
}
.sky-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky-svg .track { fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1.5 7; }
.sky-svg .horizon { stroke: var(--text); stroke-width: 1.6; }
.sky-svg .rip { stroke: var(--text); stroke-width: 3.2; stroke-linecap: round; }
.sky-svg .sun { fill: var(--accent); }
.sky-svg .halo { fill: var(--accent); opacity: .14; }
.sky-svg .moon { fill: var(--text); }
.sky-svg .moon-glow { fill: var(--text-2); opacity: .2; }
.sky-svg .star { fill: var(--text); }
.sky-svg .mk { fill: var(--text-2); }
.sky-svg .lbl { fill: var(--text-3); font: 500 12px var(--sans); letter-spacing: .08em; }

.hero-inner { position: relative; height: calc(max(660px, 100svh) - var(--header-h)); }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(28px, 9vh, 120px); max-width: 640px; }
.hero-title { margin-top: 18px; display: grid; gap: 10px; }
.ht-word { font: 700 clamp(84px, min(13vw, 17vh), 176px)/.98 var(--serif); letter-spacing: .02em; margin-left: -.04em; }
.ht-line { font: 700 clamp(22px, min(2.6vw, 4.2vh), 38px)/1.4 var(--serif); }
.ht-line em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 22px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-now { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--text-2); }
.hero-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); animation: breathe 2.4s ease-in-out infinite; }
.hero-now [data-now-text] { font-variant-numeric: tabular-nums; color: var(--text); }
.hero-now .hint { color: var(--text-3); }
.hero-now .hint::before { content: '·'; margin-right: 12px; }
.hero.previewing .hero-now .dot { animation: none; background: var(--text-2); }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--accent) 0%, transparent); } }

.hero-phone {
  --pw: clamp(250px, min(23vw, 40vh), 340px);
  position: absolute; z-index: 1; right: var(--gutter); bottom: calc(clamp(40px, 7.5svh, 80px) - var(--pw) * .562); width: var(--pw);
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 79%); mask-image: linear-gradient(to bottom, #000 66%, transparent 79%);
}
.sky-band { display: none; }
.day-clock { display: none; }
.hero-phone .phone { width: 100%; transform: translateY(var(--rise, 0px)); }
.sun-handle {
  position: absolute; z-index: 3; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  transform: translate(var(--hx, -100px), var(--hy, -100px)); cursor: grab; touch-action: none;
}
.sun-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 散在五个网页里 → 课间 ---------- */
.scatter { position: relative; height: 320vh; }
.scatter-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scatter-cards { position: absolute; inset: 0; perspective: 1600px; }
.wcard {
  position: absolute; left: 0; top: 0; width: var(--w, 520px); transform-origin: 50% 50%; will-change: transform, opacity;
  border-radius: 12px; overflow: hidden; background: #fff; color: #333; box-shadow: 0 30px 60px -24px rgb(20 20 30 / .45), 0 2px 8px rgb(20 20 30 / .12);
  font: 12px/1.5 -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif; letter-spacing: 0;
}
.wcard .chrome { height: 30px; background: #e9e9ee; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.wcard .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c9c9d1; }
.wcard .chrome span { margin-left: 8px; padding: 2px 12px; border-radius: 6px 6px 0 0; background: #fff; font-size: 11px; color: #555; align-self: flex-end; }
.wcard .url { height: 26px; display: flex; align-items: center; padding: 0 12px; font-size: 11px; color: #777; border-bottom: 1px solid #eee; }
.wcard .url::before { content: ''; width: 8px; height: 9px; margin-right: 6px; border-radius: 2px; background: #9aa; }
.wcard .bar { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font-weight: 700; font-size: 12px; }
.wcard .bar small { font-weight: 400; opacity: .8; font-size: 10px; }
.wcard table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.wcard th { background: #f4f5f8; color: #667; font-weight: 600; text-align: left; padding: 6px 10px; border-bottom: 1px solid #e6e7ec; }
.wcard td { padding: 6px 10px; border-bottom: 1px solid #f0f1f4; color: #444; white-space: nowrap; }
.wcard .tt td { padding: 4px; border: 1px solid #eef0f4; height: 34px; width: 16%; vertical-align: top; }
.wcard .tt .c { display: block; border-radius: 3px; padding: 2px 4px; background: #e8eef9; color: #2f4a80; font-size: 9.5px; line-height: 1.3; }
.wcard .task { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f1f4; }
.wcard .task i { width: 26px; height: 26px; border-radius: 6px; background: #e4ecd9; flex: none; }
.wcard .task b { display: block; font-size: 11.5px; color: #333; }
.wcard .task small { display: block; font-size: 10px; color: #999; }
.wcard .task em { margin-left: auto; font-style: normal; font-size: 10px; padding: 1px 7px; border-radius: 4px; color: #c0392b; border: 1px solid #f1c4bd; }
.wcard .task em.ok { color: #3c763d; border-color: #c9e2c9; }
.wcard .login { padding: 26px 0 30px; display: grid; justify-items: center; }
.wcard .login .box { width: 62%; border: 1px solid #e3e5ec; border-radius: 8px; padding: 18px 20px; display: grid; gap: 10px; }
.wcard .login b { text-align: center; font-size: 15px; color: #222; }
.wcard .login .in { height: 30px; border: 1px solid #dfe2ea; border-radius: 4px; padding: 0 8px; display: flex; align-items: center; color: #aab; font-size: 11px; }
.wcard .login .go { height: 32px; border-radius: 4px; background: #24407a; color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .5em; }
.wcard .login small { display: flex; justify-content: space-between; color: #8a90a0; font-size: 10px; }
.scatter-mark {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 28px; background: #f5efe4;
  box-shadow: 0 30px 70px -20px rgb(30 22 14 / .45); display: grid; place-items: center; opacity: 0; will-change: transform, opacity;
}
.scatter-mark svg { width: 92px; height: 92px; }
.scatter-copy { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; }
.scatter-copy > div { position: absolute; max-width: 560px; will-change: opacity, transform; }
.scatter-copy .lede { margin-top: 20px; }
.sc-b { opacity: 0; }
.sc-counts { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 34px; margin-top: 34px; }
.sc-counts b { display: block; font: 700 clamp(40px, 5vw, 64px)/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.sc-counts span { font-size: 15px; color: var(--text-2); }

/* ---------- 课间的一天 ---------- */
.day { position: relative; padding-top: clamp(80px, 12vw, 150px); }
.day-intro { display: grid; gap: 18px; max-width: calc(860px + 2 * var(--gutter)); margin-left: 0; }
.day-intro { margin-inline: auto; }
.day-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); margin-top: 40px; }
.day-rail { position: sticky; top: calc(var(--header-h) + 36px); height: calc(100svh - var(--header-h) - 72px); }
.rail-line { position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.rail-line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 0 0; transform: scaleY(var(--fill, 0)); }
.rail-badge { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding-left: 28px; transform: translateY(var(--ry, 0px)); }
.rail-badge::before { content: ''; position: absolute; left: 3px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.rail-badge b { font: 700 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.rail-badge span { font-size: 13px; color: var(--text-2); }
.chapter { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 520px; padding-block: 10vh; opacity: .28; transition: opacity .5s; }
.chapter.on { opacity: 1; }
.chapter:first-child { min-height: 80svh; }
.ch-time { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.ch-time b { font: 700 18px/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.ch-time span { font-size: 14px; color: var(--text-3); letter-spacing: .1em; }
.chapter .h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.28; }
.chapter .ch-card > p:not(.ch-time) { margin-top: 20px; color: var(--text-2); font-size: 17px; }
.ch-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ch-list li { position: relative; padding-left: 22px; font-size: 15px; }
.ch-list li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 10px; height: 1.5px; background: var(--accent); }
.day-phone-col { position: relative; }
.day-phone { position: sticky; top: calc(var(--header-h) + (100svh - var(--header-h) - var(--dph)) / 2); --dph: calc(var(--dpw) * 2.161); --dpw: min(370px, 27vw, calc((100svh - var(--header-h) - 64px) / 2.161)); width: var(--dpw); }
.day-phone .phone { width: 100%; }

/* ---------- line-up ---------- */
.lineup-row { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 36px); padding: 64px var(--gutter) 8px; }
.lineup-row figure { margin: 0; width: clamp(180px, 18vw, 250px); display: grid; gap: 16px; justify-items: center; }
.lineup-row .lp { width: 100%; transition: transform .6s var(--spring); }
.lineup-row figure:hover .lp { transform: translateY(-10px); }
.lineup-row figcaption { font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: baseline; }
.lineup-row figcaption b { font: 700 18px/1 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; }
.lineup-row .phone { width: 100%; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- film ---------- */
.film-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.film-head .h2 { margin-top: 16px; }
.film-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #1a1612; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 50%, rgb(0 0 0 / .25)); transition: opacity .3s; }
.film-play span { width: 92px; height: 92px; border-radius: 50%; background: var(--accent); box-shadow: 0 20px 40px -10px rgb(0 0 0 / .5); display: grid; place-items: center; transition: transform var(--d-fast) var(--spring-fast); }
.film-play span::after { content: ''; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--on-accent); }
.film-play:hover span { transform: scale(1.06); }
.film.playing .film-play { opacity: 0; pointer-events: none; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.trust-card { padding: 32px 28px 34px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tc-ic { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { font: 700 22px/1.4 var(--serif); margin-top: 22px; }
.trust-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.trust-more { margin-top: 32px; }

/* ---------- download band ---------- */
.get { padding-block: clamp(80px, 11vw, 140px); }
.get-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.get-inner .lede { margin-top: 20px; }
.get-qr { display: grid; justify-items: center; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); }
.get-qr p { font-size: 13px; color: var(--text-2); }


/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .day-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .day-rail { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-inner { height: auto; display: flex; flex-direction: column; }
  .hero-copy { padding-top: 32px; }
  .ht-word { font-size: clamp(76px, 24vw, 120px); }
  .ht-line { font-size: clamp(21px, 6vw, 28px); }
  .hero-phone { --pw: min(64vw, 280px); position: relative; right: auto; bottom: auto; align-self: center; margin-top: 36px; margin-bottom: calc(var(--pw) * -0.62); }
  .sky-band { display: block; order: -1; height: clamp(110px, 32vw, 170px); margin-top: 12px; margin-bottom: 52px; }
  .hero-copy { padding-top: 0; }
  .hero-now .hint { flex-basis: 100%; }
  .hero-now .hint::before { content: none; }

  .scatter { height: 300vh; }
  .scatter-copy { align-items: flex-end; padding-bottom: max(40px, 7svh); }
  .scatter-copy > div { left: var(--gutter); right: var(--gutter); }
  .sc-counts { grid-template-columns: repeat(4, 1fr); gap: 6px 12px; }

  .day-grid { display: flex; flex-direction: column; margin-top: 24px; }
  .day-phone-col { order: -1; position: sticky; top: calc(var(--header-h) + 12px); z-index: 1; height: 0; }
  .day-phone { --dpw: min(44vw, calc((100svh - var(--header-h) - 290px) / 2.161)); position: relative; top: 0; margin-inline: auto; }
  .day-chapters { position: relative; z-index: 2; }
  .chapter { min-height: 100svh; justify-content: flex-end; padding-block: 0 8svh; opacity: 1; max-width: none; }
  .chapter:first-child { min-height: 110svh; }
  .day-clock { display: grid; position: absolute; left: calc(-1 * (50vw - var(--dpw) / 2) + var(--gutter)); top: 8px; gap: 2px; }
  .day-clock b { font: 700 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
  .day-clock span { font-size: 12px; color: var(--text-2); }
  /* chapters become scroll spacers; their text sits fixed under the phone and cross-fades */
  .chapter .ch-card {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3;
    background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s, transform .5s var(--spring);
  }
  .day.live .chapter.on .ch-card { opacity: 1; transform: none; pointer-events: auto; }
  .chapter .ch-list { display: none; }
  .ch-time { margin-bottom: 10px; }
  .chapter .h3 { font-size: 26px; }
  .chapter .ch-card > p:not(.ch-time) { font-size: 15.5px; margin-top: 12px; }
  .ch-list { margin-top: 14px; gap: 6px; }
  .ch-list li { font-size: 14px; }

  .lineup-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--gutter) 24px; scrollbar-width: none; }
  .lineup-row::-webkit-scrollbar { display: none; }
  .lineup-row figure { flex: none; width: 58vw; scroll-snap-align: center; }
  .film-play span { width: 68px; height: 68px; }
  .get-inner { grid-template-columns: 1fr; }
  .get-qr { display: none; }
}

/* scatter headings sit beside the pile, keep them to two lines */
.scatter-copy > div { max-width: 640px; }
.scatter-copy .h2 { font-size: clamp(30px, 3.9vw, 54px); }
