/* Dmin 去色罩 — 产品网站样式
   深色中性灰。照片是主角，也是页面上唯一的颜色来源。
   “液态玻璃”只用在真正浮在内容上方的层：导航条、弹出菜单、压在照片上的文字板、
   对比滑块的标签和把手、可选择的方案卡片、结尾行动区。列表和正文不用玻璃。 */

:root {
  color-scheme: dark;

  --bg: #121214;
  --bg-raised: #17171a;
  --text: #ededf0;
  --text-2: rgba(237, 237, 240, 0.74);
  --text-3: rgba(237, 237, 240, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);

  /* 液态玻璃 */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  --glass-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  --glass-fallback: #222225;
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75), 0 2px 10px -4px rgba(0, 0, 0, 0.35);
  --blur: blur(28px) saturate(140%);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;

  --gutter: 16px;
  --maxw: 1160px;
  --header-h: 64px;

  /* 字号只用这七档，页面上不再出现一次性的数值 */
  --fs-caption: 0.8125rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-headline: 1.25rem;
  --fs-title: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  --fs-display: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);

  /* 动效：强 ease-out 用于进入和按压反馈，颜色变化用 ease */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 100ms;
  --fade: 200ms;

  --cjk: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, var(--cjk);
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, var(--cjk);
}

:lang(ja) {
  --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--bg);
  accent-color: #e9e9ec;
  caret-color: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

:lang(zh) body, body:lang(zh) { line-height: 1.75; }
:lang(ja) body, body:lang(ja) { line-height: 1.8; line-break: strict; }

::selection { background: rgba(236, 236, 239, 0.9); color: #121214; }

/* 背景：中性灰的柔光 + 极淡的颗粒，让玻璃有东西可以“透” */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 12% -8%, rgba(255, 255, 255, 0.1), transparent 62%),
    radial-gradient(45vmax 38vmax at 105% 18%, rgba(255, 255, 255, 0.055), transparent 60%),
    radial-gradient(70vmax 45vmax at 50% 115%, rgba(255, 255, 255, 0.045), transparent 60%),
    linear-gradient(180deg, #18181b 0%, #111113 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
:lang(zh) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3) { letter-spacing: 0.01em; line-height: 1.3; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: calc(820px + var(--gutter) * 2); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f2f2f4;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 标题里不希望被拆开的词组 */
.nw { display: inline-block; }

/* ---------- 液态玻璃 ---------- */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  border-radius: var(--r-lg);
}

.glass-strong { background: var(--glass-bg-strong); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-fallback); }
  .hero-plate { background: rgba(24, 24, 27, 0.94); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-strong, .hero-plate {
    background: var(--glass-fallback);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .bar { background: #1d1d20; }
}

/* ---------- 占位 ---------- */

/* 文字占位：上线前必须替换 */
.ph {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92em;
  line-height: 1.55;
  vertical-align: baseline;
  white-space: normal;
}

/* 图片占位 */
.ph-img {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 3 / 2);
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px),
    #1e1e21;
  color: var(--text-2);
  text-align: center;
  border-radius: inherit;
}
.ph-img::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: max(calc(var(--r-lg) - 10px), 8px);
  pointer-events: none;
}
.ph-inner { display: grid; gap: 6px; justify-items: center; max-width: 34ch; }
.ph-id {
  font: 600 0.75rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
}
.ph-need { font-weight: 600; color: var(--text); font-size: var(--fs-body); line-height: 1.45; }
.ph-size { font-size: var(--fs-caption); color: var(--text-3); }

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: var(--ratio, auto);
  border-radius: inherit;
}

/* ---------- 按钮 ---------- */

/* 下载按钮的文字跟随访客的系统。data-os 由 <head> 里的脚本写入，没有这个属性时显示通用文案。 */
.os-windows, .os-mac, [data-os] .os-any { display: none; }
[data-os="windows"] .os-windows, [data-os="mac"] .os-mac { display: inline; }
/* Mac 访客打开下载页时，macOS 卡片排在前面。 */
[data-os="mac"] #mac { order: -1; }

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--h);
  padding: 0 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--press) var(--ease-out),
    background-color var(--fade) ease,
    border-color var(--fade) ease,
    color var(--fade) ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: #f0f0f2;
  color: #121214;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.btn-sm { --h: 40px; padding: 0 1.1em; font-size: var(--fs-small); }
.btn-lg { --h: 54px; padding: 0 1.6em; font-size: var(--fs-body); }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; }

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text-3);
  box-shadow: none;
}
.btn[aria-disabled="true"]:active { transform: none; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #ffffff; }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); }
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}

.site-header .bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 8px 8px 18px;
  border-radius: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.brand-mark { width: 28px; height: 28px; flex: none; }

.nav { display: flex; gap: 2px; }
.nav a, .menu-panel nav a {
  text-decoration: none;
  color: var(--text-2);
  border-radius: 999px;
  transition: background-color var(--fade) ease, color var(--fade) ease;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: var(--fs-small);
  font-weight: 550;
}
.nav a[aria-current="page"], .menu-panel nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .menu-panel nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
}

.bar-end { display: flex; align-items: center; gap: 8px; }

/* 弹出层（语言、手机菜单）：<details> 实现，没有 JS 也能用 */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 550;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--fade) ease, color var(--fade) ease, transform var(--press) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip svg { width: 17px; height: 17px; flex: none; }
.chip .chev { width: 14px; height: 14px; transition: transform var(--fade) var(--ease-out); }
.pop[open] > .chip { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.pop[open] > .chip .chev { transform: rotate(180deg); }
.chip-icon { padding: 0; justify-content: center; width: 44px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
}

.pop-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(46, 46, 50, 0.94), rgba(30, 30, 33, 0.96));
  transform-origin: top right;
  animation: pop-in 180ms var(--ease-out);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
}
@keyframes fade-in {
  from { opacity: 0; }
}

.lang-list { list-style: none; display: grid; gap: 2px; }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-2);
  transition: background-color var(--fade) ease, color var(--fade) ease;
}
.lang-list a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.lang-list a[aria-current="true"]::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .lang-list a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
}

/* 手机菜单面板占满导航条宽度，从右上角的菜单按钮展开 */
.menu { position: static; display: none; }
.menu-panel {
  left: 0;
  right: 0;
  padding: 10px;
  border-radius: 24px;
}
.menu-panel nav { display: grid; gap: 2px; margin-bottom: 10px; }
.menu-panel nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: var(--fs-body);
  font-weight: 550;
  border-radius: 14px;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 540px) {
  .bar-end .hide-sm { display: none; }
  .site-header .bar { padding-left: 14px; }
}

/* ---------- 版块通用 ---------- */

main { display: block; }

.section { padding-block: clamp(72px, 10vw, 128px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-title); }
.section-head p { color: var(--text-2); font-size: var(--fs-body); }

.page-head { padding-block: clamp(48px, 8vw, 96px) 0; }
.page-head h1 { font-size: var(--fs-display); }
.page-head .lead { color: var(--text-2); font-size: var(--fs-lead); max-width: 62ch; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin-inline: auto; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 480px) {
  .actions { width: 100%; flex-direction: column; }
  .actions .btn { width: 100%; white-space: normal; }
}

.fineprint { margin-top: 18px; color: var(--text-3); font-size: var(--fs-small); }

/* ---------- 首页：对比照片就是首屏 ---------- */

.hero { padding-top: 16px; }

.stage { position: relative; }

.ba {
  position: relative;
  margin: 0;
  height: clamp(560px, calc(100svh - 112px), 820px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  background: #1a1a1d;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.ba-layer { position: absolute; inset: 0; border-radius: inherit; }
.ba-layer > * { height: 100%; }
/* 初始分割线位置要和 render.mjs 里 .ba-range 的 value 一致 */
.ba-after { clip-path: inset(0 0 0 38%); }
.ba img { pointer-events: none; -webkit-user-drag: none; }

.ba-layer .ph-img { aspect-ratio: auto; align-items: start; padding-top: clamp(72px, 9vh, 112px); }
.ba-before .ph-img {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, transparent 14px 28px), #2a2a2e;
  justify-items: start;
  padding-left: clamp(28px, 6%, 72px);
}
.ba-after .ph-img {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px), #19191c;
  justify-items: end;
  padding-right: clamp(28px, 6%, 72px);
}
.ba-before .ph-inner, .ba-after .ph-inner { max-width: min(36%, 30ch); }
.ba-before .ph-inner { justify-items: start; text-align: left; }
.ba-after .ph-inner { justify-items: end; text-align: right; }

/* 把手整层随位置平移（transform），不触发布局 */
.ba-handle {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateX(38%);
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 18px rgba(0, 0, 0, 0.35);
}
.ba-knob {
  position: absolute;
  top: 34%;
  left: 0;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #fff;
  transition: transform var(--press) var(--ease-out), background-color var(--fade) ease;
}
.ba-knob svg { width: 22px; height: 22px; }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(0.94); background: rgba(255, 255, 255, 0.24); }
.ba-range:focus-visible ~ .ba-handle .ba-knob { outline: 2px solid #fff; outline-offset: 3px; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ba-tag {
  position: absolute;
  top: 18px;
  z-index: 4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text);
  background: rgba(20, 20, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: none;
}
.ba-tag-l { left: 18px; }
.ba-tag-r { right: 18px; }

/* 压在照片上的文字板：玻璃在这里有实际用途——让字在任何照片上都读得清 */
.hero-plate {
  position: absolute;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 5;
  width: min(400px, 34%); /* 不超过画面的 34%，让中间的主体（现在是富士山）露在板子右边 */
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(34, 34, 37, 0.72), rgba(20, 20, 22, 0.8));
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
}
.hero-plate h1 {
  font-size: var(--fs-title);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.45em;
}
:lang(zh) .hero-plate h1 { line-height: 1.22; letter-spacing: 0.02em; }
:lang(ja) .hero-plate h1 { line-height: 1.28; letter-spacing: 0.01em; font-size: var(--fs-display); }
.hero-plate .lead {
  color: var(--text-2);
  font-size: var(--fs-small);
  margin-bottom: 18px;
  max-width: 40ch;
}
.facts { margin: 16px 0 0; color: var(--text-3); font-size: var(--fs-caption); line-height: 1.6; }
/* 名字来历：放在对比图下方一行，不占文字板 */
.hero-note { margin: 14px 6px 0; color: var(--text-3); font-size: var(--fs-caption); line-height: 1.6; text-align: center; text-wrap: balance; }
/* 电脑上对比图按高度裁切正方形原图：--ba-pos 决定露出哪一段（现在的富士山照片主体在画面中段，往下取一点让山顶露在文字板上方）。换照片时改这里。 */
.ba { --ba-pos: 50% 68%; }
.ba .media-img { object-position: var(--ba-pos); }

@media (max-width: 900px) {
  .ba { height: auto; aspect-ratio: 4 / 3; --ba-pos: 50% 50%; }
  .ba-knob { top: 50%; }
  .hero-plate {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -64px 12px 0;
  }
}
@media (max-width: 640px) {
  .ba { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .ba-knob { top: 42%; width: 46px; height: 46px; }
  .ba-layer .ph-img { padding-top: 54px; }
  .ba-before .ph-img { padding-left: 16px; }
  .ba-after .ph-img { padding-right: 16px; }
  .ba-before .ph-inner, .ba-after .ph-inner { max-width: 40%; }
  .ba-layer .ph-need { font-size: var(--fs-caption); }
  .ba-layer .ph-size { display: none; }
  .ba-tag { top: 12px; font-size: var(--fs-caption); padding: 5px 11px; }
  .ba-tag-l { left: 12px; }
  .ba-tag-r { right: 12px; }
  .hero-plate { margin: -40px 8px 0; padding: 22px 20px 24px; border-radius: 24px; }
}

/* ---------- 规格列表（细线分隔，不用卡片） ---------- */

.split { display: grid; gap: 0 clamp(32px, 6vw, 96px); }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 0 clamp(24px, 4vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.spec-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-list li { padding: 24px 0 32px; border-top: 1px solid var(--line-2); }
.spec-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lead);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
:lang(zh) .spec-list h3, :lang(ja) .spec-list h3 { letter-spacing: 0.01em; }
.spec-list h3 svg { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.spec-list p { color: var(--text-2); font-size: var(--fs-body); max-width: 46ch; }

@media (max-width: 860px) {
  .spec-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .spec-list, .spec-3 { grid-template-columns: 1fr; }
  .spec-list li { padding: 20px 0 24px; }
}

/* ---------- 步骤（顺序本身有意义，所以保留编号） ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 40px clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step { position: relative; padding-top: 36px; border-top: 1px solid var(--line-2); }
.step-num {
  position: absolute;
  top: -16px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  font-size: var(--fs-caption);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.step h3 { font-size: var(--fs-lead); margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: var(--fs-body); max-width: 40ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* 截图框 */
.frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 90px -45px rgba(0, 0, 0, 0.85);
  background: #1a1a1d;
}
@media (max-width: 640px) {
  .frame { border-radius: var(--r-lg); }
}

/* 结尾行动区 */
.cta-panel {
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  text-align: center;
  display: grid;
  justify-items: center;
}
.cta-panel h2 { font-size: var(--fs-title); }
.cta-panel p { color: var(--text-2); max-width: 52ch; margin-bottom: 26px; }
.cta-panel .actions { justify-content: center; }

/* ---------- 功能页 ---------- */

.feature-rows { display: grid; gap: clamp(64px, 9vw, 120px); padding-top: clamp(48px, 7vw, 80px); }
.feature-row {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 5fr 7fr; }
  .feature-row.flip { grid-template-columns: 7fr 5fr; }
  .feature-row.flip .feature-text { order: 2; }
}
.feature-text h2 { font-size: var(--fs-title); }
.feature-text p { color: var(--text-2); font-size: var(--fs-body); max-width: 52ch; }

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.note > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--text-2); }
.note h2 { font-size: var(--fs-body); margin-bottom: 4px; letter-spacing: 0; }
.note p { color: var(--text-2); }

/* ---------- 价格页 ---------- */

.plans {
  display: grid;
  gap: 18px;
  padding-top: clamp(36px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 900px;
  margin-inline: auto;
}
.plan { padding: clamp(26px, 4vw, 38px); display: flex; flex-direction: column; border-radius: var(--r-xl); }
.plan-name { font-size: var(--fs-lead); margin-bottom: 14px; color: var(--text-2); font-weight: 600; letter-spacing: 0; }
.plan-price {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.plan-price .ph { font-size: 0.5em; letter-spacing: 0; vertical-align: middle; font-weight: 600; }
.plan-note { color: var(--text-3); font-size: var(--fs-small); margin-bottom: 26px; min-height: 1.6em; }
.plan-early { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; margin: -12px 0 24px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.plan-list { list-style: none; display: grid; align-content: start; gap: 12px; margin-bottom: 30px; flex: 1; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.plan-list li svg { width: 18px; height: 18px; flex: none; margin-top: 0.22em; color: var(--text); }
.plan-list li.is-limit, .plan-list li.is-limit svg { color: var(--text-3); }
.plan-foot { margin-top: 12px; text-align: center; color: var(--text-3); font-size: var(--fs-caption); }
.checkout-fail { color: var(--text); font-size: var(--fs-small); }
.checkout-fail[hidden], .checkout-done[hidden] { display: none; }
.checkout-done { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); max-width: 640px; margin-inline: auto; text-align: center; outline: none; }
.checkout-done h2 { font-size: var(--fs-headline); margin: 0 0 10px; }
.checkout-done p { margin: 0; color: var(--text-2); }
.plan-pro { background: var(--glass-bg-strong); border-color: rgba(255, 255, 255, 0.2); }

/* ---------- 下载页 ---------- */

.dl-grid {
  display: grid;
  gap: 18px;
  padding-top: clamp(36px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.dl-card { padding: clamp(26px, 4vw, 38px); display: flex; flex-direction: column; border-radius: var(--r-xl); }
.dl-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 22px; }
.dl-card h2 { font-size: var(--fs-headline); margin: 0; }
.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.icon-badge svg { width: 22px; height: 22px; }
.badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.badge-on { background: rgba(255, 255, 255, 0.92); color: #121214; border-color: transparent; }
.dl-meta { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; color: var(--text-2); font-size: var(--fs-small); flex: 1; align-content: start; }
.dl-card .fineprint { text-align: center; margin-top: 14px; }
/* 两张卡片共用同一组行：不管上下的文字有多少，下载按钮都在同一高度 */
@supports (grid-template-rows: subgrid) {
  .dl-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.is-soon h2 { color: var(--text-2); }

.two-col {
  display: grid;
  gap: 40px clamp(32px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.panel h2 { font-size: var(--fs-headline); }
.panel > p { color: var(--text-2); }
.two-col .panel { padding-top: 24px; border-top: 1px solid var(--line-2); }
.panel.glass { padding: clamp(24px, 4vw, 36px); border-radius: var(--r-xl); }

.num-list { list-style: none; display: grid; gap: 14px; counter-reset: n; margin-top: 18px; }
.num-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); counter-increment: n; }
.num-list li::before {
  content: counter(n);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 0.05em;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: var(--fs-caption);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dot-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.dot-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.dot-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: var(--text-2);
}

/* ---------- 常见问题（细线分隔的折叠列表） ---------- */

.faq-list { padding-top: clamp(32px, 5vw, 48px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  font-weight: 600;
  font-size: var(--fs-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--fade) ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .plus { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform var(--fade) var(--ease-out), color var(--fade) ease; }
.faq-item[open] > summary .plus { transform: rotate(45deg); color: var(--text); }
.faq-item .answer { padding: 0 4px 22px; color: var(--text-2); max-width: 68ch; }
.faq-item[open] .answer { animation: fade-in 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .faq-item > summary:hover .plus { color: var(--text); }
}

.contact-card { display: grid; gap: 14px; margin-top: 22px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.contact-row dt { color: var(--text-3); font-size: var(--fs-small); min-width: 7em; }
.contact-row dd { margin: 0; }

/* ---------- 隐私 ---------- */

.prose { margin-top: clamp(32px, 5vw, 48px); }
.prose section { padding-block: 28px; border-top: 1px solid var(--line); }
.prose h2 { font-size: var(--fs-lead); letter-spacing: 0; margin-bottom: 8px; }
.prose p { color: var(--text-2); max-width: 68ch; }
.prose-list { list-style: disc; display: grid; gap: 6px; padding-left: 1.25em; color: var(--text-2); max-width: 68ch; }
.prose-list li::marker { color: var(--text-3); }
.prose-steps { list-style: decimal; }
.prose-note { margin-top: 12px; color: var(--text-3); font-size: var(--fs-small); }
.updated { color: var(--text-3); font-size: var(--fs-small); margin-top: 8px; }

/* 特定商取引法に基づく表記：两栏表 */
.legal-table { margin: clamp(32px, 5vw, 48px) 0 0; display: grid; }
.legal-row { display: grid; grid-template-columns: minmax(10em, 0.32fr) 1fr; gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.legal-row dt { color: var(--text-3); font-size: var(--fs-small); }
.legal-row dd { margin: 0; color: var(--text-2); max-width: 68ch; }
@media (max-width: 600px) { .legal-row { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */

.site-footer { margin-top: clamp(80px, 11vw, 144px); padding-bottom: 36px; }
.footer-inner {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.footer-brand { grid-column: span 2; min-width: 0; }
@media (max-width: 520px) { .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { margin-bottom: 8px; }
.footer-brand p { color: var(--text-3); font-size: var(--fs-small); max-width: 24em; }
.footer-col h2 {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color var(--fade) ease;
}
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--text); } }
.footer-col a[aria-current="true"] { color: var(--text); }
.footer-base { padding-top: 28px; color: var(--text-3); font-size: var(--fs-caption); }

/* ---------- 语言选择页（根目录）与 404 ---------- */

.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}
.chooser-card { width: 100%; max-width: 440px; padding: 32px; border-radius: var(--r-xl); text-align: center; }
.chooser-card .brand { margin: 0 auto 22px; justify-content: center; }
.chooser-card .lang-list a { min-height: 52px; font-size: var(--fs-body); border: 1px solid var(--line); }
.chooser-card .lang-list { gap: 8px; }

.nf section { text-align: left; padding: 14px 4px; border-top: 1px solid var(--line); }
.nf h2 { font-size: var(--fs-body); margin-bottom: 4px; letter-spacing: 0; }
.nf a { color: var(--text-2); }

/* ---------- 减少动态效果：去掉位移和缩放，保留帮助理解的淡入淡出 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .chip:active { transform: none; }
  .pop-panel { animation-name: fade-in; }
  .chip .chev, .faq-item > summary .plus { transition: color var(--fade) ease; }
  .ba.is-dragging .ba-knob { transform: translate(-50%, -50%); }
}
