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

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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #fff;
  --tint: #e7f4ff;
  --line: 3px solid var(--ink);
  --hard: 6px 6px 0 var(--ink);
  --r: 28px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  padding-bottom: 104px;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

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

/* ---------- 主栅格 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
  align-items: start;
}

/* ---------- 头图 ---------- */
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
  min-height: 45vh;
  margin: 0 -20px 10px;
  background: var(--blue);
  border-bottom: var(--line);
  border-radius: 0 0 46px 46px;
  overflow: hidden;
  position: relative;
}

.hero-body {
  padding: 44px 22px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.badge {
  align-self: flex-start;
  margin: 0;
  padding: 6px 14px;
  background: var(--red);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .6px;
  transform: rotate(-2.5deg);
}

.hero-lead { margin: 0; max-width: 42ch; }

.hero-art {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-left: var(--line);
  transform: skewY(-2.4deg) translateY(var(--py, 0px));
  will-change: transform;
}

.hero-art .slide {
  position: absolute;
  inset: -14% 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-art .slide.is-on { opacity: 1; }

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08) skewY(2.4deg);
}

/* ---------- 正文 ---------- */
.doc { min-width: 0; }

.doc > div {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--hard);
  padding: 26px 24px 22px;
  margin: 0 0 34px;
  scroll-margin-top: 24px;
  scroll-margin-bottom: 120px;
}

.doc > div:last-child { margin-bottom: 0; }

.doc h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.6px;
}

.doc h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 700; }
.doc p { margin: 0 0 14px; }
.doc p:last-child { margin-bottom: 0; }

.doc a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.doc a:hover { background: var(--blue); }

.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.35em; }
.doc li { margin: 0 0 8px; }

.doc blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--tint);
  border-left: 6px solid var(--red);
  border-radius: 0 14px 14px 0;
}
.doc blockquote p:last-child { margin: 0; }

.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(--blue); font-weight: 700; }

.doc img { border: var(--line); border-radius: 18px; height: auto; }
.doc hr { border: 0; border-top: 3px solid var(--ink); margin: 22px 0; }

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1px 5px;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 18px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--hard);
  padding: 20px 18px 18px;
}

.rail-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: .6px; }
.subtitle { margin: 2px 0 16px; font-size: 16px; line-height: 1.5; opacity: .62; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.rail-list a:hover { background: var(--blue); }

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: #fff;
  padding: 36px 20px 26px;
  border-top: 3px solid var(--ink);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-block {
  background: #000;
  border: 3px solid #fff;
  border-radius: var(--r);
  padding: 18px 16px;
}

.foot-mark { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: .6px; }
.foot-addr { font-style: normal; font-size: 16px; line-height: 1.5; color: var(--blue); word-break: break-all; }

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.foot-links a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }

.sub { display: flex; flex-direction: column; gap: 10px; }
.sub input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: #000;
  border: 3px solid #fff;
  border-radius: 12px;
}
.sub input::placeholder { color: #b9b9b9; }
.sub button {
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 12px;
  cursor: pointer;
}
.sub button:hover { background: var(--blue); }

.copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 3px solid #fff;
  font-size: 16px;
}
.copy .top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.copy .top:hover { background: var(--blue); color: var(--ink); }

/* ---------- 底部固定导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-top: var(--line);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--blue);
  border: var(--line);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .6px;
  white-space: nowrap;
  text-decoration: none;
}

.dock-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: var(--red);
  border: var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.dock-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow-x: auto;
}
.dock-menu a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.dock-menu a:hover { background: var(--blue); }
.dock-menu a[aria-current="page"] { background: var(--blue); box-shadow: 3px 3px 0 var(--ink); }

.dock-menu li:nth-child(4),
.dock-menu li:nth-child(6) {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--ink);
}

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rail { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { border-left: 0; border-top: var(--line); min-height: 190px; }
}

@media (max-width: 760px) {
  .hero-body { padding: 28px 18px 24px; gap: 12px; }
  .hero { border-radius: 0 0 32px 32px; }
  .hero-art { min-height: 168px; }
  .doc > div { padding: 20px 16px; border-radius: 22px; }
  .rail { border-radius: 22px; }

  .dock-btn { display: inline-flex; }
  .dock-menu {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 10px;
    max-height: 56vh;
    overflow-y: auto;
    background: var(--paper);
    border: var(--line);
    border-radius: 16px;
    box-shadow: var(--hard);
  }
  .dock.is-open .dock-menu { display: flex; }
  .dock-menu li:nth-child(4),
  .dock-menu li:nth-child(6) {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { transform: none; }
  .hero-art .slide { transition: none; }
  * { animation: none !important; }
}

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