/* Mimi机 官网：柔光做底、镀铬点缀。令牌沿用远行车站，夜晚只换光。 */
:root {
  --mist: #eceef3; --ink: #22232b; --ink-soft: #686a78; --line: rgba(34, 35, 43, .32);
  --aura-1: #ffcbb8; --aura-2: #cbbcf5; --aura-3: #a6e2d9; --aura-4: #bcd5ff; --aura-op: .85;
  --glass: rgba(250, 250, 253, .72); --glass-edge: rgba(255, 255, 255, .9); --shade: rgba(60, 56, 90, .14);
  --accent: #b6527a; --grain: .07;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --settle: cubic-bezier(.22, 1, .36, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #14141c; --ink: #ecebf3; --ink-soft: #9c9cb0; --line: rgba(236, 235, 243, .3);
    --aura-1: #6e3a4c; --aura-2: #4b3478; --aura-3: #1d5560; --aura-4: #26386f; --aura-op: .7;
    --glass: rgba(30, 30, 42, .72); --glass-edge: rgba(255, 255, 255, .12); --shade: rgba(0, 0, 0, .4);
    --accent: #f0a0bd; --grain: .09; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); line-height: 1.7;
  transition: background-color 1.2s ease, color 1.2s ease; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .08em; line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }

/* 背景光雾：四团慢漂的柔光加一层颗粒，固定在最底下。 */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; opacity: var(--aura-op); will-change: transform; transition: opacity 1.6s ease; }
.aura--a { background: radial-gradient(circle, var(--aura-1) 0%, transparent 62%); left: -30vmax; top: -24vmax; animation: drift-a 46s ease-in-out infinite alternate; }
.aura--b { background: radial-gradient(circle, var(--aura-2) 0%, transparent 62%); right: -34vmax; top: -10vmax; animation: drift-b 58s ease-in-out infinite alternate; }
.aura--c { background: radial-gradient(circle, var(--aura-3) 0%, transparent 60%); left: -10vmax; bottom: -46vmax; animation: drift-c 52s ease-in-out infinite alternate; }
.aura--d { background: radial-gradient(circle, var(--aura-4) 0%, transparent 60%); right: -26vmax; bottom: -38vmax; animation: drift-a 64s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-10vmax, 8vmax) scale(.94); } }
@keyframes drift-c { to { transform: translate(6vmax, -7vmax) scale(1.1); } }
.grain { position: absolute; inset: 0; opacity: var(--grain); }

/* 顶栏 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before { content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--mist) 88%, transparent) 55%, transparent); }
.nav__brand { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .1em; text-decoration: none; }
.nav__links {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px var(--shade);
}
.nav__links a { padding: 5px 13px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink-soft); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: var(--ink); background: var(--glass-edge); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15px; letter-spacing: .04em; text-decoration: none; cursor: pointer; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shade);
  transition: transform .16s var(--settle), box-shadow .38s var(--settle);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--mist); border-color: transparent; }

/* 通用排版 */
.section { position: relative; padding: clamp(88px, 14vh, 150px) var(--gutter); max-width: 1120px; margin: 0 auto; }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 6vh, 56px); }
.section__head h2 { font-size: clamp(28px, 6.4vw, 44px); }
.section__head p { margin: 14px 0 0; color: var(--ink-soft); font-size: clamp(15px, 3.8vw, 17px); }
.mono { font-family: var(--mono); letter-spacing: .12em; font-size: 12px; color: var(--ink-soft); }

/* 进场：往上浮一点、去模糊；标题逐字。 */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--settle), transform .9s var(--settle), filter .9s var(--settle); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.chars > span { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(8px); animation: char-in .9s var(--settle) forwards; }
@keyframes char-in { to { opacity: 1; transform: none; filter: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 40; transform: translate(-50%, 16px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--mist); font-size: 14px; opacity: 0;
  transition: opacity .38s var(--settle), transform .38s var(--settle); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura { animation: none; }
  .reveal { transform: none; filter: none; transition: opacity .3s ease; }
  .chars > span { animation: char-fade .3s ease forwards; transform: none; filter: none; }
  @keyframes char-fade { to { opacity: 1; } }
}
