:root {
  --ink: #1b2430;
  --muted: #5c6876;
  --paper: #f4f0e7;
  --card: #fffdf9;
  --line: #e3dacb;
  --blue: #1a66c7;
  --blue-deep: #12498f;
  --soft: #eef4fb;
  --warn: #8a4b12;
  --warn-bg: #fff4e6;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, #e7f0fb 0%, transparent 55%),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; }
a { color: var(--blue-deep); }
a:hover { color: var(--blue); }

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.age {
  flex: 0 0 auto;
  margin-left: 8px;
  border: 1px solid #e2b15a;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
}
.nav-btn span::before,
.nav-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-btn span::before { top: -6px; }
.nav-btn span::after { top: 6px; }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-toggle:checked + .nav-btn span { background: transparent; }
.nav-toggle:checked + .nav-btn span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-btn span::after { top: 0; transform: rotate(-45deg); }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-panel a:hover { background: var(--soft); color: var(--blue-deep); }
.nav-panel a[aria-current="page"] {
  background: var(--soft);
  color: var(--blue-deep);
  font-weight: 700;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.crumb {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.crumb a { color: inherit; }

h1, h2, h3 {
  font-family: "Songti SC", "Noto Serif SC", SimSun, serif;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 12px;
}
h1 { font-size: 34px; letter-spacing: 0.01em; }
h2 {
  font-size: 26px;
  margin-top: 8px;
  padding-top: 8px;
}
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.lead {
  font-size: 18px;
  color: #243140;
}
.muted { color: var(--muted); }
.date { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 6px;
  margin: 18px 0 28px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 22px;
}
.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 6px;
}
.cards h3 { font-size: 18px; }
.cards p { font-size: 14px; color: #3d4b5c; line-height: 1.7; }

.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  margin: 28px 0 36px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.frame { margin: 4px 0 0; }
.frame img {
  width: min(100%, 300px);
  border-radius: 22px;
  border: 1px solid #d9d0c2;
  box-shadow: 0 14px 36px rgba(48, 36, 12, 0.12);
  background: #151922;
  display: block;
}
.frame figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 300px;
}

ul, ol { margin: 0 0 14px; padding-left: 1.2em; }
li { margin: 0 0 6px; }
li strong { font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f0e4; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.note {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 20px 36px;
  color: var(--muted);
  font-size: 14px;
}
.site-foot .inner { max-width: var(--max); margin: 0 auto; }
.site-foot a { margin-right: 14px; }

.error-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  max-width: 640px;
}
.error-box h1 { font-size: 32px; }
.code {
  font-family: "Songti SC", SimSun, serif;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .block { grid-template-columns: 1fr; gap: 12px; }
  .frame img, .frame figcaption { max-width: 360px; }
  .wrap { padding-top: 18px; }
}
@media (max-width: 800px) {
  .site-head { position: relative; }
  .nav-btn { display: inline-flex; }
  .age { display: none; }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(40, 32, 16, 0.14);
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .nav-panel a {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .site-head { padding: 10px 14px; }
  .brand small { display: none; }
}
