/* join.agiplan.dev —— 令牌与主站 src/app/globals.css 保持一致（素瓷 · Porcelain）。
   深色只重定义令牌，组件样式不进媒体查询。 */

:root {
  --ground: #f8faf9;
  --surface: #ffffff;
  --surface-2: #f1f6f4;
  --ink: #1a2523;
  --ink-2: #4a5854;
  --muted: #74827c;
  --hair: #e5ebe8;
  --hair-2: #f0f4f2;
  --glaze-1: #ddefea;
  --glaze-2: #a8d5ca;
  --glaze-3: #57ac9e;
  --glaze-4: #23887e;
  --glaze-wash: #edf7f4;
  --action: #0a7d85;
  --action-lift: #076a71;
  --on-action: #ffffff;
  --action-soft: #e6f3f4;
  --gold: #8a6b1f;
  --ok: #1e8863;
  --bad: #b0402c;
  --crackle-iron: rgba(36, 66, 60, 0.13);
  --crackle-gold: rgba(155, 120, 50, 0.15);
  --glass: rgba(255, 255, 255, 0.72);
  --orb-a: rgba(168, 213, 202, 0.55);
  --orb-b: rgba(10, 125, 133, 0.16);
  --lift: 0 1px 1.5px rgba(20, 42, 38, 0.035), 0 14px 34px -24px rgba(20, 42, 38, 0.28);
  --lift-2: 0 1px 2px rgba(20, 42, 38, 0.04), 0 30px 62px -36px rgba(20, 42, 38, 0.34);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111917;
    --surface: #1a2321;
    --surface-2: #212b29;
    --ink: #eaf1ee;
    --ink-2: #b7c4bf;
    --muted: #8b9994;
    --hair: #2a3532;
    --hair-2: #222c2a;
    --glaze-1: #2a3f3a;
    --glaze-2: #4e7c74;
    --glaze-3: #6db3a4;
    --glaze-4: #9bd9cb;
    --glaze-wash: #1a2825;
    --action: #48cbd2;
    --action-lift: #66dce2;
    --on-action: #04211f;
    --action-soft: #17302f;
    --gold: #e0c583;
    --ok: #5cc79e;
    --bad: #e4785f;
    --crackle-iron: rgba(172, 204, 196, 0.12);
    --crackle-gold: rgba(206, 172, 104, 0.12);
    --glass: rgba(26, 35, 33, 0.66);
    --orb-a: rgba(78, 124, 116, 0.42);
    --orb-b: rgba(72, 203, 210, 0.13);
    --lift: 0 1px 1.5px rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.8);
    --lift-2: 0 1px 2px rgba(0, 0, 0, 0.45), 0 30px 62px -34px rgba(0, 0, 0, 0.85);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tnum { font-variant-numeric: tabular-nums; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

/* ── 背景：开片纹 + 天青釉光 ─────────────────────────────── */

#crackle {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.glaze { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glaze span {
  position: absolute; border-radius: 50%; filter: blur(60px);
  will-change: transform;
}
.glaze span:first-child {
  width: 62vmax; height: 62vmax; left: 50%; top: -30vmax; margin-left: -31vmax;
  background: radial-gradient(circle at 50% 50%, var(--orb-a), transparent 66%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.glaze span:last-child {
  width: 46vmax; height: 46vmax; right: -16vmax; bottom: -18vmax;
  background: radial-gradient(circle at 50% 50%, var(--orb-b), transparent 68%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(-6%, 0, 0) scale(1); } to { transform: translate3d(6%, 4%, 0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-10%, -8%, 0) scale(1.12); } }

/* ── 顶栏 ─────────────────────────────────────────────── */

.bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; letter-spacing: 0.01em; color: var(--ink);
}
.mark svg { color: var(--glaze-4); }
.lang {
  appearance: none; border: 1px solid var(--hair); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  min-width: 44px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang:hover { border-color: var(--glaze-3); color: var(--ink); }

/* ── 主体 ─────────────────────────────────────────────── */

main { position: relative; z-index: 1; flex: 1; width: 100%; }

.stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 20px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--glaze-4);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--action);
  box-shadow: 0 0 0 0 var(--action);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--action) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.title {
  margin: -8px 0 0;
  font-size: clamp(2.3rem, 8.4vw, 4.4rem);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
  text-wrap: balance;
}
.title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--glaze-4) 0%, var(--action) 30%, var(--glaze-2) 50%, var(--action) 70%, var(--glaze-4) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }

.lede {
  margin: -6px 0 0; max-width: 34em;
  font-size: clamp(1rem, 2.6vw, 1.12rem); color: var(--ink-2); text-wrap: pretty;
}

/* 倒计时 */
.count { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.count-label, .count-date { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }

.clock {
  display: flex; align-items: flex-start; justify-content: center; gap: clamp(8px, 2.4vw, 18px);
}
.unit {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: clamp(64px, 17vw, 96px);
  padding: 14px 6px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--lift-2);
  position: relative; overflow: hidden;
}
.num {
  display: block;
  font-size: clamp(2rem, 7.6vw, 3.1rem); font-weight: 650; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--ink);
}
.num.tick { animation: tick 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes tick {
  0% { transform: translateY(-38%); opacity: 0; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}
.u { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.sep {
  align-self: center; margin-bottom: 20px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--glaze-3); opacity: 0.6;
}

/* 表单: 一张独立的卡片, 邮箱 → 申请理由 → 提交 */
.join { width: 100%; max-width: 560px; }
.panel {
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px; border-radius: 22px; text-align: left;
  background: var(--glass); border: 1px solid var(--hair); box-shadow: var(--lift-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.row { display: flex; flex-direction: column; gap: 8px; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lbl { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink); }
.opt { font-size: 12px; font-weight: 500; color: var(--muted); }

.input {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; /* ≥16px, iOS 不会自动放大 */
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { outline: 0; border-color: var(--action); box-shadow: 0 0 0 4px var(--action-soft); background: var(--surface); }

/* 申请理由: 釉色底 + 釉色边, 比邮箱框更显眼 */
.ta-wrap { position: relative; }
textarea.input {
  height: auto; min-height: 120px; padding: 14px 16px 30px; line-height: 1.6; resize: vertical;
  background: var(--glaze-wash); border-color: var(--glaze-2);
}
.counter { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); pointer-events: none; }
.hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

.boost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.02em;
  color: var(--action); background: var(--action-soft);
  transition: background 0.3s, color 0.3s;
}
.boost svg { animation: lift 1.8s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-2px); } }
/* 写满一句话后点亮 */
.boost.on { background: var(--action); color: var(--on-action); }
.boost.on svg { animation: none; }

.go {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--action); color: var(--on-action);
  font: inherit; font-size: 15px; font-weight: 650; white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.go:hover { background: var(--action-lift); }
.go:active { transform: scale(0.98); }
.go svg { transition: transform 0.25s; }
.go:hover svg { transform: translateX(3px); }
.go[disabled] { cursor: progress; opacity: 0.75; }
.go[disabled] svg { animation: nudge 0.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.go.wide { width: 100%; height: 54px; font-size: 16px; border-radius: 14px; box-shadow: 0 10px 24px -14px var(--action); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.msg {
  margin: -6px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--bad);
}
/* 状态不只靠颜色：错误带三角 */
.msg::before {
  content: ""; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid currentColor;
}

.fine { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; text-align: center; text-wrap: pretty; }

.done {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 24px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--hair); box-shadow: var(--lift-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1);
  outline: none;
}

.done h2 { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.done p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.seal { color: var(--ok); }
.seal circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s 0.1s ease-out forwards; }
.seal path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.4s 0.65s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 16px;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-2); }


/* ── 线索：便当格 ─────────────────────────────────────── */

.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.08em;
}
.scroll-hint::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(0, 4px) rotate(45deg); } }

.hints-wrap {
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 20px 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.hints-head { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--glaze-4); }
.hints-head h2 { margin: 0; font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--hair); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--glaze-2); box-shadow: var(--lift-2); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.cloud .triad, .spectrum .bands, .price > p:last-child { margin-top: auto; }
.tile h3 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.4; font-weight: 700; letter-spacing: -0.005em; text-wrap: balance; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.tile .muted { color: var(--muted); font-size: 13.5px; }
.tag {
  align-self: flex-start;
  font-size: 12px !important; font-weight: 650; letter-spacing: 0.08em; color: var(--glaze-4) !important;
  padding: 3px 10px; border-radius: 999px; background: var(--action-soft);
}

/* Prism：一束光进，四束光出 */
.prism { flex-direction: row; align-items: center; gap: 20px; }
.prism .tile-copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 55%; min-width: 0; }
.prism-art { flex: 1 1 45%; min-width: 0; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.beam-in, .beam { fill: none; stroke-linecap: round; }
.beam-in { stroke: var(--ink-2); stroke-width: 3; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; opacity: 0.55; }
.beam { stroke-width: 3; stroke-dasharray: 8 12; animation: flow 1.2s linear infinite; }
.b1 { stroke: var(--glaze-4); }
.b2 { stroke: var(--glaze-3); animation-delay: -0.3s; }
.b3 { stroke: var(--glaze-2); animation-delay: -0.6s; }
.b4 { stroke: var(--action); animation-delay: -0.9s; opacity: 0.8; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.prism-body { animation: glint 5s ease-in-out infinite; transform-origin: 160px 100px; }
@keyframes glint { 0%, 100% { opacity: 0.9; } 50% { opacity: 1; filter: brightness(1.08); } }

/* 价格：描金只用在这里（价值信息） */
.price { justify-content: flex-start; }
.big { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px !important; color: var(--gold) !important; }
.big .cur { font-size: 26px; font-weight: 600; }
.big .amt { font-size: clamp(3.4rem, 8vw, 4.4rem); font-weight: 750; line-height: 1; letter-spacing: -0.03em; }
.big .per { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* 价格数字保密：模糊 + 缓慢呼吸 */
.blurred {
  display: inline-block; padding: 0 4px;
  filter: blur(7px); user-select: none;
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { filter: blur(7px); opacity: 0.85; } 50% { filter: blur(5px); opacity: 1; } }

/* 零数据留存：数据流进来，在盾前消散 */
.vault { position: relative; display: flex; align-items: center; gap: 10px; height: 56px; margin: 2px 0; }
.vault svg { flex: none; position: relative; z-index: 1; width: 48px; height: 48px; }
.stream { position: relative; flex: 1; height: 2px; order: -1; max-width: 120px; }
.stream i {
  position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--glaze-3); animation: dissolve 2.4s linear infinite;
}
.stream i:nth-child(2) { animation-delay: 0.48s; }
.stream i:nth-child(3) { animation-delay: 0.96s; }
.stream i:nth-child(4) { animation-delay: 1.44s; }
.stream i:nth-child(5) { animation-delay: 1.92s; }
@keyframes dissolve {
  0% { left: 0; opacity: 0; transform: scale(1); }
  15% { opacity: 1; }
  75% { opacity: 1; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(0.2); }
}
.checks { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.checks li::before {
  content: ""; flex: none; width: 9px; height: 5px; margin-bottom: 2px;
  border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg) translateY(-2px);
}

/* 悬念：通栏 */
.sealed.span-3 { flex-direction: row; align-items: center; gap: 24px; }
.sealed.span-3 .redacts { flex: 1; flex-direction: row; margin: 0; }
.sealed.span-3 .redacts i { flex: 1; width: auto; }
.sealed.span-3 .tag, .sealed.span-3 .muted { flex: none; }

/* 一键配置：终端 */
.term {
  border-radius: 12px; background: #0f1716; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); overflow: hidden;
}
.term-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
/* 终端占位：透明的「最终状态」和打字层叠在同一格里，
   格子高度始终等于打完之后的高度，打字过程中卡片不会跳 */
.term-body { display: grid; }
.term-body > pre { grid-area: 1 / 1; }
.term .ghost { visibility: hidden; }
.term pre {
  margin: 0; padding: 12px 14px 14px; min-height: 76px;
  font: 12.5px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #d6e6e1;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.term .p { color: #6db3a4; }
.term .ok { color: #7fd8c3; }
.term .dim { color: #8b9994; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #7fd8c3; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 云上：三项 */
.triad { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.triad li {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--hair-2);
}
.triad svg { color: var(--glaze-4); }
.triad b { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.triad li > span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.soon {
  font-size: 11px; font-weight: 650; letter-spacing: 0.04em; color: var(--action);
  padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor;
}

/* 模型光谱：四级釉阶 */
.bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
.bands span {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px 16px; border-radius: 12px; text-align: left;
}
.bands b { font-size: 14px; font-weight: 700; }
.bands small { font-size: 12px; line-height: 1.45; opacity: 0.82; }
.bands span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: pass 5s ease-in-out infinite;
}
.bands span:nth-child(2)::after { animation-delay: 0.25s; }
.bands span:nth-child(3)::after { animation-delay: 0.5s; }
.bands span:nth-child(4)::after { animation-delay: 0.75s; }
@keyframes pass { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.g4 { background: var(--glaze-4); color: var(--surface); }
.g3 { background: var(--glaze-3); color: var(--surface); }
.g2 { background: var(--glaze-2); color: var(--ink); }
.g1 { background: var(--glaze-1); color: var(--ink); }

/* 悬念 */
.sealed { border-style: dashed; }
.redacts { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.redacts i {
  display: block; height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--glaze-1), var(--glaze-2), var(--glaze-1));
  background-size: 200% 100%; animation: shimmer 2.6s linear infinite;
}
.redacts i:nth-child(2) { width: 82%; animation-delay: -0.4s; }
.redacts i.short { width: 56%; animation-delay: -0.8s; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* 收尾 */
.closer {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: 720px; margin: 0 auto; padding: 48px 20px 40px; text-align: center;
}
.closer h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }
.go.ghost {
  background: transparent; color: var(--action); border: 1.5px solid var(--action);
  text-decoration: none; padding: 0 24px;
}
.go.ghost:hover { background: var(--action-soft); }

/* 滚动进入 */
.in { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
.in.shown { opacity: 1; transform: none; }
.tile.in.shown:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .triad { grid-template-columns: minmax(0, 1fr); }
}

/* 入场：依次浮起 */
.reveal { opacity: 0; transform: translateY(14px); }
.ready .reveal { animation: rise-in 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
.ready .reveal:nth-child(2) { animation-delay: 0.08s; }
.ready .reveal:nth-child(3) { animation-delay: 0.22s; }
.ready .reveal:nth-child(4) { animation-delay: 0.36s; }
.ready .reveal:nth-child(5) { animation-delay: 0.5s; }
.ready .reveal:nth-child(6) { animation-delay: 0.64s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ── 手机 ─────────────────────────────────────────────── */

@media (max-width: 560px) {
  .stage { gap: 24px; padding-top: 36px; }
  .unit { min-width: 0; flex: 1; padding: 12px 2px 8px; border-radius: 14px; }
  .clock { width: 100%; gap: 6px; }
  .sep { display: none; }
  .panel { padding: 20px; gap: 18px; border-radius: 20px; }
  .go { width: 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .span-2 { grid-column: auto; }
  .sealed.span-3 { flex-direction: column; align-items: stretch; gap: 12px; }
  .sealed.span-3 .redacts { flex-direction: column; }
  .sealed.span-3 .redacts i { flex: none; width: 100%; }
  .sealed.span-3 .redacts i:nth-child(2) { width: 82%; }
  .sealed.span-3 .redacts i.short { width: 56%; }
  .tile { padding: 20px; border-radius: 18px; }
  .prism { flex-direction: column; align-items: stretch; }
  .prism-art { max-width: 280px; align-self: center; }
  .bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hints-wrap { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal, .in { opacity: 1; transform: none; }
}
