/* 内页共用样式：功能 / 模型 / 会员 / 下载 / 文档 / 关于 */

.page-hero .eyebrow { opacity: 0; animation: rise .9s var(--ease-out) .05s forwards; }
.page-hero .h1 { opacity: 0; animation: rise 1s var(--ease-out) .12s forwards; }
.page-hero .lead { opacity: 0; animation: rise 1s var(--ease-out) .22s forwards; }
.page-hero .hero-actions { opacity: 0; animation: rise 1s var(--ease-out) .32s forwards; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* 左侧目录 + 右侧内容 */
.with-toc > * { min-width: 0; }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; font-size: 14.5px; }
.toc p { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 12px; }
.toc a { position: relative; padding: 7px 0 7px 16px; color: var(--ink-3); transition: color .25s ease; }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: currentColor; transition: width .35s var(--ease-out), background-color .25s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 560; }
.toc a.on::before { width: 10px; background: var(--accent); }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: sticky; top: 74px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
    background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc p { display: none; }
  .toc a { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
  .toc a::before { display: none; }
  .toc a.on { border-color: transparent; background: var(--ink); color: var(--bg); }
}

/* 功能分组 */
.group { padding: 8px 0 72px; scroll-margin-top: 110px; }
.group-h { display: flex; align-items: baseline; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.group-h .mono { color: var(--accent); font-size: 13px; }
.group-h .h2 { font-size: clamp(28px, 3.4vw, 40px); }
.group-intro { color: var(--ink-2); max-width: 40em; margin: 18px 0 10px; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feat .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); transition: transform .5s var(--ease-out); }
.feat .fi .ico { width: 19px; height: 19px; }
.feat h3 { font-size: 17px; font-weight: 620; line-height: 1.5; }
.feat p { color: var(--ink-2); font-size: 15.5px; }
.feat .tag { grid-column: 3; justify-self: start; display: inline-block; margin-top: 8px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
@media (hover: hover) { .feat:hover .fi { transform: rotate(-8deg) scale(1.06); } }
@media (max-width: 640px) { .feat { grid-template-columns: 40px 1fr; } .feat p, .feat .tag { grid-column: 2; } }

/* 双栏说明 */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .duo, .trio { grid-template-columns: 1fr; } }
.card { border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.card .num { font: 500 12.5px/1 var(--font-mono); color: var(--accent); }
.card h3 { font-size: 18px; font-weight: 620; }
.card p { color: var(--ink-2); font-size: 15px; }

/* 模型档位示意 */
.tier-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.tier-map > div { padding: 28px; display: grid; gap: 12px; align-content: start; position: relative; transition: background-color .3s ease; }
.tier-map > div + div { border-left: 1px solid var(--line); }
.tier-map .lvl { font: 500 12px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .06em; }
.tier-map h3 { font-family: var(--font-serif); font-weight: 460; font-size: 28px; }
.tier-map p { color: var(--ink-2); font-size: 15px; }
.tier-map .who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tier-map .who span { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .3s ease; }
.tier-map .who span.lit { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
@media (max-width: 860px) { .tier-map { grid-template-columns: 1fr; } .tier-map > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.seg-ctl { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); gap: 2px; position: relative; flex-wrap: wrap; }
.seg-ctl button { position: relative; z-index: 1; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 540; color: var(--ink-2); transition: color .25s ease; }
.seg-ctl button[aria-pressed="true"] { color: var(--accent-ink); }
.seg-ctl .thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 9px; background: var(--accent); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }

/* 流程图（模型网关） */
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: center; gap: 14px; }
.flow .node { border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; }
.flow .node h4 { font-size: 15px; font-weight: 620; }
.flow .node p { font-size: 13.5px; color: var(--ink-2); }
.flow .node.core { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.flow .pipe { width: 46px; height: 2px; position: relative; overflow: hidden; background: var(--line-2); border-radius: 2px; }
.flow .pipe::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 2px; animation: pipe 1.8s var(--ease-in-out) infinite; }
@keyframes pipe { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.flow .chans { display: grid; gap: 8px; }
.flow .chans span { font-size: 13px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; justify-content: space-between; gap: 8px; }
.flow .chans span i { font-style: normal; color: var(--ink-3); }
.flow .chans span.down { opacity: .5; text-decoration: line-through; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow .pipe { width: 2px; height: 30px; margin: 0 auto; } .flow .pipe::after { width: 100%; height: 40%; animation-name: pipeV; } }
@keyframes pipeV { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* 会员档位表 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; border-radius: var(--r-xl); padding: 28px; display: grid; gap: 14px; align-content: start; scroll-margin-top: 110px; transition: transform .45s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.plan:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.plan .lvl { font: 500 12px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .06em; }
.plan h3 { font-family: var(--font-serif); font-weight: 460; font-size: 34px; letter-spacing: -.01em; line-height: 1.1; }
.plan .tagline { color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 16px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--ink-2); }
.plan li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent-soft), inset 0 0 0 7px var(--accent); }
.plan li.no::before { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.plan li.no { color: var(--ink-3); }
.plan .meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.plan .meter i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) .2s; }
.plan.in .meter i, .plan:not([data-reveal]) .meter i { transform: scaleX(1); }
.plan .meter-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.plan .badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } .plan .tagline { min-height: 0; } }

.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass-strong); }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp thead th { font-weight: 620; font-family: var(--font-serif); font-size: 18px; }
.cmp tbody th { font-weight: 520; color: var(--ink-2); position: sticky; left: 0; background: var(--surface); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .y { color: var(--accent); font-weight: 600; }
.cmp .n { color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 560; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .35s var(--ease-out), background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--accent-soft); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 46em; }
.faq details[open] .ans { animation: rise .45s var(--ease-out); }

/* 下载 */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card { border-radius: var(--r-xl); padding: clamp(26px, 4vw, 40px); display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.dl-card .os { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.dl-card .os svg { width: 26px; height: 26px; }
.dl-card h2 { font-family: var(--font-serif); font-weight: 460; font-size: 34px; letter-spacing: -.01em; }
.dl-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: 13.5px; min-height: 22px; }
.dl-card .notes { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; max-height: 9.5em; overflow: auto; }
.dl-card .req { font-size: 13.5px; color: var(--ink-3); }
.dl-card .sha { font: 12px/1.5 var(--font-mono); color: var(--ink-3); word-break: break-all; }
.dl-card .skel { height: 14px; border-radius: 7px; width: 60%; background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--ink) 4%, transparent) 50%, var(--line) 75%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.web-card { margin-top: 16px; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.web-card h3 { font-family: var(--font-serif); font-weight: 460; font-size: 26px; }

/* 文档正文 */
.doc { max-width: 760px; }
.doc section { padding: 8px 0 64px; scroll-margin-top: 110px; }
.doc h2 { font-family: var(--font-serif); font-weight: 460; font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -.012em; margin-bottom: 16px; }
.doc h3 { font-size: 17px; font-weight: 620; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.3em; display: grid; gap: 8px; margin: 12px 0; }
.doc pre { margin: 14px 0; }
.doc .note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14.5px; }
.doc .note b { color: var(--accent); }
.code-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: transform .16s var(--ease-out), color .2s; }
.copy-btn:active { transform: scale(.95); }
.copy-btn.ok { color: var(--ok); }
.steps-n { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-n li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps-n li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-mono); color: var(--accent); background: var(--accent-soft); }
.steps-n li b { color: var(--ink); }

/* 关于 */
.principles { counter-reset: p; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principle .mono { color: var(--accent); font-size: 13px; }
.principle h3 { font-family: var(--font-serif); font-weight: 460; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.01em; }
.principle p { color: var(--ink-2); }
@media (max-width: 760px) { .principle { grid-template-columns: 1fr; gap: 8px; } }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.sec-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.sec-list h3 { font-size: 16.5px; font-weight: 620; }
.sec-list p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .sec-list { grid-template-columns: 1fr; } }

.cta-band { margin: 40px 0 0; border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band .h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 520px) {
  .card, .plan { padding: 22px; }
  .tier-map > div { padding: 22px; }
  .cta-band .acts, .cta-band .acts .btn, .page-hero .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow, .page-hero .h1, .page-hero .lead, .page-hero .hero-actions { opacity: 1; animation: none; }
  .flow .pipe::after { animation: none; width: 100%; opacity: .5; }
}
