:root {
  --sky: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --sky-soft: #e3f4ff;
  --red-soft: #ffe7e7;
  --rail: 226px;
  --line: 3px solid #000000;
  --drop: 5px 5px 0 #000000;
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

/* ---------- 角标品牌 ---------- */
.mark {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--rail);
  min-height: 78px;
  padding: 10px;
  display: grid;
  place-items: center;
  background: var(--sky);
  border-right: var(--line);
  border-bottom: var(--line);
  text-decoration: none;
}

.mark-box {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 46px;
  padding: 4px 10px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
  overflow: hidden;
}

.mark-box b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mark-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: 78px;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--rail);
  background: var(--sky-soft);
  border-right: var(--line);
  overflow-y: auto;
  overflow-x: hidden;
}

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

.rail li a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  transition: background 0.14s ease, box-shadow 0.14s ease, padding-left 0.14s ease;
}

.rail li a:hover {
  background: #ffffff;
  box-shadow: inset 7px 0 0 var(--red);
  padding-left: 22px;
}

/* ---------- 主区域 ---------- */
main {
  margin-left: var(--rail);
  padding: 26px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 30px;
  align-items: start;
}

.hero {
  grid-column: 1 / -1;
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 10px 0 30px;
  border-bottom: var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-art {
  border: var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 10px;
  line-height: 0;
}

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

.body > div {
  padding: 30px 0;
  border-bottom: 2px dashed var(--ink);
  scroll-margin-top: 16px;
}

.body > div:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.body h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.body h2 > span {
  display: inline-block;
  padding: 3px 10px;
  border: var(--line);
  border-radius: 4px;
  background: var(--sky);
  box-shadow: 4px 4px 0 var(--ink);
}

.body h3 {
  margin: 26px 0 12px;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.35;
}

.body h3 > span {
  display: inline-block;
  padding: 1px 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--red-soft);
}

.body p {
  margin: 0 0 14px;
}

.body ul,
.body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

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

.body a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.body a:hover {
  background: var(--red-soft);
}

.body strong,
.body b {
  font-weight: 700;
}

.body blockquote {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: var(--line);
  border-radius: 4px;
  background: var(--sky-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.body img {
  border: var(--line);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
  margin: 6px 0 18px;
}

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

.body th,
.body td {
  border: 2px solid var(--ink);
  padding: 9px 11px;
  text-align: left;
}

.body th {
  background: var(--sky-soft);
}

/* ---------- 右侧边栏 ---------- */
.side {
  position: sticky;
  top: 24px;
  padding: 16px;
  background: #ffffff;
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--drop);
}

.side-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.side-h > span {
  display: inline-block;
  padding: 1px 9px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--red);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.side-list li + li {
  border-top: 2px solid var(--ink);
}

.side-list a {
  display: block;
  padding: 9px 2px;
  min-height: 42px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.14s ease, padding-left 0.14s ease;
}

.side-list a:hover {
  color: #0b5f92;
  padding-left: 7px;
}

/* ---------- 页脚 ---------- */
footer {
  margin-left: var(--rail);
  padding: 32px 24px 26px;
  background: var(--sky-soft);
  border-top: var(--line);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: var(--sky);
  border: var(--line);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--ink);
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta h2 > span {
  display: inline-block;
  padding: 2px 10px;
  border: var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 24px;
  background: var(--red);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--drop);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.fcols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
}

address b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

address span {
  display: block;
  word-break: break-all;
  color: #17405c;
}

.fcols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.fcols ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.fcols ul a:hover {
  border-bottom-color: var(--red);
}

.colophon {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 16px;
  font-weight: 600;
}

/* ---------- 入场动画 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
}

.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

/* ---------- 移动端 ---------- */
@media (max-width: 899px) {
  .mark {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 9px 14px;
    place-items: start;
    border-right: 0;
  }

  .mark-box {
    min-height: 44px;
  }

  .rail {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .rail ol {
    display: flex;
    white-space: nowrap;
  }

  .rail li a {
    min-height: 46px;
    padding: 12px 15px;
    border-bottom: 0;
    border-right: 2px solid var(--ink);
  }

  .rail li a:hover {
    box-shadow: inset 0 -7px 0 var(--red);
    padding-left: 15px;
  }

  main {
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 18px 16px 40px;
  }

  .hero {
    min-height: 52vh;
    padding: 8px 0 22px;
    gap: 14px;
  }

  .hero-art {
    padding: 6px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .hero-art svg {
    width: 72px;
    height: 72px;
  }

  .body > div {
    padding: 24px 0;
    scroll-margin-top: 10px;
  }

  .side {
    position: static;
    order: 3;
  }

  footer {
    margin-left: 0;
    padding: 24px 16px 22px;
  }

  .fcols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .colophon {
    font-size: 16px;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rail li a,
  .side-list a,
  .cta-btn {
    transition: none;
  }
}

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