:root {
  --bg: #f3f6fb;
  --paper: #ffffff;
  --ink: #1b2430;
  --muted: #526173;
  --brand: #1d6fe8;
  --brand-dark: #1557b8;
  --line: #e2e9f2;
  --soft: #e8f2ff;
  --warn: #8a5a12;
  --warn-bg: #fff6e8;
  --max: 1080px;
  --head: 73px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 12px);
}

body {
  margin: 0;
  padding-top: var(--head);
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

img { max-width: 100%; }

a { color: var(--brand-dark); }

a:hover { color: var(--brand); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(22, 48, 84, 0.04);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-check:checked + .nav-toggle .bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-check:checked + .nav-toggle .bars i:nth-child(2) {
  opacity: 0;
}

.nav-check:checked + .nav-toggle .bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-check:focus-visible + .nav-toggle {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--brand-dark);
  background: var(--soft);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--soft);
  font-weight: 650;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ad-fixed {
  position: sticky;
  top: var(--head);
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.crumb {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.crumb a { color: var(--muted); }

.page {
  padding: 28px 0 64px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.meta-line span {
  background: var(--soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 26px;
  line-height: 1.35;
}

.prose h3 {
  margin: 22px 0 6px;
  font-size: 18px;
}

.prose p { margin: 0 0 14px; }

.outline {
  margin: 22px 0;
  padding: 14px 16px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.outline strong { display: block; margin-bottom: 6px; }

.outline ol {
  margin: 0;
  padding-left: 20px;
}

.outline a { text-decoration: none; }

.note {
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 12px;
}

.gallery {
  width: min(var(--max), calc(100% - 32px));
  margin: 8px auto 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 48, 84, 0.06);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #101826;
}

.shot figcaption {
  padding: 12px 14px 14px;
  color: #314255;
  font-size: 14px;
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

th {
  background: #f7faff;
  font-weight: 650;
}

tr:last-child td { border-bottom: 0; }

.faq h3 { font-size: 17px; }

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
}

.foot-row p { margin: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.foot-links a { color: var(--muted); }

.error-panel {
  margin-top: 18px;
  padding: 28px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.error-panel strong {
  display: block;
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.04em;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 48, 84, 0.08);
  }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-nav a {
    padding: 12px 10px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .prose h2 { font-size: 22px; }
}

@media print {
  .ad-fixed,
  .nav-toggle,
  .site-foot { display: none; }
  .site-nav { display: flex !important; }
  .site-head { position: static; box-shadow: none; }
  body { padding-top: 0; background: #fff; }
}
