:root {
  --sea: #0e4d92;
  --sea-deep: #083666;
  --foam: #e7f1fb;
  --paper: #f6f8fb;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #5c6b7c;
  --line: #d5e2f0;
  --warn: #8a4b12;
  --warn-bg: #fff6ea;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 50% -180px, #d7e8fb 0%, rgba(215, 232, 251, 0) 70%),
    var(--paper);
  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(--sea); }
a:hover { color: var(--sea-deep); }

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, #0e4d92 0%, #1660b0 100%);
  color: #fff;
}
.site-head a { color: #fff; text-decoration: none; }
.head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
}
.brand strong { display: block; font-size: 18px; letter-spacing: 0.02em; }
.brand small { display: block; opacity: 0.85; font-size: 13px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  white-space: nowrap;
  padding: 6px 0;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 28px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 72px;
}
.lead-block h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.35;
  color: var(--sea-deep);
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--foam);
  color: var(--sea);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.summary { margin: 0; color: var(--muted); font-size: 16px; }

.ad-dock {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(14, 77, 146, 0.08);
}
.ad-dock .ad-label {
  margin: 0;
  padding: 8px 12px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 0;
  margin: 0;
  padding: 8px 10px 12px;
}
#ads:empty { display: none; }
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}
#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 img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads figcaption,
#ads .caption {
  height: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article h2 {
  margin: 42px 0 12px;
  padding-top: 8px;
  font-size: 26px;
  line-height: 1.4;
  color: var(--sea-deep);
}
.article h3 { margin: 26px 0 8px; font-size: 20px; color: #184e86; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 1.3em; }
.article li { margin: 6px 0; }

.note, .warn {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
}
.note { background: var(--foam); border: 1px solid #c9dff6; }
.warn { background: var(--warn-bg); border: 1px solid #f0d7b8; color: var(--warn); }
.note strong, .warn strong { color: inherit; }

.steps { list-style: none; padding: 0; margin: 0 0 18px; }
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.steps b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
}
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #eaf3fc; color: var(--sea-deep); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 12px 0 8px;
}
.shot {
  margin: 0;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.shot img {
  display: block;
  width: min(100%, 380px);
  margin: 0 auto;
  border-radius: 12px;
  background: #111;
}
.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq details {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--sea-deep); }
.faq p { margin: 8px 0 4px; }

.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 32px;
  color: var(--muted);
  font-size: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.foot-links a { text-decoration: none; }
.error-panel {
  margin-top: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.error-panel strong { font-size: 42px; color: var(--sea); line-height: 1; display: block; }

@media (max-width: 859px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 8px;
    background: #0c4686;
    box-shadow: 0 14px 28px rgba(8, 40, 80, 0.22);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
@media (min-width: 860px) {
  .lead-block h1 { font-size: 40px; }
  .shot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .shot-grid .wide { grid-column: 1 / -1; }
  .article { font-size: 18px; }
}
