:root {
  --paper: #f4f0e6;
  --ink: #1b2430;
  --muted: #5e6a7a;
  --blue: #0e4f9c;
  --blue-d: #0a3268;
  --line: #e3d9c6;
  --card: #fffdf8;
  --gold: #c58a12;
  --warn: #8a3b12;
  --shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e7f0ff 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;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; }
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 1;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}
.age {
  border: 1px solid var(--gold);
  color: var(--warn);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.subnav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  order: 2;
  margin-left: auto;
  font-size: 15px;
}
.subnav a { text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--blue-d);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
#ad-slot { min-height: 0; }
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
  margin: 0;
  padding: 8px 10px 10px;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}
#ads figure { margin: 0; }
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads figcaption,
#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.hero h1 {
  font-family: "Palatino Linotype", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  margin: 8px 0 14px;
  font-weight: 700;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.lead {
  font-size: 18px;
  max-width: 760px;
}
.note {
  background: #fff7e8;
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  color: var(--warn);
  font-size: 15px;
}
h2 {
  font-family: "Palatino Linotype", "Songti SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.35;
  margin: 36px 0 10px;
}
h3 { font-size: 20px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px 36px;
  align-items: start;
  margin: 8px 0 28px;
}
.shots { display: grid; gap: 14px; }
figure.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
}
figure.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: #121722;
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
ol.steps, ul.clean { padding-left: 1.2em; }
ol.steps li, ul.clean li { margin: 6px 0; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 650; }
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 20px 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-foot nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 18px 18px;
  box-shadow: var(--shadow);
}
.error-box { max-width: 680px; }
.error-box strong.code {
  font-family: "Palatino Linotype", serif;
  font-size: 72px;
  color: var(--blue);
  line-height: 1;
  display: block;
}
@media (max-width: 840px) {
  .pair { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); justify-content: center; }
  .site-head { padding-inline: 14px; }
  .wrap { padding-inline: 14px; }
  body { font-size: 16.5px; }
  .site-head { position: relative; }
  .nav-toggle { display: block; }
  .head-side { order: 2; margin-left: auto; }
  .subnav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding-bottom: 6px;
  }
  .subnav.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    padding: 0 14px 8px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .subnav a {
    padding: 11px 4px;
    border-top: 1px solid var(--line);
  }
}
