:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #fdfaf3;
  --line: 3px solid #000000;
  --sh: 6px 6px 0 #000000;
  --sh-sm: 4px 4px 0 #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: 264px;
  background: var(--paper);
  color: #000;
  font-family: 'Quicksand', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
}

/* ---------- 左侧固定栏 ---------- */
.bar {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  bottom: 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 18px 26px;
  background: var(--blue);
  border-right: 4px solid #000;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 16px;
  background: #fff;
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: #000;
  transform: rotate(-2.5deg);
}

.brand-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid #000;
}

.brand-word {
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.bar-nav {
  width: 100%;
}

.bar-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.bar-nav a {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-sm);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.bar-nav a:hover,
.bar-nav a:focus-visible {
  background: #000;
  color: #fff;
  box-shadow: 4px 4px 0 var(--red);
  transform: translate(-1px, -1px);
}

.bar-find {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.bar-find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: var(--line);
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}

.bar-find button {
  min-height: 44px;
  padding: 0 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--red);
  box-shadow: var(--sh-sm);
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.bar-find button:hover {
  background: #000;
  color: #fff;
}

.burger {
  width: 100%;
  min-height: 50px;
  border: var(--line);
  border-radius: 12px;
  background: #000;
  box-shadow: 4px 4px 0 var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- 全屏遮罩菜单 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px 40px;
  background: var(--blue);
  overflow-y: auto;
  transform: translateY(-104%);
  transition: transform 0.38s cubic-bezier(0.7, 0, 0.3, 1);
}

.veil.on {
  transform: translateY(0);
}

.veil-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.veil-brand {
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-size: 34px;
  font-weight: 700;
  padding: 4px 18px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: var(--sh);
  transform: rotate(-2deg);
}

.veil-x {
  min-height: 50px;
  padding: 0 20px;
  border: 4px solid #000;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.veil-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.veil-nav a {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 20px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  box-shadow: var(--sh);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.veil-nav a:hover {
  background: var(--red);
}

.veil-find {
  display: flex;
  gap: 10px;
  max-width: 540px;
  width: 100%;
}

.veil-find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  border: 4px solid #000;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}

.veil-find button {
  min-height: 52px;
  padding: 0 22px;
  border: 4px solid #000;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- 版面 ---------- */
main {
  padding: 0 22px 60px;
}

.wrap {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 26px 30px;
  align-items: start;
}

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 42px 0 52px;
  border-bottom: 4px solid #000;
}

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

.hero-h1 {
  margin: 0 0 16px;
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-shadow: 5px 5px 0 var(--blue);
}

.hero-lede {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
}

.hero-go {
  margin: 0;
}

.hero-go a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--red);
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #000;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.hero-go a:hover {
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 var(--blue);
}

.hero-art {
  position: relative;
  min-height: 340px;
  align-self: stretch;
  background: #fff;
  background-image: radial-gradient(var(--blue) 1.7px, transparent 1.7px);
  background-size: 18px 18px;
  border: 4px solid #000;
  border-radius: 28px;
  box-shadow: 10px 10px 0 #000;
  overflow: hidden;
}

.art-stack {
  position: absolute;
  inset: 0;
  transform: scale(1.14) translateY(0);
  will-change: transform;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.75s ease;
}

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

.art-block {
  position: absolute;
  inset: 24px;
  background: var(--red);
  border: 4px solid #000;
  border-radius: 20px;
  transform: rotate(-3deg);
}

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

.doc div {
  background: #fff;
  border: var(--line);
  border-radius: 28px;
  box-shadow: var(--sh);
  padding: 26px 24px;
  margin-bottom: 26px;
  scroll-margin-top: 24px;
}

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

.doc h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 14px;
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.2;
  font-weight: 700;
}

.doc h2 > span {
  box-shadow: inset 0 -0.3em 0 var(--blue);
}

.doc h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.doc h3 > span {
  box-shadow: inset 0 -0.32em 0 var(--red);
}

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

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

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

.doc a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid var(--red);
}

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

.doc img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 3px solid #000;
  border-radius: 16px;
}

.doc blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  background: var(--paper);
  border-left: 8px solid var(--blue);
  border-radius: 0 14px 14px 0;
}

.doc strong {
  background: var(--red);
  padding: 0 4px;
}

/* ---------- 右侧目录 ---------- */
.side {
  position: sticky;
  top: 22px;
  min-width: 0;
}

.side-t,
.foot-t {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 12px;
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  background: var(--red);
  border: 2px solid #000;
  border-radius: 3px;
  vertical-align: middle;
}

.side-t > span {
  padding: 0 12px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: var(--sh-sm);
}

.side-t > span .dot {
  box-shadow: 4px 4px 0 var(--blue);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: var(--sh-sm);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}

.side-list a:hover {
  background: var(--blue);
  transform: translate(-1px, -1px);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 20px;
  padding: 44px 22px 28px;
  background: #000;
  color: #fff;
  border-top: 4px solid #000;
}

.foot-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.foot-t {
  color: #fff;
}

.foot-t > span {
  padding: 0 14px;
  background: var(--blue);
  color: #000;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--red);
}

.foot-t > span .dot {
  border-color: #000;
  background: #000;
}

.foot-brand {
  margin: 0 0 6px;
  font-family: 'Caveat', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.foot-addr {
  font-style: normal;
  font-size: 16px;
  color: #cfcfcf;
  word-break: break-all;
}

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

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.foot-list a:hover {
  background: var(--red);
}

.foot-sub {
  max-width: 1150px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foot-sub input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}

.foot-sub button {
  min-height: 48px;
  padding: 0 24px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: var(--red);
  box-shadow: 4px 4px 0 #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.foot-sub button:hover {
  background: var(--blue);
}

.foot-copy {
  max-width: 1150px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 2px solid #3a3a3a;
  font-size: 16px;
  color: #bdbdbd;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: 172px;
  }

  .bar {
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 4px solid #000;
    overflow: visible;
  }

  .brand {
    order: 1;
    min-height: 44px;
    padding: 5px 12px;
    box-shadow: 3px 3px 0 #000;
  }

  .brand-word {
    font-size: 24px;
  }

  .burger {
    order: 2;
    width: auto;
    margin-left: auto;
    min-height: 44px;
    padding: 0 18px;
    box-shadow: 4px 4px 0 var(--red);
  }

  .bar-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bar-nav p {
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    padding-bottom: 4px;
  }

  .bar-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
    box-shadow: 3px 3px 0 #000;
  }

  .bar-find {
    order: 4;
    margin-top: 0;
  }

  main {
    padding: 0 14px 44px;
  }

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

  .hero {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 20px;
    padding: 18px 0 30px;
  }

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

  .hero-h1 {
    font-size: clamp(30px, 9vw, 46px);
    text-shadow: 4px 4px 0 var(--blue);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-art {
    order: 2;
    min-height: 232px;
    box-shadow: 6px 6px 0 #000;
  }

  .doc div {
    padding: 20px 16px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #000;
    scroll-margin-top: 184px;
  }

  .side {
    position: static;
  }

  .side-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-list li {
    flex: 1 1 46%;
    min-width: 0;
  }

  .foot {
    padding: 34px 14px 24px;
  }

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

  .veil {
    padding: 18px 14px 32px;
  }

  .veil-nav a {
    flex: 1 1 100%;
    min-height: 56px;
    font-size: 18px;
  }
}

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

  .veil {
    transition: none;
  }

  .hero-img {
    transition: none;
  }

  .art-stack {
    transform: none;
  }
}

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