/* App Store 自绘按钮，不使用徽章图片。 */
.appstore-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; max-width: 100%; padding: 10px 22px; border-radius: var(--r-btn); background: var(--accent); color: var(--ink); box-shadow: var(--shadow-button); font-size: var(--size-button); font-weight: var(--weight-bold); line-height: 1.3; text-align: left; transition: transform var(--duration-fast) ease,background-color var(--duration-fast) ease; }
.appstore-button svg { width: 24px; height: 24px; fill: currentColor; }
.appstore-button small { display: block; font-size: var(--size-tiny); font-weight: var(--weight-medium); }
.appstore-button strong { display: block; font-size: var(--size-button); font-weight: var(--weight-bold); }
.appstore-button:hover { background: var(--accent-dark); color: var(--ink); transform: translateY(-1px); }
.appstore-button:active { transform: translateY(1px); }
.appstore-button.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.appstore-button.is-hover { background: var(--accent-dark); color: var(--ink); }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.fact-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 32px; max-width: 100%; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); font-size: var(--size-small); line-height: 1.5; overflow-wrap: anywhere; }
.fact-pill small { color: var(--text-muted); font-size: inherit; }
.hero .fact-row { justify-content: center; }
.hero .fact-pill,.panel-light .fact-pill { border-color: var(--hairline-strong); background: var(--surface); color: var(--ink); }
.hero .fact-pill small,.panel-light .fact-pill small { color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--size-tiny); line-height: 1.5; overflow-wrap: anywhere; }
.annotation { position: relative; display: inline-block; padding-bottom: 16px; margin-bottom: 16px; font-family: var(--font-hand); font-size: var(--size-h3); color: var(--accent); transform: rotate(-5deg); }
.annotation::after { content: ""; position: absolute; width: 16px; height: 20px; bottom: -2px; left: 60%; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(24deg) skewY(28deg); }
.feature-intro { position: sticky; top: 32px; }
.feature-intro p { color: var(--text-muted); }
.tabs { min-width: 0; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
[role="tab"] { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); font-size: var(--size-nav); font-weight: var(--weight-semibold); text-align: left; line-height: 1.5; }
[role="tab"][aria-selected="true"] { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.tab-panel { min-width: 0; padding: var(--space-card); border-radius: var(--r-xl); background: var(--bg-panel); color: var(--ink); box-shadow: var(--shadow-panel); }
.tab-panel p { font-size: var(--size-body); line-height: var(--leading-body); }
.tab-panel p:last-child { margin-bottom: 0; }
.tab-panel pre { margin-bottom: 0; background: var(--paper); color: var(--ink); border-color: var(--hairline-strong); }
.feature-tabs { position: relative; padding-bottom: 20px; }
.feature-tabs .tab-list { display: flex; flex-direction: column; gap: 0; overflow: hidden; margin-bottom: 0; border-radius: var(--r-lg); background: var(--bg-panel-2); color: var(--text); }
.feature-tabs [role="tab"] { position: relative; width: 100%; min-height: 74px; padding: 18px 26px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; }
.feature-tabs [role="tab"]:last-child { border-bottom: 0; }
.feature-tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.feature-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: var(--r-pill); background: var(--accent); }
.tab-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab-label { min-width: 0; flex: 1; }
.tab-label small { display: block; margin-top: 3px; font-size: var(--size-tiny); font-weight: var(--weight-body); overflow-wrap: anywhere; }
.tab-chevron { margin-left: auto; font-size: var(--size-h3); font-weight: var(--weight-body); }
.feature-tabs .tab-panel { position: relative; margin-top: -8px; margin-inline: -12px; z-index: 1; }
.toc { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 8px; max-width: 100%; overflow-x: auto; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); overscroll-behavior-x: contain; }
.toc a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--size-nav); white-space: nowrap; }
.toc a:hover,.toc a[aria-current] { background: var(--bg); color: var(--text); }
.faq-list { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-panel-2); color: var(--text); }
.faq-item { padding-inline: 28px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { position: relative; padding: 22px 32px 22px 0; cursor: pointer; list-style: none; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-family: var(--font-mono); font-size: var(--size-h3); color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: var(--space-card); border-radius: var(--r-lg); background: var(--bg-panel-2); color: var(--text); border-top: 1px solid var(--border); }
.term-card dt { margin-bottom: 16px; font-family: var(--font-mono); font-size: var(--size-h3); font-weight: var(--weight-bold); line-height: 1.4; overflow-wrap: anywhere; }
.term-card dd { margin: 0; color: var(--text-muted); }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin: 0 auto; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.official-shot img { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { padding-top: 12px; font-size: var(--size-small); line-height: 1.65; color: var(--text-muted); }
.shot-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; align-items: start; }
.shot-layout > * { min-width: 0; }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); background: var(--bg-panel); color: var(--ink-soft); font-family: var(--font-mono); text-align: center; }
.shot-placeholder span { padding: 20px; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; padding: 36px; border-radius: var(--r-xl); background: var(--bg-panel-2); color: var(--text); }
.device-card > svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.device-card h3,.device-card p { margin: 0; }
.device-card p { color: var(--text-muted); }
.device-card .device-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; font-size: var(--size-nav); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: .3em; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: var(--space-card); border-radius: var(--r-xl); background: var(--bg-panel-2); color: var(--text); }
.article-card h3 { margin: 20px 0 16px; font-size: var(--size-h3); line-height: 1.45; }
.article-card h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.article-card p { color: var(--text-muted); }
.article-card .read-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-size: var(--size-nav); font-weight: var(--weight-semibold); }
.callout { margin: 24px 0; padding: 24px 28px; border-left: 3px solid var(--border); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--bg-panel); color: var(--ink); }
.callout strong { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--size-nav); }
.data-table th,.data-table td,.prose table th,.prose table td { min-width: 7em; padding: 16px 20px; border-bottom: 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-semibold); }
.data-table td,.prose table td { background: var(--bg); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.data-table code,.prose table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; z-index: 20; right: var(--gutter); bottom: max(20px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - var(--gutter) * 2); min-height: 56px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--ink); box-shadow: var(--shadow-panel); font-size: var(--size-nav); font-weight: var(--weight-semibold); }
.dl-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dl-fab small { display: block; color: var(--ink-soft); font-size: var(--size-tiny); font-weight: var(--weight-body); }
.article-store-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: var(--space-card); border-radius: var(--r-xl); background: var(--bg-panel-2); color: var(--text); }
.article-store-card > div { flex: 1 1 260px; min-width: 0; }
.article-store-card h2 { font-size: var(--size-h3); margin-bottom: 12px; }
.article-store-card p { margin: 0; font-size: var(--size-nav); color: var(--text-muted); }
.preview-fab { position: static; }
@media (max-width: 768px) {
  .feature-intro { position: static; }
  .feature-tabs { display: flex; flex-direction: column; padding-bottom: 0; border-radius: var(--r-lg); background: var(--bg-panel-2); color: var(--text); }
  .feature-tabs .tab-list { display: contents; }
  .feature-tabs [role="tab"] { border-radius: 0; padding-inline: 22px; }
  .feature-tabs [role="tab"]:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .feature-tabs .tab-panel { margin: 0; border-radius: var(--r-md); box-shadow: none; }
  .feature-tabs [data-slot="1"] { order: 1; }
  .feature-tabs [data-slot="2"] { order: 2; }
  .feature-tabs [data-slot="3"] { order: 3; }
  .feature-tabs [data-slot="4"] { order: 4; }
  .feature-tabs [data-slot="5"] { order: 5; }
  .feature-tabs [data-slot="6"] { order: 6; }
  .shot-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .feature-tabs .tab-panel { padding: 24px; }
  .faq-item { padding-inline: 22px; }
  .device-card { padding: 28px; }
  .official-shot { max-width: min(280px,100%); }
  .fact-row { flex-direction: row; flex-wrap: wrap; }
  .dl-fab { right: var(--gutter); padding: 10px 16px; }
}