/* ==========================================================================
   Radmin VPN 中文资料站 —— 全站样式
   设计令牌与 microsoft.com 保持一致：Segoe UI 字体栈、#0078d4 主色、圆角 2px、
   8px 网格间距、顶部全局导航 + 分类面包屑 + 内容区 + 全量页脚
   ========================================================================== */

:root {
  --c-brand: #0078d4;
  --c-brand-hover: #106ebe;
  --c-brand-press: #005a9e;
  --c-brand-light: #eff6fc;
  --c-ink: #161616;
  --c-ink-2: #323130;
  --c-muted: #616161;
  --c-line: #e1dfdd;
  --c-line-strong: #c8c6c4;
  --c-surface: #ffffff;
  --c-surface-alt: #faf9f8;
  --c-surface-alt2: #f3f2f1;
  --c-dark: #201f1e;
  --c-dark-2: #2b2a29;
  --c-success: #107c10;
  --c-warning: #797673;
  --c-focus: #0078d4;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  --radius: 2px;
  --radius-lg: 6px;
  --shadow-2: 0 1.3px 3.4px rgba(0, 0, 0, 0.14), 0 0 1.5px rgba(0, 0, 0, 0.12);
  --shadow-8: 0 3.2px 7.2px rgba(0, 0, 0, 0.13), 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-16: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-64: 0 12.8px 28.8px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.14);

  --maxw: 1440px;
  --header-h: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-hover); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 var(--sp-3); }
ul { margin: 0; padding-left: var(--sp-5); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 1080px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; color: var(--c-ink); padding: 10px 16px; border: 2px solid var(--c-brand);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================ 顶部全局导航 ============================ */
.global-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-dark);
  color: #fff;
  height: var(--header-h);
  font-size: 12px;
}
.gh-inner { display: flex; align-items: center; height: var(--header-h); gap: var(--sp-2); }

.gh-logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.3px;
  padding: 0 var(--sp-3) 0 0; white-space: nowrap;
}
.gh-logo:hover { text-decoration: none; color: #fff; opacity: .92; }
.gh-logo img { width: 28px; height: 28px; }
.brand-text { white-space: nowrap; }
.brand-radmin { color: #3498db; }
.brand-vpn { color: #fff; }
.brand-mark { display: flex; align-items: center; gap: 8px; }
.brand-mark img { width: 26px; height: 26px; }
.footer-mark .footer-vpn { color: var(--c-ink); }

.gh-nav { display: flex; align-items: center; height: 100%; flex: 1; min-width: 0; }
.gh-item { position: relative; height: 100%; }
.gh-item > button,
.gh-item > a.gh-link {
  display: flex; align-items: center; gap: 4px;
  height: 100%; padding: 0 10px; background: none; border: 0;
  color: #fff; font-size: 12px; white-space: nowrap;
}
.gh-item > button:hover, .gh-item > a.gh-link:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.gh-caret { width: 8px; height: 5px; fill: currentColor; transition: transform .15s ease; }
.gh-item.open .gh-caret { transform: rotate(180deg); }

.gh-mega {
  position: absolute; top: var(--header-h); left: 0; z-index: 90;
  min-width: 720px; background: #fff; color: var(--c-ink);
  box-shadow: var(--shadow-16); border-top: 2px solid var(--c-brand);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6);
}
.gh-item.open .gh-mega { display: grid; }
.gh-mega h4 { font-size: 12px; color: var(--c-muted); margin-bottom: var(--sp-2); font-weight: 600; }
.gh-mega a { display: block; padding: 5px 0; color: var(--c-ink); font-size: 13px; }
.gh-mega a:hover { color: var(--c-brand); text-decoration: underline; }

.gh-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.gh-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: none; border: 0; color: #fff; border-radius: var(--radius);
  position: relative;
}
.gh-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.gh-icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.gh-badge {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  background: #d83b01; color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px;
  text-align: center; font-weight: 600;
}
.gh-hamburger { display: none; }

/* ============================ 页头横幅 ============================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: #1b2733;
  background-image: url("../img/hero-bg.jpg");
  background-image: image-set(
    url("../img/hero-bg.webp") type("image/webp"),
    url("../img/hero-bg.jpg") type("image/jpeg")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-track { display: flex; transition: transform .45s cubic-bezier(.33, 0, .67, 1); }
.hero-slide { min-width: 100%; min-height: 440px; padding: var(--sp-16) 0; position: relative; display: flex; align-items: center; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 20, 32, .72) 0%, rgba(9, 20, 32, .42) 55%, rgba(9, 20, 32, .12) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-12); }
.hero-copy { max-width: 640px; }
.hero-eyebrow { font-size: 15px; font-weight: 600; color: #a9d8ff; margin-bottom: var(--sp-2); letter-spacing: .3px; }
.hero h1,
.hero .hero-title { font-size: 40px; line-height: 1.14; font-weight: 600; margin-bottom: var(--sp-5); letter-spacing: -.5px; color: #fff; }
.hero p { font-size: 16px; color: #d6d6d6; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-dots { display: flex; justify-content: center; gap: var(--sp-2); padding: var(--sp-4) 0 var(--sp-5); }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .38);
}
.hero-dots button[aria-current="true"] { background: #fff; width: 24px; border-radius: 5px; }
.hero-dots button:hover { background: rgba(255, 255, 255, .7); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .26); }
.hero-arrow svg { width: 14px; height: 14px; fill: currentColor; }
.hero-arrow.prev { left: var(--sp-4); }
.hero-arrow.next { right: var(--sp-4); }

/* ============================ 通用区块 ============================ */
.section { padding: var(--sp-12) 0; }
.section-alt { background: var(--c-surface-alt); }
.section-tight { padding: var(--sp-8) 0; }

.section-head { margin-bottom: var(--sp-6); }
.section-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.3px; }
.section-head p { color: var(--c-muted); margin: var(--sp-2) 0 0; font-size: 15px; }

.page-head { padding: var(--sp-10) 0 var(--sp-6); border-bottom: 1px solid var(--c-line); }
.page-head h1 { font-size: 34px; letter-spacing: -.4px; }
.page-head .lead { color: var(--c-muted); font-size: 16px; max-width: 780px; margin-top: var(--sp-3); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 5px 16px; border-radius: var(--radius);
  border: 1px solid transparent; font-size: 14px; font-weight: 400;
  cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-hover); color: #fff; }
.btn-primary:active { background: var(--c-brand-press); }
.btn-secondary { background: #fff; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn-secondary:hover { background: var(--c-surface-alt2); border-color: var(--c-muted); color: var(--c-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-lg { min-height: 44px; padding: 10px 24px; font-size: 16px; }
.btn-sm { min-height: 28px; padding: 3px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ============================ 分类卡片 ============================ */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
}
.cat-card {
  display: flex; gap: var(--sp-4); padding: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
  position: relative; min-height: 148px;
}
.cat-card:hover {
  box-shadow: var(--shadow-8); border-color: transparent; transform: translateY(-2px); text-decoration: none;
}
.cat-card .cc-ico {
  width: 48px; height: 48px; flex: none; border-radius: var(--radius-lg);
  display: grid; place-items: center; color: #fff;
}
.cat-card .cc-ico svg { width: 24px; height: 24px; fill: currentColor; }
.cat-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--c-ink); }
.cat-card p { color: var(--c-muted); font-size: 13px; margin: 0; }
.cat-card .cc-more {
  margin-top: auto; padding-top: var(--sp-3); font-size: 13px; color: var(--c-brand);
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-card:hover .cc-more { text-decoration: underline; }

.cc-ico.windows { background: linear-gradient(135deg, #0078d4, #00a4ef); }
.cc-ico.office { background: linear-gradient(135deg, #d83b01, #f25022); }
.cc-ico.xbox { background: linear-gradient(135deg, #107c10, #3aa757); }
.cc-ico.developer { background: linear-gradient(135deg, #5c2d91, #8c4fd8); }
.cc-ico.browser { background: linear-gradient(135deg, #00a4ef, #50e6ff); }
.cc-ico.drivers { background: linear-gradient(135deg, #323130, #605e5c); }

/* ============================ 产品列表 ============================ */
.toolbar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); margin-bottom: var(--sp-6);
}
.toolbar .tb-grow { flex: 1; }
.result-count { color: var(--c-muted); font-size: 13px; }
.result-count strong { color: var(--c-ink); font-weight: 600; }

.filter-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px;
  border: 1px solid var(--c-line-strong); background: #fff; border-radius: 14px;
  font-size: 12px; color: var(--c-ink-2);
}
.chip:hover { background: var(--c-surface-alt2); }
.chip.active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.chip .x { font-size: 14px; line-height: 1; opacity: .7; }
.chip.active .x:hover { opacity: 1; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
select.control {
  appearance: none; -webkit-appearance: none;
  height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--c-line-strong);
  border-radius: var(--radius); background: #fff; font-size: 13px; color: var(--c-ink); cursor: pointer;
}
select.control:hover { border-color: var(--c-muted); }
.select-wrap::after {
  content: ""; position: absolute; right: 11px; width: 7px; height: 7px;
  border-right: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-ink);
  transform: rotate(45deg) translateY(-2px); pointer-events: none;
}

.prod-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.prod-card {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4);
  padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); transition: box-shadow .15s ease, border-color .15s ease;
}
.prod-card:hover { box-shadow: var(--shadow-8); border-color: transparent; }
.prod-title { font-size: 17px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.prod-title:hover { color: var(--c-brand); text-decoration: underline; }
.prod-desc { color: var(--c-muted); font-size: 13px; margin: 0 0 var(--sp-3); }
.prod-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: 12px; color: var(--c-muted); }
.prod-meta b { color: var(--c-ink-2); font-weight: 600; }
.prod-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); justify-content: center; }
.prod-lang { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--c-muted); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; background: var(--c-brand-light); color: var(--c-brand-press);
  border: 1px solid #c7e0f4;
}
.tag.preview { background: #fff4e5; color: #a4262c; border-color: #f3d9a4; }
.tag.latest { background: #e8f6ec; color: var(--c-success); border-color: #bfe3c8; }
.tag.deprecated { background: var(--c-surface-alt2); color: var(--c-muted); border-color: var(--c-line-strong); }
.tag.security { background: #fdf3f7; color: #a4262c; border-color: #f0c6d4; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }

/* 特性大卡 */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.feature-card {
  padding: var(--sp-6); border: 1px solid var(--c-line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--c-surface-alt));
}
.feature-card h3 { font-size: 20px; margin-bottom: var(--sp-2); }
.feature-card p { color: var(--c-muted); }
.feature-card .fc-links { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* 通知条 */
.notice {
  display: flex; gap: var(--sp-4); padding: var(--sp-5);
  background: var(--c-brand-light); border-left: 4px solid var(--c-brand);
  border-radius: var(--radius); margin: var(--sp-6) 0;
}
.notice .n-ico { flex: none; width: 22px; height: 22px; fill: var(--c-brand-press); }
.notice h3 { font-size: 16px; margin-bottom: 6px; }
.notice p { font-size: 13px; color: var(--c-ink-2); margin-bottom: var(--sp-2); }

/* ============================ 详情页 ============================ */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-10); align-items: start; }
.detail-main h1 { font-size: 28px; line-height: 1.25; margin-bottom: var(--sp-3); }
.detail-lead { color: var(--c-muted); font-size: 15px; margin-bottom: var(--sp-6); }

.quick-facts {
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: var(--sp-6);
}
.qf-row {
  display: grid; grid-template-columns: 190px 1fr; gap: var(--sp-4);
  padding: 11px var(--sp-4); font-size: 13px; border-bottom: 1px solid var(--c-line);
}
.qf-row:last-child { border-bottom: 0; }
.qf-row:nth-child(odd) { background: var(--c-surface-alt); }
.qf-row dt { color: var(--c-muted); margin: 0; }
.qf-row dd { margin: 0; color: var(--c-ink); word-break: break-all; }

.dl-panel { background: var(--c-surface-alt2); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.dl-panel h3 { font-size: 15px; margin-bottom: var(--sp-3); }
.dl-lang-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.dl-lang-row label { font-size: 13px; color: var(--c-ink-2); font-weight: 600; }
.dl-files { display: flex; flex-direction: column; gap: var(--sp-2); }
.dl-file {
  display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-4);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 13px;
}
.dl-file .df-name { font-weight: 600; color: var(--c-ink); word-break: break-all; }
.dl-file .df-meta { color: var(--c-muted); font-size: 12px; }
.dl-file .df-actions { margin-left: auto; display: flex; gap: var(--sp-2); align-items: center; }

.detail-section { margin-bottom: var(--sp-8); }
.detail-section h2 {
  font-size: 20px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-ink); display: inline-block;
}
.detail-section h3 { font-size: 15px; margin: var(--sp-4) 0 var(--sp-2); }
.detail-section ul { color: var(--c-ink-2); }
.detail-section li { margin-bottom: 6px; }
.detail-section p { color: var(--c-ink-2); }
.note-box {
  background: var(--c-surface-alt); border-left: 3px solid var(--c-line-strong);
  padding: var(--sp-3) var(--sp-4); font-size: 13px; color: var(--c-muted); margin: var(--sp-3) 0;
}
.steps { counter-reset: st; list-style: none; padding: 0; }
.steps li { counter-increment: st; position: relative; padding-left: 34px; margin-bottom: var(--sp-3); }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-brand); color: #fff;
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.res-list { list-style: none; padding: 0; }
.res-list li { padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.res-list li:last-child { border-bottom: 0; }
.res-list .rs-label { font-weight: 600; }
.res-list .rs-text { color: var(--c-muted); font-size: 13px; display: block; margin-top: 2px; }

.related-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.related-item {
  display: block; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-line);
  border-radius: var(--radius); background: #fff;
}
.related-item:hover { box-shadow: var(--shadow-2); border-color: transparent; text-decoration: none; }
.related-item strong { display: block; font-size: 13px; color: var(--c-ink); }
.related-item span { font-size: 12px; color: var(--c-muted); }

.aside-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.aside-card h3 { font-size: 14px; margin-bottom: var(--sp-3); }
.aside-card .ac-item { display: flex; gap: var(--sp-3); padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--c-line); }
.aside-card .ac-item:last-child { border-bottom: 0; }
.aside-card .ac-item span { color: var(--c-muted); font-size: 12px; display: block; }
.aside-card .ac-thumb {
  width: 36px; height: 36px; flex: none; border-radius: var(--radius); background: var(--c-surface-alt2);
  display: grid; place-items: center;
}
.aside-card .ac-thumb svg { width: 18px; height: 18px; fill: var(--c-brand); }

.fav-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 5px 12px; font-size: 13px; }
.fav-btn:hover { background: var(--c-surface-alt2); }
.fav-btn.on { background: var(--c-brand-light); border-color: var(--c-brand); color: var(--c-brand-press); }
.fav-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================ 搜索结果页 ============================ */
.search-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--c-line); padding: var(--sp-4) 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: 13px; margin-bottom: var(--sp-2); }
.filter-group .fg-body { max-height: 260px; overflow-y: auto; }
.fg-item { display: flex; align-items: center; gap: var(--sp-2); padding: 5px 0; font-size: 13px; color: var(--c-ink-2); }
.fg-item input { accent-color: var(--c-brand); width: 15px; height: 15px; }
.fg-item .fg-count { margin-left: auto; color: var(--c-muted); font-size: 12px; }
.fg-item.disabled { opacity: .45; }
.fg-clear { font-size: 12px; padding: 0; background: none; border: 0; color: var(--c-brand); }
.fg-clear:hover { text-decoration: underline; }

.sort-box { display: flex; align-items: center; gap: var(--sp-3); }
.sort-box label { font-size: 13px; color: var(--c-muted); }

.result-item {
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4);
}
.result-item h3 { font-size: 17px; margin-bottom: 5px; }
.result-item h3 a { color: var(--c-ink); }
.result-item h3 a:hover { color: var(--c-brand); }
.result-item .ri-desc { color: var(--c-muted); font-size: 13px; margin-bottom: var(--sp-2); }
.result-item .ri-meta { font-size: 12px; color: var(--c-muted); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.result-item .ri-actions { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-8) 0; }
.pagination button {
  min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--c-line-strong);
  background: #fff; border-radius: var(--radius); font-size: 13px; color: var(--c-ink);
}
.pagination button:hover:not([disabled]) { background: var(--c-surface-alt2); }
.pagination button.active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.pagination button[disabled] { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: var(--sp-16) var(--sp-4); color: var(--c-muted); }
.empty-state svg { width: 56px; height: 56px; fill: var(--c-line-strong); margin: 0 auto var(--sp-4); }
.empty-state h3 { font-size: 18px; color: var(--c-ink); margin-bottom: var(--sp-2); }

/* ============================ 折叠面板 FAQ ============================ */
.faq-toolbar { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.faq-toolbar button {
  background: none; border: 0; color: var(--c-brand); font-size: 13px; padding: 0;
}
.faq-toolbar button:hover { text-decoration: underline; }
.accordion { border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: var(--sp-3);
  background: none; border: 0; text-align: left; padding: var(--sp-4) 0;
  font-size: 15px; font-weight: 600; color: var(--c-ink);
}
.acc-head:hover { color: var(--c-brand); }
.acc-head .acc-icon {
  margin-left: auto; width: 20px; height: 20px; flex: none; position: relative;
}
.acc-head .acc-icon::before, .acc-head .acc-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform .18s ease;
}
.acc-head .acc-icon::before { width: 12px; height: 1.5px; left: 4px; top: 9px; }
.acc-head .acc-icon::after { width: 1.5px; height: 12px; left: 9px; top: 4px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-body { display: none; padding: 0 0 var(--sp-5); color: var(--c-ink-2); max-width: 900px; }
.acc-item.open .acc-body { display: block; }
.acc-body h4 { font-size: 14px; margin: var(--sp-4) 0 var(--sp-2); }
.acc-body ul { padding-left: var(--sp-5); }
.acc-body li { margin-bottom: 6px; }

/* ============================ Toast ============================ */
.toast-host {
  position: fixed; right: var(--sp-6); bottom: var(--sp-6); z-index: 200;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 280px; max-width: 420px;
  background: var(--c-dark); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius); box-shadow: var(--shadow-64); font-size: 13px;
  animation: toast-in .22s cubic-bezier(.33, 0, .67, 1);
}
.toast.ok { border-left: 3px solid #6bb700; }
.toast.info { border-left: 3px solid var(--c-brand); }
.toast.warn { border-left: 3px solid #ffaa44; }
.toast .t-close { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1; padding: 0; margin-left: auto; }
.toast .t-close:hover { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================ 页脚 ============================ */
.global-footer { background: var(--c-surface-alt2); border-top: 1px solid var(--c-line); margin-top: var(--sp-16); }
.footer-main { padding: var(--sp-10) 0 var(--sp-6); }
.footer-bottom { border-top: 1px solid var(--c-line); padding: var(--sp-4) 0 var(--sp-8); }
.footer-copy { font-size: 12px; color: var(--c-muted); margin-top: var(--sp-3); }
.footer-mark { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.footer-mark img { width: 30px; height: 30px; }

/* 语言/区域弹窗 */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 300;
  display: none; align-items: flex-start; justify-content: center; padding-top: 80px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff; width: min(720px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  box-shadow: var(--shadow-64); padding: var(--sp-6);
}
.modal h2 { font-size: 18px; margin-bottom: var(--sp-2); }
.modal p { color: var(--c-muted); font-size: 13px; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px var(--sp-4); margin: var(--sp-4) 0; }
.modal-grid button {
  text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: var(--radius);
  font-size: 13px; color: var(--c-ink); display: flex; align-items: center; gap: var(--sp-2);
}
.modal-grid button:hover { background: var(--c-brand-light); }
.modal-grid button[aria-current="true"] { background: var(--c-brand-light); font-weight: 600; }
.modal-grid button .chk { width: 14px; height: 14px; fill: var(--c-brand); flex: none; opacity: 0; }
.modal-grid button[aria-current="true"] .chk { opacity: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--c-muted); }

/* 移动端抽屉 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(0, 0, 0, .5);
}
.mobile-nav.show { display: block; }
.mn-panel {
  position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw);
  background: var(--c-dark); color: #fff; overflow-y: auto; padding-bottom: var(--sp-8);
  animation: mn-in .2s ease;
}
@keyframes mn-in { from { transform: translateX(-100%); } to { transform: none; } }
.mn-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4); border-bottom: 1px solid rgba(255, 255, 255, .16); font-weight: 600;
}
.mn-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; }
.mn-panel details { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mn-panel summary {
  padding: 12px var(--sp-4); cursor: pointer; font-size: 13px; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.mn-panel summary::-webkit-details-marker { display: none; }
.mn-panel summary::after { content: "+"; font-size: 16px; opacity: .8; }
.mn-panel details[open] summary::after { content: "–"; }
.mn-sub { padding: 0 var(--sp-4) var(--sp-3) var(--sp-6); }
.mn-sub a { display: block; padding: 7px 0; color: rgba(255, 255, 255, .82); font-size: 13px; }
.mn-sub a:hover { color: #fff; text-decoration: underline; }

/* ============================ 响应式 ============================ */
@media (max-width: 1200px) {
  .detail-wrap { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-6); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .gh-nav { display: none; }
  .gh-hamburger { display: inline-flex; }
  .hero h1 { font-size: 32px; }
  .search-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-panel { position: static; }
  .filter-panel .filter-group .fg-body { max-height: none; }
  .detail-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-8) 0; }
  .hero-slide { padding: var(--sp-10) 0; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .page-head h1 { font-size: 26px; }
  .section-head h2 { font-size: 22px; }
  .cat-grid, .feature-grid { grid-template-columns: 1fr; }
  .prod-card, .result-item { grid-template-columns: 1fr; }
  .prod-side { align-items: flex-start; }
  .qf-row { grid-template-columns: 1fr; gap: 2px; }
  .dl-file { flex-wrap: wrap; }
  .dl-file .df-actions { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .toolbar { flex-direction: column; align-items: stretch; }
}

/* 打印 */
@media print {
  .global-header, .global-footer, .hero, .toolbar, .pagination { display: none !important; }
  .detail-wrap, .search-layout { grid-template-columns: 1fr; }
}
