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

:root {
  --ink: #000000;
  --blue: #3bb1ff;
  --red: #ff5252;
  --paper: #f7f3ea;
  --white: #ffffff;
  --pad: clamp(16px, 4vw, 56px);
  --edge: 3px solid #000000;
  --cast: 8px 8px 0 #000000;
  --cast-sm: 5px 5px 0 #000000;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 96px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; }

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 100svh;
  padding: clamp(72px, 9vw, 110px) var(--pad) clamp(44px, 6vw, 84px);
  border-bottom: var(--edge);
}

.hero--tight {
  min-height: auto;
  padding-bottom: clamp(30px, 4vw, 48px);
}

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

.hero-brand {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  background: var(--blue);
  border: var(--edge);
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000000;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 46ch;
  margin: 0 auto 8px;
  font-size: 17px;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 26px;
  padding: 13px 30px;
  background: var(--red);
  border: var(--edge);
  border-radius: 12px;
  box-shadow: var(--cast-sm);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.hero-go:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #000000;
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue);
  border: var(--edge);
  border-bottom: 12px solid var(--red);
  border-radius: 28px;
  box-shadow: var(--cast);
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s linear;
}

.slide.is-active { opacity: 1; }

.hero-poster {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 16%;
  background: var(--red);
  border: var(--edge);
  border-radius: 20px;
  transform: rotate(-6deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 30% 26%;
  background: var(--white);
  border: var(--edge);
  border-radius: 14px;
  transform: rotate(4deg);
}

/* ---------- 主体 ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(180px, 232px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--pad);
}

.side {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 20px 18px;
  background: var(--white);
  border: var(--edge);
  border-bottom: 8px solid var(--blue);
  border-radius: 28px;
  box-shadow: var(--cast-sm);
}

.side-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
}

.side-title {
  margin: 0;
  font-size: 1.35rem;
}

.side-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sec;
}

.side-list li {
  counter-increment: sec;
  border-top: 2px solid #000000;
}

.side-list li:first-child { border-top: 0; }

.side-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.side-list a::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.side-list a:hover { color: #0d6ca8; }

.sheet {
  min-width: 0;
  padding: clamp(22px, 3.4vw, 48px);
  background: var(--white);
  border: var(--edge);
  border-bottom: 12px solid var(--blue);
  border-radius: 28px;
  box-shadow: var(--cast);
  overflow-wrap: break-word;
}

.sheet > section + section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 3px dashed #000000;
}

.sheet section[id] { scroll-margin-top: 22px; }

.sheet h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  padding-bottom: 10px;
  border-bottom: 4px solid #000000;
}

.sheet h3 { font-size: 1.25rem; }

.sheet h4 { font-size: 1.05rem; }

.sheet ul,
.sheet ol { padding-left: 1.35em; }

.sheet li { margin: 0.4em 0; }

.sheet a {
  text-decoration: underline 3px var(--red);
  text-underline-offset: 4px;
}

.sheet img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px 0;
  border: var(--edge);
  border-radius: 18px;
  box-shadow: var(--cast-sm);
}

.sheet figure { margin: 22px 0; }

.sheet blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--paper);
  border: var(--edge);
  border-left: 12px solid var(--red);
  border-radius: 16px;
}

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

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

.sheet th,
.sheet td {
  padding: 8px 10px;
  border: 2px solid #000000;
  text-align: left;
}

.sheet th { background: var(--blue); }

.sheet code,
.sheet pre {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.sheet pre {
  overflow-x: auto;
  padding: 14px;
  background: var(--paper);
  border: var(--edge);
  border-radius: 14px;
}

.sheet hr {
  margin: 30px 0;
  border: 0;
  border-top: 3px solid #000000;
}

/* ---------- 页脚 ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 26px var(--pad) 34px;
  background: var(--white);
  border-top: var(--edge);
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  border: var(--edge);
  border-radius: 12px;
  text-decoration: none;
}

.foot-mark {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.foot nav { flex: 1 1 auto; }

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

.foot a {
  display: inline-block;
  padding: 10px 0;
  min-height: 42px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.foot a:hover { text-decoration: underline 3px var(--red); }

.foot-copy {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: var(--edge);
}

.dock-brand {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border: var(--edge);
  border-radius: 14px;
  box-shadow: 3px 3px 0 #000000;
  text-decoration: none;
}

.dock-mark {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.dock-mark--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.dock-btn {
  position: relative;
  z-index: 70;
  margin-left: auto;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--red);
  color: var(--ink);
  border: var(--edge);
  border-radius: 14px;
  box-shadow: 3px 3px 0 #000000;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.dock-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000000;
}

.dock-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--pad) 110px;
  background: var(--blue);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s linear, visibility 0.25s linear;
}

body.menu-open { overflow: hidden; }

body.menu-open .dock-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dock-nav ul {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.dock-nav a {
  display: block;
  padding: 14px 20px;
  min-height: 54px;
  background: var(--white);
  border: var(--edge);
  border-radius: 16px;
  box-shadow: 5px 5px 0 #000000;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.menu-open .dock-nav li {
  animation: rise 0.36s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

body.menu-open .dock-nav li:nth-child(1) { animation-delay: 0.02s; }
body.menu-open .dock-nav li:nth-child(2) { animation-delay: 0.06s; }
body.menu-open .dock-nav li:nth-child(3) { animation-delay: 0.1s; }
body.menu-open .dock-nav li:nth-child(4) { animation-delay: 0.14s; }
body.menu-open .dock-nav li:nth-child(5) { animation-delay: 0.18s; }
body.menu-open .dock-nav li:nth-child(6) { animation-delay: 0.22s; }
body.menu-open .dock-nav li:nth-child(7) { animation-delay: 0.26s; }

.side-list li {
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.side-list li:nth-child(1) { animation-delay: 0.03s; }
.side-list li:nth-child(2) { animation-delay: 0.07s; }
.side-list li:nth-child(3) { animation-delay: 0.11s; }
.side-list li:nth-child(4) { animation-delay: 0.15s; }
.side-list li:nth-child(5) { animation-delay: 0.19s; }
.side-list li:nth-child(6) { animation-delay: 0.23s; }
.side-list li:nth-child(7) { animation-delay: 0.27s; }

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: clamp(44px, 9vw, 64px);
  }

  .hero-art {
    aspect-ratio: 16 / 10;
    box-shadow: 6px 6px 0 #000000;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 30px;
  }

  .side { position: static; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }

  .hero-desc { font-size: 16px; }

  .sheet { border-radius: 22px; }

  .foot-copy {
    flex: 1 1 100%;
    padding-top: 4px;
  }

  .dock-nav a { font-size: 17px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

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