/* =========================================================
   清风道 · 用户协议 / 隐私政策
   配色与落地页一致：朱红 #B3262C / 金 #B8863B / 暖白 #FDF8F3
   ========================================================= */

:root {
  --red: #b3262c;
  --red-dark: #8c1a1f;
  --red-deep: #6d1114;
  --gold: #b8863b;
  --gold-soft: #fbf0dc;
  --ink: #2a1714;
  --text: #4a3a35;
  --muted: #8a746c;
  --line: #f0e2da;
  --paper: #fdf8f3;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: #f3e7e0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部 ---------- */
.doc-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 252, 250, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.doc-header-inner {
  width: min(880px, calc(100% - 40px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.doc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.doc-brand:hover { text-decoration: none; }
.doc-brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #c33a34, #8c1a1f);
  color: #fff; font-family: var(--serif); font-size: 17px;
}
.doc-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.doc-brand-text strong { font-family: var(--serif); font-size: 17px; color: var(--ink); letter-spacing: .08em; }
.doc-brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.doc-nav { display: flex; gap: 18px; font-size: 14px; }
.doc-nav a { color: #7a5f57; }
.doc-nav a:hover { color: var(--red); text-decoration: none; }

/* ---------- 页头 ---------- */
.doc-hero {
  padding: 46px 24px 78px; text-align: center;
  background:
    radial-gradient(520px 260px at 82% 0%, rgba(230, 194, 131, .22), transparent 70%),
    linear-gradient(160deg, #a51b1e, #8c1a1f 60%, #6d1114);
  color: #f6d9cd;
}
.doc-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif); font-size: clamp(26px, 4vw, 34px);
  color: #fff; letter-spacing: .08em; font-weight: 700;
}
.doc-meta { font-size: 12.5px; color: #e7b9ab; letter-spacing: .02em; }

/* ---------- 正文容器 ---------- */
.doc-main {
  width: min(820px, calc(100% - 40px)); margin: -48px auto 0;
  background: #fff; border-radius: 18px;
  padding: 38px 46px 44px;
  box-shadow: 0 18px 50px rgba(90, 20, 20, .14);
  border: 1px solid #f5e8e1;
}

.doc-notice {
  padding: 14px 16px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid #ecd9b6;
  font-size: 13.5px; color: #7a5a24; line-height: 1.85;
}
.doc-notice strong { color: #6b4d1c; }

.doc-toc {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 6px;
}
.doc-toc a {
  font-size: 13.5px; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid #f0d9cd; color: var(--red-dark);
}
.doc-toc a:hover { background: #fdecea; text-decoration: none; }

/* ---------- 章节 ---------- */
.doc-section { padding-top: 34px; }
.doc-section h2 {
  position: relative; margin: 0 0 16px; padding-left: 14px;
  font-family: var(--serif); font-size: 25px; letter-spacing: .08em; color: var(--ink);
}
.doc-section h2::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 4px; height: 22px; border-radius: 3px; background: var(--red);
}
.doc-lead {
  font-size: 14.5px; color: #6b544c; line-height: 2;
  padding: 12px 14px; border-left: 3px solid #f0d9cd;
  background: #fffbf8; border-radius: 0 8px 8px 0;
  margin-bottom: 22px;
}
.doc-section h3 {
  margin: 26px 0 8px;
  font-size: 16.5px; color: var(--ink); letter-spacing: .02em;
}
.doc-section p { margin: 0 0 10px; font-size: 14.8px; line-height: 2; color: var(--text); }
.doc-section strong { color: var(--red-dark); font-weight: 600; }
.doc-section ul { margin: 6px 0 12px; padding: 0; list-style: none; }
.doc-section ul li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 14.8px; line-height: 1.95; color: var(--text);
}
.doc-section ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #e6c4b8;
}
.doc-section b { color: #6b4a42; font-weight: 600; }
.doc-hint { margin-top: 14px !important; font-size: 13px !important; color: var(--muted) !important; }

/* ---------- 返回按钮 ---------- */
.doc-back {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.doc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, #c33a34, #a01e23); color: #fff;
  box-shadow: 0 10px 22px rgba(160, 30, 35, .26);
}
.doc-btn:hover { text-decoration: none; filter: brightness(1.05); }
.doc-btn.ghost {
  background: #fff; color: var(--red-dark);
  border: 1px solid #f0d5cb; box-shadow: none;
}
.doc-btn.ghost:hover { background: #fdecea; }

/* ---------- 页脚 ---------- */
.doc-footer {
  width: min(820px, calc(100% - 40px)); margin: 26px auto 40px;
  text-align: center; font-size: 12.5px; color: #a08a82; line-height: 1.9;
}
.doc-footer .muted { color: #b6a29a; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .doc-header-inner { height: 58px; }
  .doc-hero { padding: 34px 20px 66px; }
  .doc-main { padding: 26px 20px 32px; border-radius: 14px; margin-top: -40px; }
  .doc-section h2 { font-size: 21px; }
  .doc-section h3 { font-size: 15.5px; }
  .doc-section p, .doc-section ul li { font-size: 14.2px; }
  .doc-nav { gap: 12px; font-size: 13px; }
  .doc-toc a { padding: 6px 13px; font-size: 12.5px; }
  .doc-back .doc-btn { flex: 1; }
}
