/*
Theme Name: IDM Xiazai
Theme URI: https://www.idmxiazai.com
Author: IDM Site
Description: IDM 下载器中文站定制主题，独立设计，不依赖 Astra / Elementor。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: idm
*/

/* ============ 基础 ============ */
:root {
  --ink: #0a1119;
  --ink-2: #121c28;
  --body: #46566d;
  --muted: #6c7d94;
  --line: #e5ebf2;
  --line-strong: #d6dfea;
  --surface: #ffffff;
  --soft: #f4f8f6;
  --soft-2: #eef6f1;
  --brand: #05b96f;
  --brand-600: #049e5f;
  --brand-700: #05824f;
  --brand-050: #e7f9f0;
  --blue: #2f6bff;
  --dark: #061019;
  --dark-2: #0a1926;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(10, 25, 38, .05);
  --shadow: 0 18px 44px rgba(10, 25, 38, .09);
  --shadow-lg: 0 32px 80px rgba(6, 16, 25, .18);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(5, 185, 111, .22); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px rgba(5, 185, 111, .28); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 18px 34px rgba(5, 185, 111, .34); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .24); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn-block { width: 100%; }

/* ============ 头部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(10, 25, 38, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand-text strong em { font-style: normal; color: var(--brand-600); }
.brand-text small { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color .16s ease, background .16s ease;
}
.nav-list a:hover { color: var(--brand-700); background: var(--brand-050); }
.nav-list li.current-menu-item > a,
.nav-list li.current_page_item > a { color: var(--brand-700); background: var(--brand-050); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { padding: 11px 22px; font-size: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(5, 185, 111, .22), transparent 62%),
    radial-gradient(700px 420px at 12% 88%, rgba(47, 107, 255, .16), transparent 65%),
    linear-gradient(160deg, #061019 0%, #0a1b29 55%, #07131f 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
  padding: 96px 24px 104px;
}
.hero-copy { max-width: 590px; }
.hero h1 {
  color: #fff;
  font-size: clamp(42px, 5.3vw, 72px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 22px 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #3df0a4, #05b96f 55%, #2f6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .72); max-width: 520px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3df0a4; box-shadow: 0 0 0 4px rgba(61, 240, 164, .14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 0; margin-top: 34px; flex-wrap: wrap; }
.hero-meta li { font-size: 13px; color: rgba(255, 255, 255, .58); padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-meta li:first-child { padding-left: 0; border-left: 0; }

.hero-visual { position: relative; }
.window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.window:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: #f2f5f9;
  border-bottom: 1px solid #e3e9f0;
}
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe5; }
.window-bar .dots i:nth-child(1) { background: #ff6058; }
.window-bar .dots i:nth-child(2) { background: #ffbd2e; }
.window-bar .dots i:nth-child(3) { background: #28c840; }
.window-title { font-size: 11px; color: #7d8da0; letter-spacing: .02em; }
.window img { width: 100%; display: block; }

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
  padding: 14px 18px;
  color: var(--ink);
  line-height: 1.2;
}
.float-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.float-speed { right: -14px; bottom: 44px; font-size: 26px; font-weight: 800; color: var(--brand-700); }
.float-safe {
  left: -22px;
  bottom: -22px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700;
}
.float-safe svg { color: var(--brand); }

/* ============ 数据条 ============ */
.stat-bar { border-bottom: 1px solid var(--line); background: #fff; }
.stat-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 34px 10px; text-align: center; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: 0; }
.stat-item strong { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat-item strong span { font-size: 16px; color: var(--brand-600); }
.stat-item em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ============ 通用区块 ============ */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 16.5px; color: var(--muted); }

/* ============ 功能卡片 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  position: relative;
  padding: 34px 30px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe9dd; }
.feature-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--brand-050);
  color: var(--brand-700);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }

/* ============ 图文分栏 ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-copy h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 18px; }
.split-copy > p { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.split-list { display: grid; gap: 14px; }
.split-list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.split-list li svg { flex: none; margin-top: 4px; color: var(--brand); }
.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.shot-frame .shot-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.shot-frame .shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8e0e9; }
.shot-frame img { width: 100%; }
.split-media .caption { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ============ 教程卡片 ============ */
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.doc-tile:hover { transform: translateY(-4px); border-color: #cfe9dd; box-shadow: var(--shadow-sm); }
.doc-tile .tile-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--soft-2); color: var(--brand-700); display: flex; align-items: center; justify-content: center; }
.doc-tile h3 { font-size: 16.5px; }
.doc-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.doc-tile .tile-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }

/* ============ 套餐 ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; justify-content: center; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .price-desc { font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 4px; margin: 24px 0 6px; color: var(--ink); }
.price .cur { font-size: 22px; font-weight: 700; }
.price .num { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.price-card ul { display: grid; gap: 12px; margin: 26px 0 30px; }
.price-card ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-card ul li svg { flex: none; margin-top: 4px; color: var(--brand); }
.price-card .btn { margin-top: auto; }
.price-card.is-featured {
  background: linear-gradient(165deg, #07131f, #0c2233 70%, #0a2b22);
  border-color: #0e2c3b;
  color: rgba(255, 255, 255, .8);
  box-shadow: 0 34px 70px rgba(6, 16, 25, .28);
}
.price-card.is-featured h3, .price-card.is-featured .price { color: #fff; }
.price-card.is-featured .price-desc, .price-card.is-featured .per { color: rgba(255, 255, 255, .6); }
.price-card.is-featured ul li { color: rgba(255, 255, 255, .82); }
.price-card.is-featured ul li svg { color: #3df0a4; }
.price-card .badge {
  position: absolute; top: 22px; right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(61, 240, 164, .14);
  border: 1px solid rgba(61, 240, 164, .3);
  color: #3df0a4;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.price-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
.price-note a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ 评价 ============ */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  padding: 30px 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.review-stars { display: flex; gap: 3px; color: #ffb020; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 22px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft-2); color: var(--brand-700); font-weight: 800; font-size: 14px;
}
.review-author strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.review-author span { font-size: 12.5px; color: var(--muted); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400; color: var(--muted);
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 2px 24px; font-size: 14.8px; color: var(--muted); line-height: 1.9; max-width: 780px; }
.faq-item .faq-answer a { color: var(--brand-700); font-weight: 600; }

/* ============ CTA ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(600px 320px at 85% 20%, rgba(5, 185, 111, .3), transparent 60%),
    linear-gradient(130deg, #061019, #0b2233);
  color: #fff;
}
.cta-band .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .68); font-size: 15.5px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* ============ 页脚 ============ */
.site-footer { background: #f7fafb; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 13.8px; color: var(--muted); line-height: 1.85; max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .16s ease; }
.footer-col a:hover { color: var(--brand-700); }
.footer-disclaimer {
  margin: -18px 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-700); }

/* ============ 内页 Hero ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 62px;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(5, 185, 111, .1), transparent 60%),
    linear-gradient(180deg, #f5faf7, #ffffff);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 16px; letter-spacing: -.03em; }
.page-hero p { font-size: 16.5px; color: var(--muted); max-width: 700px; }
.page-hero--dark {
  background:
    radial-gradient(800px 380px at 85% 0%, rgba(5, 185, 111, .22), transparent 60%),
    linear-gradient(150deg, #061019, #0a1d2b);
  border-bottom: 0;
  color: rgba(255, 255, 255, .7);
}
.page-hero--dark h1 { color: #fff; }
.page-hero--dark p { color: rgba(255, 255, 255, .7); }
.page-hero--dark .eyebrow { color: #3df0a4; }

/* ============ 文档中心 ============ */
.doc-search { display: flex; gap: 10px; margin-top: 28px; max-width: 640px; }
.doc-search input[type="search"] {
  flex: 1;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.doc-search input[type="search"]:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 185, 111, .12); }
.doc-search .btn { height: 54px; padding: 0 30px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease;
}
.quick-links a:hover { border-color: var(--brand); color: var(--brand-700); }

.docs-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.docs-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-sm);
}
.docs-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.docs-cat-head .cat-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-050); color: var(--brand-700); display: flex; align-items: center; justify-content: center; flex: none; }
.docs-cat-head h2 { font-size: 21px; }
.docs-cat > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.docs-cat-list { display: grid; gap: 2px; }
.docs-cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.docs-cat-list a:hover { background: var(--soft); color: var(--brand-700); }
.docs-cat-list a svg { color: #b9c5d3; flex: none; }
.docs-cat-list a:hover svg { color: var(--brand); }
.docs-cat-list .sub { padding-left: 22px; font-size: 13.8px; color: var(--muted); }
.docs-cat-foot { margin-top: 20px; }
.docs-cat-foot a { font-size: 13.5px; font-weight: 700; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }

/* ============ 文档详情 ============ */
.doc-main { background: #fff; }
.doc-layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.doc-sidebar { position: sticky; top: 96px; }
.doc-sidebar-inner { border-right: 1px solid var(--line); padding-right: 28px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.doc-back:hover { color: var(--brand-700); }
.doc-sidebar-title { font-size: 15px; color: var(--ink); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-tree { display: grid; gap: 1px; }
.doc-tree a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.doc-tree a:hover { background: var(--soft); color: var(--ink); }
.doc-tree li.is-active > a { background: var(--brand-050); color: var(--brand-700); font-weight: 700; }
.doc-tree--sub { margin: 2px 0 6px 10px; border-left: 1px solid var(--line); padding-left: 6px; }
.doc-tree--sub a { font-size: 13px; }
.doc-sidebar-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.doc-sidebar-card strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.doc-sidebar-card p { font-size: 12.8px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.doc-sidebar-card a { font-size: 13px; font-weight: 700; color: var(--brand-700); }

.doc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.doc-breadcrumb a { color: var(--muted); }
.doc-breadcrumb a:hover { color: var(--brand-700); }
.doc-breadcrumb .sep { color: #c3ccd8; }
.doc-breadcrumb .cur { color: var(--ink); font-weight: 600; }
.doc-article h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.doc-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc-content { font-size: 16px; line-height: 1.95; color: #334257; }
.doc-content > * + * { margin-top: 18px; }
.doc-content h2 { font-size: 24px; margin-top: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-content h3 { font-size: 19.5px; margin-top: 34px; }
.doc-content h4 { font-size: 17px; margin-top: 28px; }
.doc-content p { margin: 0; }
.doc-content ul, .doc-content ol { padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.doc-content ol { list-style: decimal; }
.doc-content li::marker { color: var(--brand); }
.doc-content a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.doc-content strong { color: var(--ink); }
.doc-content img { border-radius: 12px; border: 1px solid var(--line); margin: 8px 0; }
.doc-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink-2);
}
.doc-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-content th, .doc-content td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.doc-content th { background: var(--soft); color: var(--ink); }
.doc-content pre { background: #0b1720; color: #d7e5f2; padding: 18px; border-radius: 12px; overflow: auto; font-size: 13.5px; }
.doc-content code { background: var(--soft); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.doc-content pre code { background: transparent; padding: 0; }

.doc-children { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-children h2 { font-size: 20px; margin-bottom: 18px; }
.doc-child-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-child-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.doc-child-grid a:hover { border-color: var(--brand); background: var(--soft); color: var(--brand-700); }
.doc-child-grid a svg { flex: none; color: #b9c5d3; }
.doc-child-grid a:hover svg { color: var(--brand); }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.doc-pager a {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.doc-pager a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.doc-pager small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.doc-pager strong { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.doc-pager .is-next { text-align: right; }

.doc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 44px; padding: 30px 32px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, #07131f, #0c2233);
  color: rgba(255, 255, 255, .72);
}
.doc-cta h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.doc-cta p { font-size: 13.5px; }
.doc-cta .btn { flex: none; }

/* ============ 下载页 ============ */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.download-main { padding: 44px 46px; }
.download-main h2 { font-size: 26px; margin-bottom: 10px; }
.download-main > p { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.dc-download-wrap { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px !important; }
.dc-download { font-family: var(--font) !important; }
.download-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.8; }
.download-side { padding: 44px 40px; background: var(--soft); border-left: 1px solid var(--line); }
.download-side h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.spec-list { display: grid; gap: 0; }
.spec-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.8px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--muted); }
.spec-list strong { color: var(--ink); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.step-card a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ 关于 / 联系 ============ */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.about-copy p { font-size: 15.5px; line-height: 1.95; color: var(--muted); margin-bottom: 16px; }
.about-logo-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(320px 220px at 50% 30%, rgba(5, 185, 111, .16), transparent 70%),
    linear-gradient(150deg, #07131f, #0b2233);
  border: 1px solid #10303f;
}
.about-logo-card img { width: 180px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value-card .value-num { font-size: 13px; font-weight: 800; color: var(--brand-600); letter-spacing: .1em; margin-bottom: 14px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14.2px; color: var(--muted); line-height: 1.85; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: flex; flex-direction: column;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .feature-icon { margin-bottom: 20px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.contact-card .contact-link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--brand-700); word-break: break-all; }
.contact-card .contact-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ 通用正文 ============ */
.entry-main { padding: 64px 0 88px; }
.entry-content { font-size: 16px; line-height: 1.95; color: #334257; max-width: 820px; }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 { font-size: 26px; margin-top: 40px; }
.entry-content h3 { font-size: 20px; margin-top: 30px; }
.entry-content a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; }
.entry-content ul, .entry-content ol { padding-left: 22px; list-style: disc; }
.entry-content ol { list-style: decimal; }

.post-list { display: grid; gap: 18px; max-width: 860px; }
.post-item { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.post-item h2 { font-size: 20px; margin-bottom: 8px; }
.post-item h2 a:hover { color: var(--brand-700); }
.post-item .post-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post-item p { font-size: 14.5px; color: var(--muted); }

.result-count { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

/* ============ 404 ============ */
.error-wrap { text-align: center; padding: 110px 0 130px; }
.error-code { font-size: clamp(80px, 16vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--soft-2); }
.error-wrap h1 { font-size: 30px; margin: 12px 0 14px; }
.error-wrap p { color: var(--muted); margin-bottom: 30px; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; padding-top: 76px; padding-bottom: 84px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 760px; }
  .window { transform: none; }
  .float-speed { right: 0; }
  .float-safe { left: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { gap: 40px; }
}

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(10, 25, 38, .1);
    padding: 12px 20px 18px;
    display: none;
    margin-left: 0;
  }
  .site-header.nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 13px 14px; font-size: 15.5px; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .header-inner { height: 68px; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .doc-sidebar { position: static; }
  .doc-sidebar-inner { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 24px; }
  .doc-tree-wrap { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  .doc-sidebar-card { display: none; }
  .docs-cats { grid-template-columns: 1fr; }
  .download-panel { grid-template-columns: 1fr; }
  .download-side { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .value-grid, .contact-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .section { padding: 66px 0; }
  .stat-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 8px; }
  .stat-item:nth-child(3) { border-left: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-inner { padding-top: 60px; padding-bottom: 66px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-lead { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .float-card { display: none; }
  .feature-grid, .docs-grid, .review-grid, .pricing-grid, .value-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
  .price-card { padding: 32px 26px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .download-main, .download-side { padding: 30px 24px; }
  .doc-cta { flex-direction: column; align-items: flex-start; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-child-grid { grid-template-columns: 1fr; }
  .doc-pager .is-next { text-align: left; }
  .doc-search { flex-direction: column; }
  .doc-search .btn { width: 100%; }
  .entry-main { padding: 44px 0 64px; }
}
