/* 法务 / 支持类文档页共用样式，设计变量与官网首页保持一致 */
:root {
  color-scheme: light;
  --bg: #f8f7fc;
  --surface: #ffffff;
  --surface-soft: #f0eef9;
  --text: #0f0d17;
  --muted: #6b6579;
  --border: rgba(15, 13, 23, 0.08);
  --accent: #6b48e8;
  --accent-2: #8b6af0;
  --accent-strong: #4e2fd4;
  --accent-soft: rgba(107, 72, 232, 0.1);
  --shadow-sm: 0 4px 16px rgba(46, 34, 94, 0.08);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 252, 0.85);
  border-bottom: 1px solid rgba(107, 72, 232, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(107, 72, 232, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Document ── */
.doc {
  padding: 56px 0 88px;
}

.doc-head {
  margin-bottom: 40px;
}

.doc-head h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.doc-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.doc-lead {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.doc p {
  margin: 12px 0;
  color: #2c2740;
}

.doc ul,
.doc ol {
  margin: 12px 0 12px 22px;
  color: #2c2740;
}

.doc li {
  margin: 8px 0;
}

.doc strong {
  font-weight: 700;
  color: var(--text);
}

.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 0.92em;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

.doc hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--border);
}

.card {
  margin: 20px 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0;
}

.card :last-child {
  margin-bottom: 0;
}

.callout {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: 16px;
  color: #3b2a7a;
  font-size: 15px;
}

.callout :last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  font-weight: 700;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
}

/* ── Footer ── */
.site-footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .nav-links {
    gap: 2px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 6px 10px;
  }

  .doc {
    padding: 36px 0 64px;
  }
}
