:root {
  --sea: #0e4d7a;
  --sea-deep: #083454;
  --sand: #f4f0e6;
  --paper: #f7f4ee;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #5d6876;
  --line: #e5deD0;
  --gold: #a67c3d;
  --coral: #c65a32;
  --soft: #e7f0f8;
  --shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: 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(--sea); }
a:hover { color: var(--coral); }

.sticky-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 rgba(8, 52, 84, 0.08);
}
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  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;
  background: var(--sea-deep);
  border-radius: 2px;
  content: "";
  position: relative;
}
.nav-btn span::before,
.nav-btn span::after { position: absolute; left: 0; }
.nav-btn span::before { top: -6px; }
.nav-btn span::after { top: 6px; }
.nav-toggle:checked ~ .header-end .nav-btn span { background: transparent; }
.nav-toggle:checked ~ .header-end .nav-btn span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .header-end .nav-btn span::after { top: 0; transform: rotate(-45deg); }
.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}
.age {
  flex: none;
  border: 1px solid var(--coral);
  color: var(--coral);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.site-nav {
  position: absolute;
  top: 50%;
  right: 72px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-main,
.nav-side {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-side {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.site-nav a {
  flex: none;
  text-decoration: none;
  color: var(--sea-deep);
  background: var(--sand);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.site-nav a[aria-current="page"] {
  background: var(--sea);
  color: #fff;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 8px 10px 4px;
  background: #fff;
  border-top: 1px solid #eef2f6;
}
#ads > div { width: 76px; }
#ads figure { margin: 0; }
#ads a { display: inline-block; text-decoration: none; }
#ads img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(24, 24, 24, 0.12);
  display: block;
  background: #fff;
}
#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px 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: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 56px;
}
.hero {
  background: linear-gradient(160deg, #0e4d7a 0%, #14639a 58%, #1d7eb8 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 8px 0 12px;
  font-size: 32px;
  line-height: 1.35;
}
.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #f3d7a1;
}
.lead { margin: 0; font-size: 17px; line-height: 1.8; }
.meta-line { margin: 14px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.hero a { color: #fff; }

.toc, .card, .note, .link-grid a, .error-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.toc, .card, .note { padding: 16px 18px; margin: 18px 0; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.note {
  background: #fff8ef;
  border-color: #f0dfc4;
}
h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.4;
  color: var(--sea-deep);
}
h3 { margin: 22px 0 6px; font-size: 19px; line-height: 1.45; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin: 4px 0; }

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr);
  gap: 22px;
  align-items: start;
  margin: 8px 0 18px;
}
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
figure {
  margin: 0;
  text-align: center;
}
.shot {
  width: min(280px, 100%);
  margin-left: auto;
  margin-right: auto;
  background: #111821;
  border-radius: 22px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.faq h3 { font-size: 18px; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.link-grid a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.link-grid a span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.link-grid strong { color: var(--sea-deep); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 18px 32px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.site-footer a { text-decoration: none; }

.error-card {
  max-width: 640px;
  margin: 28px auto;
  padding: 28px 22px;
  text-align: center;
}
.error-card strong {
  display: block;
  font-size: 42px;
  color: var(--sea);
  line-height: 1;
}
.page-title { margin-top: 8px; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { padding: 22px 16px; border-radius: 16px; }
  .hero h1 { font-size: 26px; }
  .pair { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  h2 { font-size: 22px; }
  .site-header { flex-wrap: wrap; padding-bottom: 8px; }
  .nav-btn { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    margin: 0;
    padding: 8px 18px 12px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(16, 42, 67, 0.08);
    gap: 6px;
  }
  .nav-main,
  .nav-side {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 6px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { text-align: center; }
}
