/*
 * officOA 平台网站
 * 设计取向：企业内的“公文”气质——宋体标题、靛蓝主色；朱红只用在“拦截”这一件事上。
 * 唯一的视觉重点是首页的请求样张（员工写的 → 实际发出的），其余部分保持安静。
 */
:root {
  --paper: #f5f7f8;
  --surface: #ffffff;
  --tint: #eaf0f6;          /* 区块底色、脱敏占位符底色 */
  --line: #d8dee5;
  --ink: #18212b;
  --ink-2: #4f5b69;
  --ink-3: #7c8794;
  --indigo: #284a8a;        /* 靛蓝：操作与链接 */
  --indigo-ink: #1d3768;
  --indigo-soft: #e3eaf6;
  --seal: #b3362c;          /* 朱红：拦截 */
  --seal-soft: #f8e6e3;
  --ok: #1d6b47;
  --ok-soft: #e1f1e8;
  --warn: #8a5300;
  --warn-soft: #fbefd9;
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12161b; --surface: #191e25; --tint: #1f2731; --line: #2d3540;
    --ink: #e7ebf0; --ink-2: #a9b3bf; --ink-3: #7d8895;
    --indigo: #8eabe8; --indigo-ink: #b7caf2; --indigo-soft: #1f2b44;
    --seal: #f08a7e; --seal-soft: #3d1f1c; --ok: #6fcf9f; --ok-soft: #16322a;
    --warn: #e9b35a; --warn-soft: #3a2b12;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-ink); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: 0.01em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* ---- 页头页脚 ---- */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 18px; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--indigo); border-radius: 4px; color: var(--indigo); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: -0.02em; }
nav.links { display: flex; gap: 4px; flex: 1; }
nav.links a { padding: 6px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav.links a:hover { color: var(--ink); background: var(--tint); }
nav.links a[aria-current='page'] { color: var(--ink); font-weight: 600; }
footer.site { margin-top: 80px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--ink-3); }

/* ---- 按钮与表单 ---- */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-ink); border-color: var(--indigo-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #0e1420; } }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-3); }
input, select, textarea { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
textarea { padding: 10px 12px; min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- 通用块 ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.layout-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; margin: 40px 0; }
.layout-2 > *, .hero > *, .path > *, .docs > * { min-width: 0; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 34px; margin-bottom: 10px; }
.banner { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 15px; }
.banner-danger { background: var(--seal-soft); color: var(--seal); }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-ok { background: var(--ok-soft); color: var(--ok); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 16px 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 18px; color: var(--ink); }
.code-box { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--indigo); border-radius: 6px; background: var(--indigo-soft); margin: 12px 0; }
.code-box code { font-size: 22px; font-weight: 700; letter-spacing: 0.06em; color: var(--indigo-ink); }

/* 命令行：可复制的一行命令 */
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; margin: 12px 0; }
.cmd code { flex: 1; padding: 12px 14px; font-size: 14px; overflow-x: auto; white-space: nowrap; color: var(--ink); }
.cmd code::before { content: '$ '; color: var(--ink-3); user-select: none; }
.cmd button { border: 0; border-left: 1px solid var(--line); background: var(--tint); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.cmd button:hover { background: var(--indigo-soft); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; white-space: nowrap; padding: 1px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-seal { background: var(--seal-soft); color: var(--seal); }

/* 有先后顺序的步骤 */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--indigo); color: var(--indigo); display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface); }
ol.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
ol.steps > li > b { display: block; font-size: 17px; margin-bottom: 2px; }

/* ---- 首页 ---- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { margin-bottom: 20px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* 请求样张：本站唯一的视觉重点 */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.specimen .req { padding: 18px 20px; border-radius: 6px; }
.specimen .req + .req { border-top: 1px dashed var(--line); }
.specimen .who { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.specimen .who b { color: var(--ink-2); font-weight: 600; }
.specimen .text { font-size: 16px; line-height: 1.9; }
.specimen .val .orig { background: var(--warn-soft); border-radius: 3px; padding: 1px 3px; }
.specimen .val .ph { display: none; font-family: var(--mono); font-size: 13px; background: var(--tint); color: var(--indigo-ink); border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.specimen.done .val .orig { display: none; }
.specimen.done .val .ph { display: inline; animation: ph-in 0.45s ease both; }
.specimen.done .val + .val .ph { animation-delay: 0.25s; }
@keyframes ph-in { from { opacity: 0; } to { opacity: 1; } }
.specimen .outcome { margin-top: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.4s ease 0.2s; }
.specimen.done .outcome { opacity: 1; }
.specimen .blocked .text { color: var(--ink-2); }
.specimen .text .mono { white-space: nowrap; }
.specimen .stamp { display: inline-block; border: 2px solid var(--seal); color: var(--seal); border-radius: 4px; padding: 0 8px; font-family: var(--serif); font-weight: 700; font-size: 15px; transform: rotate(-4deg) scale(1.25); opacity: 0; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.6, 1) 0.9s, opacity 0.2s ease 0.9s; }
.specimen.done .stamp { transform: rotate(-4deg) scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .specimen *, .specimen .stamp { transition: none !important; animation: none !important; } }

.band { background: var(--tint); padding: 56px 0; margin: 24px 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; }
.trio > div { padding: 0 28px; border-left: 1px solid var(--line); }
.trio > div:first-child { padding-left: 0; border-left: 0; }
.trio h3 { margin-bottom: 8px; }
.trio p { color: var(--ink-2); margin: 0; }
section.block { padding-top: 56px; padding-bottom: 8px; scroll-margin-top: 64px; }
section.block > h2 { margin-bottom: 8px; }
section.block > .lead { margin-bottom: 28px; }

.plan-table { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.plan-table table { font-size: 15px; }
.plan-table th, .plan-table td { padding: 14px 20px; }
.plan-table thead th { vertical-align: bottom; color: var(--ink); font-size: 15px; border-bottom: 1px solid var(--line); }
.plan-table thead th h3 { margin-bottom: 4px; }
.plan-table .price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); }
.plan-table .price small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.plan-table td.yes { color: var(--ok); font-weight: 700; }
.plan-table td.no { color: var(--ink-3); }
.plan-table tbody th { font-weight: 400; color: var(--ink-2); width: 40%; }
.plan-table tfoot td { border-bottom: 0; }
.plan-table col.plan { width: 30%; }
.tool-table tbody th b { display: block; color: var(--ink); }
.tool-table tbody th span { display: block; }
.tool-table td.yes { font-weight: 600; }
.tool-table + p { margin-top: 12px; }

.path { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---- 使用指南 ---- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.docs nav.toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.docs nav.toc b { display: block; margin: 18px 0 6px; font-size: 14px; color: var(--ink); }
.docs nav.toc b:first-child { margin-top: 0; }
.docs nav.toc a { display: block; padding: 3px 0 3px 12px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; }
.docs nav.toc a:hover, .docs nav.toc a.on { color: var(--indigo); border-left-color: var(--indigo); }
.doc { max-width: 46em; }
.doc > section { padding-bottom: 32px; scroll-margin-top: 88px; }
.doc > section + section { border-top: 1px solid var(--line); padding-top: 40px; }
.doc h2 { margin-bottom: 10px; scroll-margin-top: 88px; }
.doc h3 { margin: 28px 0 8px; scroll-margin-top: 88px; }
.doc ul, .doc ol:not(.steps) { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc .note { border-left: 3px solid var(--indigo); background: var(--surface); padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.doc .note.seal { border-left-color: var(--seal); }
.doc pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.doc dl.faq dt { font-weight: 600; margin-top: 22px; }
.doc dl.faq dd { margin: 6px 0 0; color: var(--ink-2); }
.ph-inline { font-family: var(--mono); font-size: 13px; background: var(--tint); color: var(--indigo-ink); border-radius: 3px; padding: 1px 6px; white-space: nowrap; }

@media (max-width: 860px) {
  h1 { font-size: 30px; }
  .hero, .path, .layout-2, .row, .docs { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .trio { grid-template-columns: 1fr; gap: 24px; }
  .trio > div { padding: 0; border-left: 0; }
  .docs nav.toc { position: static; }
  header.top .wrap { gap: 12px; }
  nav.links { overflow-x: auto; }
  header.top .btn { display: none; }
  .plan-table th, .plan-table td { padding: 12px; }
  .wrap { padding: 0 16px; }
}

/* ---- 产品介绍页：可直接打印或另存为 PDF ---- */
.intro .doc { max-width: 52em; }
@media print {
  header.top, footer.site, .no-print { display: none !important; }
  body, :root { background: #fff; color: #000; }
  .intro .doc > section { break-inside: avoid-page; }
  .intro a { color: inherit; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
}
