:root {
  color-scheme: dark;
  --page-bg: #07080b;
  --page-text: #d8dce3;
  --page-muted: #87909d;
  --page-dim: #596170;
  --page-line: rgba(255, 255, 255, 0.1);
  --page-accent: #8eb8ff;
  --page-warm: #e2b27a;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(145deg, #11151b 0%, var(--page-bg) 48%, #0c1114 100%);
  color: var(--page-text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}
a { color: var(--page-accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--page-accent); outline-offset: 4px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 32px;
  border-bottom: 1px solid var(--page-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f4f6fa;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(142, 184, 255, .55);
  color: var(--page-accent);
  font-family: Georgia, serif;
  font-size: 12px;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.site-nav a {
  padding: 5px 0;
  color: var(--page-muted);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a[href="../index.html"] {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(142, 184, 255, .36);
  background: rgba(142, 184, 255, .08);
  color: #dce8ff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.site-nav a[href="../index.html"]:hover {
  border-color: rgba(142, 184, 255, .72);
  background: rgba(142, 184, 255, .16);
  color: #fff;
}
.site-nav a[href="../index.html"]:focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 3px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--page-accent); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px var(--page-accent); }

.page-shell { width: min(100% - 48px, 860px); margin: 0 auto; padding: 56px 0 80px; }
.page-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--page-warm); font-size: 11px; text-transform: uppercase; }
.page-kicker::before { width: 22px; height: 1px; background: currentColor; content: ""; }
h1 {
  margin: 0;
  color: #fff;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.25;
}
.page-lede { max-width: 680px; margin: 18px 0 36px; color: #aeb5c0; font-size: 16px; line-height: 1.9; }
.article-content { border-top: 1px solid var(--page-line); }
.article-section {
  display: grid;
  grid-template-columns: minmax(150px,  .34fr) minmax(0, 1fr);
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--page-line);
}
.article-section h2 { margin: 0; color: #f1f3f6; font-size: 16px; font-weight: 600; }
.article-section p { margin: 0 0 12px; color: #b6bdc7; font-size: 14px; line-height: 1.9; }
.article-section p:last-child { margin-bottom: 0; }
.article-section ul { margin: 0; padding-left: 20px; color: #b6bdc7; font-size: 14px; line-height: 1.95; }
.article-section li + li { margin-top: 6px; }
.note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--page-warm);
  background: rgba(226, 178, 122, .06);
  color: #d6c3aa;
  font-size: 13px;
  line-height: 1.85;
}
.faq-list { border-top: 1px solid var(--page-line); }
.faq-list details { border-bottom: 1px solid var(--page-line); }
.faq-list summary {
  position: relative;
  padding: 18px 34px 18px 0;
  color: #edf0f5;
  cursor: pointer;
  font-size: 15px;
  font-weight: 550;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 17px; right: 4px; color: var(--page-accent); content: "+"; font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { max-width: 720px; padding: 0 28px 20px 0; color: #b6bdc7; font-size: 14px; line-height: 1.9; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  border-top: 1px solid var(--page-line);
  color: var(--page-dim);
  font-size: 11px;
}
.page-footer a { color: var(--page-muted); text-decoration: none; }
.page-footer a:hover { color: var(--page-accent); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.footer-nav a[aria-current="page"] { color: var(--page-accent); }

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px 20px; }
  .site-nav { justify-content: flex-start; gap: 6px 16px; }
  .page-shell { width: min(100% - 40px, 860px); padding: 40px 0 60px; }
  h1 { font-size: 34px; }
  .page-lede { margin: 14px 0 28px; font-size: 15px; }
  .article-section { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .page-footer { flex-direction: column; padding: 18px 20px 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-shell { animation: page-arrive .45s ease both; }
  @keyframes page-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
