:root {
  --blue: #1d6fe8;
  --blue-dark: #124eaa;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #e4ebf4;
  --bg: #f3f6fb;
  --card: #ffffff;
  --soft: #e8f1ff;
  --warn: #8a4b12;
  --warn-bg: #fff6ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

a { color: var(--blue-dark); }

a:hover { color: var(--blue); }

img { max-width: 100%; height: auto; }

.sticky-stack {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 15px;
}

.page-links a {
  text-decoration: none;
  color: var(--ink);
}

.page-links a[aria-current="page"] {
  color: var(--blue-dark);
  font-weight: 700;
}

.ad-fixed {
  background: #fff;
  border-top: 1px solid var(--line);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 12px 8px;
}

#ads:empty { display: none; }

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
}

#ads figure { margin: 0; }

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
}

#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;
  background: #fff;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption {
  height: 16px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: #666;
  text-align: center;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 12px;
  margin-bottom: 22px;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.35;
}

h2 {
  margin: 36px 0 12px;
  font-size: 26px;
  line-height: 1.4;
}

h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.lead { font-size: 18px; }

.note {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 22px 22px;
  margin: 16px 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.shots figure {
  margin: 0;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
}

.shots img {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 18px;
  background: #101722;
}

.shots figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

ol.steps, ul.plain { padding-left: 1.2em; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
}

.faq summary { cursor: pointer; font-weight: 700; }

.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 20px 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot .inner { max-width: 1080px; margin: 0 auto; }

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.crumb { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.error-code {
  font-size: 64px;
  line-height: 1;
  margin: 0;
  color: var(--blue);
}

@media (max-width: 720px) {
  h1 { font-size: 28px; }
  .hero, .card { padding-left: 16px; padding-right: 16px; }
  .shots { grid-template-columns: 1fr; }
  .site-head { align-items: flex-start; }
  .page-links { width: 100%; }
}
