:root {
  --ink: #1b2430;
  --muted: #5c6b7e;
  --blue: #1a5fb4;
  --deep: #0e2a4e;
  --line: #e3ebf4;
  --bg: #eef3f8;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --gold: #9a6320;
  --header: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header);
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0f4a90; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: var(--deep);
  color: #fff;
  height: var(--header);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.menu-btn { display: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; background: #fff; }
.brand strong { display: block; font-size: 18px; letter-spacing: 0.02em; line-height: 1.2; }
.brand small { display: block; color: #b9cceb; font-size: 12px; letter-spacing: 0.04em; }
.top-links { display: flex; gap: 18px; }
.top-links a { color: #e7eef8; text-decoration: none; font-size: 15px; }
.top-links a:hover { color: #fff; }

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px 6px;
}
#ads:empty { display: none; }
#ads > div { width: 74px; display: flex; justify-content: center; }
#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);
  display: block;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#ads img:hover { 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: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero { padding: 36px 0 10px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}
h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.35; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 18px; color: #314155; }
.notice {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: #fff8ee;
  border: 1px solid #f0dfc4;
  border-radius: 10px;
  color: #6d4e1e;
  font-size: 14px;
}
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.points li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); }

.block, .prose h2, .hero, .page-title { scroll-margin-top: 180px; }
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.block h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.4; }
.block h3 { margin: 22px 0 8px; font-size: 18px; }
.block p { margin: 0 0 14px; }
.shots { display: grid; gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 14px 36px rgba(14, 42, 78, 0.14);
}
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.5; }

.prose { padding-bottom: 20px; }
.prose h2 { margin: 8px 0 12px; font-size: 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin: 8px 0 18px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; }
th { background: var(--soft); font-weight: 650; }
ol.steps, ul.plain { margin: 8px 0 16px; padding-left: 1.3em; }
ol.steps li, ul.plain li { margin: 6px 0; }

.faq { display: grid; gap: 10px; margin: 12px 0 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; }

.crumbs { margin: 0; padding: 18px 0 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.page-title { margin: 8px 0 12px; font-size: 32px; line-height: 1.35; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 28px 22px;
  margin: 18px 0 36px;
}
.panel h2 { font-size: 20px; margin-top: 22px; }
.status {
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
}
.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
}
.status-card strong { display: block; font-size: 56px; line-height: 1; color: var(--deep); letter-spacing: -0.04em; }
.status-card h1 { font-size: 28px; margin: 10px 0; }
.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
}

.site-footer { background: var(--deep); color: #d5e2f2; padding: 28px 0 34px; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #fff; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; background: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; }
.foot-links a { color: #d5e2f2; }
.fine { margin: 0; color: #9eb0c8; }

@media (max-width: 860px) {
  h1, .page-title { font-size: 26px; }
  .lead { font-size: 16px; }
  .menu-btn {
    display: flex;
    width: 42px;
    height: 42px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    cursor: pointer;
  }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
    content: "";
  }
  .menu-btn span:before { position: absolute; top: -6px; }
  .menu-btn span:after { position: absolute; top: 6px; }
  .top-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #12325f;
    flex-direction: column;
    gap: 0;
    padding: 6px 18px 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  .top-links a { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-toggle:checked ~ .top-links { display: flex; }
  .nav-toggle:focus-visible + .menu-btn { outline: 2px solid #fff; }
  .block { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .shots { justify-items: center; }
  .shots figure { width: min(100%, 340px); }
  body.home .wrap { width: auto; margin: 0; padding-left: 14px; padding-right: 14px; }
  body.sub .wrap { width: auto; margin: 0; padding-left: 18px; padding-right: 18px; }
  .panel { padding: 4px 16px 16px; }
  .hero { padding-top: 22px; }
}
