@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --soft: #ececec;
  --mute: #5c5c5c;
  --pixel: 'Press Start 2P', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --body: 'VT323', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --r: 10px;
}

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

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

body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 顶部细条 ---------- */
.strip {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  overflow: hidden;
}

.strip-text {
  display: inline-block;
  max-width: 100%;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.24em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px clamp(12px, 2vw, 26px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--soft);
  backdrop-filter: saturate(140%) blur(8px);
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 10px 12px;
  white-space: nowrap;
  font-weight: 700;
}

.nav {
  flex: 1 1 0;
  min-width: 0;
}

.nav-r {
  display: flex;
  justify-content: flex-end;
}

.nav nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-r nav ul {
  justify-content: flex-end;
}

.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

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

/* ---------- 主区 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 32px);
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: 100vh;
  padding: clamp(36px, 8vh, 96px) 0 clamp(64px, 10vh, 120px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vh, 30px);
  height: 14px;
  background: var(--ink);
  transform: skewY(-2.2deg);
}

.hero-copy {
  text-align: center;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-size: clamp(22px, 4.4vw, 42px);
  line-height: 1.62;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}

.hero .subtitle {
  margin: 0 auto 26px;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mute);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.hero-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
  min-width: 0;
}

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

.hero-plate {
  background: repeating-linear-gradient(135deg, #ffffff 0 16px, #ededed 16px 32px);
  box-shadow: inset 0 0 0 1px var(--soft);
}

/* ---------- 版面：左栏 + 卡片拼格 ---------- */
.board {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 7vw, 88px);
}

.rail {
  position: sticky;
  top: 88px;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 16px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.rail h2 {
  margin: 0 0 4px;
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.rail .subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--mute);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rail-list a:hover {
  background: var(--soft);
  transform: translateX(2px);
}

.no {
  flex: 0 0 auto;
  font-family: var(--pixel);
  font-size: 9px;
  color: #a2a2a2;
  letter-spacing: 0.06em;
}

.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.sheet > article {
  grid-column: span 2;
  min-width: 0;
  background: var(--paper);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 34px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 96px;
  overflow-wrap: break-word;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sheet > article:hover {
  transform: scale(1.012);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.sheet > article:nth-child(1),
.sheet > article:nth-child(4),
.sheet > article:nth-child(7),
.sheet > article:nth-child(10) {
  grid-column: span 4;
}

.sheet > article:nth-child(even) {
  background: var(--soft);
}

.sheet > article:nth-child(4) {
  background: var(--ink);
  color: #f4f4f4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sheet h2 {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

.sheet h3 {
  margin: 22px 0 8px;
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

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

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

.sheet .subtitle {
  color: var(--mute);
  font-size: 17px;
}

.sheet > article:nth-child(4) .subtitle {
  color: #c9c9c9;
}

.sheet ul,
.sheet ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}

.sheet li {
  margin: 4px 0;
}

.sheet a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet strong {
  font-weight: 700;
}

.sheet img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sheet pre {
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--ink);
  color: #fff;
}

.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px clamp(12px, 2vw, 26px);
  font-size: 16px;
}

footer address {
  font-style: normal;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  max-width: 100%;
  overflow-wrap: break-word;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  text-decoration: none;
  opacity: 0.86;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .hero::after {
    left: -4%;
    right: -4%;
  }
}

@media (max-width: 899px) {
  .topbar {
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 12px 10px;
  }

  .brand {
    order: -1;
    flex: 1 1 100%;
    text-align: center;
    padding: 8px 10px;
    white-space: normal;
  }

  .nav {
    flex: 1 1 100%;
  }

  .nav nav ul,
  .nav-r nav ul {
    justify-content: center;
  }

  .nav-r {
    display: block;
  }

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

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .hero::after {
    bottom: 18px;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet > article,
  .sheet > article:nth-child(1),
  .sheet > article:nth-child(4),
  .sheet > article:nth-child(7),
  .sheet > article:nth-child(10) {
    grid-column: auto;
  }
}

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

  .strip {
    padding: 10px 12px;
  }

  .strip-text {
    letter-spacing: 0.16em;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet > article {
    padding: 18px 16px;
  }

  .hero h1 {
    font-size: 21px;
    letter-spacing: 0.02em;
  }
}

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

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

  .sheet > article,
  .cta,
  .rail-list a {
    transition: none;
  }

  .sheet > article:hover {
    transform: none;
  }
}

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