/*
 * 千象出海 · 公开站样式（2026-10 改版，取代 public-site.css）
 *
 * 只服务公开页：创作首页以外的营销页 / 价格 / 帮助 / 指南 / 免费工具 / 条款 / 登录注册。
 * 登录后的工作台继续用 commercial-ui.css，两套互不引用。
 *
 * 设计口径（改之前先读）：
 *   - 扁平、克制、信息优先。不用渐变按钮、光晕背景、渐变文字、发光圆点徽章、玻璃拟态。
 *   - 品牌色只有一个：象标的靛紫 #534AB7，用在主按钮、链接、当前导航；橙色只标「免费 / 价格」等少量强调。
 *   - 中文字体走系统栈，不引外链字体（Google Fonts 在国内不可达）；中文标题不加负字距。
 *   - 页头 / 页脚是静态 HTML（爬虫和 AI 抓取不执行 JS 也能拿到全部链接），由 scripts/sync-public-chrome.mjs 统一生成。
 */

:root {
  --c-ink: #18181b;
  --c-text: #3f3f46;
  --c-muted: #6b6b76;
  --c-faint: #a1a1aa;
  --c-line: #e6e6ea;
  --c-line-strong: #d4d4d8;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f7f8;
  --c-bg-warm: #faf7f2;
  --c-brand: #534ab7;
  --c-brand-ink: #433b9c;
  --c-brand-soft: #efeefa;
  --c-accent: #c2410c;
  --c-accent-soft: #fff4ec;
  --c-ok: #15803d;
  --c-ok-soft: #ecfdf3;
  --c-warn: #a16207;
  --c-warn-soft: #fefce8;
  --c-danger: #b91c1c;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 64px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 旧变量名兼容层：免费工具页的内联样式仍在引用这些名字，映射到新口径即可整体换皮 */
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --line: var(--c-line);
  --panel: var(--c-bg);
  --panel-strong: var(--c-bg);
  --bg: var(--c-bg-soft);
  --blue: var(--c-brand);
  --purple: var(--c-brand);
  --green: var(--c-ok);
  --shadow: none;
  --radius-card: var(--radius);
  --radius-stat: var(--radius);
  --radius-inner: 8px;
  --radius-pill: 999px;
  --font-display: 700;
  --font-strong: 600;
  --font-normal: 500;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-ink); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.3; margin: 0; font-weight: 700; }
h1 { font-size: clamp(28px, 3.6vw, 40px); }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
strong, b { color: var(--c-ink); font-weight: 600; }
code, kbd { font-family: var(--font-mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--c-bg-soft); border: 1px solid var(--c-line); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: #dcd9f5; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--c-ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: 56px 0; }
.block--soft { background: var(--c-bg-soft); }
.block--warm { background: var(--c-bg-warm); }
.block--tight { padding: 36px 0; }
.container.block { padding-left: var(--gutter); padding-right: var(--gutter); }
.block + .block:not(.block--soft):not(.block--warm) { border-top: 1px solid var(--c-line); }
.block-head { max-width: 720px; margin-bottom: 28px; }
.block-head h2 + p { margin-top: 10px; color: var(--c-muted); }
.block-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); } }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo:hover { color: var(--c-ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; display: block; }
.logo-sub { font-size: 12px; font-weight: 500; color: var(--c-muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.site-nav a, .nav-group > button {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px;
  color: var(--c-text); font: inherit; font-size: 15px; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.site-nav a:hover, .nav-group > button:hover, .nav-group:focus-within > button { color: var(--c-ink); background: var(--c-bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"], .nav-group.is-current > button { color: var(--c-brand); font-weight: 600; }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24, 24, 27, .08);
  display: none;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.is-open .nav-menu { display: block; }
.nav-menu a { display: flex; width: 100%; height: auto; padding: 8px 10px; line-height: 1.5; }
.nav-menu a small { display: block; color: var(--c-muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.header-link { color: var(--c-text); font-size: 15px; padding: 0 6px; }
.header-link:hover { color: var(--c-ink); }
.user-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 0 10px; height: 34px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none; margin-left: auto; height: 38px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--c-ink); background: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm); cursor: pointer; }

@media (max-width: 980px) {
  .site-header .container { gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav, .header-actions .header-link, .header-actions .user-chip { display: none; }
  .header-actions { margin-left: 0; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(24, 24, 27, .08);
  }
  .site-header.is-open .site-nav a, .site-header.is-open .nav-group > button { height: 46px; width: 100%; justify-content: flex-start; font-size: 16px; }
  .site-header.is-open .nav-group > button { color: var(--c-muted); font-size: 13px; height: 34px; cursor: default; }
  .site-header.is-open .nav-group > button::after { display: none; }
  .site-header.is-open .nav-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .site-header.is-open .nav-menu a { height: 42px; padding: 0 10px; }
  .site-header.is-open .nav-menu a small { display: none; }
}
@media (max-width: 520px) {
  .logo-sub { display: none; }
  .header-actions .btn--secondary { display: none; }
}

/* ---------- 语言切换（2026-11 外文版试点；按钮由 scripts/lib/i18n-pages.mjs 生成，外文页由 scripts/i18n-build.mjs 生成） ---------- */
.header-auth { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; flex: none; }
.lang-switch-ico { flex: none; }
.lang-switch > summary {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 8px;
  color: var(--c-text); font-size: 14px; border-radius: var(--radius-sm); cursor: pointer; list-style: none; white-space: nowrap; user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover, .lang-switch[open] > summary { color: var(--c-ink); background: var(--c-bg-soft); }
.lang-switch-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 140px; padding: 6px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24, 24, 27, .08);
}
.lang-switch-menu a { display: block; padding: 8px 10px; color: var(--c-text); font-size: 14px; border-radius: var(--radius-sm); }
.lang-switch-menu a:hover { color: var(--c-ink); background: var(--c-bg-soft); text-decoration: none; }
.lang-switch-menu a[aria-current] { color: var(--c-brand); font-weight: 600; }
@media (max-width: 520px) { .lang-switch > summary span { display: none; } }
/* 980–1280 之间英文 / 俄文菜单字长，挤不下：切换按钮只留地球图标，菜单项收紧 */
@media (min-width: 981px) and (max-width: 1279px) {
  .lang-switch > summary span { display: none; }
  .lang-switch > summary { padding: 0 6px; }
  html:not([lang^="zh"]) .site-header .container { gap: 16px; }
  html:not([lang^="zh"]) .site-nav a, html:not([lang^="zh"]) .nav-group > button { padding: 0 7px; font-size: 14px; }
}
/* 手机上英文 / 俄文的「注册」按钮更长：收一点间距，给地球图标腾位置 */
@media (max-width: 420px) {
  html:not([lang^="zh"]) .site-header .container { gap: 8px; }
  html:not([lang^="zh"]) .header-actions, html:not([lang^="zh"]) .header-auth { gap: 4px; }
  html:not([lang^="zh"]) .menu-toggle { padding: 0 10px; }
  html:not([lang^="zh"]) .header-actions .btn { padding: 0 11px; }
  html:not([lang^="zh"]) .logo { font-size: 17px; gap: 8px; }
}
@media (min-width: 981px) and (max-width: 1099px) {
  html[lang="ru"] .site-nav { gap: 0; }
  html[lang="ru"] .site-nav a, html[lang="ru"] .nav-group > button { padding: 0 5px; }
}
/* 外文版只用 MergePic 一个名字；只给某些语言版的块（data-i18n-only="zh" / "en ru"）按 <html lang> 显隐 */
html:not([lang^="zh"]) .logo-sub { display: none; }
html[lang^="zh"] [data-i18n-only]:not([data-i18n-only~="zh"]),
html[lang="en"] [data-i18n-only]:not([data-i18n-only~="en"]),
html[lang="ru"] [data-i18n-only]:not([data-i18n-only~="ru"]) { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border: 1px solid var(--c-brand); border-radius: 8px;
  color: #fff; background: var(--c-brand); font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { color: #fff; background: var(--c-brand-ink); border-color: var(--c-brand-ink); text-decoration: none; }
.btn--secondary, .btn.ghost { color: var(--c-ink); background: #fff; border-color: var(--c-line-strong); }
.btn--secondary:hover, .btn.ghost:hover { color: var(--c-brand); background: #fff; border-color: var(--c-brand); }
.btn--text { height: auto; padding: 0; border: 0; color: var(--c-brand); background: none; }
.btn--text:hover { color: var(--c-brand-ink); background: none; text-decoration: underline; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 13px; line-height: 1; color: var(--c-text); background: var(--c-bg-soft); border: 1px solid var(--c-line); white-space: nowrap; }
.tag--free { color: var(--c-ok); background: var(--c-ok-soft); border-color: #c8ecd5; }
.tag--brand { color: var(--c-brand); background: var(--c-brand-soft); border-color: #dcd9f5; }
.tag--accent { color: var(--c-accent); background: var(--c-accent-soft); border-color: #fbd7bf; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-faint); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-brand); }

/* ---------- 页首 ---------- */
.page-hero { padding: 44px 0 40px; border-bottom: 1px solid var(--c-line); }
.page-hero--split .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.page-hero h1 + .lead, .page-hero h1 + .tags { margin-top: 16px; }
.lead { max-width: 720px; font-size: 17px; line-height: 1.8; color: var(--c-text); }
.page-hero .tags { margin-top: 18px; }
.hero-figure { margin: 0; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.hero-figure img { display: block; width: 100%; }
.hero-figure figcaption { padding: 10px 14px; font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-line); background: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: 14px 16px; border-right: 1px solid var(--c-line); background: #fff; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 13px; color: var(--c-muted); }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* ---------- 卡片 ---------- */
.card { display: block; padding: 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); color: inherit; }
a.card:hover { border-color: var(--c-brand); text-decoration: none; color: inherit; }
.card h3 + p, .card h3 + ul { margin-top: 8px; }
.card p { color: var(--c-muted); font-size: 15px; line-height: 1.7; }
.card .card-meta { margin-top: 14px; font-size: 14px; color: var(--c-brand); font-weight: 600; }
.card-media { margin: -22px -22px 18px; border-bottom: 1px solid var(--c-line); background: var(--c-bg-soft); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-box { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 8px; color: var(--c-brand); background: var(--c-brand-soft); }
.icon-box svg { width: 20px; height: 20px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 22px; margin: 6px 0; font-size: 15px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 5px; border-left: 2px solid var(--c-ok); border-bottom: 2px solid var(--c-ok); transform: rotate(-45deg); }

/* ---------- 功能分区（图文交替） ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature + .feature { margin-top: 56px; }
.feature--reverse .feature-media { order: -1; }
.feature-media { margin: 0; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.feature-media img { display: block; width: 100%; }
.feature-media figcaption { padding: 10px 14px; font-size: 13px; color: var(--c-muted); background: #fff; border-top: 1px solid var(--c-line); }
.feature h2 + p, .feature h3 + p { margin-top: 12px; }
.feature .check-list { margin-top: 14px; }
.kicker { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--c-brand); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps > li { counter-increment: step; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.steps > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 6px; color: var(--c-brand); background: var(--c-brand-soft); font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 6px; color: var(--c-muted); font-size: 15px; line-height: 1.7; }
/* 竖排时间线：用在图文分区里，不加卡片框 */
.steps--list { display: block; margin-top: 22px; }
.steps--list > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 0 0 20px; border: 0; border-radius: 0; background: none; }
.steps--list > li::before { grid-row: 1 / span 2; margin: 0; }
.steps--list > li > * { grid-column: 2; }
.steps--list > li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 6px; width: 1px; background: var(--c-line); }
.steps--list p { margin-top: 2px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.table thead th { color: var(--c-ink); background: var(--c-bg-soft); font-weight: 600; font-size: 14px; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { color: var(--c-ink); font-weight: 600; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody th[scope="rowgroup"] { padding-top: 10px; padding-bottom: 10px; background: #fbfbfc; color: var(--c-muted); font-size: 13px; }
.table caption { caption-side: bottom; padding: 10px 16px; text-align: left; font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-line); }
.table .is-highlight { background: #faf9ff; }

/* ---------- 问答 ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { position: relative; padding: 16px 36px 16px 0; color: var(--c-ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 1.5px solid var(--c-muted); border-bottom: 1.5px solid var(--c-muted); transform: rotate(45deg); transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .faq-answer { padding: 0 0 18px; color: var(--c-text); }
.faq-item .faq-answer p + p { margin-top: 8px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-size: 20px; margin-bottom: 8px; }

/* ---------- 提示框 ---------- */
.callout { padding: 14px 16px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-brand); border-radius: var(--radius-sm); background: #fff; font-size: 15px; }
.callout--warn { border-left-color: var(--c-warn); background: var(--c-warn-soft); }
.callout--ok { border-left-color: var(--c-ok); background: var(--c-ok-soft); }
.callout strong:first-child { margin-right: 4px; }

/* ---------- 文章（指南 / 条款） ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 56px; align-items: start; justify-content: space-between; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 24px; }
.prose h3 { margin-top: 28px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p, .prose li { line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose .table-wrap { margin-top: 18px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c5ee; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .callout, .prose .table-wrap, .prose figure { margin-top: 20px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border: 1px solid var(--c-line); border-radius: var(--radius); }
.prose figcaption { margin-top: 6px; font-size: 13px; color: var(--c-muted); }
.answer-box { padding: 18px 20px; border: 1px solid #dcd9f5; border-radius: var(--radius); background: var(--c-brand-soft); }
.answer-box h2 { margin: 0 0 8px; font-size: 17px; }
.answer-box p, .answer-box li { font-size: 15.5px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--c-muted); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc h2 { font-size: 14px; color: var(--c-muted); font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--c-line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; color: var(--c-text); border-left: 2px solid transparent; line-height: 1.5; }
.toc a:hover { color: var(--c-brand); border-left-color: var(--c-brand); text-decoration: none; }
.toc .toc-cta { margin-top: 20px; padding: 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg-soft); }
.toc .toc-cta p { color: var(--c-muted); font-size: 13px; margin: 6px 0 10px; }
.sources { font-size: 14px; color: var(--c-muted); }
.sources li { margin-top: 4px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a.card { padding: 16px 18px; }
.related a.card strong { display: block; font-size: 16px; }
.related a.card span { display: block; margin-top: 4px; font-size: 14px; color: var(--c-muted); }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: repeat(var(--plans, 5), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.plan.is-recommended { border-color: var(--c-brand); box-shadow: inset 0 3px 0 var(--c-brand); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--c-ink); }
.plan-price { margin-top: 12px; font-size: 30px; font-weight: 700; color: var(--c-ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--c-muted); margin-left: 2px; }
.plan-credits { margin-top: 4px; font-size: 14px; color: var(--c-muted); }
.plan ul { margin: 16px 0 20px; padding: 0; list-style: none; font-size: 14px; flex: 1; }
.plan li { padding: 6px 0; border-top: 1px dashed var(--c-line); }
.plan .btn { width: 100%; }

/* ---------- 工具入口 ---------- */
.tool-card { display: flex; flex-direction: column; height: 100%; }
.tool-card .tags { margin-top: auto; padding-top: 14px; }

/* ---------- 行动区 ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px 32px; border: 1px solid #dcd9f5; border-radius: var(--radius); background: var(--c-brand-soft); }
.cta-band h2 { font-size: 22px; }
.cta-band p { margin-top: 6px; color: var(--c-text); }
.cta-band .actions { margin-top: 0; }

/* ---------- 平台标识 ---------- */
.platform-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-row li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font-size: 14px; color: var(--c-ink); }
.platform-row img { width: 20px; height: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: auto; padding: 48px 0 28px; background: var(--c-bg-soft); border-top: 1px solid var(--c-line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-about p { margin-top: 10px; color: var(--c-muted); line-height: 1.7; max-width: 320px; }
.site-footer h2 { font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 10px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--c-text); }
.site-footer a:hover { color: var(--c-brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 13px; }

/* ---------- 表单（登录 / 注册 / 找回密码，也给免费工具用） ---------- */
.field { display: grid; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 8px;
  background: #fff; color: var(--c-ink); font: inherit; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { padding: 10px 12px; min-height: 96px; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(83, 74, 183, .15); }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--c-brand); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { color: var(--c-brand-ink); text-decoration: underline; }

/* ---------- 登录 / 注册 / 找回密码 ---------- */
.auth-page .site-header { position: static; }
.auth-main { flex: 1 0 auto; padding: 48px var(--gutter) 64px; background: var(--c-bg-soft); }
.auth-shell { width: 100%; max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.auth-intro { padding-top: 12px; }
.auth-intro h1 { font-size: 28px; }
.auth-intro p { margin-top: 10px; color: var(--c-muted); }
.auth-intro .check-list { margin-top: 20px; }
.auth-card { padding: 28px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 8px; }
.tab { height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--c-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--c-ink); }
.tab.active { background: #fff; color: var(--c-ink); box-shadow: 0 1px 2px rgba(24, 24, 27, .1); }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn[type="submit"] { width: 100%; height: 46px; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.captcha-img { width: 132px; height: 44px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-bg-soft); cursor: pointer; object-fit: cover; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.auth-agree { font-size: 13px; color: var(--c-muted); }
.status { min-height: 22px; font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.status.error { color: var(--c-danger); }
.status.ok { color: var(--c-ok); }
@media (max-width: 860px) {
  .auth-main { padding-top: 24px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .auth-intro { order: 2; padding-top: 0; }
  .auth-card { padding: 20px; }
}
@media (max-width: 420px) {
  .captcha-row { grid-template-columns: minmax(0, 1fr); }
  .captcha-img { width: 100%; }
}

/* ---------- 旧类名兼容层（免费工具页的工具面板仍在用；新页面别再用） ---------- */
.page { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 56px; }
.section { margin-top: 40px; }
.section-head { max-width: 760px; margin-bottom: 20px; }
.section-head p { margin-top: 8px; color: var(--c-muted); }
.panel, .entry-card, .stat, .step-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.panel { padding: 22px; }
.step-card { padding: 20px; }
.step-card p { margin-top: 6px; color: var(--c-muted); font-size: 15px; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path-step { color: var(--c-brand); font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .block { padding: 40px 0; }
  .page-hero { padding: 28px 0 28px; }
  .page-hero--split .container, .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature--reverse .feature-media { order: 0; }
  .feature + .feature { margin-top: 40px; }
  .grid--3, .grid--4, .grid-3, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .facts > div:last-child { border-bottom: 0; }
  .cta-band { padding: 22px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .grid-2, .grid-3, .related, .plans { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions .btn, .hero-actions .btn { flex: 1 1 auto; }
  .table th, .table td { padding: 10px 12px; }
}
