/* 首屏沿用确认稿的自然高度。装置下半部跨入紧随其后的浅灰带。 */
.hero {
  position: relative;
  z-index: 1;
  padding: 36px var(--gutter) 0;
  text-align: center;
  overflow-x: clip;
}
.hero__copy { position: relative; z-index: 2; }
.hero__icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: var(--r-squircle);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow-1), 0 10px 24px -10px var(--shadow-2);
}
.preview-mark { background: var(--bg-panel-2); color: var(--text); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw + .5rem, 48px);
  line-height: 1.12;
  letter-spacing: var(--track-display);
}
.lede {
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-muted);
}
.lede strong { color: var(--text); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.hero .btn { min-height: 46px; }
.hero .btn--ghost svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips, .fact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.chips li, .fact-pills li, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 18px;
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}
.fact-pills--start { justify-content: flex-start; }
.badge--accent { background: var(--sky-mist); color: var(--accent-dark); }
.badge--status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--success);
}
.platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 24px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.platforms li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.platforms a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); text-decoration: none; }
.platforms a:hover { color: var(--accent-dark); }
.platforms__ico { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.platforms__sep { width: 1px; height: 14px; background: var(--border); }
.platforms__store {
  padding: 0 10px;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-weight: var(--weight-semibold);
  font-size: 12px;
}
.platforms__note { font-size: 12px; color: var(--text-muted); }
.horizon {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg), var(--bg-panel-2));
  color: var(--text);
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 50% 18%, var(--mask) 28%, var(--clear) 100%);
  mask-image: radial-gradient(ellipse 50% 90% at 50% 18%, var(--mask) 28%, var(--clear) 100%);
}
.horizon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2400px;
  height: 300px;
  margin-left: -1200px;
  background-image: linear-gradient(var(--grid) 1px, var(--clear) 1px), linear-gradient(90deg, var(--grid) 1px, var(--clear) 1px);
  background-size: 72px 36px;
  background-position: center top;
  transform: perspective(360px) rotateX(68deg);
  transform-origin: 50% 0;
}
.horizon::after {
  content: "";
  position: absolute;
  inset: 0 8% auto;
  height: 1px;
  background: linear-gradient(90deg, var(--clear), var(--border), var(--clear));
}
.stage {
  --s: 1;
  position: relative;
  z-index: 2;
  width: calc(656px * var(--s));
  height: calc(398px * var(--s));
  margin: 0 auto calc(-208px * var(--s));
}
.stage--screenshot { display: flex; justify-content: center; }
.stage--screenshot .official-shot { width: auto; height: 100%; object-fit: contain; margin: 0; }
.stage::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 2%;
  bottom: calc(-22px * var(--s));
  height: calc(48px * var(--s));
  z-index: 0;
  background: radial-gradient(closest-side, var(--shadow-contact), var(--clear));
  opacity: .55;
}
.ipad {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: calc(540px * var(--s));
  height: calc(386px * var(--s));
  padding: calc(14px * var(--s));
  border: 1px solid var(--device-edge);
  border-radius: var(--r-device);
  background: linear-gradient(180deg, var(--bg), var(--bg-panel-2));
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--bg), 0 1px 2px var(--shadow-1), 0 18px 36px -14px var(--shadow-2), 0 56px 110px -28px var(--shadow-cool);
}
.ipad::before {
  content: "";
  position: absolute;
  top: calc(5px * var(--s));
  left: 50%;
  width: calc(5px * var(--s));
  height: calc(5px * var(--s));
  margin-left: calc(-2.5px * var(--s));
  border-radius: var(--r-pill);
  background: var(--device-edge);
}
.ipad__screen {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-screen);
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-wash) 0, var(--sky-mist) calc(40px * var(--s)), var(--bg) calc(104px * var(--s)));
  color: var(--text);
}
.conf {
  margin: 0;
  padding: 0 0 calc(18px * var(--s)) calc(62px * var(--s));
  list-style: none;
  counter-reset: ln;
  text-align: left;
  font-family: var(--font-mono);
  font-size: calc(17px * var(--s));
  line-height: calc(36px * var(--s));
  font-weight: var(--weight-medium);
  color: var(--text);
  white-space: nowrap;
}
.conf li { counter-increment: ln; display: flex; margin: 0; }
.conf li::before {
  content: counter(ln);
  width: calc(32px * var(--s));
  flex-shrink: 0;
  color: var(--line-no);
  font-weight: var(--weight-regular);
}
.conf .k { color: var(--accent); font-weight: var(--weight-bold); }
.conf .p { color: var(--text-muted); }
.conf .pol { color: var(--text); font-weight: var(--weight-bold); }
.iphone {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: calc(172px * var(--s));
  height: calc(350px * var(--s));
  padding: calc(8px * var(--s));
  border: 1px solid var(--device-edge);
  border-radius: var(--r-device-phone);
  background: linear-gradient(180deg, var(--bg), var(--bg-panel-2));
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--bg), 0 1px 2px var(--shadow-1), 0 16px 30px -12px var(--shadow-3), 0 40px 80px -24px var(--shadow-cool);
}
.iphone__screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(20px * var(--s));
  padding: 0 calc(12px * var(--s));
  border: 1px solid var(--border);
  border-radius: calc(var(--r-device-phone) - 8px);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(165deg, var(--sky-wash), var(--sky-mist) 38%, var(--bg-panel-2) 72%, var(--bg));
  color: var(--text);
}
.iphone__screen::before {
  content: "";
  position: absolute;
  top: calc(9px * var(--s));
  left: 50%;
  width: calc(46px * var(--s));
  height: calc(13px * var(--s));
  margin-left: calc(-23px * var(--s));
  border-radius: var(--r-pill);
  background: var(--text);
}
.iphone__screen::after {
  content: "";
  position: absolute;
  bottom: calc(7px * var(--s));
  left: 50%;
  width: calc(54px * var(--s));
  height: calc(4px * var(--s));
  margin-left: calc(-27px * var(--s));
  border-radius: var(--r-pill);
  background: var(--text);
  opacity: .75;
}
.verify { margin: 0; }
.verify dt { margin: 0 0 calc(4px * var(--s)); font: calc(9.5px * var(--s))/1.3 var(--font-mono); letter-spacing: .04em; color: var(--text-muted); }
.verify dd { margin: 0; font: var(--weight-display) calc(12.5px * var(--s))/1.35 var(--font-display); letter-spacing: var(--track-small); color: var(--text); }
.verify dd.mono { font-family: var(--font-mono); font-weight: var(--weight-bold); letter-spacing: 0; }
.band { position: relative; z-index: 0; background: var(--bg-panel); color: var(--text); }
.band__inner { max-width: 760px; margin: 0 auto; padding: calc(208px + 120px) var(--gutter) 160px; text-align: center; }
.band__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: var(--weight-semibold); color: var(--accent-dark); }
.band h2 { margin: 0 0 12px; font-size: 32px; }
.band__text { margin: 0 0 18px; color: var(--text-muted); }
.band__link { font-weight: var(--weight-semibold); color: var(--accent-dark); text-decoration: none; }
.band__link:hover { text-decoration: underline; }

/* 商店按钮只用于产品页直达。 */
.app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--r-btn);
  background: var(--accent-dark);
  color: var(--on-accent);
  text-decoration: none;
  box-shadow: 0 1px 2px var(--shadow-1), 0 12px 28px -14px var(--shadow-accent);
}
.app-store:hover { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.app-store svg { width: 26px; height: 26px; fill: currentColor; }
.app-store__copy { display: block; text-align: left; }
.app-store__copy small { display: block; font-size: 11px; line-height: 1.4; }
.app-store__copy strong { display: block; font-size: 17px; line-height: 1.4; font-weight: var(--weight-semibold); }
.store-guide { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel-2); color: var(--text); }
.store-guide p { color: var(--text-muted); }
.store-guide > :last-child { margin-bottom: 0; }

/* 通用 tabs；每个 data-tabs 自成一组，panel 的 id 全页唯一。 */
.tabs { min-width: 0; }
.tabs [role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs [role="tab"] {
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text-muted);
  text-align: left;
  font-weight: var(--weight-semibold);
}
.tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--sky-mist); color: var(--accent-dark); }
.tabs [role="tabpanel"] { min-width: 0; }
.capability-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; align-items: start; }
.capability-reference {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow-1), 0 36px 70px -28px var(--shadow-2);
}
.capability-reference pre { width: 100%; border: 0; padding: 0; background: var(--bg); color: var(--text); font-size: 12px; }
.capability-directory [role="tablist"] { display: block; margin: 0; }
.capability-item { position: relative; padding-left: 24px; margin-bottom: 24px; min-width: 0; }
.capability-item:has([aria-selected="true"])::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--accent);
  border-radius: var(--r-pill);
}
.capability-directory [role="tab"] {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--clear);
  color: var(--text);
  font: var(--weight-display) 21px/1.4 var(--font-display);
}
.capability-directory [role="tab"][aria-selected="true"] { background: var(--clear); color: var(--text); }
.capability-directory [role="tabpanel"] { padding-top: 2px; background: var(--bg-panel); color: var(--text); }
.capability-directory [role="tabpanel"] p:last-child { margin-bottom: 0; }
.capability-summary { display: block; margin-bottom: 12px; font-size: 14px; font-weight: var(--weight-medium); color: var(--text); }

/* 直接放在包含全部章节的容器内，不另套只有目录自身高度的父层。 */
.toc {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-inline: contain;
}
.toc a { flex-shrink: 0; max-width: 100%; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; color: var(--text-muted); text-decoration: none; border-radius: var(--r-btn); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.toc--static { position: static; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
}
.faq-item summary { position: relative; padding: 20px 52px 20px 22px; cursor: pointer; font-weight: var(--weight-semibold); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 20px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 22px 22px; color: var(--text-muted); }
.faq-item__body > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.term-card__category { display: block; margin-bottom: 12px; font-size: 12px; color: var(--accent-dark); }
.term-card h3 { font-family: var(--font-mono); font-size: 19px; overflow-wrap: anywhere; }
.term-card p { color: var(--text-muted); }
.term-card > :last-child { margin-bottom: 0; }
.official-shot { width: 100%; max-width: 280px; min-width: 0; flex-shrink: 0; margin: 0 auto; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { filter: none; }
.official-shot figcaption { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--text-muted); text-align: center; }
.official-shot__frame { border: 1px solid var(--border); border-radius: var(--r-shot); }
.shot-placeholder {
  width: 100%;
  aspect-ratio: 750 / 1334;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-shot);
  background: var(--bg-panel);
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}
.device-card { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.device-card__icon { width: 42px; height: 42px; margin-bottom: 24px; fill: none; stroke: var(--accent-dark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.device-card p { color: var(--text-muted); }
.device-card__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-weight: var(--weight-semibold); text-decoration: none; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.article-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 12px; color: var(--text-muted); }
.article-card h3 { font-size: 22px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); }
.article-card__link { margin-top: auto; padding-block: 10px; font-size: 14px; font-weight: var(--weight-semibold); text-decoration: none; }
.callout { margin: 28px 0; padding: 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--sky-mist); color: var(--text); }
.callout__title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); }
.callout > :last-child { margin-bottom: 0; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .article-body table td { background: var(--bg); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  text-align: left;
}
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font: var(--weight-semibold) 14px/1.4 var(--font-body);
  text-decoration: none;
  box-shadow: var(--shadow-float);
}
.dl-fab svg { width: 16px; height: 16px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab:hover { border-color: var(--accent); color: var(--accent-dark); }
.preview-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; }
.swatch__paint { height: 68px; border: 1px solid var(--border); border-radius: var(--r-card); }
.swatch figcaption { margin-top: 8px; font: 12px/1.6 var(--font-mono); color: var(--text-muted); overflow-wrap: anywhere; }
.swatch--bg { background: var(--bg); }
.swatch--panel { background: var(--bg-panel); }
.swatch--panel2 { background: var(--bg-panel-2); }
.swatch--border { background: var(--border); }
.swatch--accent { background: var(--accent); }
.swatch--accent-dark { background: var(--accent-dark); }
.swatch--text { background: var(--text); }
.swatch--muted { background: var(--text-muted); }
.swatch--success { background: var(--success); }
.swatch--warn { background: var(--warn); }
.swatch--error { background: var(--error); }
.swatch--grid { background: var(--grid); }
.swatch--edge { background: var(--device-edge); }
.swatch--line { background: var(--line-no); }
.swatch--wash { background: var(--sky-wash); }
.swatch--mist { background: var(--sky-mist); }
.swatch--on { background: var(--on-accent); }
.swatch--mask { background: var(--mask); }
.swatch--clear { background: var(--clear); }
.swatch--shadow1 { background: var(--shadow-1); }
.swatch--shadow2 { background: var(--shadow-2); }
.swatch--shadow3 { background: var(--shadow-3); }
.swatch--cool { background: var(--shadow-cool); }
.swatch--accent-shadow { background: var(--shadow-accent); }
.swatch--contact { background: var(--shadow-contact); }
.swatch--veil { background: var(--veil); }
.preview-block + .preview-block { margin-top: 64px; }
@media (max-width: 1040px) {
  .stage { --s: .82; }
  .band__inner { padding-top: calc(208px * .82 + 120px); }
  .capability-layout { gap: 48px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px, 4vw, 30px); }
  .capability-layout { display: flex; flex-direction: column; gap: 40px; }
  .capability-directory { order: 0; width: 100%; min-width: 0; }
  .capability-reference { order: 1; position: static; min-height: 240px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .lede { font-size: 15px; line-height: 24px; }
  .platforms { gap: 6px 14px; }
  .platforms__note { width: 100%; justify-content: center; }
  .stage { --s: .54; }
  .band__inner { padding-top: calc(208px * .54 + 80px); padding-bottom: 120px; }
  .band h2 { font-size: 24px; }
  .dl-fab { right: 16px; bottom: 16px; font-size: 13px; }
}
@media (max-width: 640px) {
  .preview-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-card { padding: 28px; }
  .fact-pills, .chips { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 400px) { .stage { --s: .5; } }
@media (max-width: 360px) { .stage { --s: .43; } }