/* 见录公开页面样式。结构沿用 CCD Camera 支持站，配色换成见录 App 的品牌色。 */
h1, h2, h3, h4, h5, h6, p { margin: 0; }

:root {
  --ground: #f7f6f4;
  --paper: #ffffff;
  --ink: #26221f;
  --muted: #6c645e;
  --line: #e4e2df;
  --accent: #b1452a;
  --accent-ink: #8f351f;
  --wash: #f8eae3;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; }
.site-header, footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 88px; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; }
.wordmark img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark small { color: var(--muted); font: 600 11px/1 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .14em; }
nav { display: flex; gap: 28px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; align-items: center; gap: clamp(40px, 8vw, 100px); padding: clamp(64px, 10vw, 120px) 0 80px; }
.hero-icon { width: min(100%, 360px); height: auto; aspect-ratio: 1; justify-self: center; border-radius: 22%; box-shadow: 0 24px 60px rgba(177, 69, 42, .18); }
.hero-copy h1, .document-header h1 { margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.hero-copy h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.18; }
.eyebrow, .document-updated, .section-number, footer { font: 11px/1.4 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .12em; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-weight: 700; }
.lede { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.english-copy { font-size: 15px; }

.destination-list { border-top: 1px solid var(--ink); }
.destination { display: grid; grid-template-columns: 64px 1fr 44px; gap: 20px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.destination:hover .destination-copy strong, .destination:focus-visible .destination-copy strong { color: var(--accent); }
.destination-index { padding-top: 6px; color: var(--accent); font: 11px/1 ui-monospace, "SFMono-Regular", monospace; }
.destination-copy { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(180px, .45fr) 1.3fr; align-items: baseline; gap: 24px; }
.destination-copy strong { font-size: 25px; font-weight: 700; }
.destination-copy span { font-size: 15px; }
.destination-copy small { color: var(--muted); font-size: 14px; line-height: 1.55; }
.destination-arrow { font-size: 22px; }
.privacy-note { display: flex; gap: 14px; align-items: baseline; margin: 48px 0 96px; padding: 20px 24px; border-radius: 16px; color: var(--ink); background: var(--wash); }
.privacy-note p { margin: 0; line-height: 1.65; }
.status-light { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.document-layout { display: grid; grid-template-columns: minmax(260px, .72fr) 1.28fr; gap: clamp(56px, 9vw, 120px); padding: 96px 0 120px; }
.document-header { position: sticky; top: 40px; align-self: start; }
.document-header h1 { font-size: clamp(40px, 5.4vw, 64px); }
.document-summary { margin: 28px 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.document-updated { color: var(--muted); }
.document-toc { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.document-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.document-toc li { counter-increment: toc; }
.document-toc a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 7px 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; }
.document-toc a::before { content: counter(toc, decimal-leading-zero); font: 11px/1.7 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .1em; }
.document-toc a:hover { color: var(--accent); }
.document-body section { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.document-body { border-top: 1px solid var(--ink); }
.document-body section { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.section-number { padding-top: 7px; color: var(--accent); }
.document-body h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
.document-body p, .document-body li { margin: 0 0 16px; color: #3a3531; font-size: 16px; line-height: 1.78; }
.document-body ul { margin: 0 0 16px; padding-left: 1.2em; }
.document-body li { margin-bottom: 8px; }
.document-body p[lang="en"] { margin-left: -14px; padding-left: 14px; border-left: 2px solid var(--line); color: #5c5650; font-size: 14px; }
.document-body a { color: var(--accent-ink); font-weight: 600; }

footer { min-height: 96px; color: var(--muted); border-top: 1px solid var(--ink); }

@media (max-width: 780px) {
  .site-shell { width: min(100% - 32px, 620px); }
  .site-header { min-height: 72px; }
  .wordmark small { display: none; }
  nav { gap: 10px; }
  nav a { padding: 0 6px; font-size: 13px; }
  .hero, .document-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; gap: 48px; }
  .hero-icon { width: min(56vw, 260px); }
  .destination { grid-template-columns: 36px 1fr 28px; gap: 12px; }
  .destination-copy { grid-template-columns: 1fr; gap: 6px; }
  .destination-copy small { margin-top: 6px; }
  .document-layout { padding-top: 56px; gap: 48px; }
  .document-header { position: static; }
  .document-toc { display: none; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .destination-copy strong { transition: color 160ms ease; }
}

@media (prefers-color-scheme: dark) {
  :root { --ground: #141414; --paper: #1f1f1f; --ink: #f5f1ec; --muted: #b7aea7; --line: #3a3836; --accent: #e98a67; --accent-ink: #f0a283; --wash: #3d2a23; }
  .document-body p, .document-body li { color: #ddd6cf; }
  .document-body p[lang="en"] { color: #b8b0a8; }
}

@media print {
  .site-header nav, .hero-icon { display: none; }
  .site-shell { width: 100%; }
  .document-layout { display: block; padding: 24px 0; }
  .document-header { position: static; margin-bottom: 40px; }
}
