/*
   环上旮旯 · Apple-inspired system
   与其核共用 MiSans 排版；作品图像负责个性，界面保持安静。
   首页与详情页均在这里统一，数据仍由 data.js / detail.js 提供。
*/
:root {
  color-scheme: light;
  --bg: #f2f2f5;
  --bg-2: #f8f8fa;
  --surface: #fcfcfd;
  --surface-2: #e9e9ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .11);
  --line-2: rgba(29, 29, 31, .065);
  --accent: #0071e3;
  --accent-fg: #ffffff;
  --accent-ink: #0066cc;
  --accent-soft: rgba(0, 113, 227, .09);
  --accent-line: rgba(0, 113, 227, .28);
  --teal: #008b83;
  --teal-soft: rgba(0, 139, 131, .09);
  --amber: #a05a00;
  --rose: #c2465b;
  --row-number: rgba(29, 29, 31, .24);
  --font: "MiSans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-literary: var(--font);
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shell: 1200px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --ease: var(--ios-spring);
  --spring: var(--ease);
  --t-display: clamp(3rem, 5.2vw, 4.75rem);
  --t-display-ls: -.052em;
  --t-h1: clamp(2.75rem, 5vw, 4.25rem);
  --t-h1-ls: -.05em;
  --t-h2: clamp(2rem, 3.3vw, 3rem);
  --t-h2-ls: -.04em;
  --t-h3: 1.25rem;
  --t-h3-ls: -.022em;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .025), 0 8px 24px rgba(0, 0, 0, .035);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .035), 0 24px 56px rgba(0, 0, 0, .075);
  --elev-1: var(--shadow-1);
  --elev-2: var(--shadow-2);
  --elev-3: var(--shadow-2);
  --hi: rgba(255, 255, 255, .8);
  --hi-soft: rgba(255, 255, 255, .5);
  --spot: transparent;
  --grid: transparent;
  --wash: none;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315;
  --bg-2: #17191c;
  --surface: #1e2023;
  --surface-2: #292c30;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .08);
  --accent: #2997ff;
  --accent-fg: #ffffff;
  --accent-ink: #64aaff;
  --accent-soft: rgba(41, 151, 255, .14);
  --accent-line: rgba(41, 151, 255, .35);
  --teal: #63d5c9;
  --teal-soft: rgba(99, 213, 201, .12);
  --amber: #e5ae63;
  --row-number: rgba(255, 255, 255, .25);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .18);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .3);
  --hi: rgba(255, 255, 255, .1);
  --hi-soft: rgba(255, 255, 255, .06);
}
html[data-accent="rose"] { --accent: #c2465b; --accent-ink: #a9354a; }
html[data-accent="amber"] { --accent: #a05a00; --accent-ink: #884b00; }
[data-theme="dark"][data-accent="rose"] { --accent: #ff6b82; --accent-ink: #ff9dad; }
[data-theme="dark"][data-accent="amber"] { --accent: #e5a64e; --accent-ink: #efbe7f; }
html { scroll-padding-top: 88px; background: var(--bg); }
body {
  background: transparent;
  animation: none;
  font-family: var(--font);
  font-optical-sizing: auto;
  line-height: 1.65;
  letter-spacing: 0;
  transition: color .24s var(--ios-ease), background-color .24s var(--ios-ease);
}
body * { letter-spacing: normal; }
body.custom-cursor * { cursor: auto !important; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { color: var(--ink); background: var(--accent-soft); }
/* 底色氛围层（整屏渐变 + 噪点 + 装饰伪元素）保持关闭：它们改 background-position
   与大面积 filter，是实测出来的掉帧来源，与「动效」无关。指针聚光、浮尘与自定义
   光标则交给文末的 Motion system 统一接管 —— 这里不能再按死，按死那一层就永远没效果。 */
.backdrop, .hero-inner::before,
.hero-inner::after, .hero-visual::before, .detail-hero-visual::before { display: none !important; }
.progress { height: 2px; }
.progress i { background: var(--accent); box-shadow: none; }
.shell, .hero-inner, .hero-switcher, .detail-hero-inner, .detail-section { width: min(var(--shell), calc(100% - 64px)); }

.site-header, .site-header.is-stuck {
  height: 68px;
  background: rgba(245, 245, 247, .82);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: var(--fx-glass-20);
  -webkit-backdrop-filter: var(--fx-glass-20);
}
.site-header.is-stuck { border-bottom-color: var(--line-2); }
.header-inner { width: min(var(--shell), calc(100% - 48px)); height: 67px; gap: 20px; }
.brand { gap: 11px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-family: var(--font); font-size: 1.0625rem; font-weight: 650; letter-spacing: -.022em; }
.nav { gap: 3px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: transparent; }
.nav a.is-active { color: var(--ink); background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nav-ind { display: none; }
.header-actions { gap: 8px; }
.theme-toggle, .pill-btn, .back-home {
  height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
}
.theme-toggle { width: 36px; }
.pill-btn, .back-home { padding-inline: 14px; font-size: .75rem; font-weight: 550; }
.theme-toggle:hover, .pill-btn:hover, .back-home:hover { color: var(--ink); border-color: transparent; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tabbar {
  background: rgba(245, 245, 247, .88);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--line-2);
  backdrop-filter: var(--fx-glass-20);
  -webkit-backdrop-filter: var(--fx-glass-20);
}
.tabbar a { border-radius: 12px; }
.tabbar a.is-active { color: var(--accent-ink); background: transparent; }
.to-top { border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-1); }
.btn {
  min-height: 44px; padding: 0 21px; border: 0; border-radius: 999px;
  font-size: .875rem; font-weight: 550; letter-spacing: -.006em;
  transition: color .18s var(--ios-ease), background-color .18s var(--ios-ease), box-shadow .18s var(--ios-ease), transform .12s ease-out;
  touch-action: manipulation;
}
.btn:hover { transform: none; box-shadow: none; }
.btn:active, .theme-toggle:active, .pill-btn:active, .filter-tags button:active,
.hero-switcher button:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-ink); color: var(--accent-fg); }
[data-theme="dark"][data-accent] .btn-primary { color: #151517; }
.btn-ghost, .btn-quiet, .btn-outline { border: 0; background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover, .btn-quiet:hover, .btn-outline:hover { background: var(--surface-2); color: var(--accent-ink); }
.btn .ripple { display: none; }
.pill { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .75rem; font-weight: 550; letter-spacing: .005em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #30a46c; box-shadow: none; animation: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.section, .section + .section { padding: 96px 0; border: 0; background: transparent; }
.sec-head { max-width: 800px; margin-bottom: 44px; }
.kicker { color: var(--accent-ink); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.kicker::before, .kicker::after { content: none; }
.sec-title { margin-top: 12px; font-family: var(--font); font-size: var(--t-h2); line-height: 1.12; font-weight: 650; letter-spacing: var(--t-h2-ls); }
.sec-lede { max-width: 580px; margin-top: 18px; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.hl, .sec-title em, .detail-heading h2 em, .purchase-section h2 em { color: var(--accent-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; animation: none !important; }
/* 跑马灯：纯 transform 位移，合成层内完成，不进绘制管线，弱机上也能跑。
   两个 span 内容相同，位移正好 -50% 时首尾无缝；悬停暂停，读得清。 */
.marquee { padding: 15px 0; border: 0; border-block: 1px solid var(--line-2); background: var(--bg-2); }
.marquee-track {
  width: max-content;
  animation: marquee var(--marquee-dur, 42s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0 28px 0 0; color: var(--muted); font-family: var(--font);
  font-size: .75rem; white-space: nowrap;
}
.marquee-track span + span { display: block; }

/* Hero: artwork and one deliberate, user-controlled switcher. */
.hero { min-height: auto; padding: 136px 0 72px; }
.hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.hero h1 { margin-top: 24px; font-family: var(--font); font-size: var(--t-display); line-height: 1.06; font-weight: 650; letter-spacing: var(--t-display-ls); }
.hero .lede { max-width: 42ch; margin-top: 24px; font-size: 1.0625rem; line-height: 1.85; }
.hero-actions { gap: 10px; margin-top: 30px; }
.hero-stats { gap: 32px; margin-top: 38px; padding-top: 24px; border-color: var(--line-2); }
.hero-stats strong { font-family: var(--font); font-size: 1.75rem; font-weight: 600; letter-spacing: -.035em; }
.hero-stats span { font-size: .75rem; }
.hero-visual { min-width: 0; }
.stage-product { transition: opacity .24s var(--ios-ease), transform .3s var(--ease); }
.stage-product.is-hidden { transform: translateY(6px) scale(.99); }
.stage-cover { aspect-ratio: 1.45 / 1; border: 0; border-radius: var(--r-l); background: #e8e8ed; box-shadow: var(--shadow-2); }
.stage-cover img { object-position: center; }
.stage-cover::after { content: none; }
.stage-watch { left: -5%; bottom: -10%; height: 91%; rotate: 0deg; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .2)); }
/* 平台浮签只在有真实指针的宽屏上出现（触屏上没有「悬停」可言，出现即遮挡画面）；
   常驻漂移已取消，改为入场时逐枚落位，见 Motion system 的 .float-chip。 */
.float-chip { display: none; }
.hero-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 76px; border: 0; }
.hero-switcher button {
  grid-template-columns: 24px minmax(0, 1fr); gap: 3px 10px; min-width: 0; padding: 16px 18px;
  border: 0; border-radius: 18px; background: var(--surface); text-align: left;
  transition: background-color var(--motion-base) var(--ios-ease),
              box-shadow var(--motion-base) var(--ios-ease),
              transform var(--motion-fast) var(--ios-spring);
}
/* 悬停与选中都是「描边」，所以两端形状一致、可插值。
   悬停从 0 到 1px 线色，选中是 2px 主色 —— 两者之间也能平滑过渡。 */
.hero-switcher button:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 rgba(0,0,0,0); }
.hero-switcher button.is-active { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent), 0 4px 14px rgba(0, 0, 0, .05); }
.switch-index { grid-row: 1 / 3; font-family: var(--font); font-size: .75rem; font-weight: 600; color: var(--muted); }
.switch-label { font-family: var(--font); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.switch-meta { grid-column: 2; font-size: .6875rem; color: var(--muted); }
.switch-progress { display: none; }
.scroll-cue { display: none; }

/* Search and catalogue. */
.filter-bar { padding: 0; margin-bottom: 28px; border: 0; gap: 20px; }
.search-box { width: 290px; height: 44px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.search-box:focus-within { border: 0; box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.search-box input { font-size: .8125rem; }
.filter-tags { gap: 5px; padding: 4px; border-radius: 999px; background: var(--surface); }
.filter-tags button { padding: 8px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 500; transition: background-color .18s var(--ios-ease), color .18s var(--ios-ease), transform .12s ease-out; }
.filter-tags button:hover { color: var(--ink); background: var(--surface-2); }
.filter-tags button.is-active { color: var(--ink); background: var(--accent-soft); font-weight: 600; text-decoration: none; }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 0; }
.product-card, .product-card:nth-child(3) {
  grid-column: auto; flex-direction: column; border: 0; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
/* 悬停的描边与阴影统一由文末 Motion system 驱动（--shadow-1 是外阴影、
   悬停是 inset 描边，两者之间浏览器不插值，直接跳变）。
   这里不能再写 .product-card:hover{box-shadow: ...}。 */
.product-card::before { display: none; }
.product-card-media { flex: none; aspect-ratio: 1.75 / 1; border: 0; background: var(--surface-2); overflow: hidden; }
.product-card-image { object-fit: cover; transition: transform .45s var(--ease); }
.product-card-flag { top: 14px; bottom: auto; left: 14px; padding: 5px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #25282c; font-size: .6875rem; font-weight: 600; backdrop-filter: var(--fx-glass-8); -webkit-backdrop-filter: var(--fx-glass-8); }
.product-card-flag .ic { color: #30a46c; }
.product-card-copy { display: flex; gap: 14px; padding: 24px 26px 26px; }
.product-card-head { gap: 13px; }
.product-icon { width: 46px; height: 46px; border: 0; border-radius: 12px; }
.product-card-title h3 { font-family: var(--font); font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; }
.product-card-title span { font-size: .75rem; }
.product-card-summary { font-size: .875rem; line-height: 1.8; }
.card-tags { gap: 6px; }
.card-tags i { padding: 4px 9px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .6875rem; }
.card-tags i::before { content: none; }
.product-card-foot { padding-top: 12px; border-top: 1px solid var(--line-2); }
.card-link { min-height: 32px; padding: 0; border: 0; font-size: .8125rem; }
.card-price { font-family: var(--font); font-size: .75rem; font-weight: 500; }
.empty-state { padding: 32px; border-radius: var(--r-m); background: var(--surface); }

/* Feature groups and real screens. */
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border: 0; }
.bcard { min-height: 210px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); }
.bcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.bcard:not([data-tilt]):hover { transform: none; }
.b-tall { grid-column: span 2; grid-row: span 2; padding: 30px; }
.b-wide { grid-column: span 2; }
.bcard-icon, .b-tall .bcard-icon { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 20px; box-shadow: none; }
.bcard h3, .b-tall h3 { margin-top: 20px; font-family: var(--font); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.bcard p, .b-tall p { font-size: .8125rem; line-height: 1.75; }
.cg-strip { display: none; }
.drag-track { border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.drag-box { border: 0; border-radius: 999px; animation: none; }
.steps { gap: 16px; border: 0; }
.steps::before { display: none; }
.step, .step + .step { padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); }
.step:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font); font-size: 1.5rem; font-weight: 600; color: var(--row-number); }
.step-icon { display: grid; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.step h3 { margin-top: 22px; font-family: var(--font); font-size: 1.0625rem; font-weight: 600; }
.step p { font-size: .8125rem; line-height: 1.75; }
.showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.shot:nth-child(n) { margin-top: 0; }
.shot-frame { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .16)); }
.shot:hover .shot-frame { transform: none; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .16)); }
.shot figcaption { font-family: var(--font); font-size: .75rem; line-height: 1.7; }
.device-groups { grid-template-columns: 1fr 1fr; gap: 20px; }
.device-group { padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); }
.device-group:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.dg-icon { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--teal-soft); box-shadow: none; }
.dg-head h3 { font-family: var(--font); font-size: 1.125rem; font-weight: 600; }
.dg-count { padding: 4px 9px; border: 0; border-radius: 999px; background: var(--surface-2); font-family: var(--font); font-size: .6875rem; }
.dg-list { gap: 7px; }
.dg-list li { flex: none; padding: 7px 11px; border: 0; border-radius: 999px; background: var(--surface-2); font-family: var(--font); font-size: .75rem; }
.dg-list li:hover { background: var(--surface-2); }
.update-list { gap: 10px; border: 0; }
.update-row, .update-row.plain { grid-template-columns: 100px 1fr 1.1fr auto; gap: 20px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: none; }
.update-row strong { font-family: var(--font); font-size: .9375rem; font-weight: 600; }
.update-row > span { font-size: .8125rem; }
.update-state { padding: 5px 9px; border: 0; border-radius: 999px; background: var(--accent-soft); font-size: .6875rem; }
.update-state[data-tone="live"], .update-state[data-tone="wip"] { background: var(--accent-soft); color: var(--accent-ink); }
a.update-row:hover { border-color: var(--line); box-shadow: none; transform: none; }
.faq-list { max-width: 920px; gap: 10px; border: 0; }
.faq-item { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow: hidden; }
.faq-item:hover, .faq-item.open { border-color: var(--line-2); box-shadow: none; }
.faq-q { padding: 22px 24px; font-family: var(--font); font-size: 1rem; font-weight: 550; line-height: 1.5; }
.faq-q i::before, .faq-q i::after { background: var(--muted); }
.faq-a { transition: grid-template-rows .3s var(--ease); }
.faq-a p { max-width: 75ch; padding: 0 52px 24px 24px; font-size: .9375rem; line-height: 1.85; }
.friend-grid { gap: 20px; }
.friend-card { padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); }
.friend-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.friend-logo { width: 50px; height: 50px; border: 0; border-radius: 14px; }
.friend-head strong { font-family: var(--font); font-size: 1.125rem; }
.friend-url { font-size: .75rem; font-weight: 500; }
.site-footer { margin-top: 24px; padding-top: 64px; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.footer-tags span, .footer-tags a, .contact-chip { border: 0; border-radius: 999px; background: var(--surface); }
.rel-item { padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.rel-item:hover { transform: none; }
.rel-badge { border-radius: 11px; box-shadow: none; }

/* Shared footer: one structure and rhythm on every page. */
.site-footer {
  margin-top: 0; padding: 72px 0 28px; border-top: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink-2);
}
.footer-inner {
  grid-template-columns: minmax(240px, 1.05fr) minmax(360px, 1.25fr) minmax(260px, .9fr);
  gap: 32px 44px; padding-bottom: 44px;
}
.footer-brand { grid-column: 1; grid-row: 1; min-width: 0; }
.footer-brand .brand { min-height: 40px; }
.footer-brand > p { max-width: 34ch; margin-top: 16px; font-size: .875rem; line-height: 1.8; }
.footer-title, .footer-contact h4, .related-title, .footer-nav h4 {
  display: block; margin: 0 0 14px; color: var(--muted);
  font-size: .6875rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase;
}
.footer-tags { gap: 6px; margin-top: 16px; }
.footer-tags span, .footer-tags a, .contact-chip {
  min-height: 30px; padding: 6px 10px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .6875rem;
}
.footer-tags a:hover, .contact-chip:hover { border-color: var(--line); color: var(--ink); }
.footer-contact { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.footer-contact-list { gap: 6px; }
.contact-chip { gap: 7px; }
.footer-nav {
  grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  padding: 0 0 0 2px;
}
.footer-nav > div:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2);
}
.footer-nav > div:first-child h4 { grid-column: 1 / -1; }
.footer-nav > div:last-child { grid-column: 1 / -1; padding-top: 22px; }
.footer-nav a {
  display: flex; align-items: center; min-height: 32px; margin: 0; padding: 3px 0;
  color: var(--ink-2); font-size: .8125rem; transition: color .16s var(--ios-ease);
}
.footer-nav a:hover { color: var(--accent-ink); }
.related {
  grid-column: 3; grid-row: 1; min-width: 0; padding-left: 28px;
  border-left: 1px solid var(--line-2);
}
.related-list { gap: 7px; }
.rel-item {
  min-height: 54px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px;
  background: var(--surface); transition: border-color .16s var(--ios-ease), background-color .16s var(--ios-ease);
}
.rel-item:hover { border-color: var(--line); background: var(--surface); box-shadow: none; transform: none; }
.rel-badge { width: 34px; height: 34px; }
.rel-text strong { font-size: .8125rem; font-weight: 600; }
.rel-text small { font-size: .6875rem; line-height: 1.5; }
.disclaimer {
  margin-top: 0; padding: 24px 26px; border: 1px solid var(--line-2);
  border-radius: var(--r-m); background: var(--surface); box-shadow: none;
}
.disclaimer h4 { margin-bottom: 10px; }
.disclaimer p { font-size: .75rem; line-height: 1.85; }
.footer-base {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: .6875rem; line-height: 1.7;
}
.footer-base a { border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Work detail: same typography, hierarchy and native actions. */
.detail-hero { padding: 136px 0 88px; }
.detail-hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.back-link { min-height: 32px; padding: 0 12px; margin-bottom: 24px; border: 0; border-radius: 999px; background: var(--surface); color: var(--accent-ink); font-size: .75rem; font-weight: 500; }
.back-link:hover { background: var(--accent-soft); }
.detail-eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; }
.detail-hero h1 { margin-top: 16px; font-family: var(--font); font-size: var(--t-h1); line-height: 1.06; font-weight: 650; letter-spacing: var(--t-h1-ls); }
.detail-subtitle { margin-top: 20px; font-family: var(--font); font-size: 1.125rem; font-weight: 500; line-height: 1.65; }
.detail-description { font-size: .9375rem; line-height: 1.85; }
.detail-stage .stage-cover { aspect-ratio: 1.45 / 1; }
.detail-stage .stage-watch { height: 91%; }
.price-chip, .price-label { border: 0; border-radius: 999px; background: var(--surface); font-family: var(--font); color: var(--ink-2); }
.detail-section, .detail-section + .detail-section { padding: 88px 0; border: 0; background: transparent; }
.detail-heading { max-width: 760px; margin-bottom: 42px; }
.detail-heading > p:first-child { color: var(--accent-ink); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.detail-heading h2 { margin-top: 12px; font-family: var(--font); font-size: var(--t-h2); line-height: 1.12; font-weight: 650; letter-spacing: var(--t-h2-ls); }
.detail-lede { font-size: 1rem; line-height: 1.8; }
.feature-grid { gap: 16px; border: 0; }
.feature-item, .feature-item + .feature-item { padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: transparent; box-shadow: none; }
.feature-item > span { color: var(--muted); opacity: 1; }
.feature-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.feature-item > span { font-family: var(--font); font-size: 1.5rem; font-weight: 600; }
.feature-item h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; }
.feature-item p { font-size: .8125rem; line-height: 1.75; }
.gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.gallery-item .shot-frame { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .16)); }
.gallery-item figcaption { font-family: var(--font); font-size: .75rem; line-height: 1.7; }
.plugin-screen { border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.purchase-section, .community-section { padding: 32px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.purchase-section h2 { font-family: var(--font); font-size: 1.75rem; line-height: 1.3; font-weight: 600; letter-spacing: -.03em; }
.price-label strong { font-family: var(--font); font-size: 1.25rem; }
.community-copy > strong { font-family: var(--font); font-size: 1.75rem; font-weight: 600; }
.device-grid { gap: 8px; border: 0; }
.device-grid span { width: auto; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--surface); font-family: var(--font); font-size: .8125rem; }
.legal-grid { gap: 18px; }
.legal-block { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: transparent; }
.legal-block h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; }
.legal-block p { line-height: 1.9; }
.actionbar { background: color-mix(in srgb, var(--bg) 88%, transparent); border-color: var(--line-2); backdrop-filter: var(--fx-glass-20); -webkit-backdrop-filter: var(--fx-glass-20); }

/* 换页转场交给 motion.js 的自绘幕布（见文件末尾 Motion system 第 6 节）。
   显式关掉浏览器原生跨文档 View Transition：原生转场和自绘幕布同时生效
   会叠出两层动画。关掉之后浏览器只做默认跳转，幕布负责中间那段。 */
@view-transition { navigation: none; }

.stage-cover, .stage-watch { transition-property: opacity, transform; }

@media (min-width: 1081px) and (min-height: 740px) {
  .hero { min-height: min(850px, 100svh); }
}
@media (max-width: 1080px) {
  .hero-inner, .detail-hero-inner { gap: 42px; }
  .hero-stats { gap: 22px; }
  .stage-watch { left: -4%; }
  .product-card-title h3 { font-size: 1.25rem; }
  .product-card-copy { padding: 22px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-tall { grid-column: span 2; grid-row: auto; }
  .showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .feature-item, .feature-item + .feature-item { padding: 22px; }
  .footer-inner { grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.1fr); }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-nav { grid-column: 2; grid-row: 1; }
  .related { grid-column: 1 / -1; grid-row: 2; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .site-header, .site-header.is-stuck { height: 60px; }
  .header-inner { width: calc(100% - 32px); height: 59px; }
  .shell, .hero-inner, .hero-switcher, .detail-hero-inner, .detail-section { width: calc(100% - 40px); }
  .section, .section + .section { padding: 72px 0; }
  .hero, .detail-hero { min-height: auto; padding: 106px 0 64px; }
  .hero-inner, .detail-hero-inner { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy, .detail-hero-content { max-width: 650px; }
  .hero-visual, .detail-hero-visual { max-width: none; }
  .stage-cover { aspect-ratio: 1.45 / 1; }
  .stage-watch { left: -3%; bottom: -14%; height: 92%; }
  .hero-switcher { margin-top: 72px; gap: 8px; }
  .hero-switcher button { padding: 14px 12px; }
  .switch-label { font-size: .75rem; }
  .switch-meta { font-size: .625rem; }
  .filter-bar { align-items: flex-start; }
  .filter-tags { flex-wrap: wrap; border-radius: 18px; }
  .product-grid { gap: 18px; }
  .product-card-title h3 { font-size: 1.125rem; }
  .product-card-title span { font-size: .6875rem; }
  .product-card-summary { font-size: .8125rem; }
  .card-tags { gap: 5px; }
  .bcard { min-height: 195px; }
  .step, .step + .step { padding: 24px; }
  .device-groups { gap: 16px; }
  .device-group { padding: 24px; }
  .dg-head { flex-wrap: wrap; }
  .dg-head > div { flex: 1; }
  .update-row, .update-row.plain { grid-template-columns: 90px 1fr auto; gap: 10px 16px; }
  .update-row > span:nth-child(3) { grid-column: 2 / -1; }
  .update-arrow { grid-column: 3; grid-row: 1; display: block; }
  .detail-section, .detail-section + .detail-section { padding: 70px 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .purchase-section, .community-section { grid-template-columns: 1fr; }
  .purchase-actions, .community-actions { justify-content: flex-start; }
  .theme-toggle, .pill-btn, .back-home { height: 44px; }
  .back-link { min-height: 44px; }
  .site-footer { padding: 56px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
  .footer-brand, .footer-nav, .related { grid-column: 1; grid-row: auto; }
  .footer-nav { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); }
  .footer-nav > div:first-child { padding-bottom: 20px; }
  .footer-nav > div:last-child { padding-top: 20px; }
  .related { margin-top: 24px; padding-top: 24px; }
  .related-list { grid-template-columns: 1fr; }
  .contact-chip { width: 100%; justify-content: flex-start; min-height: 40px; }
  .disclaimer { padding: 20px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .6875rem; }
}
@media (max-width: 600px) {
  :root { --t-display: clamp(2.65rem, 12vw, 3.5rem); --t-h1: 2.65rem; --t-h2: 2rem; --r-l: 24px; }
  .brand-text { font-size: 1rem; }
  .pill-btn.tabbar-only { padding-inline: 12px; font-size: .75rem; }
  .back-home { width: 44px; padding: 0; font-size: 0; justify-content: center; }
  .back-home .ic { font-size: 1.0625rem; }
  .hero h1 { font-size: var(--t-display); line-height: 1.08; }
  .hero .lede { font-size: .9375rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; }
  .hero-actions .btn-quiet { display: inline-flex; }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats span { font-size: .625rem; }
  .stage-cover, .detail-stage .stage-cover { aspect-ratio: 1.15 / 1; }
  .stage-watch, .detail-stage .stage-watch { left: auto; right: -2%; bottom: -14%; height: 88%; }
  .hero-switcher { margin-top: 64px; }
  .hero-switcher button { grid-template-columns: 1fr; gap: 4px; padding: 14px 12px; min-height: 72px; }
  .switch-index { grid-row: auto; font-size: .6875rem; }
  .switch-label { font-size: .75rem; }
  .switch-meta { display: none; }
  .filter-bar { flex-direction: column; gap: 14px; }
  .search-box { width: 100%; height: 48px; }
  .filter-tags { flex-wrap: nowrap; width: calc(100% + 20px); padding: 4px 20px 4px 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
  .filter-tags button { flex: none; padding: 10px 14px; }
  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-card-media { aspect-ratio: 1.6 / 1; }
  .product-card-copy { padding: 24px; }
  .product-card-title h3 { font-size: 1.375rem; }
  .product-card-title span { font-size: .75rem; }
  .product-card-summary { font-size: .875rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bcard { min-height: 190px; padding: 20px; }
  .b-tall { grid-column: span 2; padding: 24px; }
  .b-wide { grid-column: span 2; }
  .bcard h3, .b-tall h3 { margin-top: 16px; font-size: 1rem; }
  .bcard p, .b-tall p { font-size: .75rem; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step, .step + .step { display: block; padding: 24px; border: 1px solid var(--line-2); }
  .step-num { position: absolute; font-size: 1.375rem; }
  .step h3 { margin-top: 18px; font-size: 1.0625rem; }
  .showcase { display: flex; gap: 18px; max-width: none; margin-inline: -20px; padding: 4px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shot { flex: 0 0 min(49vw, 185px); scroll-snap-align: start; }
  .device-groups { grid-template-columns: 1fr; gap: 16px; }
  .update-row, .update-row.plain { grid-template-columns: 80px 1fr; gap: 8px 12px; }
  .update-row > span:nth-child(3) { grid-column: 2; }
  .update-arrow { display: none; }
  .update-row strong { font-size: .875rem; }
  .faq-q { font-size: .9375rem; }
  .faq-a p { padding: 0 46px 20px 20px; font-size: .875rem; }
  .friend-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-base { line-height: 1.8; }
  .detail-hero h1 { font-size: var(--t-h1); }
  .detail-subtitle { font-size: 1.0625rem; }
  .detail-hero .hero-actions .price-chip { width: auto; padding-inline: 14px; }
  .feature-grid { gap: 12px; }
  .feature-item, .feature-item + .feature-item { padding: 22px 18px; }
  .feature-item h3 { font-size: 1rem; }
  .feature-item p { font-size: .75rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .purchase-section, .community-section { padding: 26px; }
  .purchase-section h2 { font-size: 1.5rem; }
  .purchase-actions .btn, .community-actions .btn { flex: 1 1 auto; width: auto; }
  .price-label { padding-inline: 14px; }
  .device-grid span { width: auto; font-size: .75rem; }
  .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hero-stats span { font-size: .5625rem; }
  .switch-label { font-size: .6875rem; }
  .product-card-title h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-product { transition: opacity .01s; transform: none; }
  .product-card-image { transition: none; }
  .js [data-anim] { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-stuck, .tabbar, .actionbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .product-card-flag { background: var(--surface); }
}
@media (prefers-contrast: more) {
  .product-card, .bcard, .step, .device-group, .faq-item, .feature-item, .rel-item { border-color: var(--ink-2); }
  .nav a { color: var(--ink); }
}

/* ==========================================================================
   Motion system
   --------------------------------------------------------------------------
   四层，各管一件事：

     1  结构   入场 / 滚动揭示        animation（一次性）→ 不占用 transition
     2  反馈   悬停 / 按压            材质、描边、颜色、3px 图标位移
     3  指示   指针、聚光、呼吸        一条 rAF 循环，只读不写布局
     4  过渡   开屏 / 换页 / 换主题    自绘幕布

   两条底线：

   · 悬停不改变几何。卡片本身不位移、不缩放，反馈全部落在「面上」——底色、
     描边、光斑、内部图像的缓推、图标与箭头的微移。这样指针擦过边缘时不会
     有东西跳一下。这条是之前几轮实测出来的，别改回去。
   · 花销必须可降级。html.fx-lite（弱机）与 prefers-reduced-motion 拿到的
     是一份「更安静但完整」的页面，不是空白页或半残页。

   入场用 animation 而不是 transition：两者互不干扰，所以入场结束后
   transition 还是干干净净留给悬停用 —— 之前用 transition 做入场时，
   一次入场就把卡片的悬停过渡整个顶掉了。
   ========================================================================== */

:root {
  /* 时长与曲线：全部取自 iOS 系统的那几条。
     Apple 的过渡不是「匀速到终点」，而是起手快、尾巴长、末端轻轻收住 ——
     就是 --ios-ease 的形状（HIG 默认过渡时长 0.35s，这里按用途拆成三档，
     比例关系照抄）。

       --ios-ease      绝大多数过渡：悬停、按压、颜色、描边
       --ios-spring    带一点弹性但不真的回弹：位移、缩放、画面推进
       --ios-exit      退出 / 收起：起手更快，避免拖泥带水 */
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 450ms;
  --ios-ease: cubic-bezier(.25, .1, .25, 1);
  --ios-spring: cubic-bezier(.32, .72, 0, 1);
  --ios-exit: cubic-bezier(.4, 0, .2, 1);
  --motion-ease: var(--ios-ease);
  --motion-enter: var(--ios-spring);
  --motion-curtain: var(--ios-spring);
  --ease-out: var(--ios-spring);
  --ease-in-out: var(--ios-ease);

  /* 指针光斑与光晕：跟着 --accent 走，换页、换品牌色时自动跟随 */
  --spot: color-mix(in srgb, var(--accent) 11%, transparent);
  --mx-halo: color-mix(in srgb, var(--accent) 20%, transparent);
  --mx-line: color-mix(in srgb, var(--accent) 46%, transparent);
  --mx-ok: #30a46c;

  /* 开屏图案：本站开屏显示《魔女的夜宴》封面标记 */
  --mx-mark: url("assets/witch/icon.png");
}

/* ==========================================================================
   1. 结构 · 入场
   --------------------------------------------------------------------------
   初始隐藏挂在 html.mx 上：这个标记由各页 <head> 的内联脚本在首帧之前写好，
   所以不存在「先显示、再隐藏」的闪动。播放时机由 html.mx-ready 决定
   （motion.js 在开屏幕布开始收起时挂上），在此之前元素安静地等着。

   看门狗：mx-ready 一直没来（motion.js 没跑起来）时，2.6s 后由一条
   一次性动画把内容原样露出来 —— 宁可没有动画，也不能白屏。
   ========================================================================== */

.js.mx :is(.reveal, [data-anim], .pf-row, .float-chip) {
  opacity: 0;
  filter: none;
}
/* 入场动画的 fill 是 backwards（结束后放手，让 transform 回归 CSS 声明，
   否则 [data-tilt] 的 3D 倾角会被动画终值永久压住）。
   所以「已揭示」的可见状态必须由这里给出，不能指望动画填住。 */
.js.mx.mx-ready .reveal.in,
.js.mx.mx-ready .hero-ready [data-anim] {
  opacity: 1;
}
.js.mx .reveal-title { clip-path: inset(-14% 0 112% 0); }

@keyframes mx-failsafe {
  to { opacity: 1; transform: none; clip-path: none; }
}
html.mx:not(.mx-ready) :is(.reveal, [data-anim], .pf-row, .float-chip) {
  animation: mx-failsafe 1ms linear 2.6s forwards;
}

@keyframes mx-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}
/* 标题的遮罩擦除：文字从下沿「长」出来，比整块上移更像排版而不是模板。
   clip-path 只进合成层，不触发重排；下沿多留 18% 免得切到字形下伸部分。 */
@keyframes mx-title-in {
  from { clip-path: inset(-14% 0 112% 0); }
  to   { clip-path: inset(-14% 0 -18% 0); }
}

/* ---- 滚动揭示 ---- */
.js.mx.mx-ready .reveal.in {
  animation: mx-rise .66s var(--motion-enter) var(--d, calc(var(--mx-i, 0) * 55ms)) backwards;
}
.js.mx.mx-ready .reveal.in .reveal-title,
.js.mx.mx-ready .reveal-title.in {
  animation: mx-title-in .82s var(--motion-enter) calc(var(--d, 0ms) + 90ms) backwards;
  /* 同理：动画结束后 clip-path 要回到「完全露出」的静态值 */
  clip-path: inset(-14% 0 -18% 0);
}

/* ---- 首屏 ---- */
.js.mx.mx-ready .hero-ready [data-anim] {
  animation: mx-rise .78s var(--motion-enter) var(--mx-d, 0ms) backwards;
}
/* 阶梯节奏：越靠后的元素等得越久，但间隔只有 70–80ms —— 再大就成了幻灯片 */
.js.mx-ready [data-anim="1"] { --mx-d: 20ms; }
.js.mx-ready [data-anim="2"] { --mx-d: 90ms; }
.js.mx-ready [data-anim="3"] { --mx-d: 170ms; }
.js.mx-ready [data-anim="4"] { --mx-d: 240ms; }
.js.mx-ready [data-anim="5"] { --mx-d: 310ms; }
.js.mx-ready [data-anim="6"] { --mx-d: 190ms; }
.js.mx-ready [data-anim="7"] { --mx-d: 380ms; }

/* 主视觉比文案晚一点、幅度大一点：先让人读到字，再让物件落定。 */
.js.mx.mx-ready .hero-ready :is(.hero-visual, .kn-stage, .hz-stage) > * {
  animation: mx-rise .92s var(--motion-enter) var(--mx-d, 0ms) backwards;
}

/* 主视觉里那台手机：入场时从 96.5% 落到位，之后不再自己动。
   常驻浮动已取消 —— 一片大面积阴影物 24h 上下漂移，滚动时会被读成「页面在抖」。 */
.js.mx.mx-ready .hero-ready .phone {
  animation: mx-phone-in .92s var(--motion-enter) .18s both;
}
@keyframes mx-phone-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.965); }
  to   { opacity: 1; transform: none; }
}

/* 平台浮签：逐枚落位，顺序从左上到右下，读起来像「贴上去」的。
   动画是 backwards，结束后不填住 opacity，所以可见值必须静态给出。 */
.js.mx.mx-ready .hero-ready .hero-visual .float-chip { opacity: 1; transform: none; }
.js.mx.mx-ready .hero-ready .hero-visual .fc1 { animation: mx-rise .62s var(--motion-enter) .30s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc2 { animation: mx-rise .62s var(--motion-enter) .38s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc3 { animation: mx-rise .62s var(--motion-enter) .46s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc4 { animation: mx-rise .62s var(--motion-enter) .54s backwards; }

/* 作品集速览四行：按序点亮。 */
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(1) { animation: mx-rise .58s var(--motion-enter) .22s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(2) { animation: mx-rise .58s var(--motion-enter) .29s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(3) { animation: mx-rise .58s var(--motion-enter) .36s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(4) { animation: mx-rise .58s var(--motion-enter) .43s backwards; }
.js.mx.mx-ready .pf-panel.in .pf-row { animation: mx-rise .58s var(--motion-enter) var(--d, 0ms) backwards; }

/* 数字滚动由 motion.js 逐帧写入；这里只固定等宽数字，防宽度呼吸。 */
.hero-stats strong { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   2. 反馈 · 悬停
   --------------------------------------------------------------------------
   中性化历史遗留的「位移型」悬停：那些 translateY(-4px) 是跳动感的来源。
   [data-tilt] 的元素例外 —— 倾角只在 .mx-tilting 期间存在（见第 5 节）。
   ========================================================================== */

.btn:hover,
.pcard:hover, .bcard:hover, .step:hover, .friend-card:hover,
.shot:hover .shot-frame, .rel-item:hover, .update-row:hover,
.pf-project:not([data-tilt]):hover,
.hz-cell:hover, .hz-pat:hover, .hz-cmd:hover, .hz-spec li:hover,
.kn-player:hover, .device-group:hover, .feature-item:hover {
  transform: none !important;
}

/* 图标在自己的盒子里动，不动布局。 */
.bcard-icon, .pcard-icon, .step-icon, .friend-logo, .rel-badge,
.dg-icon, .cell-ico, .pf-row-ico, .pf-pj-head img, .product-icon {
  transition: background-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease),
              transform var(--motion-base) var(--motion-enter);
}
.bcard:hover .bcard-icon, .pcard:hover .pcard-icon, .step:hover .step-icon,
.friend-card:hover .friend-logo, .rel-item:hover .rel-badge,
.device-group:hover .dg-icon, .pf-project:hover .pf-pj-head img,
.pf-project:hover .pf-pj-head .pf-row-ico {
  box-shadow: none;
  transform: scale(1.06);
}
.rel-arrow, .pf-row-go .ic, .friend-go, .update-arrow, .card-link b {
  transition: transform var(--motion-base) var(--motion-enter),
              color var(--motion-fast) var(--ios-ease);
}
.rel-item:hover .rel-arrow, .pf-row:hover .pf-row-go .ic, .friend-card:hover .friend-go,
a.update-row:hover .update-arrow, .product-card:hover .card-link b {
  transform: translate3d(3px, -3px, 0);
}

/* 面：以材质回应，不以位移回应。

   坑一：基线阴影是两层外阴影，悬停却换成 inset 描边 —— Chrome 不在
   「外阴影」和「内阴影」之间插值，于是不做过渡、直接跳终值，
   表现就是「鼠标一放上去，描边啪一下出现」。

   坑二：想用 --mx-ring 变量喂 alpha 也不行。未注册的自定义属性按离散值
   处理，推算出来仍然是跳变。

   所以直接过渡 box-shadow 本体，并让两端都是同一个影子列表结构：
   描边层从透明到可见、外阴影层从有到透明。形状 / 层数 / 位置一致才插得动。

   过渡列表里必须带 transform：卡片同时是 [data-tilt]，鼠标进入会挂
   .mx-tilting；倾角的过渡只能写在这条列表里，挂在 .mx-tilting 上会把
   其余几条整条覆盖掉（这条踩了两轮，两次都长得一模一样）。 */
.bcard, .pcard, .step, .friend-card, .rel-item, .faq-item,
.pf-project, .pf-project:nth-child(n),
.pf-row, .product-card, .device-group, .feature-item, .hz-cell, .hz-pat,
.kn-cell, .kn-dl, .kn-info, .purchase-section, .community-section {
  transition:
    background-color var(--motion-base) var(--ios-ease),
    border-color var(--motion-base) var(--ios-ease),
    box-shadow var(--motion-base) var(--ios-ease),
    rotate var(--motion-base) var(--ios-spring),
    scale var(--motion-base) var(--ios-spring);
  box-shadow:
    inset 0 0 0 1px rgba(29, 29, 31, 0),
    0 1px 2px rgba(0, 0, 0, .025),
    0 8px 24px rgba(0, 0, 0, .035);
}
/* 选择器要带上 .product-card:nth-child(3)：首页给卡片定基线阴影的是
   「.product-card, .product-card:nth-child(3)」那条，特异性 0,2,0，
   比单独的 .product-card:hover 高 —— 不一起写进来，悬停这条永远被它压住，
   描边就还是瞬间出现。 */
.bcard:hover, .pcard:hover, .step:hover, .friend-card:hover,
.device-group:hover, .feature-item:hover, .hz-cell:hover,
.product-card:hover, .product-card:nth-child(3):hover,
.pf-project:hover, .pf-project:nth-child(n):hover {
  border-color: var(--line);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 2px rgba(0, 0, 0, 0),
    0 8px 24px rgba(0, 0, 0, 0);
}
/* 深色模式：描边与阴影换成白系，否则一圈黑边在深底上看不见 */
[data-theme="dark"] :is(.bcard, .pcard, .step, .friend-card, .rel-item, .faq-item,
.pf-project, .pf-project:nth-child(n), .product-card, .device-group,
.feature-item, .hz-cell, .hz-pat, .kn-cell, .kn-dl, .kn-info,
.purchase-section, .community-section) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0),
    0 1px 2px rgba(0, 0, 0, .3),
    0 10px 28px rgba(0, 0, 0, .18);
}
[data-theme="dark"] :is(.bcard, .pcard, .step, .friend-card, .device-group,
.feature-item, .hz-cell, .product-card, .pf-project, .pf-project:nth-child(n)):hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 1px 2px rgba(0, 0, 0, 0),
    0 10px 28px rgba(0, 0, 0, 0);
}
.pf-row:hover, .rel-item:hover, .contact-chip:hover, .footer-nav a:hover {
  background: var(--surface-2);
}

/* 指针光斑：CSS 只声明形状与透明度，坐标由 motion.js 每帧写入 --px / --py。
   半径比原来大一点（300 → 340px）、浓度压到 11%：
   它是「一层薄光」，不是一张跟着鼠标跑的色块。 */
.glow::after {
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 50%),
              var(--spot), transparent 64%);
  transition: opacity var(--motion-base) var(--ios-ease);
}

/* 卡片里的画面：外框不动，画面缓推；溢出由外框裁掉，永远露不出边。 */
.pf-pj-visual, .product-card-media, .stage-cover, .shot-frame, .hz-bar-wrap,
.pf-screens .scr, .pf-preview { overflow: hidden; }
.pf-screens .scr, .product-card-image, .stage-cover img, .pf-watch-art img,
.kn-shot, .hz-bar img, .pf-pj-visual .phone-body {
  transition: transform .72s var(--motion-enter);
}
.product-card:hover .product-card-image { transform: scale(1.015); }
.pf-project:hover .pf-screens .scr { transform: scale(1.02); }
.pf-project:hover .pf-watch-art img { transform: scale(1.03); }
.pf-project:hover .pf-pj-visual .phone-body { transform: scale(1.015); }

/* 导航：底色轻抬，不做下划线滑动（那条留给阅读进度）。 */
.nav a {
  transition: color var(--motion-fast) var(--ios-ease),
              background-color var(--motion-fast) var(--ios-ease);
}
.nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a.is-active {
  transition: color var(--motion-fast) var(--ios-ease),
              background-color var(--motion-base) var(--ios-ease),
              box-shadow var(--motion-base) var(--ios-ease);
}

/* 页脚链接：颜色到位 + 2px 内缩，不产生重排。 */
.footer-nav a {
  transition: color var(--motion-fast) var(--ios-ease),
              transform var(--motion-base) var(--motion-enter);
}
.footer-nav a:hover { transform: translateX(2px); }

/* ==========================================================================
   3. 反馈 · 按压
   --------------------------------------------------------------------------
   按下必须立刻发生，松开必须立刻回位，不能留下任何 transform ——
   否则下一次布局量测会带着它。
   ========================================================================== */

.btn, .icon-btn, .theme-toggle, .lang-toggle, .back-home, .pill-btn,
.pf-row, .filter-tags button, .hz-bar-dots button, .hz-pat,
.product-card-flag, .hero-switcher button, .tabbar a {
  transition: transform var(--motion-fast) var(--motion-ease),
              background-color var(--motion-fast) var(--ios-ease),
              border-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease);
}
.btn:active, .icon-btn:active, .theme-toggle:active, .lang-toggle:active,
.back-home:active, .pill-btn:active, .pf-row:active, .filter-tags button:active,
.hz-bar-dots button:active, .hz-pat:active, .hero-switcher button:active,
.tabbar a:active {
  transform: scale(.97);
}
.btn { position: relative; overflow: hidden; }

/* 涟漪：motion.js 在 pointerdown 时插入，动画结束自行移除。
   落点用 --mx-x / --mx-y 写进元素坐标，直径按按钮对角的一半算，
   scale 到 1 时正好盖满按钮而不会溢出成方块。 */
.mx-ripple {
  position: absolute;
  left: var(--mx-x, 50%);
  top: var(--mx-y, 50%);
  width: var(--mx-r, 120px);
  height: var(--mx-r, 120px);
  margin: calc(var(--mx-r, 120px) / -2) 0 0 calc(var(--mx-r, 120px) / -2);
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  pointer-events: none;
  transform: scale(0);
  animation: mx-ripple .46s var(--ease-out) forwards;
}
@keyframes mx-ripple {
  to { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   4. 指示 · 常驻动效
   ========================================================================== */

/* 状态点：外圈是一条会扩散的环。用 transform + opacity 画，不用 box-shadow ——
   后者会让整个点每帧重绘。 */
.pill .pulse {
  position: relative;
  background: var(--mx-ok);
  box-shadow: none;
  animation: none;
}
.pill .pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--mx-ok);
  opacity: .55;
  animation: mx-ping 2.8s var(--ease-out) infinite;
}
@keyframes mx-ping {
  0%        { transform: scale(.7); opacity: .6; }
  65%, 100% { transform: scale(2.3); opacity: 0; }
}

/* 首屏视觉底下的一层光晕：跟着主色呼吸，幅度只有 6%。 */
.hero-visual { isolation: isolate; }
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(520px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mx-halo) 0%, transparent 66%);
  filter: var(--fx-blur-10);
  opacity: .5;
  pointer-events: none;
  animation: mx-breathe 9s var(--ease-in-out) infinite alternate;
}
.hero-visual > * { position: relative; z-index: 1; }
@keyframes mx-breathe {
  from { transform: scale(.94); opacity: .36; }
  to   { transform: scale(1.06); opacity: .6; }
}

/* 跑马灯：位移全在合成层，悬停/聚焦暂停方便读清楚。 */
.marquee-track { will-change: transform; }

/* 自定义指针：小点即时跟随，外环带一点阻尼。 */
.mx-dot, .mx-ring {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.mx-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent-ink);
  transition: opacity var(--motion-base) var(--ios-ease);
}
.mx-ring {
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1.5px solid var(--mx-line);
  transition: opacity var(--motion-base) var(--ios-ease),
              width var(--motion-base) var(--motion-enter),
              height var(--motion-base) var(--motion-enter),
              margin var(--motion-base) var(--motion-enter),
              background-color var(--motion-base) var(--ios-ease),
              border-color var(--motion-base) var(--ios-ease);
}
html.mx-cursor .mx-dot,
html.mx-cursor .mx-ring { opacity: 1; }
html.mx-cursor.mx-pointer-link .mx-ring {
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: var(--accent-soft);
  border-color: transparent;
}
html.mx-cursor.mx-pointer-down .mx-ring {
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
}
html.mx-cursor.mx-cursor-out .mx-dot,
html.mx-cursor.mx-cursor-out .mx-ring { opacity: 0; }

/* 替代指针生效时隐藏系统指针；输入类控件仍用系统光标定位。 */
html.mx-cursor,
html.mx-cursor * { cursor: none !important; }
html.mx-cursor :is(input, textarea, select, [contenteditable]),
html.mx-cursor :is(input, textarea, select, [contenteditable]) * {
  cursor: auto !important;
}

/* 指针聚光：一层很薄的径向光，跟着指针在页面底层移动。 */
.mx-spot {
  position: fixed;
  z-index: -1;
  top: 0; left: 0;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, var(--spot) 0%, transparent 62%);
  transition: opacity .5s var(--ios-ease);
  will-change: transform;
}
html.mx-cursor .mx-spot { opacity: 1; }

/* ==========================================================================
   5. 指示 · 指针倾斜与磁吸
   --------------------------------------------------------------------------
   倾角只在 .mx-tilting 期间存在：JS 在 pointerenter 时挂上、离开后摘掉。
   这样一百多个 [data-tilt] 平时都没有 transform，不会凭空多出一百多个合成层。
   角度上限 2.4°，再大就是玩具。

   ⚠ 倾角用独立的 rotate / scale 属性，不写 transform。
   原因：卡片自己的 transition 列表里带着 rotate / scale（悬停时被 .mx-tilting
   触发），而 transform 是**单个**属性 —— 倾斜若也走 transform，两者会争同一个
   属性，Chrome 会在同一帧把刚起的 box-shadow 过渡 cancel 掉
   （实测：transitionrun 紧接着 transitioncancel，描边瞬间到终值）。
   rotate / scale 是独立可动画属性，与 transform 并行，互不干扰。

   静止态也要有同构初始值（0deg），否则 none → matrix3d 需要矩阵分解，
   实测直接跳变。 */
.js.mx [data-tilt] {
  perspective: var(--mx-p, 1400px);
  rotate: x 0deg y 0deg;
  scale: 1;
}
.js.mx [data-tilt].mx-tilting {
  rotate: x var(--mx-rx, 0deg) y var(--mx-ry, 0deg);
  scale: var(--mx-scale, 1);
  will-change: rotate, scale;
}
.js.mx [data-tilt].mx-tilting:active { --mx-scale: .988; }

/* 磁吸：主按钮朝指针方向轻挪几像素，松开回位（--mx-tx / --mx-ty 由 JS 写入）。 */
.js.mx .btn-primary.mx-magnetic {
  transform: translate3d(var(--mx-tx, 0), var(--mx-ty, 0), 0) scale(var(--mx-scale, 1));
  transition: transform 300ms var(--ease-out),
              background-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease);
}
.js.mx .btn-primary.mx-magnetic:active { --mx-scale: .97; }

/* ==========================================================================
   6. 过渡 · 开屏 / 换页 / 换主题
   --------------------------------------------------------------------------
   全部用自绘幕布，不用原生 View Transition：Kanami 页里嵌着哔哩哔哩播放器，
   跨文档快照会把它拍成一块空白；幕布盖住整个视口没有这个问题，而且两站
   之间（跨源）也能用同一套手势。
   ========================================================================== */

.mx-curtain {
  position: fixed;
  z-index: 9990;
  inset: 0;
  pointer-events: none;
  background: var(--bg);
  transform: translate3d(0, 101%, 0);
  transition: transform .44s var(--motion-curtain);
  will-change: transform;
}
.mx-curtain::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mx-line), transparent);
}
html.mx-nav-out .mx-curtain { transform: translate3d(0, 0, 0); }
html.mx-nav-out { overflow: hidden; }

/* 开屏（每个会话首次进入、以及站内跳转落地时出现）：
   <head> 的内联脚本按会话状态给 <html> 挂 mx-boot（首次进入，完整档）或
   mx-boot-quick（站内跳转落地，快速档）。幕布在首帧之前就存在，所以不会
   有内容先闪一下再被盖住。

   升起动作由 motion.js 用真实时间驱动 —— CSS 的 animation-delay 在后台
   标签页里照走，动画会在用户看到之前就放完。这里的 animation 只是
   「JS 没跑起来」时的兜底，时间取得比 JS 的晚一档。 */
html.mx-boot[data-mx-boot]::before,
html.mx-boot[data-mx-boot]::after {
  content: "";
  position: fixed;
  z-index: 9995;
  pointer-events: none;
  will-change: transform;
}
html.mx-boot[data-mx-boot]::before {
  inset: 0;
  background-color: var(--bg);
  background-image: var(--mx-mark);
  background-repeat: no-repeat;
  background-position: 50% calc(50% - 26px);
  background-size: 54px 54px;
  animation: mx-lift .6s var(--motion-curtain) 1.15s forwards;
}
/* 进度条：用 clip-path 从 0 拉到满，把 transform 留给「升起」那一步，
   两者才不会互相覆盖。 */
html.mx-boot[data-mx-boot]::after {
  left: 50%;
  top: calc(50% + 22px);
  width: 64px;
  height: 1.5px;
  margin-left: -32px;
  border-radius: 2px;
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  animation: mx-load .9s cubic-bezier(.3, .9, .4, 1) .1s forwards,
             mx-lift .6s var(--motion-curtain) 1.15s forwards;
}
/* 快速档：站内跳转落地，不重播完整开屏，几乎立刻就掀开。
   ::before 上只有一条 mx-lift，所以这里也只给一个时长/延迟 ——
   之前写了两个值，第二个挂在并不存在的第二条动画上，纯属误导。 */
html.mx-boot[data-mx-boot="quick"]::before {
  background-size: 40px 40px;
  animation-duration: .3s;
  animation-delay: .2s;
}
html.mx-boot[data-mx-boot="quick"]::after { display: none; }

@keyframes mx-lift {
  to { transform: translate3d(0, -101%, 0); }
}
@keyframes mx-load {
  to { clip-path: inset(0 0 0 0); }
}

/* motion.js 开始掀幕的瞬间挂 mx-reveal：把兜底动画换成可被 JS 计时的过渡 */
html.mx-boot.mx-reveal::before {
  animation: none;
  transform: translate3d(0, -101%, 0);
  transition: transform var(--mx-lift, .6s) var(--motion-curtain);
}
html.mx-boot.mx-reveal::after {
  animation: none;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, -101%, 0);
  transition: transform var(--mx-lift, .6s) var(--motion-curtain);
}
html.mx-boot[data-mx-boot="quick"].mx-reveal { --mx-lift: .3s; }

/* 换主题：从按钮位置散开的一层淡色墨晕，与底色过渡同时发生。
   只动 opacity / transform，不参与重排。 */
html.mx-theme::after {
  content: "";
  position: fixed;
  z-index: 9994;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx-tx, 50%) var(--mx-ty, 0%),
              var(--mx-halo), transparent 44%);
  animation: mx-ink .56s var(--ease-out) forwards;
}
@keyframes mx-ink {
  from { opacity: 0; transform: scale(.92); }
  40%  { opacity: .8; }
  to   { opacity: 0; transform: scale(1.06); }
}

/* ==========================================================================
   7. 降级
   ========================================================================== */

/* 弱机：去掉所有「持续消耗」的东西，保留入场与反馈。
   持续动画（呼吸光、呼吸点）在弱机上纯属开销；
   入场是一次性 transform/opacity，留着不心疼。 */
html.fx-lite .hero-visual::after,
html.fx-lite .pill .pulse::after,
html.fx-lite .mx-spot { display: none; }
html.fx-lite .marquee-track { animation-duration: 0s; }
html.fx-lite [data-tilt].mx-tilting { rotate: none !important; scale: none !important; }
html.fx-lite .mx-curtain { transition-duration: .2s; }
html.fx-lite.mx-boot[data-mx-boot]::before { animation-duration: .22s; animation-delay: .3s; }
html.fx-lite.mx-boot[data-mx-boot]::after { animation-duration: .2s, .22s; animation-delay: .06s, .3s; }

/* 触屏：没有悬停这件事，指针类效果一律不出现。 */
@media (hover: none) {
  .mx-dot, .mx-ring, .mx-spot { display: none !important; }
  html.mx-cursor, html.mx-cursor * { cursor: auto !important; }
  .js.mx [data-tilt].mx-tilting { rotate: none !important; scale: none !important; }
  .glow::after { display: none; }
  .js.mx .hero-visual .float-chip { display: none; }
}

/* 浮签只在宽屏 + 真指针上出现：窄屏上它们会压到屏幕上。 */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .hero-visual .float-chip { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .js.mx :is(.reveal, .reveal.in, [data-anim], .pf-row, .float-chip, .reveal-title) {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .btn:active, .icon-btn:active, .theme-toggle:active, .lang-toggle:active,
  .back-home:active, .pill-btn:active, .pf-row:active,
  .filter-tags button:active, .hz-bar-dots button:active,
  .hz-pat:active, .hero-switcher button:active,
  .product-card:hover .product-card-image,
  .pf-project:hover .pf-screens .scr,
  .pf-project:hover .pf-watch-art img,
  .pf-project:hover .pf-pj-visual .phone-body,
  .rel-item:hover .rel-arrow,
  .pf-row:hover .pf-row-go .ic,
  .footer-nav a:hover {
    transform: none !important;
    transition: none !important;
  }
  .js.mx.mx-ready .hero-ready .phone { animation: none !important; }
  .hero-visual::after,
  .pill .pulse::after { animation: none !important; }
  .mx-dot, .mx-ring, .mx-spot, .mx-curtain { display: none !important; }
  html.mx-cursor, html.mx-cursor * { cursor: auto !important; }
  html.mx-boot::before,
  html.mx-boot::after { display: none !important; }
  html.mx-theme::after { display: none !important; }
  .mx-ripple { display: none !important; }
  .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
  /* 减弱动效下没有开屏，入场立刻放行 —— 不能让 mx-ready 等一个不存在的幕布 */
  .js.mx :is(.reveal, [data-anim], .pf-row, .float-chip) { opacity: 1 !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-stuck, .tabbar, .actionbar {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media print {
  .mx-dot, .mx-ring, .mx-spot, .mx-curtain { display: none !important; }
}

/* Low-contrast brand light, composited on a single moving layer. */
:root {
  --mx-wash-a: color-mix(in srgb, var(--accent) 22%, transparent);
  --mx-wash-b: color-mix(in srgb, var(--teal) 16%, transparent);
}
html[data-accent="rose"] {
  --mx-wash-a: color-mix(in srgb, #c2465b 21%, transparent);
  --mx-wash-b: color-mix(in srgb, #0b7e7e 15%, transparent);
}
html[data-accent="amber"] {
  --mx-wash-a: color-mix(in srgb, #a05a00 19%, transparent);
  --mx-wash-b: color-mix(in srgb, #0b7e7e 15%, transparent);
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 24%, var(--mx-wash-a) 0, transparent 44%),
    radial-gradient(ellipse at 78% 64%, var(--mx-wash-b) 0, transparent 46%);
  opacity: .78;
  transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  animation: mx-color-drift 34s ease-in-out infinite alternate;
}
@keyframes mx-color-drift {
  to { transform: translate3d(1.5%, 1%, 0) scale(1.05); }
}
html.fx-lite body::before { animation: none; }
@media (max-width: 820px) {
  body::before { opacity: .66; }
}
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
@media print {
  body::before { display: none; }
}
