:root {
  --ink: #14233a;
  --muted: #68758a;
  --line: #dce3ec;
  --soft: #f4f7fa;
  --white: #fff;
  --accent: #ff5b35;
  --accent-dark: #e84522;
  --navy: #0b1728;
  --success: #0e9f6e;
  --shadow: 0 22px 60px rgba(18, 35, 57, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #edf2f6;
  font-family: "DM Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.3px;
  -webkit-font-smoothing: antialiased;
}
/* 等宽字体：标签、数值、代码，视觉层次更清晰 */
code, kbd, pre, .mono, .prompt-box code, .help-steps code,
.stats strong, .number, .release-ver, .post-meta, .doc-updated {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; background: var(--soft); }
.topbar {
  height: 70px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--navy);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.brand i { color: #8290a3; font-size: 13px; font-style: normal; font-weight: 500; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--accent); border-radius: 8px; }
.brand-mark svg { width: 20px; fill: white; }
.topbar-meta { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.topbar-meta a { color: #cad2df; text-decoration: none; }
.local-badge { color: #cad2df; }
.local-badge span { width: 7px; height: 7px; margin-right: 7px; display: inline-block; background: #39d49a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(57,212,154,.12); }
.hero {
  min-height: 360px;
  padding: 58px 24px 110px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,91,53,.15), transparent 25%),
    linear-gradient(135deg, #101f34, #0b1728 65%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #aeb9c9; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 18px; height: 2px; background: var(--accent); }
.hero h1 { margin: 19px 0 17px; font-size: clamp(38px, 5vw, 63px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 680px; margin: 0 auto; color: #b9c3d2; font-size: 15px; line-height: 1.8; }
.format-pills { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.format-pills span { padding: 7px 11px; color: #dbe2ec; border: 1px solid #314057; border-radius: 6px; font: 600 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.format-pills b { width: 18px; height: 18px; display: grid; place-items: center; color: var(--accent); }
.format-pills b svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace, .results { width: min(1180px, calc(100% - 36px)); margin: -70px auto 0; position: relative; }
.stepper {
  min-height: 90px;
  padding: 17px 42px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--line);
}
.step { display: flex; align-items: center; gap: 12px; min-width: 165px; color: #8a95a5; }
.step b { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #cbd3df; border-radius: 50%; font-size: 12px; }
.step span { font-size: 13px; font-weight: 750; }
.step small { margin-top: 3px; display: block; color: #9ca6b4; font-size: 11px; font-weight: 500; }
.step.is-active { color: var(--ink); }
.step.is-active b { color: #fff; background: var(--accent); border-color: var(--accent); }
.step.is-done b { color: #fff; background: var(--success); border-color: var(--success); }
.stepper > i { height: 1px; flex: 1; margin: 0 22px; background: var(--line); }
.panel-grid { display: grid; grid-template-columns: 1.35fr .8fr; box-shadow: var(--shadow); }
.panel {
  min-width: 0;
  padding: 31px 34px 34px;
  background: #fff;
}
.source-panel { border-right: 1px solid var(--line); border-radius: 0 0 0 12px; }
.settings-panel { border-radius: 0 0 12px 0; }
.panel-heading { min-height: 35px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.panel-heading > div { display: flex; align-items: center; gap: 11px; }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.number { color: var(--accent); font: 750 11px/1 ui-monospace, monospace; }
.text-button { padding: 5px; color: var(--muted); background: transparent; border: 0; font-size: 12px; }
.text-button:hover { color: var(--accent); }
.dropzone {
  min-height: 165px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed #bac5d3;
  border-radius: 9px;
  background: #f9fbfc;
  transition: .2s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: #fff7f4; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); border-radius: 50%; background: #fff0eb; }
.upload-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dropzone strong { font-size: 13px; }
.dropzone small { color: #8b96a6; font-size: 11px; }
.file-chip { max-width: 95%; padding: 5px 9px; overflow: hidden; color: var(--success); background: #eaf9f3; border-radius: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.or { height: 38px; display: flex; align-items: center; color: #8793a3; font-size: 10px; text-transform: uppercase; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: #edf0f4; }
.or span { padding: 0 12px; }
#html-source {
  width: 100%;
  height: 210px;
  padding: 17px;
  display: block;
  resize: vertical;
  color: #28384d;
  background: #101c2c;
  border: 0;
  border-radius: 8px 8px 0 0;
  outline: 0;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 2;
}
#html-source::placeholder { color: #607086; }
.editor-footer { padding: 8px 12px; display: flex; justify-content: space-between; color: #68768a; background: #f2f5f8; border-radius: 0 0 7px 7px; font-size: 10px; }
.mode-group { padding: 0; margin: 0 0 20px; border: 0; }
.mode-group legend, .field > span { margin-bottom: 9px; display: block; color: #4f5e72; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mode-card { min-height: 74px; margin-bottom: 9px; padding: 13px 14px; display: grid; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; }
.mode-card .mode-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #7f8b9b; background: #f0f3f6; border-radius: 7px; }
.mode-card .mode-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-card strong { display: block; font-size: 12px; }
.mode-card small { margin-top: 4px; display: block; color: #788596; font-size: 10px; line-height: 1.45; }
.mode-card > i { width: 14px; height: 14px; border: 1px solid #c2cad5; border-radius: 50%; }
.mode-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,91,53,.07); }
.mode-card.is-selected .mode-icon { color: var(--accent); background: #fff0eb; }
.mode-card.is-selected > i { border: 4px solid var(--accent); }
.field { margin: 0 0 15px; display: block; }
.field input, .field select { width: 100%; height: 39px; padding: 0 12px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 7px; outline: none; font-size: 12px; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,53,.08); }
.field > small { margin-top: 5px; display: block; color: #7f8b9b; font-size: 10px; }
.field > span small { display: inline; color: #a7b0bd; font-weight: 500; text-transform: none; }
.native-options { margin: -8px 0 20px; padding: 15px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; }
.native-options-title { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center; }
.native-options-title span { font-size: 11px; font-weight: 800; }
.native-options-title small { color: #7f8b9b; font-size: 10px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.compact-field { margin: 0; }
.compact-field > span { margin-bottom: 6px; font-size: 10px; }
.compact-field select { height: 36px; padding: 0 9px; font-size: 11px; }
.compact-field select:disabled { color: #9ba5b2; background: #edf1f4; cursor: not-allowed; }
.option-grid-wide { grid-column: 1 / -1; }
.native-hint { margin: 11px 0 0; color: #748195; font-size: 10px; line-height: 1.55; }
.advanced-launcher { margin-top: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #cfd8e4; border-radius: 7px; }
.advanced-launcher[hidden], .mapping-filters[hidden] { display: none; }
.advanced-launcher strong { display: block; font-size: 11px; }
.advanced-launcher small { margin-top: 3px; display: block; color: #748195; font-size: 10px; }
.mapping-button { min-height: 34px; padding: 7px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: var(--ink); border: 0; border-radius: 5px; font-size: 10px; font-weight: 750; }
.mapping-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mapping-button:disabled { opacity: .55; cursor: wait; }
.mapping-modal { position: fixed; inset: 0; z-index: 50; padding: 4vh 24px; display: grid; place-items: center; background: rgba(8, 18, 32, .66); backdrop-filter: blur(4px); }
.mapping-modal[hidden] { display: none; }
.mapping-dialog { width: min(1080px, 100%); height: min(820px, 92vh); padding: 22px; display: flex; flex-direction: column; background: #f8fafc; border-radius: 12px; box-shadow: 0 28px 90px rgba(0, 0, 0, .28); }
.mapping-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mapping-dialog-head span { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mapping-dialog-head h2 { margin: 5px 0 4px; font-size: 21px; }
.mapping-dialog-head p { margin: 0; color: #68768a; font-size: 11px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: #536176; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mapping-dialog-tools { margin: 17px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.mapping-filters { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.mapping-filters select { min-width: 175px; height: 34px; padding: 0 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.mapping-link { color: var(--accent); background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.mapping-list { min-height: 0; flex: 1; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.mapping-list > p { margin: 0; padding: 45px 18px; color: #718096; font-size: 11px; text-align: center; line-height: 1.6; }
.mapping-pagination { padding-top: 9px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #68768a; font-size: 10px; }
.mapping-pagination[hidden] { display: none; }
.mapping-pagination button { min-width: 66px; height: 29px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }
.mapping-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.mapping-row { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 8px 16px; border-bottom: 1px solid #edf0f4; }
.mapping-row:last-child { border-bottom: 0; }
.mapping-row.is-blocked { background: #f7f8fa; opacity: .68; }
.mapping-row-main { min-width: 0; }
.mapping-row-head { display: flex; align-items: center; gap: 6px; }
.mapping-tag { padding: 4px 6px; color: #34435a; background: #eef2f6; border-radius: 3px; font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; }
.mapping-badge { padding: 4px 7px; border-radius: 10px; font-size: 10px; font-weight: 750; }
.mapping-badge.exact { color: #08785d; background: #e4f8f1; }
.mapping-badge.partial { color: #8a5a00; background: #fff3d8; }
.mapping-badge.fallback { color: #98510a; background: #fff0e3; }
.mapping-badge.unsupported { color: #a22a24; background: #fdebea; }
.mapping-path, .mapping-preview, .mapping-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapping-path { margin-top: 6px; color: #627087; font: 10px/1.4 ui-monospace, monospace; }
.mapping-preview { margin-top: 4px; color: #25354b; font-size: 11px; }
.mapping-reason { grid-column: 1 / -1; color: #748195; font-size: 10px; }
.mapping-select { width: 180px; height: 34px; padding: 0 8px; align-self: center; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.mapping-select:disabled { cursor: not-allowed; }
.mapping-note { margin: 9px 0 0; color: #68768a; font-size: 10px; line-height: 1.55; }
.switch-row { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.switch-row span strong { display: block; font-size: 11px; }
.switch-row span small { margin-top: 2px; display: block; color: #7f8b9b; font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { width: 34px; height: 19px; position: relative; background: #cbd3dd; border-radius: 20px; transition: .2s; }
.switch-row > i::after { content: ""; width: 13px; height: 13px; position: absolute; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { transform: translateX(15px); }
.switch-row input:disabled + i { opacity: .65; cursor: not-allowed; }
.primary-button, .secondary-button {
  width: 100%;
  min-height: 43px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  transition: .2s;
}
.primary-button { color: #fff; background: var(--accent); box-shadow: 0 8px 22px rgba(255,91,53,.2); }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid #cbd4df; }
.secondary-button:hover { border-color: var(--ink); }
.convert-progress { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.convert-progress-track { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.convert-progress-track span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .2s ease; }
.convert-progress small { color: var(--muted); text-align: center; font-size: 10px; }
.settings-note { margin: 10px 0 0; color: #7f8b9b; text-align: center; font-size: 10px; }
.results { margin-top: 30px; padding-bottom: 30px; }
.results-heading {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.results-heading > div { display: flex; align-items: center; gap: 14px; }
.success-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; }
.success-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.results-heading h2 { margin: 0 0 4px; font-size: 17px; }
.results-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); }
.stats div { padding: 20px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.stats strong { margin-top: 4px; display: block; font-size: 21px; }
.warning-report { margin-top: 1px; padding: 18px 26px; background: #fff8eb; border-left: 3px solid #f59e0b; box-shadow: var(--shadow); }
.warning-report-title { display: flex; align-items: center; justify-content: space-between; color: #8a4b08; font-size: 11px; font-weight: 800; }
.warning-report-title strong { min-width: 22px; padding: 3px 7px; color: #fff; background: #d97706; border-radius: 12px; text-align: center; font-size: 10px; }
.warning-report ul { margin: 10px 0 0; padding-left: 18px; color: #755216; font-size: 11px; line-height: 1.8; }
.result-grid { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.export-card { padding: 25px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(18,35,57,.06); }
.export-card-head { display: flex; align-items: center; gap: 11px; }
.export-card-head span { padding: 5px 8px; color: var(--accent); background: #fff0eb; border-radius: 4px; font: 750 10px/1 ui-monospace, monospace; }
.export-card h3 { margin: 0; font-size: 14px; }
.export-card ol { margin: 20px 0; padding-left: 26px; color: var(--muted); font-size: 11px; line-height: 2.1; }
.inspect-card { overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(18,35,57,.06); }
.tabs { height: 52px; padding: 0 22px; display: flex; align-items: end; gap: 5px; border-bottom: 1px solid var(--line); }
.tabs button { height: 52px; padding: 0 18px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { min-height: 440px; }
#preview-frame { width: 100%; height: 560px; display: block; border: 0; background: #fff; }
#json-output { height: 540px; margin: 0; padding: 22px; overflow: auto; color: #d9e3f0; background: #101c2c; font: 10px/1.65 ui-monospace, monospace; }
.tree-output { padding: 25px; font: 11px/1.5 ui-monospace, monospace; }
.tree-item { margin: 4px 0 4px calc(var(--depth) * 18px); display: flex; align-items: center; gap: 8px; }
.tree-item i { width: 7px; height: 7px; background: #9eabba; border-radius: 2px; }
.tree-item.is-widget i { background: var(--accent); border-radius: 50%; }
.tree-item span { color: #718096; }
footer { min-height: 95px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; color: #7e8a9a; font-size: 11px; }
footer span { color: #566479; font-weight: 750; }
.toast { padding: 12px 17px; position: fixed; right: 22px; bottom: 22px; z-index: 20; color: #fff; background: #14233a; border-radius: 7px; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #b42318; }
#compute-frame { width: 1440px; height: 900px; position: fixed; left: -10000px; top: 0; border: 0; visibility: hidden; }
.step small, .dropzone small, .file-chip, .mode-group legend, .field > span,
.mode-card small, .field > small, .native-options-title span, .native-options-title small,
.compact-field > span, .compact-field select, .native-hint, .advanced-launcher strong,
.advanced-launcher small, .mapping-dialog-head span, .mapping-dialog-head p,
.mapping-filters select, .mapping-list > p, .mapping-preview, .mapping-select,
.mapping-note, .switch-row span strong, .switch-row span small, .settings-note,
.results-heading p, .warning-report-title, .warning-report ul, .export-card ol,
.tabs button, footer, .toast { font-size: 12px; }
.mapping-button, .mapping-link, .mapping-pagination, .mapping-pagination button,
.mapping-badge, .mapping-reason, .stats span, .warning-report-title strong { font-size: 11px; }
.help-body { background: var(--soft); }
.help-shell { min-height: 100vh; }
.help-page {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 70px;
}
.help-hero {
  padding: 38px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,91,53,.18), transparent 28%),
    linear-gradient(135deg, #101f34, #0b1728 68%);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.help-hero h1 {
  max-width: 920px;
  margin: 16px 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.help-hero p {
  max-width: 820px;
  margin: 0;
  color: #b9c3d2;
  font-size: 15px;
  line-height: 1.85;
}
.help-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.help-actions a { text-decoration: none; }
.help-primary, .help-actions .secondary-button {
  width: auto;
  min-width: 154px;
}
.help-toc {
  margin: 16px 0;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(18,35,57,.05);
}
.help-toc a {
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}
.help-toc a:hover {
  color: var(--accent);
  background: #fff0eb;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.help-card {
  margin-top: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18,35,57,.055);
}
.help-card-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.help-card-title h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -.03em;
}
.help-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.help-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #fff0eb;
  border-radius: 10px;
}
.help-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.help-steps {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: help-step;
}
.help-steps li {
  padding: 15px 18px 15px 54px;
  position: relative;
  background: #f8fafc;
  border: 1px solid #e7edf4;
  border-radius: 10px;
}
.help-steps li::before {
  counter-increment: help-step;
  content: counter(help-step);
  width: 26px;
  height: 26px;
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.help-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.help-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.help-steps code {
  display: inline-block;
  padding: 7px 9px;
  color: #dbe8f8;
  background: #101c2c;
  border-radius: 6px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.help-list {
  margin: 18px 0 0;
  padding-left: 19px;
  color: #526174;
  font-size: 13px;
  line-height: 1.9;
}
.help-list.ordered { padding-left: 21px; }
.help-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.help-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
.help-table th,
.help-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.help-table th {
  color: var(--ink);
  background: #f8fafc;
  font-size: 12px;
  letter-spacing: .04em;
}
.help-table td {
  color: #526174;
  line-height: 1.7;
}
.help-table tr:last-child td { border-bottom: 0; }
.help-table td:first-child {
  width: 160px;
  color: var(--ink);
  font-weight: 750;
}
.prompt-page .help-hero p { max-width: 880px; }
.prompt-box {
  margin: 22px 0 0;
  padding: 20px;
  overflow: auto;
  color: #dce8f7;
  background: #101c2c;
  border: 1px solid #22334a;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.prompt-box code {
  white-space: pre-wrap;
  font: 12px/1.9 ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace;
}
.prompt-box.small {
  max-height: 520px;
}
.prompt-shell .help-table td:first-child {
  width: 260px;
}
.prompt-copy-inline {
  margin: 18px 0 0;
  padding: 9px 12px;
  color: var(--accent);
  background: #fff0eb;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}
.prompt-copy-inline:hover {
  color: #fff;
  background: var(--accent);
}
.lib {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 80px;
}
.lib-hero {
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,91,53,.2), transparent 30%),
    linear-gradient(135deg, #101f34, #0b1728 68%);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.lib-hero h1 {
  max-width: 720px;
  margin: 16px 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.lib-hero p {
  max-width: 720px;
  margin: 0;
  color: #b9c3d2;
  font-size: 15px;
  line-height: 1.85;
}
.lib-hero-button {
  width: auto;
  min-width: 150px;
  white-space: nowrap;
  text-decoration: none;
}
.lib-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 22px;
  padding: 16px 0 14px;
  background: linear-gradient(var(--soft) 78%, rgba(244,247,250,0));
}
.lib-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.lib-chip {
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.lib-chip span {
  padding: 1px 7px;
  color: var(--muted);
  background: #f1f4f8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.lib-chip:hover { border-color: #c4cedb; }
.lib-chip.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.lib-chip.is-active span { color: #fff; background: rgba(255,255,255,.18); }
.lib-tools {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.lib-types {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  background: #eef2f6;
  border-radius: 9px;
}
.lib-seg {
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.lib-seg.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(18,35,57,.08); }
.lib-search {
  position: relative;
  min-width: min(320px, 100%);
  margin: 0;
}
.lib-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.lib-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 9px;
  outline: none;
  font-size: 13px;
}
.lib-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,53,.08); }
.lib-count {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.lib-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18,35,57,.05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lib-card:hover {
  transform: translateY(-3px);
  border-color: #cdd7e3;
  box-shadow: 0 18px 40px rgba(18,35,57,.1);
}
.lib-thumb {
  position: relative;
  overflow: hidden;
  background: #f4f7fa;
  border-bottom: 1px solid #eef2f6;
  cursor: pointer;
}
.lib-thumb-stage {
  width: 100%;
  overflow: hidden;
}
.lib-thumb-frame {
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.lib-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: #fff;
  background: rgba(11,23,40,.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.lib-thumb-hint {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px 12px 10px;
  color: #fff;
  background: linear-gradient(transparent, rgba(11,23,40,.6));
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity .15s;
}
.lib-thumb:hover .lib-thumb-hint { opacity: 1; }
.lib-body {
  padding: 18px 20px 6px;
  flex: 1;
}
.lib-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lib-cat {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.lib-gen {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.lib-gen.ok { color: #0e6245; background: #eaf9f3; }
.lib-gen.run { color: #9a5b00; background: #fff3df; }
.lib-gen.pending { color: #64748b; background: #eef1f5; }
.lib-body h2 {
  margin: 11px 0 7px;
  font-size: 19px;
  letter-spacing: -.02em;
}
.lib-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.lib-tags {
  margin-top: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.lib-tags span {
  padding: 4px 9px;
  color: #536276;
  background: #f2f5f8;
  border-radius: 999px;
  font-size: 11px;
}
.lib-foot {
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lib-format {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.lib-format-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-format button {
  min-width: 52px;
  height: 32px;
  color: var(--ink);
  background: #f4f7fa;
  border: 1px solid #e3e9f1;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lib-format button:hover { border-color: var(--accent); color: var(--accent); background: #fff5f2; }
.lib-card-actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lib-ghost {
  height: 36px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4df;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.lib-ghost:hover { border-color: var(--ink); }
.lib-empty {
  grid-column: 1 / -1;
  padding: 40px 24px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed #cdd7e3;
  border-radius: 12px;
}
.lib-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 30px;
  align-items: center;
  justify-content: center;
}
.lib-modal.is-open { display: flex; }
.lib-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,16,28,.55);
  backdrop-filter: blur(2px);
}
.lib-modal-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(9,16,28,.4);
}
.lib-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.lib-modal-sub { color: var(--muted); font-size: 12px; font-weight: 750; }
.lib-modal-head h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.lib-modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.lib-modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lib-modal-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 0;
  flex: 1;
}
.lib-modal-preview-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.lib-modal-preview-title {
  padding: 12px 18px;
  color: var(--ink);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}
#lib-modal-preview {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}
.lib-modal-code-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lib-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 18px 0;
}
.lib-modal-tab {
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.lib-modal-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.lib-modal-code {
  flex: 1;
  min-height: 200px;
  margin: 10px 18px;
  padding: 14px;
  overflow: auto;
  color: #cfe3ff;
  background: #0d1b2f;
  border-radius: 9px;
  font: 12px/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace;
  white-space: pre;
}
.lib-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
}
.lib-modal-actions button { min-height: 38px; }
.library-body .toast { z-index: 90; }
#library-compute-frame {
  width: 1440px;
  height: 900px;
  position: fixed;
  left: -10000px;
  top: 0;
  border: 0;
  visibility: hidden;
}
@media (max-width: 850px) {
  .topbar { padding: 0 20px; }
  .topbar-meta a { display: none; }
  .hero { padding-top: 46px; }
  .panel-grid, .result-grid { grid-template-columns: 1fr; }
  .source-panel { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .settings-panel { border-radius: 0 0 12px 12px; }
  .stepper { padding: 15px; }
  .step { min-width: 0; }
  .step span { display: none; }
  .stepper > i { margin: 0 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { border-bottom: 1px solid var(--line); }
  .mapping-modal { padding: 18px; }
  .mapping-dialog { height: 94vh; padding: 17px; }
  .mapping-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .mapping-select { width: 150px; }
  .help-shell .topbar-meta a, .library-shell .topbar-meta a { display: inline; }
  .help-page { width: calc(100% - 24px); padding-top: 24px; }
  .help-hero, .help-card { padding: 24px; }
  .help-grid { grid-template-columns: 1fr; }
  .prompt-shell .help-table td:first-child { width: 210px; }
  .lib { width: calc(100% - 24px); padding-top: 24px; }
  .lib-hero { display: block; padding: 28px 24px; }
  .lib-hero-button { margin-top: 22px; }
  .lib-modal { padding: 0; }
  .lib-modal-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .lib-modal-body { grid-template-columns: 1fr; overflow: auto; }
  .lib-modal-preview-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  #lib-modal-preview { min-height: 260px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 37px; }
  .format-pills span:nth-of-type(2) { display: none; }
  .panel { padding: 25px 20px; }
  .workspace, .results { width: calc(100% - 20px); }
  .stats { grid-template-columns: 1fr; }
  .results-heading { padding: 20px; }
  .advanced-launcher { align-items: stretch; flex-direction: column; }
  .mapping-modal { padding: 8px; }
  .mapping-dialog { height: 98vh; border-radius: 8px; }
  .mapping-dialog-head h2 { font-size: 17px; }
  .mapping-dialog-tools { align-items: stretch; flex-direction: column; }
  .mapping-filters { justify-content: space-between; }
  .mapping-row { grid-template-columns: 1fr; }
  .mapping-select { width: 100%; }
  .help-hero { padding: 24px 20px; }
  .help-hero h1 { font-size: 30px; line-height: 1.18; }
  .help-actions { flex-direction: column; }
  .help-primary, .help-actions .secondary-button { width: 100%; }
  .help-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .help-toc a { padding: 8px; text-align: center; }
  .help-card-title { flex-direction: column; }
  .help-steps li { padding-left: 48px; }
  .prompt-box { padding: 15px; }
  .prompt-box code { font-size: 11px; }
  .lib-hero h1 { font-size: 28px; line-height: 1.18; }
  .lib-tools { flex-direction: column; align-items: stretch; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-modal-actions { flex-direction: column; }
  .lib-modal-actions button { width: 100%; }
}

/* ============ 语言切换器（WP 多语言参照组件） ============ */
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; color: #cdd6e2; cursor: pointer; font-size: 13px; user-select: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover, .lang-switch[open] > summary { background: rgba(255,255,255,.1); }
.lang-switch .lang-globe { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch .lang-caret { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 132px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 40; }
.lang-menu a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: 13px; }
.lang-menu a:hover { background: var(--soft); color: var(--accent); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 700; }

/* ============ 全站统一页脚 ============ */
/* 覆盖旧的基础 footer 规则（display:flex / footer span 颜色），避免命中 site-footer。 */
.site-footer { display: block; min-height: 0; padding: 0; background: var(--navy); color: #9aa7b8; }
.site-footer .brand span { color: #fff; font-weight: 750; }
.site-footer-brand p { color: #8895a7; }
.site-footer-bottom-inner span { color: #7e8a9a; font-weight: 400; }
.site-footer-inner { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer-brand .brand { color: #fff; margin-bottom: 14px; }
.site-footer-brand p { margin: 0 0 16px; max-width: 300px; font-size: 12.5px; line-height: 1.85; color: #8895a7; }
.site-footer-col h4 { margin: 0 0 12px; color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.site-footer-col a { display: block; padding: 5px 0; color: #9aa7b8; text-decoration: none; font-size: 13px; }
.site-footer-col a:hover { color: var(--accent); }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer-bottom-inner { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #7e8a9a; }
.site-footer-bottom-inner a { color: #93a0b1; text-decoration: none; }
.site-footer-bottom-inner a:hover { color: var(--accent); }

/* ============ 首页营销区块（工具页内） ============ */
.marketing { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 10px 0 30px; }
.mkt-section { margin-top: 58px; }
.mkt-head { max-width: 700px; margin: 0 auto 30px; text-align: center; }
.mkt-head .eyebrow { color: var(--accent); justify-content: center; }
.mkt-head .eyebrow span { background: var(--accent); }
.mkt-head h2 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.mkt-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(18,35,57,.05); }
.value-card .help-icon { margin-bottom: 15px; }
.value-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.value-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.how-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: how; }
.how-step { padding: 26px 20px 22px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(18,35,57,.05); }
.how-step::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; color: #fff; background: var(--accent); border-radius: 50%; font-size: 13px; font-weight: 800; }
.how-step h3 { margin: 0 0 7px; font-size: 15.5px; letter-spacing: -.02em; }
.how-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.cta-band { margin-top: 60px; padding: 48px 42px; text-align: center; color: #fff; border-radius: 18px; box-shadow: var(--shadow); background: radial-gradient(circle at 18% 20%, rgba(255,91,53,.2), transparent 30%), linear-gradient(135deg, #101f34, #0b1728 68%); }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; }
.cta-band p { max-width: 560px; margin: 0 auto 22px; color: #b9c3d2; font-size: 15px; line-height: 1.8; }
.cta-band .help-actions { justify-content: center; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(18,35,57,.04); overflow: hidden; }
.faq-item summary { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 22px 20px; color: #526174; font-size: 13.5px; line-height: 1.9; }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin: 0; }

/* ============ 博客列表 / 文章 ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(18,35,57,.05); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.5); background: radial-gradient(circle at 22% 22%, rgba(255,91,53,.25), transparent 40%), linear-gradient(135deg, #101f34, #0b1728); }
.post-card-thumb svg { width: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.post-card-body { padding: 22px; }
.post-tag { display: inline-block; padding: 4px 10px; color: var(--accent); background: #fff0eb; border-radius: 999px; font-size: 11px; font-weight: 800; }
.post-card h3 { margin: 12px 0 8px; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
.post-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.post-meta { margin-top: 14px; color: #93a0b1; font-size: 12px; }
.post-article { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 70px; }
.post-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.post-back:hover { color: var(--accent); }
.post-article > .post-tag { margin-bottom: 14px; }
.post-article h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.16; letter-spacing: -.04em; }
.post-article .post-meta { margin: 0 0 26px; }

/* ============ 正文 prose（法务 / 关于 / 文章） ============ */
.prose { color: #435168; font-size: 14.5px; line-height: 1.9; }
.prose .lead { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.prose h2 { margin: 34px 0 12px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.prose h3 { margin: 26px 0 10px; color: var(--ink); font-size: 17px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose code { padding: 2px 6px; background: #eef2f7; border-radius: 5px; font: 12.5px ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--accent); background: #f8fafc; color: #526174; border-radius: 0 8px 8px 0; }
.prose img { max-width: 100%; border-radius: 10px; }
.doc-updated { margin-top: 6px; color: #93a0b1; font-size: 12px; }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.contact-form { display: grid; gap: 14px; }
.contact-form .field textarea { width: 100%; min-height: 150px; padding: 12px 13px; resize: vertical; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.contact-form .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,53,.08); }
.contact-form .primary-button { width: auto; justify-self: start; min-width: 160px; }
.contact-aside { display: grid; gap: 14px; }
.contact-channel { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-channel h3 { margin: 0 0 6px; font-size: 15px; }
.contact-channel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.contact-channel a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* ============ 更新日志 ============ */
.changelog { display: grid; gap: 16px; margin-top: 8px; }
.release { padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(18,35,57,.04); }
.release-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.release-ver { padding: 5px 12px; color: #fff; background: var(--accent); border-radius: 999px; font-size: 12px; font-weight: 800; }
.release-date { color: #93a0b1; font-size: 12px; }
.release ul { margin: 0; padding-left: 4px; list-style: none; }
.release li { padding: 5px 0 5px 0; color: #526174; font-size: 13.5px; line-height: 1.7; }
.release .tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; vertical-align: middle; }
.tag-new { color: #0e7a54; background: #e3f6ee; }
.tag-fix { color: #b4530a; background: #fdeede; }
.tag-improve { color: #2c5fc4; background: #e6eefb; }

/* ============ 404 ============ */
.notfound { width: min(680px, calc(100% - 36px)); margin: 0 auto; padding: 84px 0; text-align: center; }
.notfound-code { font-size: clamp(84px, 16vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: linear-gradient(135deg, var(--accent), #ff8a6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin: 8px 0 12px; font-size: 26px; letter-spacing: -.03em; }
.notfound p { max-width: 440px; margin: 0 auto 24px; color: var(--muted); line-height: 1.8; }
.notfound .help-actions { justify-content: center; }

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .value-grid, .how-row, .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-footer-inner, .value-grid, .how-row, .blog-grid { grid-template-columns: 1fr; }
  .marketing { width: calc(100% - 28px); }
  .mkt-section { margin-top: 46px; }
  .cta-band { padding: 32px 22px; }
}
