/* Lunaris 官网 · 共享样式
   色值与应用的设计令牌一致（design-tokens/tokens.json）：暖白底、#D97757 陶土色强调、Inter + Newsreader。 */

@font-face { font-family: "Inter Var"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Newsreader Var"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Newsreader Var"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
/* 标题里的中文：默认中文衬线体太细，用系统里较粗的无衬线（与应用相同的做法，本地字体，不下载） */
@font-face { font-family: "LxCJKHead"; font-weight: 100 900; src: local("PingFang SC Medium"), local("HarmonyOS Sans SC Medium"), local("Noto Sans SC Medium"), local("Noto Sans CJK SC Medium"), local("Source Han Sans SC Medium"), local("Microsoft YaHei UI"), local("Microsoft YaHei"); unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }

:root {
  --bg: #FAF9F6;
  --bg-2: #F3F1EB;
  --surface: #FFFFFF;
  --surface-2: #F7F6F2;
  --sidebar: #F5F4EF;
  --ink: #191919;
  --ink-2: #5E5D59;
  --ink-3: #8A8984;
  --line: rgba(25, 25, 25, .09);
  --line-2: rgba(25, 25, 25, .16);
  --accent: #D97757;
  --accent-2: #C4643F;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(217, 119, 87, .12);
  --bubble: #E5F5F2;
  --ok: #2E7D32;
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(255, 255, 255, .84);
  --glass-edge: rgba(255, 255, 255, .7);
  --glow-a: rgba(217, 119, 87, .22);
  --glow-b: rgba(196, 178, 140, .26);
  --glow-c: rgba(120, 160, 150, .14);
  --shadow-sm: 0 1px 2px rgba(25, 25, 25, .05);
  --shadow: 0 1px 2px rgba(25, 25, 25, .04), 0 10px 30px -8px rgba(25, 25, 25, .10);
  --shadow-lg: 0 2px 4px rgba(25, 25, 25, .04), 0 30px 80px -20px rgba(60, 40, 25, .22);
  --code-bg: #F3F1EB;

  --font-sans: "Inter Var", "Inter", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Newsreader Var", "Newsreader", "LxCJKHead", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --wrap: 1160px;
  --gutter: 24px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1C1B1A; --bg-2: #232220; --surface: #2A2927; --surface-2: #262523; --sidebar: #201F1E;
  --ink: #ECECEA; --ink-2: #A8A8A4; --ink-3: #7C7C78;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --accent: #E08A6A; --accent-2: #EBA085; --accent-ink: #1A1A1A; --accent-soft: rgba(224, 138, 106, .14);
  --bubble: #2F3F3C; --ok: #4CAF50;
  --glass: rgba(38, 37, 35, .62); --glass-strong: rgba(38, 37, 35, .86); --glass-edge: rgba(255, 255, 255, .07);
  --glow-a: rgba(224, 138, 106, .16); --glow-b: rgba(150, 120, 80, .12); --glow-c: rgba(90, 140, 130, .10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 80px -20px rgba(0, 0, 0, .65);
  --code-bg: #232220;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1B1A; --bg-2: #232220; --surface: #2A2927; --surface-2: #262523; --sidebar: #201F1E;
    --ink: #ECECEA; --ink-2: #A8A8A4; --ink-3: #7C7C78;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
    --accent: #E08A6A; --accent-2: #EBA085; --accent-ink: #1A1A1A; --accent-soft: rgba(224, 138, 106, .14);
    --bubble: #2F3F3C; --ok: #4CAF50;
    --glass: rgba(38, 37, 35, .62); --glass-strong: rgba(38, 37, 35, .86); --glass-edge: rgba(255, 255, 255, .07);
    --glow-a: rgba(224, 138, 106, .16); --glow-b: rgba(150, 120, 80, .12); --glow-c: rgba(90, 140, 130, .10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -8px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 80px -20px rgba(0, 0, 0, .65);
    --code-bg: #232220;
    color-scheme: dark;
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 450 16px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 460; font-synthesis: none; }
.mono { font-family: var(--font-mono); }

/* 页面背景的极淡光晕（固定、不随滚动重绘） */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(80px); }
.ambient i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -22vw; background: var(--glow-a); }
.ambient i:nth-child(2) { width: 44vw; height: 44vw; right: -16vw; top: 6vh; background: var(--glow-b); }
.ambient i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -30vw; background: var(--glow-c); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .25; } }

/* ---------- 按钮 ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 11px;
  font-weight: 560; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--glass-strong); color: var(--ink);
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.ink { background: var(--ink); border-color: transparent; color: var(--bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.lg { --h: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn.sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn .arrow { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
  .btn.primary:hover { background: var(--accent-2); }
  .btn.ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
  .btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.link { color: var(--accent); font-weight: 560; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
@media (hover: hover) { .link:hover svg { transform: translateX(3px); } }

/* ---------- 顶栏（悬浮磨砂胶囊） ---------- */
.site-header { position: fixed; z-index: 50; left: 0; right: 0; top: 12px; padding: 0 12px; view-transition-name: site-header; pointer-events: none; }
.bar {
  pointer-events: auto;
  max-width: 1180px; margin: 0 auto; height: 58px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--glass-edge) inset, var(--shadow-sm);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled .bar { background: var(--glass-strong); box-shadow: 0 1px 0 var(--glass-edge) inset, var(--shadow); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; font-size: 17px; letter-spacing: -.01em; flex: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; transition: transform .5s var(--ease-out); }
.logo-mark svg { width: 16px; height: 16px; }
@media (hover: hover) { .logo:hover .logo-mark { transform: rotate(-24deg); } }

.nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav a { position: relative; z-index: 1; padding: 7px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 520; color: var(--ink-2); transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 9px; background: color-mix(in srgb, var(--ink) 7%, transparent); opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-out), width .32s var(--ease-out), opacity .2s ease; }
.nav-pill.on { opacity: 1; }
.bar .sp { flex: 1; }
.bar .actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
@media (hover: hover) { .icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); } }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="system"] .i-auto { display: block; }
.menu-btn { display: none; }
.menu-btn span { position: relative; width: 18px; height: 12px; display: block; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.menu-btn span::before { top: 2px; }
.menu-btn span::after { top: 9px; }
.menu-open .menu-btn span::before { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 5.5px; transform: rotate(-45deg); }

.sheet {
  pointer-events: auto;
  max-width: 1180px; margin: 8px auto 0; padding: 10px;
  border-radius: 18px; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform-origin: top right; transform: translateY(-6px) scale(.97); opacity: 0; filter: blur(6px); visibility: hidden;
  transition: transform .32s var(--ease-out), opacity .22s ease, filter .3s ease, visibility 0s .32s;
}
.menu-open .sheet { transform: none; opacity: 1; filter: none; visibility: visible; transition: transform .38s var(--ease-out), opacity .25s ease, filter .3s ease, visibility 0s; }
.sheet a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 12px; font-size: 17px; font-weight: 540; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .4s var(--ease-out), background-color .2s; }
.sheet a[aria-current="page"] { color: var(--accent); }
.sheet a svg { width: 16px; height: 16px; color: var(--ink-3); }
.menu-open .sheet a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
.sheet a:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sheet .sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 4px 4px; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 18, 16, .18); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.menu-open .scrim { opacity: 1; visibility: visible; transition: opacity .3s ease; }

@media (max-width: 920px) {
  .nav, .bar .hide-m { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 921px) { .sheet, .scrim { display: none; } }

/* ---------- 通用排版 ---------- */
main { display: block; }
.page-top { padding-top: 132px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 1; }
.display { font-family: var(--font-serif); font-weight: 440; font-size: clamp(40px, 7.2vw, 86px); line-height: 1.04; letter-spacing: -.025em; font-synthesis: none; }
.display em, .h2 em, .h1 em { font-style: italic; color: var(--accent); }
.h1 { font-family: var(--font-serif); font-weight: 440; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.02em; font-synthesis: none; }
.h2 { font-family: var(--font-serif); font-weight: 440; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.018em; font-synthesis: none; }
.h3 { font-size: 19px; font-weight: 620; letter-spacing: -.01em; line-height: 1.35; }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.7; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
section { position: relative; }
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 820px) { .sec-head.split { grid-template-columns: 1fr; } }
.hr { height: 1px; background: var(--line); border: 0; }

/* 页面顶部（内页） */
.page-hero { padding: 150px 0 64px; }
.page-hero .h1 { margin: 22px 0 22px; max-width: 15em; }
.page-hero .lead { max-width: 36em; }

/* 滚动出现：淡入 + 上移 + 去模糊 */
[data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* 卡面（毛玻璃） */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--glass-edge) inset, var(--shadow-sm); }
.panel { border-radius: var(--r-lg); padding: 28px; }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 520; color: var(--ink-2); border: 1px solid var(--line); background: var(--glass-strong); }
.chip svg { width: 14px; height: 14px; }
.chip.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; padding: 72px 0 40px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; letter-spacing: .02em; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot li a { color: var(--ink-2); font-size: 14.5px; transition: color .2s ease; }
.foot li a:hover { color: var(--ink); }
.foot .about { max-width: 22em; color: var(--ink-2); font-size: 14.5px; margin-top: 14px; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 13px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-dot.ok i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- 应用窗口模型（首页演示 / 内页插图共用） ---------- */
.window { position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.window .titlebar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sidebar); }
.window .titlebar b { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.window .titlebar .url { margin: 0 auto; height: 24px; min-width: 40%; padding: 0 12px; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); }

/* 代码 */
pre, code { font-family: var(--font-mono); font-size: 13.5px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; line-height: 1.65; }
:not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--code-bg); border: 1px solid var(--line); font-size: .88em; }
.tok-k { color: var(--accent); }
.tok-s { color: #4E8A5E; }
.tok-c { color: var(--ink-3); }
:root[data-theme="dark"] .tok-s { color: #8FC79B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tok-s { color: #8FC79B; } }

/* ---------- 跨页面过渡（支持的浏览器） ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---------- 无障碍降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .sheet, .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(25, 25, 25, .3); --line-2: rgba(25, 25, 25, .45); --ink-2: #3a3936; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .site-header { top: 8px; padding: 0 8px; }
  .bar { height: 54px; padding: 0 6px 0 14px; border-radius: 16px; }
  .page-hero { padding: 120px 0 44px; }
  .panel { padding: 22px; }
}

/* 窄屏标题：避免最后一两个字单独成行 */
.display em, .h1 em, .h2 em { white-space: nowrap; }
@media (max-width: 520px) {
  .display { font-size: 33px; line-height: 1.18; }
  .h1 { font-size: 32px; line-height: 1.2; }
  .h2 { font-size: 27px; line-height: 1.25; }
}
.sheet .sheet-cta a { justify-content: center; padding: 0 16px; font-size: 15px; opacity: 1; transform: none; }
