:root {
  --blue: #1d6fd8;
  --blue-deep: #134e9a;
  --ink: #1b2430;
  --muted: #5c6b7e;
  --line: #e3ebf4;
  --bg: #f3f6fa;
  --card: #ffffff;
  --soft: #e8f1fc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", SimSun, serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 16px 40px rgba(20, 44, 84, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.dds{
  padding:0px 16px;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(29, 111, 216, 0.16), transparent 60%),
    var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; }
#ads img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.sticky-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 901px) {
  .nav-check { display: none; }
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  flex: 0 0 42px;
  border-radius: 10px;
  background: #f4f7fb;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  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: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-check:focus-visible + .nav-toggle { outline: 2px solid var(--blue); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a[aria-current="page"],
.site-header nav a:hover { color: var(--blue-deep); }

.ads-slot:empty { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero { padding: 42px 0 12px; }
.hero-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.hero-top img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; font-weight: 650; }
h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 22px 0 8px; }
.lede { font-size: 18px; max-width: 46em; margin-top: 0; }
.notice {
  background: var(--soft);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  color: #23415f;
}

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 72px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 188px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}
.toc p { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { text-decoration: none; font-size: 14px; }
.toc a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.toc a.is-active { font-weight: 700; }
.toc li { margin: 6px 0; }

.section dl { margin: 8px 0 16px; }
.section dt { font-weight: 700; margin-top: 12px; }
.section dd { margin: 2px 0 0; }
.cell-label { display: none; }
.article h2 { margin-top: 8px; }
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 10px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 14px;
  justify-content: center;
  margin: 8px 0 18px;
}
.shot {
  margin: 0 0 16px;
  background: #121826;
  border-radius: 28px;
  padding: 10px 10px 8px;
  box-shadow: 0 18px 40px rgba(16, 28, 48, 0.16);
}
.shot img { display: block; width: 100%; border-radius: 18px; }
.shot figcaption, .caption-note {
  color: #c5d0e0;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 6px 6px;
  text-align: center;
}
.crumbs { color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.crumbs a { color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 10px 12px; }
th { background: #f6f9fc; font-weight: 650; }
ul, ol { padding-left: 1.2em; }
li { margin: 4px 0; }
.steps { padding-left: 1.2em; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 4px; }

.page-hero { padding: 36px 0 8px; }
.error-code {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 120px);
  line-height: 0.9;
  margin: 0;
  color: var(--blue);
}
.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  margin: 8px 8px 8px 0;
}
.button.ghost { background: #fff; color: var(--blue-deep); border: 1px solid #c9daf3; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 40px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0; }
.site-footer nav a { text-decoration: none; }
.fine { color: var(--muted); font-size: 14px; max-width: 52em; }

@media (max-width: 900px) {
  :root { --mobile-bar: calc(68px + max(0px, env(safe-area-inset-top, 0px) - 12px)); }
  html { scroll-padding-top: 0; }
  .sticky-stack {
    position: static;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    padding-top: var(--mobile-bar);
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: none;
    z-index: 40;
    flex-wrap: nowrap;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .ads-slot { position: relative; z-index: 1; }
  .nav-toggle { display: inline-flex !important; width: 44px; height: 44px; flex-basis: 44px; background: #e8eef6; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 16px 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 44, 84, 0.08);
  }
  .nav-check:checked ~ nav { display: flex; }
  .site-header nav a {
    padding: 14px 2px;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .layout { display: block; padding-bottom: 48px; }
  .article { padding-top: 12px; }
  .toc {
    position: sticky;
    top: var(--mobile-bar);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -20px;
    padding: 8px 14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 16px rgba(20, 44, 84, 0.06);
  }
  .toc::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 80%);
    pointer-events: none;
  }
  .toc p { margin: 0; flex: none; white-space: nowrap; font-size: 12px; letter-spacing: 0.04em; }
  .toc ol {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 22px 0 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc ol.is-scrolled {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18px);
    mask-image: linear-gradient(to right, transparent, #000 18px);
  }
  .toc li { margin: 0; flex: none; }
  .toc a {
    display: block;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft);
    white-space: nowrap;
  }
  .toc a.is-active { background: var(--blue); color: #fff; font-weight: 650; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > *, .shots, .shot { min-width: 0; }
  .pair .shot { justify-self: center; width: min(100%, 320px); max-width: 320px; margin-left: auto; margin-right: auto; }
  .section { padding: 20px 16px 8px; scroll-margin-top: calc(var(--mobile-bar) + 58px); }
  .site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  .faq summary { padding: 12px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.7; }
  .wrap { padding: 0 16px; }
  .hero { padding: 18px 0 2px; }
  .hero-top { gap: 12px; margin-bottom: 8px; }
  .hero-top img { width: 52px; height: 52px; border-radius: 14px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; margin-top: 16px; }
  .lede { font-size: 16px; }
  .notice { padding: 10px 12px; font-size: 15px; }
  .section {
    padding: 16px 14px 4px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(20, 44, 84, 0.06);
  }
  .toc { margin-left: -16px; margin-right: -16px; }
  .pair .shot { width: min(100%, 320px); max-width: 320px; }
  .shots {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    margin: 4px -14px 16px;
    padding: 0 14px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .shot {
    flex: 0 0 84%;
    width: 84%;
    max-width: none;
    margin: 0;
    scroll-snap-align: center;
  }
  .shots .shot:only-child {
    flex-basis: min(100%, 320px);
    width: min(100%, 320px);
    margin-inline: auto;
  }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  table thead { display: none; }
  table, table tbody, table tr, table td { display: block; width: 100%; }
  table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 0 8px;
    background: #f7fafd;
  }
  table td { border: 0; padding: 5px 0; }
  table td:first-child { font-weight: 700; font-size: 16px; padding-bottom: 2px; }
  table td:first-child .cell-label { display: none; }
  .cell-label {
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.03em;
  }
}
