/* 公共基线：重置、排版骨架、可访问性工具。主题文件负责配色与形态。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus, #66d9e8);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--focus, #66d9e8);
  color: #08111a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* 正文排版（三个阅读主题共用节奏，颜色由主题覆盖） */
.prose { font-size: 16px; line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; line-height: 1.35; margin-top: 2.2em; padding-top: 0.6em; }
.prose h3 { font-size: 1.18rem; line-height: 1.45; margin-top: 1.8em; }
.prose h4 { font-size: 1.02rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding: 0.4em 0 0.4em 1em; border-left: 3px solid currentColor; opacity: 0.9; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 3px; background: rgba(127, 127, 127, 0.14); }
.prose pre { overflow-x: auto; padding: 14px 16px; border: 1px solid currentColor; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid rgba(127, 127, 127, 0.35); text-align: left; vertical-align: top; }
.prose img { display: block; margin: 1.2em auto; border-radius: 3px; }
.prose details { margin: 1em 0; padding: 0.7em 0.9em; border: 1px dashed rgba(127, 127, 127, 0.5); border-radius: 3px; }
.prose details > summary { cursor: pointer; font-weight: 600; }
.prose details[open] > summary { margin-bottom: 0.6em; }
.prose hr { border: 0; border-top: 1px solid rgba(127, 127, 127, 0.4); margin: 2em 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
