/* ============ 搜狗浏览器官网 · 样式表（紫青渐变 / Bento 布局） ============ */

:root {
  --brand: #6d5cf6;
  --brand-2: #12bcd4;
  --brand-3: #a855f7;
  --brand-soft: rgba(109, 92, 246, .1);
  --grad: linear-gradient(120deg, #6d5cf6 0%, #8b5cf6 45%, #12bcd4 100%);
  --grad-soft: linear-gradient(120deg, rgba(109, 92, 246, .12), rgba(18, 188, 212, .12));
  --glow: rgba(109, 92, 246, .3);
  --glow-2: rgba(18, 188, 212, .26);
  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --surface: #ffffff;
  --surface-2: #f3f2fb;
  --text: #171a24;
  --text-2: #4d5364;
  --muted: #7c8395;
  --border: #e7e6f2;
  --border-strong: #d5d3e8;
  --shadow-sm: 0 1px 2px rgba(20, 20, 45, .05);
  --shadow: 0 8px 28px rgba(28, 24, 70, .08);
  --shadow-lg: 0 22px 60px rgba(28, 24, 70, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 66px;
  --max: 1220px;
}

[data-theme="dark"] {
  --brand: #a394ff;
  --brand-2: #5fdcea;
  --brand-3: #c99bff;
  --brand-soft: rgba(163, 148, 255, .16);
  --grad: linear-gradient(120deg, #7c6cff 0%, #a855f7 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 108, 255, .18), rgba(34, 211, 238, .14));
  --glow: rgba(124, 108, 255, .42);
  --glow-2: rgba(34, 211, 238, .3);
  --bg: #0c0e17;
  --bg-soft: #12151f;
  --surface: #151926;
  --surface-2: #1c2131;
  --text: #e9ecf6;
  --text-2: #b3bacd;
  --muted: #81899c;
  --border: #252b3d;
  --border-strong: #343c54;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

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

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.72;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; }
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 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部公告 ---------- */
.promo-bar { background: linear-gradient(90deg, #4f34e8, #7c3aed 48%, #0e9bb8); color: #fff; font-size: 13px; }
.promo-bar .container { display: flex; align-items: center; gap: 10px; height: 38px; }
.promo-bar a { color: #d7fbff; font-weight: 600; }
.promo-bar a:hover { text-decoration: underline; }
.promo-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7df1ff;
  box-shadow: 0 0 0 4px rgba(125, 241, 255, .24);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--grad); opacity: .5;
}
@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: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px var(--glow);
}
.brand-mark .ic { width: 20px; height: 20px; 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: .2em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; 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: 999px; 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: 240px; padding: 8px; margin-top: 8px;
  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: var(--radius-sm); 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: 12px;
  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: 156px; margin-top: 8px;
  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: var(--radius-sm); 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: var(--radius-sm); }
.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: 999px; 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 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px var(--glow); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 30px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-light { background: #fff; color: #4f34e8; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* ---------- Hero ---------- */
.hero-bg, .page-hero .hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(760px 420px at 84% -8%, rgba(109, 92, 246, .22), transparent 62%),
    radial-gradient(640px 380px at 4% 6%, rgba(18, 188, 212, .18), transparent 64%);
}
.hero-bg::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 940px; height: 560px;
  transform: translateX(-50%); border-radius: 50%; filter: blur(80px); opacity: .6;
  background: conic-gradient(from 200deg, rgba(109, 92, 246, .3), rgba(18, 188, 212, .26), rgba(168, 85, 247, .28), rgba(109, 92, 246, .3));
  animation: aurora 20s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(680px 420px at 50% 0%, #000 18%, transparent 72%);
}
@keyframes aurora { from { transform: translateX(-52%) rotate(0deg); } to { transform: translateX(-46%) rotate(18deg); } }

.hero, .page-hero { position: relative; padding: 76px 0 44px; overflow: hidden; }
.page-hero { padding: 46px 0 34px; }
.page-hero-sm { padding: 36px 0 30px; }

.hero-inner { display: grid; grid-template-columns: 1fr 1.02fr; gap: 46px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(109, 92, 246, .24); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px); line-height: 1.12; margin-bottom: 16px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--text-2); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); }

/* ---------- 浏览器窗口视觉 ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 6% -8% 8%; z-index: 0;
  background: var(--grad); filter: blur(56px); opacity: .24; border-radius: 48px;
}
.browser-window {
  position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.browser-window::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad); opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.bw-bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.bw-dots { display: flex; gap: 6px; }
.bw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d7ea; }
.bw-dots i:nth-child(1) { background: #ff5f57; }
.bw-dots i:nth-child(2) { background: #febc2e; }
.bw-dots i:nth-child(3) { background: #28c840; }
.bw-omnibox {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap;
}
.bw-omnibox .ic { width: 14px; height: 14px; color: #22c55e; }
.bw-omnibox em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--grad); padding: 2px 10px; border-radius: 999px;
}
.bw-actions { display: flex; gap: 8px; color: var(--muted); }
.bw-actions .ic { width: 16px; height: 16px; }
.bw-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; background: var(--surface-2); }
.bw-tab {
  display: inline-flex; align-items: center; gap: 6px; max-width: 130px; padding: 7px 12px;
  border-radius: 10px 10px 0 0; font-size: 12px; color: var(--muted); background: var(--bg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bw-tab .ic { width: 13px; height: 13px; }
.bw-tab.is-active {
  color: var(--text); font-weight: 600; background: var(--surface);
  box-shadow: inset 0 2px 0 var(--brand), 0 -1px 0 var(--border), 1px 0 0 var(--border), -1px 0 0 var(--border);
}
.bw-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; background: var(--surface); }
.bw-tile {
  display: grid; place-items: center; gap: 8px; padding: 20px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); text-align: center;
}
.bw-tile .ic { width: 20px; height: 20px; color: var(--brand); }
.bw-tile b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.bw-status {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.bw-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; position: relative;
  padding: 22px 8px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 2px 14px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.stat b {
  display: block; font-size: 27px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 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: 36px; position: relative; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--text-2); max-width: 700px; }
.section-tag {
  position: absolute; right: 0; top: 4px; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}

/* ---------- Bento 功能网格 ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-rows: minmax(150px, auto); }
.feature-card {
  position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); transition: all .24s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(109, 92, 246, .4); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  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: 16px; 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); }

.bento .feature-card:nth-child(1) { grid-column: span 3; grid-row: span 2; background: var(--grad); border-color: transparent; }
.bento .feature-card:nth-child(1)::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.bento .feature-card:nth-child(1) .feature-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.bento .feature-card:nth-child(1) h3 { color: #fff; font-size: 22px; }
.bento .feature-card:nth-child(1) p { color: rgba(255, 255, 255, .88); font-size: 15px; }
.bento .feature-card:nth-child(1) .card-more { color: #fff; }
.bento .feature-card:nth-child(2),
.bento .feature-card:nth-child(3) { grid-column: span 3; }
.bento .feature-card:nth-child(4),
.bento .feature-card:nth-child(5),
.bento .feature-card:nth-child(6) { grid-column: span 2; }

/* ---------- 流程（横向连线） ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-grid .step { position: relative; }
.flow-grid .step:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 26px; width: 24px; height: 2px; border-radius: 2px;
  background: var(--grad); opacity: .55;
}
.step {
  padding: 24px 22px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); transition: all .22s ease;
}
.step:hover { border-color: rgba(18, 188, 212, .45); box-shadow: var(--shadow-sm); }
.step-no {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px;
  box-shadow: 0 6px 16px var(--glow);
}
.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::after { display: none; }
.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: 0; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
}
.dir-card h3 {
  display: flex; align-items: center; gap: 9px; font-size: 16px; padding: 16px 22px;
  background: var(--grad-soft); 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(--brand);
  background: var(--surface); padding: 2px 10px; border-radius: 999px;
}
.dir-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 14px; }
.dir-list a { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--radius-sm); 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; }

/* ---------- 用户声音 ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  position: relative; margin: 0; padding: 26px 24px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.quote::before {
  content: "\201C"; position: absolute; right: 16px; top: 2px;
  font-size: 64px; line-height: 1; color: var(--brand); opacity: .16;
}
.quote blockquote { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }
.quote figcaption {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand);
  padding: 4px 12px; border-radius: 999px; background: var(--brand-soft);
}

/* ---------- CTA ---------- */
.cta-band { padding: 16px 0 72px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: var(--grad); color: #fff; box-shadow: 0 20px 46px var(--glow);
}
.cta-inner::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.cta-inner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-inner p { opacity: .92; 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: 56px; height: 56px; border-radius: 18px; flex: none;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px var(--glow);
}
.page-icon .ic { width: 28px; height: 28px; }
.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: 720px; }

.page-layout {
  display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 34px;
  padding: 40px 24px 64px; align-items: start;
}
.page-main {
  grid-column: 2; grid-row: 1; min-width: 0; position: relative; overflow: hidden;
  padding: 30px 34px 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.page-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.lead {
  font-size: 16.5px; color: var(--text-2); padding: 16px 18px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px;
}
.prose-section {
  padding: 22px 24px; margin-bottom: 14px; border-radius: var(--radius); scroll-margin-top: 96px;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--brand);
}
.prose-section h2 { font-size: 20px; margin-bottom: 10px; }
.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: "\2212"; }
.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(109, 92, 246, .45); 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 { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.side-card { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.side-card h3 { font-size: 13px; margin-bottom: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.toc { display: grid; gap: 4px; position: relative; }
.toc::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.toc a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 26px;
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2);
}
.toc a::before {
  content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong);
}
.toc a:hover, .toc a.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.toc a.is-active::before { background: var(--grad); box-shadow: 0 0 0 3px var(--brand-soft); }
.side-cta { background: var(--grad); border-color: transparent; }
.side-cta h3 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 16px; }
.side-cta p { font-size: 13.5px; color: rgba(255, 255, 255, .88); margin-bottom: 14px; }
.side-cta .btn-primary { background: #fff; color: #4f34e8; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.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: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px var(--glow); }
.tab-panels { margin-top: 4px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.dl-stack { display: grid; gap: 18px; }
.dl-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 268px; gap: 0 26px;
  padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .22s ease;
}
.dl-card:hover { border-color: rgba(109, 92, 246, .38); box-shadow: var(--shadow); }
.dl-card-head {
  display: grid; place-content: center; justify-items: center; gap: 12px; align-self: center;
  padding: 18px 10px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--border);
}
.dl-card-head .ic { width: 34px; height: 34px; color: var(--brand); stroke-width: 1.5; }
.dl-tag { font-size: 12px; font-weight: 600; color: var(--brand); }
.dl-card-main { align-self: center; }
.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 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.dl-card-main > p { color: var(--text-2); margin: 8px 0 16px; font-size: 15px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; margin-bottom: 16px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 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: center; padding: 20px; border-radius: var(--radius-lg);
  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: var(--radius-sm); 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: 18px; 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: 190px 1fr; gap: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-2); }
.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: 78px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.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: 16px; }
.foot-top { display: grid; grid-template-columns: 320px 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: #141726; color: #fff; padding: 11px 22px; 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: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 520px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-main { grid-column: 1; grid-row: 2; }
  .page-side { grid-column: 1; grid-row: 1; position: static; grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .feature-card:nth-child(1) { grid-column: span 4; grid-row: auto; }
  .bento .feature-card:nth-child(2),
  .bento .feature-card:nth-child(3) { grid-column: span 2; }
  .bento .feature-card:nth-child(4),
  .bento .feature-card:nth-child(5),
  .bento .feature-card:nth-child(6) { grid-column: span 2; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid .step:not(:last-child)::after { display: none; }
  .voice-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; gap: 18px; }
  .dl-card-head { justify-items: start; grid-auto-flow: column; justify-content: start; padding: 14px 16px; }
}

@media (max-width: 900px) {
  .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); }
  .stat:nth-child(3)::before { display: none; }
  .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: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .feature-card:nth-child(n) { grid-column: span 1; }
  .voice-grid, .rel-grid, .flow-grid, .dir-list, .foot-cols, .meta-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 50px 0 32px; }
  .bw-view { grid-template-columns: repeat(2, 1fr); }
  .page-title { gap: 14px; }
  .page-icon { width: 46px; height: 46px; border-radius: 14px; }
  .page-main { padding: 22px 18px 26px; }
  .search-results { left: 16px; right: 16px; }
  .stats { padding: 16px 4px; }
}

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