@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #fdfaf2;
  --line: 3px solid #000000;
  --shadow: 6px 6px 0 #000000;
  --display: "Bebas Neue", "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --text: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

/* ---------- 顶部两行：品牌行 / 菜单行 ---------- */
.masthead {
  border-bottom: var(--line);
  background: var(--blue);
  padding-top: 12px;
}

.mast-brand {
  margin: 0;
  padding: 0 18px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border: var(--line);
  background: #ffffff;
  object-fit: cover;
}

.brand-word {
  font-family: var(--display);
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  background: var(--ink);
  border-top: var(--line);
}

.nav-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  border-right: 2px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.12s linear, color 0.12s linear;
}

.nav-strip a:hover,
.nav-strip a:focus-visible {
  background: var(--red);
  color: var(--ink);
}

/* ---------- 布局 ---------- */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 30px;
  }
}

main {
  min-width: 0;
}

.rail {
  order: 2;
  border: var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 14px 10px;
}

@media (min-width: 900px) {
  .rail {
    order: 0;
    position: sticky;
    top: 18px;
    box-shadow: var(--shadow);
  }
}

.rail h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.rail hr {
  border: 0;
  border-top: var(--line);
  margin: 8px 0 10px;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 3px 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--blue);
}

.rail-list li:last-child a {
  border-bottom: 0;
}

.num {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* ---------- 首屏拼贴 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  border: var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px 18px 30px;
  margin: 0 0 26px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 1.4px, transparent 1.4px);
  background-size: 15px 15px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  text-align: right;
  order: 1;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 12vw, 100px);
  line-height: 0.94;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 4px 4px 0 var(--blue);
  overflow-wrap: anywhere;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  order: 2;
  padding: 6px 2px;
}

.art {
  position: relative;
  margin: 0;
  border: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.16s ease-out;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
}

.art-a {
  transform: rotate(-3deg) translateY(6px);
}

.art-b {
  transform: rotate(4deg) translateY(-8px);
}

.art:hover {
  transform: rotate(0deg) translateY(0);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 140px);
    padding: 34px 30px;
  }

  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }

  .hero-art {
    grid-column: 1;
    grid-row: 1;
    order: 0;
  }
}

/* ---------- 正文区块 ---------- */
section > article:not(.hero) {
  background: #ffffff;
  border: var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  margin: 0 0 26px;
}

main article[id] {
  scroll-margin-top: 24px;
}

section > article h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.06;
  letter-spacing: 0.03em;
  font-weight: 700;
}

section > article h2 + hr {
  border: 0;
  border-top: var(--line);
  margin: 0 0 16px;
}

section h3 {
  margin: 1.3em 0 0.5em;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  border-left: 6px solid var(--red);
  padding-left: 10px;
}

section p {
  margin: 0 0 1em;
}

section p:last-child {
  margin-bottom: 0;
}

section ul,
section ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

section li {
  margin: 0.35em 0;
}

section a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid var(--red);
}

section a:hover,
section a:focus-visible {
  background: var(--red);
  color: #ffffff;
}

section img {
  height: auto;
  border: var(--line);
}

section blockquote {
  margin: 0 0 1em;
  padding: 12px 14px;
  border: var(--line);
  border-left: 8px solid var(--blue);
  background: var(--paper);
}

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

section table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 16px;
}

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

section th {
  background: var(--blue);
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 40px;
  padding: 26px 16px 22px;
  background: var(--ink);
  color: #ffffff;
  border-top: var(--line);
}

.foot dl,
.foot dt,
.foot dd {
  margin: 0;
}

.foot dt,
.foot dd {
  font-size: 16px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--red);
}

.foot-brand {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 16vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 5px 5px 0 var(--red);
  overflow-wrap: anywhere;
}

.copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

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

  .art {
    transition: none;
  }
}

@media (max-width: 420px) {
  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }
}

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