:root {
  --blue: #1a6fd4;
  --blue-dark: #0e3f86;
  --ink: #172033;
  --muted: #5d6b7c;
  --line: #e3e8ef;
  --bg: #f3f6fb;
  --card: #ffffff;
  --gold: #b8832f;
  --head-h: 64px;
  --ad-h: 0px;
  --shadow: 0 10px 30px rgba(16, 42, 84, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }
.site-head {
  background: linear-gradient(180deg, #0f4ea8 0%, #1a6fd4 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.head-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
}
.brand strong { display: block; font-size: 18px; letter-spacing: 0.02em; }
.brand small { display: block; opacity: 0.85; font-size: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: #ffe08a; }
.nav-toggle, .nav-btn { display: none; }

.ad-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 96px;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px 8px;
}
#ads > div { width: 78px; }
#ads figure { margin: 0; }
#ads a { display: inline-block; text-decoration: none; border-radius: 15px; }
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  background: #fff;
}
#ads a:hover img, #ads a:focus img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads .caption {
  height: 16px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: #666;
  text-align: center;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero {
  padding: 36px 0 10px;
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e7f0fc;
  color: var(--blue-dark);
  font-size: 13px;
}
h1 { font-size: 34px; line-height: 1.35; margin: 0 0 14px; }
h2 { font-size: 26px; line-height: 1.4; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 18px; color: #243246; }
.age {
  margin: 18px 0 0;
  padding: 10px 14px;
  background: #fff8e8;
  border-left: 4px solid var(--gold);
  color: #6b5420;
  font-size: 14px;
}

.toc, .card, .note, .faq details, .table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.toc { padding: 16px 18px 8px; margin: 22px 0 8px; }
.toc ol { margin: 8px 0 10px; padding-left: 22px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

section { padding: 28px 0; }
section + section { border-top: 1px solid transparent; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.shot {
  margin: 0;
  background: #101826;
  border-radius: 26px;
  padding: 10px 10px 8px;
  box-shadow: 0 16px 40px rgba(16, 42, 84, 0.16);
}
.shot img { display: block; width: 100%; border-radius: 18px; }
.shot figcaption {
  color: #d7e2f0;
  font-size: 13px;
  line-height: 1.55;
  padding: 8px 6px 4px;
}
.entries { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.entry-row a {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
}
.entry-row a:hover { background: var(--blue-dark); color: #fff; }
.host { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef4fc; font-size: 15px; }
tr:last-child td { border-bottom: 0; }

ol.steps { padding-left: 22px; }
ol.steps li { margin: 10px 0; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card { padding: 16px 16px 8px; }
.card p { margin-top: 0; }
.note { padding: 14px 16px; background: #f7fbff; }
.faq details { padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 4px; }

.site-foot {
  margin-top: 20px;
  background: #0e2f5c;
  color: #d5e3f5;
  padding: 28px 0 18px;
}
.site-foot a { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.site-foot strong { color: #fff; display: block; margin-bottom: 8px; }
.site-foot a { display: block; text-decoration: none; margin: 4px 0; }
.site-foot p { margin: 0; color: #c5d6ea; }
.copy {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 12px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
}
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.page-title { padding-top: 12px; }
.prose h2 { margin-top: 28px; }

@media (min-width: 769px) {
  .split.flip .copy { order: 2; }
  .split.flip .shot { order: 1; }
}

@media (max-width: 768px) {
  html, body { height: 100%; overflow: hidden; }
  .site-head, .ad-wrap {
    position: fixed;
    left: 0;
    right: 0;
  }
  .site-head { top: 0; z-index: 50; }
  .ad-wrap { top: var(--head-h); z-index: 45; }
  .scroll-body {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(var(--head-h) + var(--ad-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sub .scroll-body { padding: 18px 16px 32px; }
  body.sub .wrap { padding-left: 0; padding-right: 0; }
  body.home .scroll-body { padding: 0; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .split, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .shot { max-width: 420px; }
  .nav-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0e3f86;
    flex-direction: column;
    padding: 8px 18px 14px;
    gap: 0;
  }
  .nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .head-inner { position: relative; flex-wrap: wrap; }
}
