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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #f5f1e6;
  --white: #fff;
  --edge: 3px solid #000;
  --drop: 5px 5px 0 #000;
  --drop-lg: 8px 8px 0 #000;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 页头 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--edge);
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--blue);
  border-bottom: var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 6px;
  font-style: normal;
  font-size: 20px;
  color: var(--blue);
  background: var(--ink);
  border: var(--edge);
  box-shadow: var(--drop);
}

.brand-name {
  border-bottom: 4px solid var(--ink);
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--red);
}

.contact:hover {
  color: var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
}

.menu > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--white);
  border: var(--edge);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.more {
  position: relative;
}

.more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  background: var(--red);
  border: var(--edge);
  box-shadow: 3px 3px 0 var(--ink);
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more[open] > summary {
  color: var(--blue);
  background: var(--ink);
}

.more > p {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(86vw, 440px);
  margin: 0;
  padding: 12px;
  background: var(--paper);
  border: var(--edge);
  box-shadow: var(--drop-lg);
}

/* ---------- 主区 ---------- */

.page {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.2fr) 1fr;
  align-items: center;
  gap: 14px;
  min-height: 70vh;
  padding: 44px 22px;
  background: var(--white);
  border-bottom: var(--edge);
}

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

.kicker {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.kicker span {
  display: inline-block;
  padding: 7px 14px;
  background: var(--red);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-shot {
  margin: 0;
  min-height: 180px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--blue);
  border: var(--edge);
  box-shadow: var(--drop-lg);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-a {
  transform: translateY(-16px) rotate(-2.2deg);
}

.shot-b {
  transform: translateY(16px) rotate(2.2deg);
  background: var(--red);
}

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 22px 64px;
  align-items: start;
}

/* ---------- 正文 ---------- */

.prose > div {
  margin: 0 0 32px;
  padding: 24px 22px;
  background: var(--white);
  border: var(--edge);
  border-bottom: 9px solid var(--red);
  box-shadow: 6px 6px 0 var(--ink);
  scroll-margin-top: 190px;
}

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

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.prose h2 span {
  border-bottom: 5px solid var(--blue);
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.prose h3 span {
  border-bottom: 4px solid var(--red);
}

.prose p {
  margin: 0 0 16px;
}

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

.prose a {
  padding: 1px 3px;
  font-weight: 600;
  background: var(--blue);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
}

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

.prose strong {
  background: var(--blue);
  padding: 0 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

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

.prose li::marker {
  color: var(--red);
  font-weight: 700;
}

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--paper);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.prose img {
  display: block;
  height: auto;
  margin: 18px 0;
  border: var(--edge);
  box-shadow: var(--drop);
}

.prose figure {
  margin: 20px 0;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

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

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

.prose th {
  background: var(--blue);
  font-weight: 700;
}

/* ---------- 侧栏 ---------- */

.rail {
  position: sticky;
  top: 190px;
  display: grid;
  gap: 20px;
  align-self: start;
}

.rail-block {
  padding: 16px;
  background: var(--white);
  border: var(--edge);
  box-shadow: var(--drop);
}

.rail h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail h3 span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 4px solid var(--red);
}

.rail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--paper);
  border-left: 7px solid var(--ink);
}

.rail ul a:hover,
.rail ul a:focus-visible,
.rail ul a[aria-current] {
  background: var(--blue);
  border-left-color: var(--red);
}

.rail-cta-block {
  background: var(--blue);
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--red);
}

.rail-cta:hover,
.rail-cta:focus-visible {
  color: var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--blue);
  border-top: var(--edge);
}

footer p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

footer small {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 16px;
}

footer small a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
}

footer small a:hover {
  background: var(--red);
}

/* ---------- 入场动效 ---------- */

.js .prose > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.js .prose > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .body-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 30px 16px 52px;
  }

  .rail {
    position: static;
    order: 2;
  }

  .prose > div {
    scroll-margin-top: 220px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 12px;
    padding: 22px 16px 30px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    order: -1;
  }

  .hero-shot {
    min-height: 0;
    aspect-ratio: 1 / 1;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .shot-a,
  .shot-b {
    transform: none;
  }

  .brandline {
    padding: 10px 14px;
  }

  .brand {
    font-size: 20px;
  }

  .menu {
    padding: 10px;
    gap: 7px;
  }

  .menu a,
  .more > summary {
    padding: 8px 11px;
    font-size: 16px;
  }

  .more > p {
    width: min(92vw, 360px);
  }

  .prose > div {
    padding: 20px 16px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  footer {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }

  .menu a,
  .more > summary {
    padding: 8px 9px;
  }
}

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

  .js .prose > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact:hover,
  .menu a:hover {
    transform: none;
  }
}

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