@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --sky: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #fff;
  --tint: #e7f5ff;
  --line: 3px solid #000;
  --shadow: 6px 6px 0 #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand,
.rail-h,
.foot-brand {
  font-family: "Bodoni Moda", Georgia, "Songti SC", serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- 页头 ---------- */
.masthead {
  background: var(--paper);
  border-bottom: var(--line);
}

.brandbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 14px;
  background: var(--sky);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.01em;
}

.brand img {
  height: 32px;
  width: auto;
}

.brand:hover {
  background: var(--red);
  color: #fff;
}

.finder {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--red);
  overflow: hidden;
  flex: 0 1 auto;
}

.finder input {
  font: inherit;
  font-size: 16px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  min-height: 46px;
  width: min(44vw, 190px);
  min-width: 0;
}

.finder input:focus {
  outline: none;
}

.finder button {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-left: var(--line);
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  min-height: 46px;
  cursor: pointer;
}

.finder button:hover {
  background: var(--ink);
}

.menurow {
  background: var(--ink);
  border-top: var(--line);
}

.mainnav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.mainnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-right: 1px solid #2e2e2e;
}

.mainnav a:hover,
.mainnav a:focus-visible {
  background: var(--sky);
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--sky);
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  border-bottom: var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 54px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.hero-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 76px;
  min-height: 45vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.hero-in.solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-fig {
  margin: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--red);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.hero-fig .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fig.multi .hero-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-fig.multi .hero-img.on {
  opacity: 1;
}

.hero-text {
  text-align: right;
}

.hero-stamp {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  text-shadow: 3px 3px 0 #fff;
}

.hero-lead {
  margin: 0 0 14px 0;
  margin-left: auto;
  max-width: 34ch;
  font-weight: 500;
  font-size: 17px;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.dot {
  width: 36px;
  height: 36px;
  padding: 0;
  border: var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.dot[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

/* ---------- 主体骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 64px;
}

/* ---------- 正文 ---------- */
.doc div {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 32px);
  padding-bottom: calc(clamp(18px, 3vw, 32px) + 16px);
  margin: 0 0 30px;
  scroll-margin-top: 22px;
}

.doc div::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 8px;
  border-radius: 4px;
  background: var(--sky);
}

.doc div:nth-child(even)::after {
  background: var(--red);
}

.doc div.hit {
  box-shadow: 6px 6px 0 var(--red);
}

.doc h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: 0 0 14px;
}

.doc h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 22px 0 10px;
}

.doc h2 + p,
.doc h3 + p {
  margin-top: 0;
}

.doc small {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: 2px 9px;
  margin-bottom: 9px;
}

.doc a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc a:hover {
  background: var(--tint);
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--sky);
  font-weight: 700;
}

.doc blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--tint);
  border-left: 7px solid var(--sky);
  border-radius: 0 8px 8px 0;
}

.doc blockquote p:last-child {
  margin-bottom: 0;
}

.doc strong {
  font-weight: 600;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}

.doc th,
.doc td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.doc th {
  background: var(--tint);
}

.doc time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.doc hr {
  border: 0;
  border-top: var(--line);
  margin: 22px 0;
}

.doc img {
  border: var(--line);
  border-radius: 10px;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 16px;
  background: var(--ink);
  color: #fff;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--red);
  padding: 18px;
}

.eyebrow {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--sky);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 1px 8px;
}

.rail-h {
  font-size: 1.45rem;
  margin: 10px 0 12px;
  color: #fff;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 2px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid #292929;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--sky);
}

.rail-list .num {
  font-family: "Bodoni Moda", serif;
  color: var(--sky);
  font-size: 0.95rem;
  min-width: 22px;
}

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: #fff;
  border-top: 7px solid var(--sky);
  margin-top: 8px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  padding-top: 36px;
  padding-bottom: 26px;
}

.foot-brand {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--sky);
  margin: 0 0 12px;
}

.foot-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #dcdcdc;
  font-size: 16px;
}

.addr-k {
  color: #8f8f8f;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.addr-v {
  font-weight: 500;
  color: #fff;
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt {
  color: var(--sky);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #2c2c2c;
}

.foot-nav a:hover,
.foot-list a:hover {
  color: var(--sky);
}

.foot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 16px 0 0;
  padding: 0;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.footbase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2c2c2c;
  padding-top: 12px;
  padding-bottom: 16px;
}

.footbase .copy {
  margin: 0;
  font-size: 15px;
  color: #b9b9b9;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--sky);
  color: var(--ink);
  border: var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.totop:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 26px;
  }

  .rail {
    position: static;
    order: -1;
    margin-bottom: 6px;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .rail-list li {
    flex: 1 1 44%;
  }

  .rail-list a {
    border-bottom-width: 1px;
  }

  .footgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 18px 70px;
    min-height: 0;
  }

  .hero-text {
    order: -1;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    text-shadow: 2px 2px 0 #fff;
  }

  .hero-lead {
    margin-left: 0;
    max-width: none;
  }

  .dots {
    justify-content: flex-start;
  }

  .brandbar {
    padding: 12px 14px;
  }

  .finder input {
    width: 40vw;
  }

  .mainnav a {
    flex: 1 1 44%;
    justify-content: flex-start;
    border-bottom: 1px solid #2e2e2e;
  }

  .doc div {
    box-shadow: 4px 4px 0 #000;
  }
}

@media (max-width: 420px) {
  .hero-stamp {
    font-size: 14px;
  }

  .finder input {
    width: 44vw;
  }

  .mainnav a {
    flex: 1 1 100%;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
