:root {
  --ink: #1b2430;
  --muted: #5d6b7c;
  --paper: #f4f0e7;
  --card: #fffdf8;
  --line: #e3d9c8;
  --sea: #143044;
  --sea-2: #1d4e6d;
  --coral: #c4512c;
  --coral-dark: #9b3d1f;
  --shadow: 0 14px 34px rgba(20, 48, 68, 0.1);
  --header: 4.1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, #efe4d2 0%, transparent 55%),
    var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }
:focus-visible {
  outline: 2px solid var(--sea-2);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  min-height: var(--header);
  padding: 8px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sea);
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand-text { display: block; min-width: 0; }
.brand-text strong {
  display: block;
  color: var(--sea);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.nav-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-btn span:not(.nav-btn-label) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sea);
}
.nav-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle:checked ~ .nav-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-btn span:not(.nav-btn-label) { transition: transform 0.18s ease, opacity 0.18s ease; }
.nav {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .nav { display: flex; }
.nav a {
  color: var(--sea);
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav a[aria-current="page"] {
  background: var(--sea);
  color: #fff;
}

.ad-slot { background: transparent; }
.ad-slot[hidden] { display: none; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.page { padding: 22px 0 56px; }

.hero h1 {
  margin: 8px 0 12px;
  font-family: "Palatino Linotype", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.lede {
  margin: 0;
  font-size: 1.05rem;
  color: #2a3646;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.note {
  margin: 18px 0;
  padding: 12px 14px;
  background: #fff;
  border-left: 4px solid var(--sea-2);
  border-radius: 0 12px 12px 0;
}

h2 {
  margin: 2.3rem 0 0.7rem;
  font-family: "Palatino Linotype", "Songti SC", "STSong", serif;
  font-size: 1.48rem;
  line-height: 1.35;
}
h2::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-bottom: 0.5rem;
  border-radius: 99px;
  background: var(--coral);
}
h3 {
  margin: 1.3rem 0 0.35rem;
  font-size: 1.08rem;
  line-height: 1.45;
}
p { margin: 0.7rem 0; }
ol, ul { margin: 0.6rem 0 0.8rem; padding-left: 1.25rem; }
li { margin: 0.28rem 0; }

.block {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}
.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.shot img {
  width: min(100%, 420px);
  margin: 0 auto;
  border-radius: 16px;
  background: #101820;
}
.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
caption {
  text-align: left;
  padding: 12px 14px 0;
  font-weight: 700;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
th { color: var(--sea); font-weight: 700; white-space: nowrap; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.faq h3 {
  padding-top: 0.2rem;
}
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 16px 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-foot .wrap { width: min(1080px, calc(100% - 8px)); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-links a { color: var(--sea-2); }

.error-box {
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.error-box strong {
  display: block;
  font-family: "Palatino Linotype", "Songti SC", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--sea);
}
.home-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.home-link:hover { color: #fff; background: var(--sea-2); }

@media (min-width: 900px) {
  .site-header {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
    padding: 8px 0;
  }
  .nav-btn { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin: 0 8px 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 6px;
  }
  .nav a { font-size: 0.92rem; padding: 6px 12px; border-radius: 999px; }
  .page { padding: 34px 0 72px; }
  .block {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin: 22px 0 10px;
  }
  .block.reverse { grid-template-columns: minmax(0, 1fr) 300px; }
  .block.reverse .shot { order: 2; }
  .shot img { width: 100%; }
  .hero h1 { max-width: 16em; }
}

@media (max-width: 899px) {
  body { font-size: 16.5px; }
  .page { padding: 18px 0 48px; }
  .subpage .wrap { padding-bottom: 12px; }
  .shot img { width: min(100%, 460px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
