/* ============ 美洽官网 · 样式表 ============ */

:root {
  --brand: #2b6cf6;
  --brand-2: #5b9bff;
  --brand-soft: rgba(43, 108, 246, .1);
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --text: #16181d;
  --text-2: #4c515c;
  --muted: #7b8290;
  --border: #e6e8ef;
  --border-strong: #d5d9e2;
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, .05);
  --shadow: 0 8px 28px rgba(16, 18, 24, .08);
  --shadow-lg: 0 20px 60px rgba(16, 18, 24, .12);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 64px;
  --max: 1200px;
}

[data-theme="dark"] {
  --brand: #6ea8ff;
  --brand-2: #9dc4ff;
  --brand-soft: rgba(110, 168, 255, .16);
  --bg: #0e1116;
  --bg-soft: #14181f;
  --surface: #171b23;
  --surface-2: #1e232d;
  --text: #ecf0f6;
  --text-2: #b6bdc9;
  --muted: #828b9b;
  --border: #262c37;
  --border-strong: #333b49;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部公告 ---------- */
.promo-bar {
  background: linear-gradient(90deg, #1b1f27, #2a1c20 55%, #351a1d);
  color: #fff; font-size: 13px;
}
.promo-bar .container { display: flex; align-items: center; gap: 10px; height: 36px; }
.promo-bar a { color: #ffb3b8; font-weight: 600; }
.promo-bar a:hover { text-decoration: underline; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(255, 122, 69, .22); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 4px 14px rgba(229, 52, 61, .35);
}
.brand-mark .ic { width: 19px; height: 19px; stroke-width: 1.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: .18em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-2); padding: 8px 12px; border-radius: 9px; cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-item:hover .nav-menu, .nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu {
  position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 230px; padding: 8px; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  display: grid; gap: 2px; max-height: 70vh; overflow: auto;
}
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.nav-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-menu a .ic { width: 17px; height: 17px; opacity: .85; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: none; border: 1px solid transparent; border-radius: 10px;
  color: var(--text-2); cursor: pointer; font-size: 22px; line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: none; }
[data-theme="dark"] .ic-moon { display: block; }

.lang { position: relative; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: flex; font-size: 13px; font-weight: 600; }
.lang-short { font-size: 12px; }
.lang-menu {
  position: absolute; right: 0; top: 100%; z-index: 30; min-width: 150px; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.lang:hover .lang-menu, .lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li.is-active a { color: var(--brand); font-weight: 600; }

.nav-toggle { display: none; }

/* ---------- 搜索 ---------- */
.search-panel { border-top: 1px solid var(--border); background: var(--bg); }
.search-panel[hidden] { display: none; }
.search-inner { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 24px; }
.search-inner .ic { color: var(--muted); }
#search-input {
  flex: 1; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); outline: none; padding: 6px 0;
}
.search-results {
  position: absolute; top: 100%; left: 24px; right: 24px; z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 320px; overflow: auto; padding: 6px;
}
.search-results:empty { display: none; }
.search-results a { display: block; padding: 9px 12px; border-radius: 9px; }
.search-results a:hover, .search-results a.is-cursor { background: var(--brand-soft); }
.search-results b { display: block; font-size: 14px; }
.search-results span { font-size: 12px; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s ease;
  font-family: inherit; text-align: center;
}
.btn .ic { width: 17px; height: 17px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(229, 52, 61, .28); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(229, 52, 61, .34); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ---------- Hero ---------- */
.hero-bg, .page-hero .hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(229, 52, 61, .16), transparent 60%),
    radial-gradient(700px 400px at 8% 4%, rgba(255, 122, 69, .12), transparent 62%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 420px at 50% 0%, #000 20%, transparent 75%);
}
.hero, .page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.page-hero { padding: 44px 0 36px; }
.page-hero-sm { padding: 34px 0 28px; }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(229, 52, 61, .22); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: var(--text-2); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; margin: 26px 0 14px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.shield-card {
  position: relative; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.shield-ring {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand);
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  border: 1px solid rgba(229, 52, 61, .25);
  animation: pulse 3.2s ease-in-out infinite;
}
.shield-ring .ic { width: 44px; height: 44px; stroke-width: 1.5; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 52, 61, .22); } 50% { box-shadow: 0 0 0 16px rgba(229, 52, 61, 0); } }
.shield-list { display: grid; gap: 9px; }
.shield-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); }
.shield-list .ic { width: 16px; height: 16px; color: var(--brand); }
.shield-status {
  margin-top: 18px; padding: 10px 14px; border-radius: 11px; background: var(--surface-2);
  font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 9px;
}
.shield-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px;
  padding: 22px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 68px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 34px; position: relative; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--text-2); max-width: 680px; }
.section-tag {
  position: absolute; right: 0; top: 4px; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: all .22s ease; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(229, 52, 61, .38); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand); }
.card-more .ic { width: 15px; height: 15px; transition: transform .2s ease; }
.feature-card:hover .card-more .ic { transform: translateX(3px); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-no {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }
.steps-compact { grid-template-columns: 1fr; gap: 12px; }
.steps-compact .step { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "no title" "no text"; gap: 4px 14px; padding: 16px; }
.steps-compact .step-no { grid-area: no; margin: 0; }
.steps-compact h3 { grid-area: title; }
.steps-compact p { grid-area: text; }

/* ---------- 页面目录 ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dir-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.dir-card h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dir-card h3 .ic { color: var(--brand); width: 18px; height: 18px; }
.dir-card h3 em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: 999px; }
.dir-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.dir-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.dir-list a:hover { background: var(--brand-soft); color: var(--brand); }
.dir-list .ic { width: 15px; height: 15px; opacity: .7; }
.dir-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 用户声音 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.quote blockquote { margin: 0 0 12px; font-size: 15px; color: var(--text-2); }
.quote figcaption { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------- CTA ---------- */
.cta-band { padding: 20px 0 68px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 38px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 18px 40px rgba(229, 52, 61, .26);
}
.cta-inner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-inner p { opacity: .9; font-size: 15px; }

/* ---------- 内容页 ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs em { font-style: normal; color: var(--text-2); }
.page-title { display: flex; align-items: center; gap: 18px; }
.page-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 8px 20px rgba(229, 52, 61, .28);
}
.page-icon .ic { width: 27px; height: 27px; }
.page-title h1 { font-size: clamp(26px, 3.6vw, 36px); }
.page-title p { color: var(--text-2); margin-top: 6px; }
.page-hero .hero-sub { margin-top: 14px; max-width: 700px; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 48px 24px 60px; align-items: start; }
.page-main { min-width: 0; }
.lead { font-size: 17px; color: var(--text-2); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.prose-section { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.prose-section h2 { font-size: 21px; margin-bottom: 12px; }
.prose-section p { color: var(--text-2); }
.check-list { display: grid; gap: 9px; margin-top: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; color: var(--text-2); }
.check-list .ic { width: 17px; height: 17px; color: var(--brand); margin-top: 4px; }

.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 19px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 18px 16px; }
.faq-body p { color: var(--text-2); font-size: 15px; }

.related { padding-top: 30px; }
.related h2 { font-size: 20px; margin-bottom: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: all .2s ease; }
.rel-card:hover { border-color: rgba(229, 52, 61, .4); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rel-card .ic { color: var(--brand); margin-top: 2px; }
.rel-card b { display: block; font-size: 14px; }
.rel-card em { font-style: normal; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.page-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-card h3 { font-size: 14px; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.toc { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-active { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); }
.side-cta { background: linear-gradient(150deg, var(--brand-soft), var(--surface)); border-color: rgba(229, 52, 61, .25); }
.side-cta h3 { color: var(--brand); text-transform: none; letter-spacing: 0; font-size: 16px; }
.side-cta p { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.side-meta p { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 4px 0; }
.side-meta b { color: var(--text-2); font-weight: 600; }

/* ---------- 下载页 ---------- */
.tabs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.tab-panels { margin-top: 4px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.dl-card { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.dl-card-main h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card-main h3 .tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.dl-card-main > p { color: var(--text-2); margin: 8px 0 18px; font-size: 15px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; margin-bottom: 18px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.meta-row span { color: var(--muted); }
.meta-row b { font-weight: 600; }
.dl-card-side { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.hash { font-size: 12px; color: var(--muted); }
.hash span { display: block; margin-bottom: 4px; }
.hash code { display: block; word-break: break-all; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 11.5px; }
.btn-copy { margin-top: 8px; background: none; border: 0; color: var(--brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.notice { margin-top: 16px; font-size: 13px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col h2 { font-size: 22px; margin-bottom: 16px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.req-table th { text-align: left; padding: 11px 12px; width: 40%; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.req-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }

.history { display: grid; gap: 10px; margin-top: 8px; }
.history li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.h-ver b { font-size: 15px; }
.h-ver span { display: block; font-size: 12.5px; color: var(--muted); }
.h-note { font-size: 14px; color: var(--text-2); }

/* ---------- 404 ---------- */
.empty-state { text-align: center; padding: 80px 0; }
.empty-state h1 { font-size: 76px; color: var(--brand); }
.empty-state p { color: var(--text-2); margin: 8px 0 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 20px; }
.foot-top { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.foot-brand p { margin: 14px 0 18px; font-size: 14px; color: var(--text-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.foot-col h4 { font-size: 14px; margin-bottom: 12px; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 13.5px; color: var(--text-2); }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { padding-top: 22px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.foot-demo { color: var(--text-2); }
.foot-langs a { color: var(--text-2); }
.foot-langs a:hover { color: var(--brand); }
.foot-langs .sep { margin: 0 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(10px);
  background: #16181d; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px;
  z-index: 90; opacity: 0; transition: all .22s ease; box-shadow: var(--shadow-lg);
}
.toast[hidden] { display: none; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 460px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps, .quote-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-item .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 4px 0 8px; background: var(--bg-soft); display: none; }
  .nav-item.is-open .nav-menu { display: grid; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px; }
  .header-actions .btn-primary { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .page-side { grid-template-columns: 1fr; }
  .history li { grid-template-columns: 1fr; gap: 6px; }
  .cta-inner { padding: 28px 24px; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .feature-grid, .steps, .quote-grid, .rel-grid, .dir-list, .foot-cols, .meta-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 32px; }
  .page-title { gap: 14px; }
  .page-icon { width: 44px; height: 44px; border-radius: 12px; }
  .search-results { left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
