:root {
  --blue: #1d6fdb;
  --blue-dark: #154e9e;
  --ink: #1b2430;
  --muted: #5b677a;
  --bg: #f3f6fb;
  --line: #e2e8f0;
  --soft: #e8f1fc;
  --header: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16.5px;
}

a { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

#ads figure { margin: 0; }

#ads img {
  width: 65px;
  height: 65px;
  max-width: none;
  min-width: 65px;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-btn {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: var(--soft);
  color: var(--blue-dark);
}

.ad-slot {
  position: sticky;
  top: var(--header);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main { padding-bottom: 56px; }

.hero { padding: 34px 0 8px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue-dark);
  font-size: 13px;
}

h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.lede {
  font-size: 18px;
  margin-top: 0;
}

h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 34px 0 10px;
}

h3 {
  font-size: 20px;
  margin: 22px 0 8px;
}

p { margin: 0 0 14px; }

.shot {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0 8px;
}

.shot img {
  width: 100%;
  border-radius: 12px;
  background: #111827;
}

.shot figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px 8px;
  margin: 14px 0;
}

ul, ol { margin: 0 0 14px; padding-left: 1.25em; }

li { margin: 4px 0; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 10px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

@media (min-width: 861px) {
  .site-header {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav-links {
    margin: 0 32px 0 auto;
  }

  .nav-links a {
    margin: 0 6px;
  }
}

@media (max-width: 860px) {
  .nav-btn { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin-left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav-links a {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f4f8;
  }

  h1 { font-size: 26px; }

  .lede { font-size: 16.5px; }

  .shot { grid-template-columns: 1fr; }

  .shot img {
    max-width: 320px;
    margin: 0 auto;
  }

  .inner-page .page-main { padding-top: 8px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1080px, calc(100% - 24px)); }

  .inner-page .wrap { width: min(1080px, calc(100% - 28px)); }

  .hero { padding-top: 22px; }
}
