/* Ceasy 门户与使用手册 —— 全站样式 */
:root {
  --navy: #0b2559;
  --navy-2: #123a7a;
  --cyan: #16c6e6;
  --cyan-soft: #e3f9fd;
  --ink: #17233a;
  --text: #34405a;
  --muted: #6b778c;
  --line: #e3e8f1;
  --bg: #f5f7fb;
  --card: #ffffff;
  --green: #16a36a;
  --amber: #b7791f;
  --red: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 75, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 35, 75, 0.05);
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #1265c8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin: .3em 0; }
code {
  font-family: var(--mono);
  font-size: .92em;
  background: #eef2f9;
  border: 1px solid #e0e6f1;
  border-radius: 5px;
  padding: .05em .35em;
  color: #14315f;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid #c8d1df;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fbfcff;
  color: #1c2b46;
  font: 12.5px/1.65 var(--mono);
  text-align: center;
  white-space: nowrap;
}
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 222, 238, .8);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-size: 21px; letter-spacing: .2px; }
.brand-tag {
  font-size: 11px; font-weight: 600; color: #0e7f93;
  background: var(--cyan-soft); border: 1px solid #bdeef6;
  padding: 1px 7px; border-radius: 999px; letter-spacing: .4px;
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: #3c4a63; font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.main-nav a:hover { background: #eff4fb; color: var(--navy); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy); background: #eaf2ff; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 页头搜索 ---------- */
.header-search { position: relative; margin-left: 12px; }
.header-search-input {
  width: 190px; min-height: 34px; padding: 0 12px 0 30px; font: inherit; font-size: 13.5px;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px; outline: none;
  background: #f2f6fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d90b5' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center;
  transition: width .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.header-search-input:focus { width: 260px; border-color: var(--cyan); background-color: #fff; box-shadow: 0 0 0 3px rgba(22,198,230,.14); }
.header-search-pop {
  position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: 430px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 60;
  box-shadow: 0 18px 40px rgba(15, 35, 75, .16);
}
.hs-item { display: block; padding: 9px 12px; border-radius: 8px; }
.hs-item:hover, .hs-item.on { background: #eff4fb; text-decoration: none; }
.hs-title { font-weight: 700; color: var(--navy); font-size: 14px; }
.hs-group { float: right; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hs-desc { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 2px; }
.hs-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; color: var(--navy);
  font-size: 18px; line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 10px;
  font: 600 14.5px/1 var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #0d2f6d, #1257a8);
  box-shadow: 0 8px 20px rgba(18, 87, 168, .24);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(18, 87, 168, .3); }
.btn-cyan { color: #053a47; background: linear-gradient(135deg, #69e6f7, #16c6e6); box-shadow: 0 8px 20px rgba(22, 198, 230, .25); }
.btn-ghost { color: var(--navy); background: #fff; border-color: #cfd9e8; }
.btn-ghost:hover { background: #f6f9fe; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% 8%, rgba(22, 198, 230, .16), transparent 62%),
    radial-gradient(760px 420px at 8% 0%, rgba(18, 87, 168, .13), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 37, 89, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11, 37, 89, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px;
  align-items: center; padding: 76px 0 82px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: #0c6f82; background: #e8fafd; border: 1px solid #c4f0f7;
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .2px; margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #16c6e6; box-shadow: 0 0 0 4px rgba(22,198,230,.18); }
.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: -1px; line-height: 1.18; margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #0b2559 10%, #1265c8 52%, #0db4d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; color: #4a5872; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: #17809a; }

/* 编辑器 Mock */
.hero-visual { position: relative; }
.editor-mock {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0a1830; border: 1px solid #1c3358;
  box-shadow: 0 26px 60px rgba(6, 20, 45, .28), 0 2px 0 rgba(255,255,255,.06) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
}
.editor-mock::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 180px at 80% -10%, rgba(22, 198, 230, .18), transparent 70%);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: #0c1e3a; border-bottom: 1px solid #173052;
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a4469; }
.mock-dot.r { background: #ff6b6b; } .mock-dot.y { background: #ffca5c; } .mock-dot.g { background: #34d399; }
.mock-file { margin-left: 8px; color: #8fa9cc; font: 12.5px/1 var(--mono); }
.mock-body { display: grid; grid-template-columns: 42px 1fr; padding: 16px 0 18px; }
.mock-gutter { text-align: right; padding-right: 14px; color: #3d5b84; font: 12.5px/1.85 var(--mono); user-select: none; }
.mock-code { padding-right: 20px; overflow: hidden; color: #cfe0fb; font: 12.6px/1.85 var(--mono); white-space: pre; }
.tok-key { color: #8ab4ff; } .tok-fn { color: #7ce7f5; } .tok-str { color: #ffd479; }
.tok-num { color: #ff9e9e; } .tok-com { color: #5f7da3; } .tok-op { color: #d4a6ff; }
.mock-status {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: #0c1e3a; border-top: 1px solid #173052;
  color: #8fa9cc; font: 12px/1 var(--mono);
}
.mock-status .ok { color: #62e6b0; }
.mock-status .spacer { margin-left: auto; }
.mock-console {
  margin-top: 14px; border-radius: 12px; background: #101f38; border: 1px solid #223a5e;
  box-shadow: var(--shadow); padding: 13px 16px; color: #bcd2f0; font: 12.5px/1.7 var(--mono);
}
.mock-console b { color: #6ee7f5; font-weight: 600; }
.float-card {
  position: absolute; right: -12px; bottom: 56px;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 11px; background: #fff;
  box-shadow: 0 16px 34px rgba(10, 30, 70, .18); border: 1px solid #e3eaf6;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  animation: floaty 4.5s ease-in-out infinite;
}
.float-card .pulse { width: 9px; height: 9px; border-radius: 50%; background: #16c6e6; box-shadow: 0 0 0 5px rgba(22,198,230,.16); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 通用区块 ---------- */
.section { padding: 74px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.eyebrow {
  display: inline-block; color: #0d7d92; font-size: 12.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.4px; margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }
.section-head.left { margin-left: 0; text-align: left; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf3ff, #e6fbff); color: #1265c8;
  border: 1px solid #d8e8fb; margin-bottom: 14px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 17px; margin-bottom: 7px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.2px; line-height: 1.72; }
.feature-card .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #0d7d92; background: #e9fafc; border: 1px solid #c9f1f6; padding: 1px 8px; border-radius: 999px; }
.feature-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: linear-gradient(135deg, #f4f9ff, #f2fdff); }
.feature-card.wide .feature-icon { margin-bottom: 0; }
.feature-card.wide h3 { margin-bottom: 5px; }
.feature-card.wide .tag { margin-top: 0; align-self: center; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 20px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font: 800 12px/1 var(--mono); color: #0d7d92;
  background: #e8fafd; border: 1px solid #c4f0f7; border-radius: 999px;
  padding: 5px 9px; margin-bottom: 13px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.7; }

.showcase { display: grid; gap: 22px; }
.showcase-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; box-shadow: var(--shadow-sm);
}
.showcase-row.flip .showcase-copy { order: 2; }
.showcase-copy .eyebrow { margin-bottom: 8px; }
.showcase-copy h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: -.3px; }
.showcase-copy p { color: var(--muted); font-size: 14.8px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { position: relative; padding-left: 24px; color: #46536c; font-size: 14.2px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #0aa2ba; font-weight: 900;
}
.panel-mock { border-radius: 13px; border: 1px solid #dfe7f3; background: #fbfdff; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-mock-head { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: #f1f6fd; border-bottom: 1px solid #e1e9f4; font-size: 12.5px; font-weight: 700; color: #365071; }
.panel-mock-head .spacer { margin-left: auto; color: #7c8ca5; font-weight: 500; }
.panel-mock-body { padding: 14px; }
.result-list { display: grid; gap: 8px; }
.result-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; background: #fff; border: 1px solid #e6edf7; font-size: 12.8px; }
.result-item .badge { font: 700 11px/1 var(--mono); padding: 4px 7px; border-radius: 5px; }
.badge-ac { color: #0a7a4d; background: #dff8ec; border: 1px solid #b9efd6; }
.badge-wa { color: #a52a22; background: #ffe8e6; border: 1px solid #ffc9c4; }
.badge-tle { color: #8a5a0b; background: #fff4d8; border: 1px solid #ffe3a6; }
.result-item .name { color: #40506a; }
.result-item .time { margin-left: auto; color: #8290a6; font-family: var(--mono); font-size: 11.5px; }
.grid-mock { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.grid-mock span { aspect-ratio: 1; border-radius: 6px; background: #e8f0fb; border: 1px solid #d8e5f6; }
.grid-mock span.path { background: #b9f3e2; border-color: #7de3c7; box-shadow: 0 0 0 2px #fff inset; }
.grid-mock span.wall { background: #1d3356; border-color: #16294a; }
.grid-mock span.start { background: #16c6e6; border-color: #0aa7c2; }
.grid-mock span.end { background: #ffd479; border-color: #eab94a; }
.mock-note { margin-top: 10px; color: #7c8ca5; font-size: 12px; text-align: center; }

.manual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.manual-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.manual-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.manual-card .num { font: 800 12px/1 var(--mono); color: #0d7d92; margin-bottom: 10px; }
.manual-card h3 { font-size: 16.5px; margin-bottom: 5px; }
.manual-card p { margin: 0; color: var(--muted); font-size: 13.6px; line-height: 1.65; }
.manual-card .more { display: inline-block; margin-top: 12px; color: #1265c8; font-size: 13px; font-weight: 700; }

.download-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #081c42 0%, #0d2f6d 58%, #0a5d7a 100%);
  color: #dbe9ff; border-radius: 22px; padding: 46px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 34px; align-items: center;
  box-shadow: 0 22px 50px rgba(8, 28, 66, .22);
}
.download-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(22,198,230,.35), transparent 68%);
}
.download-band h2 { color: #fff; font-size: 29px; margin-bottom: 10px; }
.download-band p { color: #a9c1e4; margin: 0 0 8px; font-size: 14.5px; }
.download-band .small { color: #7f9bc5; font-size: 12.5px; }
.download-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.download-actions .btn { width: 100%; }
.download-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
.download-links a { color: #8fd9e8; }

/* ---------- 手册布局 ---------- */
.manual-layout {
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 34px;
  align-items: start; padding: 34px 0 64px;
}
.manual-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-right: 6px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; box-shadow: var(--shadow-sm); }
.sidebar-title { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; color: #7b8aa1; text-transform: uppercase; margin: 0 0 10px; }
.sidebar-search { width: 100%; height: 36px; border: 1px solid #d8e1ef; border-radius: 8px; padding: 0 11px; font: 13px var(--sans); color: var(--ink); background: #fbfdff; outline: none; margin-bottom: 12px; }
.sidebar-search:focus { border-color: #7cc8e4; box-shadow: 0 0 0 3px rgba(22,198,230,.13); }
.sidebar-empty { display: none; color: #8a97ab; font-size: 12.5px; padding: 8px 2px; }
.sidebar-group { margin-bottom: 15px; }
.sidebar-group h3 { font-size: 11.5px; color: #8a97ab; font-weight: 700; letter-spacing: .8px; margin: 0 0 6px; padding-left: 2px; text-transform: uppercase; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin: 0; }
.sidebar-links a {
  display: block; padding: 6px 9px; border-radius: 7px; color: #42506a;
  font-size: 13.5px; line-height: 1.5;
}
.sidebar-links a:hover { background: #f1f6fd; color: var(--navy); text-decoration: none; }
.sidebar-links a.active { background: #e9f3ff; color: #0c4fa6; font-weight: 700; box-shadow: inset 3px 0 0 #1265c8; }
.sidebar-links a .idx { color: #93a0b4; font: 11px var(--mono); margin-right: 6px; }

.manual-main { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #8794a9; font-size: 12.5px; margin-bottom: 14px; }
.breadcrumbs a { color: #5c7797; }
.breadcrumbs .sep { color: #b3bdcc; }
.article {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 38px 44px 42px; box-shadow: var(--shadow-sm);
}
.article > h1 { font-size: clamp(27px, 3vw, 35px); letter-spacing: -.5px; margin-bottom: 12px; }
.article .lead { color: #5a6881; font-size: 16.2px; line-height: 1.8; margin-bottom: 26px; }
.article h2 {
  font-size: 23px; margin: 42px 0 14px; padding-top: 10px;
  border-top: 1px solid #edf1f7; scroll-margin-top: 88px;
}
.article h2:first-of-type { border-top: 0; margin-top: 32px; }
.article h3 { font-size: 17.5px; margin: 26px 0 10px; scroll-margin-top: 88px; }
.article h4 { font-size: 15.5px; margin: 20px 0 8px; }
.article p, .article li { color: #40506a; font-size: 15px; }
.article ul, .article ol { margin-bottom: 18px; }
.article li { margin: .42em 0; }
.article strong { color: #1c2b46; }
.article hr { border: 0; border-top: 1px solid #edf1f7; margin: 32px 0; }
.article img { border-radius: 10px; }

.toc {
  margin: 0 0 28px; padding: 15px 18px; background: #f7faff;
  border: 1px solid #e4edf9; border-radius: 11px;
}
.toc-title { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #6b7e99; text-transform: uppercase; margin-bottom: 7px; }
.toc ul { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 26px; }
.toc li { margin: 2px 0; font-size: 13.3px; break-inside: avoid; }
.toc li.lv3 { padding-left: 14px; font-size: 12.8px; }
.toc a { color: #3f5f88; }
.toc a:hover { color: #0c4fa6; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid #edf1f7; vertical-align: top; font-size: 14px; }
th { background: #f7f9fd; color: #33415c; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
td:first-child { white-space: nowrap; }
td.k { white-space: nowrap; }

pre {
  position: relative; margin: 0 0 20px; padding: 17px 19px;
  background: #0b1b36; color: #d8e5ff; border-radius: 11px;
  overflow: auto; font: 13.4px/1.8 var(--mono);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
pre .copy-btn {
  position: absolute; right: 9px; top: 9px; height: 27px; padding: 0 10px;
  border: 1px solid #2d4a74; border-radius: 6px; background: #12294b; color: #9db9df;
  font: 12px var(--sans); cursor: pointer; opacity: 0; transition: opacity .15s ease;
}
pre:hover .copy-btn, pre .copy-btn:focus { opacity: 1; }
pre .copy-btn:hover { color: #fff; border-color: #4a6e9f; }

.callout {
  display: grid; grid-template-columns: 26px 1fr; gap: 11px;
  margin: 20px 0; padding: 14px 16px; border-radius: 10px;
  border: 1px solid #dbe7f7; background: #f5f9ff; color: #3c4d69; font-size: 14.2px;
}
.callout .ico { font-size: 17px; line-height: 1.4; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { background: #f1fcf8; border-color: #c9eddd; }
.callout.warn { background: #fffaf0; border-color: #f2dfb3; }
.callout.danger { background: #fff5f4; border-color: #f5cfca; }
.callout .title { display: block; font-weight: 800; color: #263550; margin-bottom: 3px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pill { display: inline-block; font-size: 12.3px; font-weight: 700; color: #2b5a86; background: #eef6ff; border: 1px solid #d5e7fa; border-radius: 999px; padding: 3px 10px; }
.pill.cyan { color: #0b6f80; background: #eafafd; border-color: #c8f0f7; }
.pill.green { color: #0a7a4d; background: #e9faf2; border-color: #c3efdc; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 20px; font-size: 14.2px; }
.kv dt { color: #6a7b94; font-weight: 700; }
.kv dd { margin: 0; color: #40506a; }

.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.page-nav a {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; box-shadow: var(--shadow-sm); color: #40506a;
}
.page-nav a:hover { text-decoration: none; border-color: #c9dcf3; background: #fbfdff; }
.page-nav .dir { display: block; font-size: 11.5px; color: #8d9bb0; margin-bottom: 3px; }
.page-nav .t { font-weight: 700; color: #1c3558; font-size: 14.5px; }
.page-nav .next { text-align: right; }

.manual-cta {
  margin-top: 22px; padding: 20px 22px; border-radius: 13px;
  background: linear-gradient(135deg, #eef7ff, #ecfdfd); border: 1px solid #d5eaf7;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.manual-cta p { margin: 0; flex: 1; color: #40506a; font-size: 14px; }
.manual-cta strong { color: #123a7a; }

/* ---------- 页脚 ---------- */
.site-footer { background: #081c42; color: #9db4d6; padding: 46px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand strong { color: #fff; font-size: 19px; }
.site-footer p { color: #8fa8cc; margin: 0; font-size: 13px; line-height: 1.75; }
.site-footer h4 { color: #d7e6ff; font-size: 13px; letter-spacing: .8px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #9db4d6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #17335c; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #718bb3; font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-visual { max-width: 640px; }
  .editor-mock { transform: none; }
  .feature-grid, .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 24px; }
  .showcase-row.flip .showcase-copy { order: 0; }
  .download-band { grid-template-columns: 1fr; padding: 36px; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-sidebar { position: static; max-height: none; order: 2; }
  .manual-main { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .header-inner { height: 60px; gap: 12px; }
  .brand-tag { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 15px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px rgba(15,35,75,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .header-search { margin: 4px 0 10px; }
  .header-search-input { width: 100%; border-radius: 9px; background-position: 12px center; }
  .header-search-input:focus { width: 100%; }
  .header-search-pop { position: static; width: auto; max-height: 300px; border: none; box-shadow: none; padding: 2px 0 0; }
  .header-actions .btn { display: none; }
  .hero-inner { padding: 44px 0 54px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .feature-grid, .manual-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .article { padding: 26px 20px 30px; border-radius: 13px; }
  .article h2 { font-size: 21px; }
  .toc ul { columns: 1; }
  .page-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-band { padding: 28px 22px; border-radius: 16px; }
  .float-card { right: 0; bottom: 40px; }
  .mock-code { font-size: 11.4px; }
  .mock-body { grid-template-columns: 34px 1fr; }
  .showcase-row { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  .btn, .feature-card, .manual-card { transition: none; }
}
@media print {
  .site-header, .manual-sidebar, .page-nav, .site-footer, .toc, pre .copy-btn { display: none !important; }
  body { background: #fff; }
  .manual-layout { display: block; padding: 0; }
  .article { border: 0; box-shadow: none; padding: 0; }
  pre { background: #f4f6fa; color: #1b2a44; border: 1px solid #dde3ee; }
}
