/* 上手托盘：示意界面全部是静态内容，不承担表单功能。 */
.tray { max-width:1120px; margin:22px auto 0; padding:16px; background:var(--bg-panel); color:var(--text); border-radius:var(--r-tray); }
.tray-eyebrow { margin:0; font-size:12px; line-height:15px; letter-spacing:.16em; color:var(--text-muted); }
.steps { display:inline-flex; margin:10px 0 0; padding:3px; list-style:none; background:var(--bg-panel-2); color:var(--text-muted); border-radius:var(--r-segment); }
.step { display:flex; align-items:center; gap:8px; min-height:30px; padding:0 18px; border-radius:var(--r-control); font-size:14px; line-height:1.3; color:var(--text-muted); white-space:nowrap; }
.step.is-current { background:var(--surface); color:var(--text); box-shadow:var(--step-edge); }
.step-mark { width:6px; height:6px; background:var(--accent); flex-shrink:0; }
.field { position:relative; height:288px; margin-top:14px; border-radius:var(--r-card); overflow:hidden; background:radial-gradient(58% 72% at 46% 46%,var(--field-glow),var(--clear) 70%),linear-gradient(135deg,var(--field-rose),var(--field-teal)); color:var(--text); }
.orbit { position:absolute; inset:0; width:100%; height:100%; }
.orbit-ring { fill:none; stroke:var(--ring-line); stroke-width:1; }
.orbit-ring.is-dashed { stroke-dasharray:2 6; }
.orbit-tag { position:absolute; transform:translate(-50%,-50%); padding:0 8px; border:1px solid var(--tag-edge); border-radius:var(--r-control); background:var(--tag-fill); color:var(--text-muted); font-family:var(--font-mono); font-size:11px; line-height:20px; white-space:nowrap; }
.tag-vless { left:5.6%; top:38.9%; }
.tag-vmess { left:16.2%; top:61.8%; }
.tag-trojan { left:79.5%; top:30.2%; }
.tag-ss { left:92.6%; top:66%; }
.stage { position:absolute; left:50%; top:20px; width:646px; height:250px; transform:translateX(-50%); }
.tilt { position:absolute; left:0; top:0; width:470px; transform:rotate(-1.5deg); transform-origin:50% 50%; }
.sheet { position:absolute; inset:0; transform:translate(6px,6px); background:var(--bg-panel-2); color:var(--text); border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow-sheet); }
.win { position:relative; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow-win); overflow:hidden; }
.win-bar { display:flex; align-items:center; justify-content:space-between; height:33px; padding:0 12px 0 14px; border-bottom:1px solid var(--border); background:var(--bg); color:var(--text); }
.win-title { font-size:12.5px; font-weight:var(--weight-medium); letter-spacing:.01em; }
.win-ctrls { display:flex; align-items:center; gap:15px; color:var(--text-muted); }
.win-ctrl { width:10px; height:10px; fill:none; stroke:currentColor; stroke-width:1; flex-shrink:0; }
.win-body { display:grid; grid-template-columns:118px minmax(0,1fr); column-gap:12px; row-gap:8px; align-items:center; padding:14px 18px; text-align:left; }
.f-label { font-size:12.5px; line-height:1; color:var(--text-muted); white-space:nowrap; }
.f-input { min-height:26px; padding:0 9px; border:1px solid var(--border-strong); border-radius:var(--r-control); background:var(--surface); color:var(--text); font-size:12.5px; line-height:24px; overflow-wrap:anywhere; }
.f-input.is-mono { font-family:var(--font-mono); font-size:11.5px; letter-spacing:-.01em; }
.f-input.is-short { width:64px; flex-shrink:0; font-variant-numeric:tabular-nums; }
.f-inline { display:flex; align-items:center; gap:10px; }
.f-sub { margin-left:auto; font-size:12.5px; color:var(--text-muted); white-space:nowrap; }
.toggle { position:relative; width:30px; height:16px; flex-shrink:0; border-radius:var(--r-pill); background:var(--accent); color:var(--surface); }
.toggle::after { content:""; position:absolute; top:2px; right:2px; width:12px; height:12px; border-radius:var(--r-circle); background:var(--surface); }
.win-foot { display:flex; justify-content:flex-end; gap:8px; padding:10px 28px 10px 18px; border-top:1px solid var(--border); }
.mini-btn { display:inline-flex; align-items:center; min-height:26px; padding:0 16px; border-radius:var(--r-control); font-size:12.5px; line-height:1; }
.mini-btn.is-ok { background:var(--accent); border:1px solid var(--accent); color:var(--surface); }
.mini-btn.is-cancel { background:var(--surface); border:1px solid var(--border-strong); color:var(--text); }
.menu { position:absolute; left:446px; top:126px; width:200px; padding:6px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow-menu); text-align:left; }
.menu-head { padding:6px 8px 4px; font-size:11px; line-height:14px; letter-spacing:.08em; color:var(--text-muted); }
.menu-item { display:flex; align-items:center; gap:9px; min-height:28px; padding:0 8px; border-radius:var(--r-control); font-size:12.5px; line-height:1.2; color:var(--text); white-space:nowrap; }
.menu-item.is-on { background:var(--bg-panel); color:var(--text); }
.radio { position:relative; width:12px; height:12px; flex-shrink:0; border:1px solid var(--border-strong); border-radius:var(--r-circle); }
.menu-item.is-on .radio { border-color:var(--accent); }
.menu-item.is-on .radio::after { content:""; position:absolute; top:2px; left:2px; width:6px; height:6px; border-radius:var(--r-circle); background:var(--accent); }
/* 共享交互组件 */
.tabs { min-width:0; }
.tab-list,[role="tablist"] { display:flex; align-items:center; flex-wrap:wrap; gap:4px; width:fit-content; max-width:100%; padding:4px; margin-bottom:24px; border-radius:var(--r-segment); background:var(--bg-panel-2); color:var(--text); }
.tab,[role="tab"] { min-height:44px; padding:10px 18px; border:1px solid var(--clear); border-radius:var(--r-control); background:var(--clear); color:var(--text-muted); font-size:14px; text-decoration:none; }
.tab[aria-selected="true"],[role="tab"][aria-selected="true"] { border-color:var(--border); background:var(--surface); color:var(--text); }
.tab:hover,[role="tab"]:hover { color:var(--text); }
.tab-panel { min-width:0; }
.tab-panel:focus-visible { outline:var(--focus-ring); outline-offset:4px; }
.toc { padding:20px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--bg-panel); color:var(--text); }
.toc-title { margin:0 0 12px; font-size:14px; font-weight:var(--weight-medium); }
.toc ul { margin:0; padding:0; list-style:none; }
.toc a { display:block; padding:8px 10px; color:var(--text-muted); font-size:14px; text-decoration:none; border-radius:var(--r-control); overflow-wrap:anywhere; }
.toc a:hover,.toc a[aria-current="location"] { background:var(--surface); color:var(--text); }
.toc-inline { display:flex; flex-wrap:wrap; gap:4px 12px; }
.doc-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:40px; align-items:start; }
.doc-layout > .toc { position:sticky; top:24px; max-height:calc(100dvh - 48px); overflow-y:auto; overscroll-behavior:contain; }
.faq-item { border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); }
.faq-item + .faq-item { margin-top:10px; }
.faq-item summary { position:relative; min-height:56px; padding:16px 48px 16px 20px; list-style:none; cursor:pointer; font-weight:var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; position:absolute; right:20px; top:14px; color:var(--text-muted); font-family:var(--font-mono); font-size:20px; }
.faq-item[open] summary::after { content:"−"; }
.faq-answer { padding:0 20px 20px; color:var(--text-muted); }
.faq-answer p:last-child { margin-bottom:0; }
.term-card { padding:24px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); }
.term-card h3 { margin:12px 0 10px; }
.term-card p { margin-bottom:0; color:var(--text-muted); }
.term-code { font-family:var(--font-mono); font-size:13px; }
.tag { display:inline-block; max-width:100%; padding:3px 9px; border:1px solid var(--border); border-radius:var(--r-control); background:var(--bg-panel); color:var(--text-muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.client-card { padding:24px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); }
.client-heading { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-bottom:20px; }
.client-logo { width:56px; height:56px; flex-shrink:0; }
.client-heading h3 { margin:0 0 4px; }
.client-meta { color:var(--text-muted); font-size:14px; }
.client-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.badge-first { background:var(--accent); color:var(--surface); border-color:var(--accent); }
.badge-recommended { background:var(--surface); color:var(--accent-dark); border-color:var(--accent); }
.badge-retired { background:var(--bg-panel-2); color:var(--text-muted); border-color:var(--border-strong); }
.article-card { display:flex; flex-direction:column; padding:24px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); }
.article-card h3 { margin:16px 0 12px; font-size:22px; }
.article-card h3 a { text-decoration:none; }
.article-card h3 a:hover { text-decoration:underline; }
.article-card p { color:var(--text-muted); }
.article-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:var(--text-muted); font-size:12px; }
.article-more { margin-top:auto; padding-top:12px; font-size:14px; }
.callout { margin:24px 0; padding:20px 24px; border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:var(--r-control); background:var(--bg-panel); color:var(--text); }
.callout p:last-child { margin-bottom:0; }
.callout-title { margin:0 0 8px; font-size:15px; font-weight:var(--weight-medium); }
.callout.is-success { border-left-color:var(--success); }
.callout.is-warning { border-left-color:var(--warn); }
.callout.is-error { border-left-color:var(--error); }
.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; background:var(--surface); color:var(--text); text-align:left; font-size:14px; }
.data-table caption { padding:12px 16px; text-align:left; color:var(--text-muted); }
.data-table :where(th,td),.prose table :where(th,td),.article-body table :where(th,td) { min-width:7em; padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:top; overflow-wrap:normal; word-break:normal; }
.data-table th,.prose table th,.article-body table th { background:var(--bg-panel); color:var(--text); font-weight:var(--weight-medium); }
.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; background:var(--surface); color:var(--text); font-size:14px; }
.data-table code,.prose table code,.article-body table code { overflow-wrap:anywhere; word-break:normal; }
.article-download { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-top:40px; padding:24px; border:1px solid var(--border); border-radius:var(--r-tray); background:var(--bg-panel); color:var(--text); }
.article-download h2 { margin:0 0 8px; font-size:24px; }
.article-download p { margin:0; color:var(--text-muted); }
.dl-fab { position:fixed; right:24px; bottom:24px; z-index:var(--layer-fab); display:flex; align-items:center; gap:10px; max-width:calc(100% - 36px); min-height:48px; padding:12px 18px; border:1px solid var(--accent); border-radius:var(--r-card); background:var(--accent); color:var(--surface); font-size:14px; text-decoration:none; }
.dl-fab:hover { background:var(--accent-dark); border-color:var(--accent-dark); color:var(--surface); }
.dl-fab svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.has-dl-fab { padding-bottom:88px; }
/* 不等高双列特性区 */
.feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px; }
.feature-column { display:grid; gap:24px; }
.feature-panel { padding:32px; border-radius:var(--r-card); background:var(--bg-panel); color:var(--text); }
.feature-panel::before { content:""; display:block; width:10px; height:10px; margin-bottom:24px; background:var(--accent); }
.feature-panel h3 { margin:0 0 16px; font-size:32px; font-weight:var(--weight-normal); }
.feature-panel p { color:var(--text-muted); margin-bottom:24px; }
.feature-field { display:flex; align-items:center; justify-content:center; min-height:200px; padding:28px; overflow-x:clip; border-radius:var(--r-card); background:linear-gradient(135deg,var(--field-rose),var(--field-teal)); color:var(--text); }
.feature-panel.is-tall .feature-field { min-height:280px; }
.ui-fragment { width:100%; max-width:320px; padding:16px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); box-shadow:var(--shadow-win); font-size:14px; text-align:left; }
.fragment-title { padding-bottom:12px; margin-bottom:8px; border-bottom:1px solid var(--border); font-weight:var(--weight-medium); }
.fragment-row { display:flex; align-items:center; gap:10px; min-height:36px; padding:6px 8px; border-radius:var(--r-control); }
.fragment-row.is-selected { background:var(--bg-panel); color:var(--text); }
.fragment-row.is-selected::before { content:""; width:6px; height:6px; background:var(--accent); flex-shrink:0; }
.fragment-select { display:flex; justify-content:space-between; align-items:center; padding:8px; border:1px solid var(--border-strong); border-radius:var(--r-control); margin-bottom:6px; }
/* 预览页色板，不以行内样式传入颜色。 */
.swatch-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.swatch { overflow:hidden; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); color:var(--text); }
.swatch-color { height:70px; }
.swatch-label { padding:12px; font-family:var(--font-mono); font-size:12px; overflow-wrap:anywhere; }
.swatch-bg { background:var(--bg); color:var(--text); }
.swatch-panel { background:var(--bg-panel); color:var(--text); }
.swatch-panel2 { background:var(--bg-panel-2); color:var(--text); }
.swatch-surface { background:var(--surface); color:var(--text); }
.swatch-border { background:var(--border); color:var(--text); }
.swatch-border-strong { background:var(--border-strong); color:var(--text); }
.swatch-accent { background:var(--accent); color:var(--surface); }
.swatch-accent-dark { background:var(--accent-dark); color:var(--surface); }
.swatch-text { background:var(--text); color:var(--surface); }
.swatch-muted { background:var(--text-muted); color:var(--surface); }
.swatch-faint { background:var(--text-faint); color:var(--text); }
.swatch-success { background:var(--success); color:var(--surface); }
.swatch-warn { background:var(--warn); color:var(--surface); }
.swatch-error { background:var(--error); color:var(--surface); }
.swatch-rose { background:var(--field-rose); color:var(--text); }
.swatch-teal { background:var(--field-teal); color:var(--text); }
.type-display { font-size:var(--display-size); line-height:1.1; letter-spacing:var(--tracking-title); }
.preview-stack > * + * { margin-top:24px; }
.preview-heading { margin:0 0 28px; }
.preview-tab-note { margin-top:12px; font-size:14px; color:var(--text-muted); }
@media (max-width:1180px) {
  .tag-vless,.tag-ss { display:none; }
}
@media (max-width:960px) {
  .field { height:240px; }
  .stage { top:16px; transform:translateX(-50%) scale(.82); transform-origin:50% 0; }
  .tag-vmess,.tag-trojan { display:none; }
  .doc-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .doc-layout > .toc { position:static; max-height:none; }
  .feature-panel { padding:24px; }
}
@media (max-width:768px) {
  .feature-grid { grid-template-columns:minmax(0,1fr); }
  .swatch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .tray { padding:12px; }
  .steps { display:flex; flex-direction:column; width:100%; }
  .step { justify-content:center; }
  .field { height:176px; }
  .stage { top:12px; transform:translateX(-50%) scale(.5); }
  .tilt { transform:none; }
  .feature-panel h3 { font-size:26px; }
  .feature-panel,.client-card,.term-card,.article-card { padding:20px; }
  .feature-field { padding:18px; }
  .feature-panel.is-tall .feature-field { min-height:220px; }
  .tab,[role="tab"] { padding-inline:12px; }
  .dl-fab { right:18px; bottom:18px; }
  .article-download { align-items:stretch; padding:20px; }
  .article-download .btn { width:100%; }
}