/* 明日之书 · 静态说明页 / 产品说明海报 — 系统字体栈，无外部字库 */
:root {
  --bg-0: #0c0c0c;
  --bg-1: #141414;
  --bg-2: #1a1a1a;
  --text: #e6e4df;
  --text-muted: #8a8780;
  --line: rgba(217, 217, 217, 0.12);
  --accent: #b8a882;
  --accent-soft: rgba(184, 168, 130, 0.15);
  --glow: rgba(184, 168, 130, 0.08);
  --font-sc: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-en: ui-serif, Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sc);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30, 40, 50, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 同域 SVG，避免个别浏览器将 data: 内解码出的 xmlns 误判为混合内容 */
  background-image: url("noise.svg");
  opacity: 0.5;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* —— 单页「海报」 —— */
body.page-poster {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap-poster {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  min-height: 100vh;
  padding: 20px 24px 40px;
}

.poster-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 32px 0 48px;
}

.poster-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(420px, 95vw);
  height: min(420px, 95vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: orbBreathe 10s ease-in-out infinite;
}

@keyframes orbBreathe {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.site-name,
.poster-line {
  position: relative;
  z-index: 1;
}

.site-name {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.25;
  font-family: var(--font-sc);
}

.poster-line {
  margin: 0 0 0.85em;
  max-width: 22em;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.75;
  text-align: center;
}

.poster-line:last-of-type {
  margin-bottom: 0;
}

.poster-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 0 12px;
}

/* 页底：极小字 + 两链 + 备案占位，无按钮感 */
.footer-legal-row {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(138, 135, 128, 0.55);
  word-break: keep-all;
}

.footer-legal-row a {
  color: rgba(138, 135, 128, 0.82);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.footer-legal-row a:hover,
.footer-legal-row a:focus-visible {
  color: rgba(180, 176, 168, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.footer-legal-sep {
  margin: 0 0.35em;
  color: rgba(138, 135, 128, 0.35);
  user-select: none;
}

.icp-placeholder {
  color: rgba(138, 135, 128, 0.5);
  font-variant-numeric: tabular-nums;
}

/* 公安网备：徽标 + 文字同一可点击区域 */
.footer-beian-mps {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  vertical-align: middle;
}

.footer-beian-mps-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* 子页返回：与底栏链同色阶 */
.link-footer-legal {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.link-footer-legal:hover {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— privacy.html —— */
body.page-legal {
  min-height: 100vh;
}

.wrap-legal {
  max-width: 640px;
  padding: 28px 24px 48px;
}

.legal-back {
  margin: 0 0 24px;
}

.legal-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.legal-meta {
  margin: 0 0 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.legal-box {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.legal-box p {
  margin: 0 0 1em;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

/* —— 首页长卷（序言 / 承诺 / 说明） —— */
body.page-scroll-home {
  min-height: 100vh;
}

.wrap-scroll-home {
  max-width: 720px;
  padding: 28px 24px 64px;
}

.home-hero {
  text-align: center;
  padding: 36px 0 40px;
}

.home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text);
}

.home-tagline {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.home-lead {
  margin: 20px auto 0;
  max-width: 26em;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  letter-spacing: 0.06em;
}

.chapter-card {
  margin-bottom: 32px;
  padding: 26px 22px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(
    165deg,
    rgba(26, 26, 30, 0.92) 0%,
    rgba(12, 12, 14, 0.88) 100%
  );
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.chapter-card h2 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.38em;
  color: var(--accent);
  font-weight: 600;
}

.chapter-card .chapter-title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f0ebe3;
}

.chapter-card p {
  margin: 0 0 1em;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(214, 210, 200, 0.88);
  letter-spacing: 0.04em;
}

.chapter-card p:last-child {
  margin-bottom: 0;
}

.quote-gold {
  display: block;
  margin: 1em 0 1.2em;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  font-weight: 600;
  color: #faf6ef;
  line-height: 1.65;
}

.soft-block {
  margin-top: 1.25em;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 192, 203, 0.04);
}

.soft-block p {
  margin-bottom: 0.75em;
}

.soft-block p:last-child {
  margin-bottom: 0;
}

.prelude-lines {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(232, 228, 218, 0.92);
  margin-bottom: 1.5em;
}

.subtle-hint {
  margin-top: 1.5em;
  font-size: 12.5px;
  color: rgba(138, 135, 128, 0.75);
  line-height: 1.65;
}

.diamond-sep {
  text-align: center;
  margin: 8px 0 28px;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: rgba(184, 168, 130, 0.35);
}

.legal-box h3 {
  margin: 1.25em 0 0.5em;
  font-size: 14px;
  font-weight: 700;
  color: rgba(230, 228, 223, 0.95);
  letter-spacing: 0.06em;
}

.legal-box h3:first-child {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .poster-main::before {
    animation: none;
  }
}
