/* ============================================================
   绿幕数字人 · 协议页（用户协议 / 隐私政策）
   独立样式：协议页不依赖工作台的 styles.css，单独分发也能正常阅读。
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f7faf7;
  --surface: #ffffff;
  --ink: #0f1c15;
  --ink-2: #33443a;
  --muted: #728177;
  --muted-2: #8d9a92;
  --line: #e3eae4;
  --line-strong: #d2ded5;
  --brand: #0b7a4b;
  --brand-strong: #075f3a;
  --brand-soft: #eaf6ef;
  --todo-bg: #fff3cd;
  --todo-ink: #7a5b00;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -220px, rgba(18, 160, 101, .12), transparent 72%),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 247, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand svg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
}

.topbar-links a:hover { color: var(--brand); }

.topbar-links a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.doc {
  max-width: 880px;
  margin: 0 auto;
  padding: 38px 20px 64px;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.intro {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.toc {
  margin: 22px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 30px;
}

.toc li { margin: 5px 0; break-inside: avoid; }

.toc a {
  color: var(--ink-2);
  font-size: 13.5px;
  text-decoration: none;
}

.toc a:hover { color: var(--brand); text-decoration: underline; }

section { scroll-margin-top: 76px; }

section h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.01em;
}

section h3 {
  margin: 22px 0 6px;
  font-size: 15.5px;
}

p {
  margin: 12px 0;
  line-height: 1.85;
  text-align: justify;
}

ul {
  margin: 12px 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  line-height: 1.8;
  text-align: justify;
}

strong { font-weight: 650; }

.notice {
  margin: 16px 0;
  padding: 12px 15px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-soft);
  color: #21503a;
  font-size: 14px;
  line-height: 1.8;
}

.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-size: 13px;
  line-height: 1.6;
  /* 占位说明可能很长（例如留存期限的整句），允许换行，别把手机页撑出横向滚动 */
  white-space: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.doc-footer {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

.doc-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
}

.doc-footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.doc-footer a {
  color: var(--muted-2);
  text-decoration: none;
}

.doc-footer a:hover { color: var(--brand); text-decoration: underline; }

.doc-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 640px) {
  .doc { padding: 28px 16px 48px; }
  .doc h1 { font-size: 23px; }
  section h2 { font-size: 17.5px; }
  .toc { padding: 14px 16px; }
  .toc ol { columns: 1; }
  .topbar-inner { padding: 12px 16px; }
  .topbar-links { gap: 12px; }
  .doc-footer-inner { padding: 18px 16px 28px; }
}

@media print {
  .topbar, .toc { display: none; }
  body { background: #fff; }
  .doc { padding-top: 0; }
  .doc-footer { margin-top: 32px; }
}
