/* 首页首屏：抽象设备不承载任何仿应用界面。 */
.hero {
  position: relative;
  height: clamp(680px, calc(100vh - var(--nav-h) - 56px), 820px);
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 62%;
  z-index: -2;
  background-image: radial-gradient(var(--grid-dot) 1px, var(--clear) 1.3px);
  background-size: 16px 16px;
  color: var(--text);
  mask-image: radial-gradient(ellipse 90% 90% at 100% 0%, var(--mask-on) 25%, var(--clear) 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 100% 0%, var(--mask-on) 25%, var(--clear) 72%);
}
.cross {
  position: absolute;
  z-index: -1;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  opacity: .55;
}
.cross.c1 { top: 13%; right: 30%; }
.cross.c2 { top: 34%; right: 7%; }
.cross.c3 { top: 8%; right: 12%; }
.hero-wave { position: absolute; left: 36%; top: 0; width: 64%; height: 100%; z-index: -1; opacity: .92; }
.hd { fill: var(--accent); }
.m-on { stop-color: var(--mask-on); }
.m-off { stop-color: var(--mask-off); }
.hero-in {
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 40px;
  align-items: center;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-bottom: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
.badge-dot, .status {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--r-round);
  background: var(--success);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--ring-success), 0 0 12px var(--glow-teal-hot);
}
.hero-title { margin: 26px 0 0; font-size: var(--title-size); font-weight: var(--weight-regular); line-height: 1.14; }
.ht-line { display: block; }
.ht-grad {
  padding-bottom: .06em;
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent) 18%, var(--violet) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--clear);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.lede { margin: 28px 0 0; max-width: 33em; font-size: 16px; line-height: 1.75; color: var(--text-muted); }
.lede strong { color: var(--text); }
.chips, .fact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chip, .fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chip b, .fact-pill b { color: var(--text); }
.chip-ok::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--r-round);
  background: var(--success);
  color: var(--bg);
}
.devices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-muted);
}
.dev { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; }
.dev svg { width: 18px; height: 18px; color: var(--text); }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 9px;
  border: 1px solid var(--success);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text);
  font-size: 12px;
}
.store-pill svg { width: 13px; height: 13px; }
.stage { position: relative; width: 600px; height: 700px; justify-self: end; }
.stage-glow {
  position: absolute;
  left: 330px;
  top: 430px;
  width: 330px;
  height: 300px;
  z-index: 0;
  background: radial-gradient(circle at 34% 38%, var(--glow-teal-hot) 0%, var(--clear) 58%), radial-gradient(circle at 70% 66%, var(--glow-pink-hot) 0%, var(--clear) 60%);
  color: var(--text);
  filter: blur(34px);
  opacity: .95;
}
.phone {
  position: absolute;
  left: 160px;
  top: 40px;
  width: 290px;
  height: 604px;
  z-index: 1;
  border: 1.5px solid var(--success);
  border-radius: var(--r-phone);
  background: var(--phone-body);
  color: var(--text);
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: var(--r-screen);
  overflow: hidden;
  background: linear-gradient(180deg, var(--screen-a) 0%, var(--clear) 46%, var(--screen-b) 100%), var(--bg-panel);
  color: var(--text);
}
.phone-island {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: var(--r-pill);
  background: var(--island);
  color: var(--text);
  z-index: 2;
}
.bar { position: absolute; left: 22px; height: 10px; border-radius: var(--r-pill); background: var(--screen-bar); color: var(--text); }
.bar.b1 { top: 96px; width: 58%; }
.bar.b2 { top: 118px; width: 38%; background: var(--screen-bar-2); color: var(--text); }
.bar.b3 { top: 228px; width: 72%; }
.bar.b4 { top: 250px; width: 46%; background: var(--screen-bar-2); color: var(--text); }
.bar.b5 { top: 392px; width: 64%; }
.bar.b6 { top: 414px; width: 30%; background: var(--screen-bar-2); color: var(--text); }
.bar.b7 { top: 510px; left: auto; right: 22px; width: 44%; }
.fcard {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-mono);
  animation: card-drift 7s ease-in-out infinite;
}
.fcard-sub {
  left: 28px;
  top: 120px;
  width: 330px;
  padding: 14px 16px;
  rotate: -3deg;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-float), 0 0 54px -10px var(--glow-teal);
  animation-duration: 6.4s;
  animation-delay: -1.2s;
}
.fcard-rule {
  left: 296px;
  top: 300px;
  width: 296px;
  padding: 14px 16px 16px;
  rotate: 2.5deg;
  box-shadow: var(--shadow-float), 0 0 60px -10px var(--glow-pink);
  animation-duration: 7.4s;
  animation-delay: -3.6s;
}
.fcard-set {
  left: 46px;
  top: 468px;
  width: 250px;
  padding: 12px;
  rotate: -2deg;
  font-family: var(--font-body);
  box-shadow: var(--shadow-float), 0 0 54px -12px var(--glow-teal);
  animation-duration: 8s;
  animation-delay: -5.4s;
}
@keyframes card-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fc-label { display: inline-block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.fc-tag { padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--success); letter-spacing: .06em; text-transform: none; }
.fc-url { margin-top: 8px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.fc-url .q { color: var(--text-muted); }
.sub-body { flex: 1; min-width: 0; }
.status { width: 10px; height: 10px; }
.rule-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.rule-head .sec { color: var(--text-muted); font-size: 12px; }
.rules { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--clear); color: var(--text-muted); font-size: 12.5px; line-height: 1.95; white-space: pre; overflow-x: auto; }
.rules .k { color: var(--text); }
.rules .p { color: var(--accent); }
.rules .d, .code-key { color: var(--success); }
.set-head { padding: 2px 6px 8px; font-family: var(--font-mono); }
.group { margin: 0; padding: 0; list-style: none; border-radius: var(--r-group); background: var(--bg-panel-2); color: var(--text); overflow: hidden; }
.group li { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 14px; color: var(--text); }
.group li + li { border-top: 1px solid var(--hairline); }
.group svg { width: 8px; height: 13px; color: var(--text-muted); }
.factband { background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.factband-in { max-width: var(--wrap); margin-inline: auto; padding: 18px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 10px 44px; font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.factband-in span { color: var(--text-muted); margin-right: 10px; letter-spacing: .08em; }

/* 渐变舞台、胶囊 tab 与明亮详情板。 */
.gradient-stage {
  position: relative;
  margin-inline: 24px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-radius: var(--r-block);
  overflow-x: clip;
  background: linear-gradient(135deg, var(--block-from), var(--block-to));
  color: var(--text);
}
.gradient-stage .eyebrow { color: var(--text); }
.tabs { min-width: 0; }
[role="tablist"] {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 4px 4px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
[role="tab"] {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--text-muted);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
[role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.tab-panel {
  padding: 36px;
  border: 1px solid var(--text);
  border-radius: var(--r-card);
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-float);
}
.tab-panel h3 { margin-top: 0; }
.tab-panel a { color: var(--bg); text-decoration: underline; }
.tab-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tab-detail > * { min-width: 0; }
.tab-detail pre { margin: 0; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text); }
.toc a:hover { color: var(--accent); }
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.faq-item summary { position: relative; padding: 20px 52px 20px 22px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 20px; color: var(--success); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 22px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 2px solid var(--success); }
.term-card dt { margin-bottom: 12px; font-family: var(--font-mono); font-size: 20px; }
.term-card dd { margin: 0; color: var(--text-muted); }
.appstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  box-shadow: var(--shadow-btn);
}
.appstore-button svg { width: 25px; height: 28px; }
.appstore-button small, .appstore-button strong { display: block; }
.appstore-button small { font-size: 11px; line-height: 1.4; }
.appstore-button strong { font-size: 17px; line-height: 1.5; }
.appstore-button:hover { background: var(--accent-dark); color: var(--bg); border-color: var(--accent-dark); text-decoration: none; }
.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 { border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted); }
.official-shot figcaption { padding: 14px 16px; font-size: 12px; line-height: 1.7; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--r-shot);
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg));
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.device-card { display: flex; align-items: flex-start; gap: 22px; }
.device-card > svg { flex-shrink: 0; width: 48px; height: 60px; color: var(--success); }
.device-card > div { min-width: 0; }
.device-card p { color: var(--text-muted); }
.device-card .btn { margin-top: 8px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; }
.article-card .article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.article-card h3 { font-size: 22px; line-height: 1.5; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--text-muted); }
.article-card .article-link { margin-top: auto; padding-top: 16px; }
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.callout p:last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text); }
.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  overscroll-behavior-inline: contain;
}
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--success);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float), 0 0 28px -12px var(--glow-teal);
  font-size: 13px;
  text-decoration: none;
}
.dl-fab svg { width: 20px; height: 20px; }
.dl-fab:hover { background: var(--bg-panel-2); color: var(--text); text-decoration: none; }
.article-store-card { margin-top: 48px; border-left: 3px solid var(--accent); }
.article-store-card h2 { margin-top: 0; font-size: 26px; }
.article-store-card p { color: var(--text-muted); }
.article-with-fab { padding-bottom: 96px; }

/* 无脚本设计预览家具。 */
.preview-static .fcard { animation: none; }
.preview-title { margin-top: 0; }
.token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.token-swatch { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--bg-panel); color: var(--text); }
.token-swatch i { display: block; height: 70px; }
.token-swatch figcaption { padding: 12px; font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel-2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--bg); }
.sw-accent-dark { background: var(--accent-dark); color: var(--bg); }
.sw-text { background: var(--text); color: var(--bg); }
.sw-muted { background: var(--text-muted); color: var(--bg); }
.sw-success { background: var(--success); color: var(--bg); }
.sw-warn { background: var(--warn); color: var(--bg); }
.sw-error { background: var(--error); color: var(--bg); }
.sw-violet { background: var(--violet); color: var(--bg); }
.sw-from { background: var(--block-from); color: var(--text); }
.sw-to { background: var(--block-to); color: var(--text); }
.sw-nav { background: var(--nav-bg); color: var(--nav-ink); }
.sw-nav-mark { background: var(--nav-mark-bg); color: var(--nav-ink); }
.sw-nav-line { background: var(--nav-mark-line); color: var(--nav-ink); }
.sw-phone { background: var(--phone-body); color: var(--text); }
.sw-island { background: var(--island); color: var(--text); }
.sw-screen-a { background: var(--screen-a); color: var(--text); }
.sw-screen-b { background: var(--screen-b); color: var(--text); }
.sw-screen-bar { background: var(--screen-bar); color: var(--text); }
.sw-screen-bar-2 { background: var(--screen-bar-2); color: var(--text); }
.sw-grid { background: var(--grid-dot); color: var(--text); }
.sw-teal { background: var(--glow-teal); color: var(--text); }
.sw-pink { background: var(--glow-pink); color: var(--text); }
.sw-teal-hot { background: var(--glow-teal-hot); color: var(--text); }
.sw-pink-hot { background: var(--glow-pink-hot); color: var(--text); }
.sw-ring { background: var(--ring-success); color: var(--text); }
.sw-hairline { background: var(--hairline); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-mask-off { background: var(--mask-off); color: var(--text); }
.sw-clear { background: var(--clear); color: var(--text); }
.preview-type h2 { margin-top: 0; }
.preview-type .hero-title { margin-top: 0; }
.preview-states { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

@media (max-width: 1180px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
  .stage { transform: scale(.86); transform-origin: right center; }
}
@media (max-width: 980px) {
  .hero { height: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 24px; }
  .hero-wave { left: 0; width: 100%; top: 38%; height: 62%; }
  .stage { justify-self: center; transform: scale(.8); transform-origin: top center; margin-bottom: -140px; }
  .tab-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .token-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-title { font-size: 30px; }
  .hero-in { padding-top: 40px; }
  .hero-title .ht-line { white-space: normal; }
  .hero-title .nowrap { white-space: nowrap; }
  .stage { transform: scale(.56); margin-bottom: -308px; margin-top: -10px; }
  .fcard { rotate: none; }
  .fc-url { white-space: normal; overflow-wrap: anywhere; }
  .chips, .fact-pills { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .chip, .fact-pill { padding: 4px 8px; font-size: 11px; }
  .devices { gap: 10px 16px; }
  .gradient-stage { margin-inline: 24px; padding-top: 40px; padding-bottom: 40px; }
  .gradient-stage .wrap { padding-inline: 20px; }
  .tab-panel { padding: 22px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { max-width: min(280px, 100%); }
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-card { gap: 16px; }
  .dl-fab { right: 20px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 26px; }
  .badge { font-size: 10px; }
  .hero .btn { padding-inline: 15px; font-size: 14px; }
  .stage { transform: scale(.48); margin-bottom: -364px; }
}