/* 首页设置看板：纯静态示意，不代表特定版本的完整界面。 */
.hero { position: relative; overflow: hidden; overflow-x: clip; padding-top: 40px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, var(--clear), var(--bg) 92%); color: var(--ink);
}
.hero-field {
  position: absolute; left: 50%; bottom: -40px; width: 2600px; height: 600px; z-index: 0; pointer-events: none;
  transform: translateX(-50%) perspective(760px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(to right, var(--grid) 1px, var(--clear) 1px), linear-gradient(to bottom, var(--grid) 1px, var(--clear) 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(to bottom, var(--clear) 8%, var(--ink) 62%);
  mask-image: linear-gradient(to bottom, var(--clear) 8%, var(--ink) 62%);
}
.hero-copy { position: relative; z-index: 3; max-width: 980px; margin: 0 auto; padding-inline: var(--gutter); text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 4px 14px 4px 11px;
  border-radius: var(--r-pill); background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  font-size: 13px; font-weight: var(--weight-medium);
}
.kicker-dot { width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.kicker b { color: var(--ink-2); font-weight: var(--weight-semibold); }
.hero h1 { margin: 20px 0 0; font-size: var(--title-size); line-height: 1.14; letter-spacing: var(--tracking-title); }
.hero h1 .line { display: block; }
.hl { display: inline-block; margin-right: .08em; padding: 0 .3em 0 .24em; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); line-height: 1.2; }
.hl-dot { display: inline-block; width: .3em; height: .3em; margin-right: .18em; border-radius: var(--r-circle); background: var(--accent); vertical-align: .2em; }
.lead { margin: 20px auto 0; max-width: 860px; font-size: var(--text-base); line-height: 1.65; color: var(--muted); }
.lead strong { color: var(--ink); font-weight: var(--weight-semibold); }
.platforms { margin: 14px 0 0; padding: 0; list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; }
.platforms li { display: flex; align-items: center; }
.platforms li + li::before { content: ""; width: 3px; height: 3px; flex: none; margin-inline: 6px; border-radius: var(--r-circle); background: var(--faint); }
.plat { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--muted); }
.plat svg { width: 16px; height: 16px; color: var(--ink-2); }
.plat:hover { background: var(--panel); color: var(--ink); }
.rig { position: relative; z-index: 2; width: min(1120px, calc(100% - 48px)); margin: 36px auto -78px; }
.rig-plate { position: absolute; inset: -18px -18px 0; z-index: 0; border-radius: calc(var(--r-window) + 14px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-plate); }
.win { position: relative; z-index: 1; overflow: hidden; border-radius: var(--r-window); background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-window); }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 42px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: var(--r-circle); background: var(--panel-2); border: 1px solid var(--line); }
.win-title { font-size: 13px; font-weight: var(--weight-bold); color: var(--ink-2); letter-spacing: -.005em; }
.win-path { justify-self: end; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.win-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 448px; }
.win-side { background: var(--panel); color: var(--ink-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.side-label { margin: 0 10px 8px; font-size: 11.5px; font-weight: var(--weight-semibold); color: var(--muted); letter-spacing: .04em; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: var(--weight-medium); color: var(--ink-2); }
.side-item svg { width: 16px; height: 16px; color: var(--muted); }
.side-item.is-on { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-semibold); }
.win-main { padding: 18px 22px 0; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.win-h { font-size: 18px; font-weight: var(--weight-display); letter-spacing: var(--tracking-title); }
.win-sub { margin-top: 1px; font-size: 12px; color: var(--muted); }
.win-actions { display: flex; gap: 8px; }
.mini-btn { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: var(--weight-semibold); border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.mini-btn--on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.col { background: var(--panel); color: var(--ink); border-radius: var(--r-col); padding: 12px; }
.col-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: 13px; font-weight: var(--weight-bold); }
.sdot { width: 8px; height: 8px; border-radius: var(--r-circle); flex: none; }
.sdot--blue { background: var(--accent); }
.sdot--amber { background: var(--warn); }
.sdot--green { background: var(--success); }
.sdot--violet { background: var(--violet); }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-inner); font-size: 12.5px; color: var(--ink-2); }
.opt.is-on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-card); font-weight: var(--weight-semibold); }
.radio { position: relative; width: 14px; height: 14px; flex: none; border-radius: var(--r-circle); border: 1.5px solid var(--faint); background: var(--bg); }
.opt.is-on .radio { border-color: var(--accent); }
.opt.is-on .radio::after { content: ""; position: absolute; inset: 2.5px; border-radius: var(--r-circle); background: var(--accent); }
.field-label { margin: 12px 4px 6px; font-size: 11.5px; color: var(--muted); }
.field { padding: 7px 10px; border-radius: var(--r-field); border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-family: var(--font-mono); font-size: 10.5px; overflow-wrap: anywhere; }
.rcards { display: flex; flex-direction: column; gap: 7px; }
.rcard { position: relative; padding: 9px 11px; border-radius: var(--r-inner); background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.rcard.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.rcard-t { font-size: 12.5px; font-weight: var(--weight-semibold); }
.rcard-d { margin-top: 1px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.rcard-check { position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; border-radius: var(--r-circle); background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-inline: 4px; font-size: 12px; color: var(--ink-2); }
.kv-val { padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; }
.ports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.port { padding: 8px 10px; border-radius: var(--r-inner); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-card); }
.port-k { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.port-v { font-family: var(--font-mono); font-size: 16px; font-weight: var(--weight-semibold); letter-spacing: -.01em; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 9px 10px; border-radius: var(--r-inner); background: var(--bg); color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.switch { position: relative; width: 32px; height: 18px; flex: none; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: var(--r-circle); background: var(--bg); box-shadow: var(--shadow-card); }
.switch.is-on { background: var(--accent); border-color: var(--accent); }
.switch.is-on::after { left: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: var(--weight-semibold); background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); max-width: 100%; overflow-wrap: anywhere; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-dot { width: 6px; height: 6px; flex: none; border-radius: var(--r-circle); background: var(--st-green); }
.decor { position: absolute; top: 0; left: 50%; width: 1440px; height: 100%; transform: translateX(-50%); z-index: 6; pointer-events: none; }
.sticker { position: absolute; width: 80px; height: 80px; margin: 0; }
.sticker svg { display: block; width: 80px; height: 80px; }
.st-fill { stroke: var(--ink); stroke-width: 3.4; }
.st-fill--blue { fill: var(--st-blue); }
.st-fill--orange { fill: var(--st-orange); }
.st-fill--yellow { fill: var(--st-yellow); }
.st-fill--purple { fill: var(--st-purple); }
.st-fill--green { fill: var(--st-green); }
.st-line { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.st-ink { fill: var(--ink); }
.st-paper { fill: var(--bg); stroke: var(--ink); stroke-width: 2.6; }
.st-tag { position: absolute; white-space: nowrap; padding: 2px 9px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--weight-semibold); line-height: 1.5; }
.sticker--vless { left: 190px; top: 126px; }
.sticker--vless svg { transform: rotate(-9deg); }
.sticker--vless .st-tag { left: 74px; top: 56px; transform: rotate(4deg); }
.sticker--vmess { left: 70px; top: 352px; }
.sticker--vmess svg { transform: rotate(11deg); }
.sticker--vmess .st-tag { left: 6px; top: 84px; transform: rotate(-5deg); }
.sticker--trojan { left: 86px; top: 612px; }
.sticker--trojan svg { transform: rotate(-6deg); }
.sticker--trojan .st-tag { left: -8px; top: -26px; transform: rotate(-3deg); }
.sticker--reality { left: 1172px; top: 150px; }
.sticker--reality svg { transform: rotate(8deg); }
.sticker--reality .st-tag { left: -58px; top: 62px; transform: rotate(-4deg); }
.sticker--ss { left: 1290px; top: 424px; }
.sticker--ss svg { transform: rotate(-12deg); }
.sticker--ss .st-tag { left: -30px; top: 86px; transform: rotate(3deg); }
.plat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.pcard { display: block; padding: 20px; border-radius: var(--r-card); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-soft); transition: transform var(--ease); }
.pcard:hover { transform: translateY(-2px); }
.pcard-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-circle); background: var(--panel); color: var(--ink); }
.pcard-ico svg { width: 18px; height: 18px; }
.pcard-name { margin-top: 14px; font-size: 16px; font-weight: var(--weight-display); }
.pcard-client { margin-top: 2px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-dark); }
.pcard-note { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* 跨页交互组件 */
.tabs [role="tablist"] { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px; }
.tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); background: var(--clear); color: var(--muted); font-weight: var(--weight-semibold); }
.tabs [role="tab"]:hover { background: var(--panel-2); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.tabs [role="tabpanel"] { min-width: 0; margin-top: 24px; }
.feature-cabinet { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.feature-cabinet [role="tablist"] { flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: visible; }
.feature-cabinet [role="tab"] { justify-content: flex-start; }
.feature-cabinet [role="tabpanel"] { margin-top: 0; }
.feature-stage { padding: 32px; border-radius: var(--r-container); background: var(--panel); color: var(--ink); }
.feature-stage h3 { margin: 6px 0 0; font-size: 28px; }
.settings-sheet { margin-top: 28px; padding: 24px; border-radius: var(--r-card); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-soft); }
.settings-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.toc { position: sticky; top: 16px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; overflow-x: visible; padding: 8px; margin-block: 24px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink-2); box-shadow: var(--shadow-card); }
.toc a { display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 20px 40px 20px 0; list-style: none; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 20px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-right: 24px; padding-bottom: 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--r-card); background: var(--panel); color: var(--ink); }
.term-card h3 { margin: 12px 0 8px; }
.term-card p { margin-bottom: 12px; color: var(--muted); }
.term-card a { color: var(--accent-dark); font-size: var(--text-sm); }
.client-card { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-soft); }
.client-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.client-head h3 { margin: 0; font-size: 24px; }
.client-meta { margin-block: 10px 20px; color: var(--muted); font-size: var(--text-sm); }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--weight-semibold); overflow-wrap: anywhere; background: var(--panel-2); color: var(--ink-2); }
.badge--first { background: var(--accent-soft); color: var(--accent-dark); }
.badge--recommended { background: var(--success-soft); color: var(--ink-2); }
.badge--retired { background: var(--panel-2); color: var(--muted); }
.tag { background: var(--panel); color: var(--muted); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--r-card); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-soft); }
.article-card h3 { margin: 16px 0 12px; font-size: 21px; }
.article-card p { color: var(--muted); font-size: var(--text-sm); }
.article-card time { margin-top: auto; padding-top: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.article-card h3 a:hover { color: var(--accent-dark); }
.callout { margin: 24px 0; padding: 24px; border-left: 4px solid var(--accent); border-radius: var(--r-inner); background: var(--accent-soft); color: var(--ink-2); }
.callout strong { color: var(--accent-dark); }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-left-color: var(--warn); background: var(--panel); color: var(--ink-2); }
.callout--error { border-left-color: var(--error); background: var(--panel); color: var(--ink-2); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 24px; border: 1px solid var(--line); border-radius: var(--r-inner); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--line);
  overflow-wrap: normal; word-break: normal; vertical-align: top;
}
.data-table th, .prose table th { background: var(--panel); color: var(--ink-2); font-weight: var(--weight-semibold); }
.data-table td, .prose table td { background: var(--bg); color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; margin-block: 24px; }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.article-download { margin-top: 48px; padding: 28px; border-radius: var(--r-card); background: var(--panel); color: var(--ink); }
.article-download h2 { margin: 0 0 12px; font-size: 24px; }
.article-download p { color: var(--muted); }
.dl-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 8px 20px 8px 16px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-fab); font-size: 14.5px; font-weight: var(--weight-semibold);
  transition: transform var(--ease);
}
.dl-fab-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-circle); background: var(--accent); color: var(--bg); }
.dl-fab-ico svg { width: 15px; height: 15px; stroke-width: 2.2; }
.dl-fab:hover { transform: translateY(-2px); }

/* 预览页色板 */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.swatch { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--bg); color: var(--ink-2); font-size: 12px; }
.swatch::before { content: ""; display: block; height: 64px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-field); }
.swatch--bg::before { background: var(--bg); }
.swatch--panel::before { background: var(--panel); }
.swatch--panel-2::before { background: var(--panel-2); }
.swatch--line::before { background: var(--line); }
.swatch--grid::before { background: var(--grid); }
.swatch--accent::before { background: var(--accent); }
.swatch--accent-dark::before { background: var(--accent-dark); }
.swatch--accent-soft::before { background: var(--accent-soft); }
.swatch--accent-ring::before { background: var(--accent-ring); }
.swatch--ink::before { background: var(--ink); }
.swatch--ink-2::before { background: var(--ink-2); }
.swatch--muted::before { background: var(--muted); }
.swatch--faint::before { background: var(--faint); }
.swatch--success::before { background: var(--success); }
.swatch--success-soft::before { background: var(--success-soft); }
.swatch--warn::before { background: var(--warn); }
.swatch--error::before { background: var(--error); }
.swatch--violet::before { background: var(--violet); }
.swatch--st-blue::before { background: var(--st-blue); }
.swatch--st-orange::before { background: var(--st-orange); }
.swatch--st-yellow::before { background: var(--st-yellow); }
.swatch--st-purple::before { background: var(--st-purple); }
.swatch--st-green::before { background: var(--st-green); }
.preview-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.preview-stack { display: grid; gap: 24px; margin-top: 28px; }
.preview-type { margin: 0; font-size: var(--title-size); font-weight: var(--weight-display); line-height: 1.14; letter-spacing: var(--tracking-title); }
.preview-note { margin-top: 16px; color: var(--muted); font-size: var(--text-sm); }

@media (max-width: 1279px) { .decor { display: none; } }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side, .win-path { display: none; }
  .plat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-cabinet { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature-cabinet [role="tablist"] { flex-direction: row; overflow-x: auto; align-items: center; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .kicker { font-size: 11px; gap: 7px; }
  .hero h1 .line { line-height: 1.25; }
  .lead { font-size: 14px; }
  .platforms { column-gap: 0; }
  .platforms li + li::before { margin-inline: 2px; }
  .plat { padding-inline: 6px; font-size: 12px; gap: 5px; }
  .plat svg { width: 14px; height: 14px; }
  .feature-stage { padding: 24px 20px; }
  .feature-stage h3 { font-size: 23px; }
  .settings-sheet { padding: 18px; }
  .client-card, .term-card, .article-card { padding: 22px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero .cta-row { flex-direction: column; align-items: center; }
  .board, .plat-cards { grid-template-columns: minmax(0, 1fr); }
  .win-actions { display: none; }
  .win-main { padding-inline: 14px; }
  .rig { margin-bottom: -32px; }
}