:root {
  --header-h: 62px;
  --ink: #17233c;
  --muted: #5c6d86;
  --blue: #1769d6;
  --blue-dark: #0e4ea8;
  --bg: #f2f6fb;
  --card: #ffffff;
  --line: #e1e9f3;
  --soft: #e8f3ff;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-dark); }

a:hover { color: var(--blue); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.topbar .site-header { position: relative; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  flex: 0 0 auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand span { font-size: 16px; }

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle span { position: relative; }

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-check:focus-visible + .nav-toggle {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-check:checked + .nav-toggle span { background: transparent; }

.nav-check:checked + .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-check:checked + .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  gap: 8px 22px;
  margin-left: auto;
  margin-right: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 0;
}

.nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.ads-bar { display: none; }

.ads-bar.is-on {
  display: block;
  position: sticky;
  top: 0;
  z-index: 35;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(20, 40, 80, 0.05);
}

.topbar .ads-bar.is-on { position: static; }

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 12px 6px;
}

#ads > div { width: 78px; }

#ads figure { margin: 0; }

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
}

#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;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.16);
}

#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: var(--max);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.hero {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px 22px;
  margin-bottom: 8px;
}

h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.lead {
  font-size: 18px;
  color: #31445f;
  margin: 0;
}

.note {
  margin-top: 14px;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px;
  color: #23406e;
  font-size: 14px;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.fact strong { display: block; font-size: 15px; }

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

article section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 8px;
  margin: 16px 0;
}

h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
}

h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}

p { margin: 0 0 14px; }

ul, ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}

li { margin: 4px 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}

.shot {
  margin: 0;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 10px;
}

.shot img {
  width: min(100%, 280px);
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #0e1526;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}

th, td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th { background: #f5f9ff; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 8px 0 4px;
  color: #24344c;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.crumbs a { color: var(--muted); }

.page-error { text-align: center; padding: 28px 8px 8px; }

.page-error .code {
  font-size: 56px;
  color: var(--blue);
  display: block;
  line-height: 1;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 18px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer .inner { max-width: var(--max); margin: 0 auto; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.foot-links a {
  color: #3d5270;
  text-decoration: none;
}

@media (min-width: 721px) {
  .site-header {
    width: min(var(--max), calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .nav { margin: 0 12px 0 auto; }
}

@media (max-width: 720px) {
  h1 { font-size: 26px; }
  .facts, .gallery { grid-template-columns: 1fr; }
  article section, .hero { padding: 18px 14px 8px; }
  .hero { padding-bottom: 16px; }
  body { font-size: 16px; }
  .site-header { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    z-index: 45;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    margin: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(20, 40, 80, 0.12);
  }
  .nav-check:checked ~ .nav { display: flex; }
  .nav a {
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
  }
  .nav a[aria-current="page"] { background: var(--soft); }
  #ads {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  #ads > div { flex: 0 0 78px; }
}
