:root {
  --sea: #0c4a8a;
  --sea-deep: #072f58;
  --blue: #1d6fd8;
  --foam: #e7f1fb;
  --paper: #f6f4ef;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #d5e0ea;
  --card: #ffffff;
  --warn: #9a3412;
  --shadow: 0 10px 30px rgba(12, 74, 138, 0.08);
  --max: 1120px;
}

* { 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%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid #f5b942; outline-offset: 2px; }

.topbar {
  background: var(--sea-deep);
  color: #d7e7f8;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .wrap,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.age {
  color: #ffd7a8;
  font-weight: 700;
}

.fixed-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 24, 42, 0.08);
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}
.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: var(--sea-deep);
}
.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.nav a {
  color: var(--sea-deep);
  text-decoration: none;
  font-weight: 650;
}
.nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.ad-wrap {
  background: transparent;
}
html { scroll-padding-top: 210px; }
.ad-wrap:has(#ads:empty) {
  display: none;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 0 10px;
}
#ads > div { width: 86px; }
#ads figure {
  margin: 0;
  max-width: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
#ads a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 16px;
}
#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#ads a:hover img,
#ads a:focus-visible img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads .caption {
  height: 18px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: #555;
  text-align: center;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  padding: 42px 0 10px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
  color: var(--sea-deep);
}
.lead {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  color: #243140;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 8px;
  padding: 0;
  list-style: none;
}
.facts li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.facts strong {
  display: block;
  color: var(--sea);
  font-size: 16px;
}
.facts span { color: var(--muted); font-size: 14px; }

.toc {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--foam);
  border-radius: 16px;
}
.toc strong { color: var(--sea-deep); }
.toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin: 10px 0 0;
  padding-left: 20px;
}

main { padding-bottom: 20px; }
article section {
  margin: 0 0 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
  color: var(--sea-deep);
}
h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  color: var(--sea);
}
p { margin: 0 0 14px; }
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.block.rev { grid-template-columns: 380px minmax(0, 1fr); }
.block.rev .copy { order: 2; }
.shots {
  display: grid;
  gap: 16px;
  align-items: start;
}
.shots.pair { grid-template-columns: repeat(2, minmax(0, 380px)); }
.block .shots.pair { grid-template-columns: 1fr; }
figure {
  margin: 0;
  max-width: 380px;
  background: #10182a;
  border-radius: 28px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
}
figure img {
  display: block;
  width: 100%;
  border-radius: 20px;
}
figcaption {
  margin: 8px 6px 2px;
  color: #d5deea;
  font-size: 13px;
  line-height: 1.5;
}
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li + li { margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--sea); color: #fff; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--sea-deep); }
.note {
  background: #fff7ed;
  border-left: 4px solid #ea580c;
  padding: 12px 14px;
  border-radius: 8px;
}

.crumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.crumbs a { color: var(--muted); }

.page-hero { padding: 12px 0 6px; }
.page-hero h1 { font-size: 34px; }

.error-panel {
  margin: 24px 0 40px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.error-panel strong {
  display: block;
  font-size: 64px;
  line-height: 1;
  color: var(--sea);
}

.site-footer {
  margin-top: 20px;
  background: var(--sea-deep);
  color: #d5e4f4;
  padding: 28px 0;
}
.site-footer a { color: #fff; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer p { margin: 6px 0; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (max-width: 860px) {
  html { scroll-padding-top: 280px; }
  h1 { font-size: 30px; }
  .header-row { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .facts, .toc ol, .block, .block.rev, .shots.pair { grid-template-columns: 1fr; }
  .block.rev .copy { order: 0; }
  .topbar .wrap { flex-direction: column; }
  figure { max-width: 460px; }
}
