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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #f7f3e8;
  --ice: #e9f5ff;
  --hard: 5px 5px 0 var(--ink);
  --cond: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "Barlow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
}

/* ---------- 顶部 ---------- */
.site-head {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.site-head nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
}

.nav-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-l {
  justify-self: start;
}

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

.nav-side a,
.nav-brand a,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 15px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--cond);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.nav-side a:hover,
.nav-brand a:hover,
.nav-cta:hover,
.nav-side a:focus-visible,
.nav-brand a:focus-visible,
.nav-cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.nav-brand {
  justify-self: center;
  margin: 0;
}

.nav-brand a {
  background: var(--blue);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 6px 20px;
}

.nav-cta {
  justify-self: end;
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 70vh, 640px);
  display: grid;
  place-items: center;
  padding: 48px 18px;
  background: var(--blue);
  border-bottom: 3px solid var(--ink);
}

.hero-mega {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(3.4rem, 16vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #000;
  opacity: 0.16;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

.hero-shots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shot {
  position: absolute;
  margin: 0;
  width: clamp(118px, 19vw, 210px);
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  transform: translate3d(0, var(--shift, 0px), 0) rotate(var(--rot, 0deg));
  pointer-events: auto;
}

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

.shot-a {
  top: 7%;
  left: 4%;
  --rot: -5deg;
}

.shot-b {
  bottom: 8%;
  right: 4%;
  --rot: 4deg;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 0;
  max-width: min(760px, 92vw);
  padding: 14px 26px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--ink);
  font-family: var(--cond);
  font-size: clamp(1.85rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  text-align: center;
}

/* ---------- 主体 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 64px;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 26px;
  align-items: start;
}

.prose {
  min-width: 0;
}

.prose > article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 22px;
  margin: 0 0 26px;
  scroll-margin-top: 22px;
}

.prose > article:nth-of-type(even) {
  background: var(--ice);
}

.prose h2 {
  margin: 0 0 8px;
  font-family: var(--cond);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.prose h3 {
  margin: 0 0 6px;
  font-family: var(--cond);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 3px solid var(--ink);
  margin: 0 0 16px;
}

.prose p {
  margin: 0 0 1em;
}

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

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.prose li {
  margin: 0 0 0.4em;
}

.prose strong,
.prose b {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  background: var(--paper);
  border-left: 6px solid var(--red);
  border-radius: 0 10px 10px 0;
}

.prose img {
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
}

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

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 16px;
  padding: 18px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--blue);
}

.rail h2 {
  margin: 0 0 10px;
  font-family: var(--cond);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rail hr {
  border: 0;
  border-top: 3px solid #fff;
  margin: 0 0 14px;
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

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

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 26px;
  padding: 40px max(18px, calc((100% - 1180px) / 2)) 0;
  background: var(--ink);
  color: #fff;
}

.f-mega {
  margin: 0;
  font-family: var(--cond);
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue);
  word-break: break-word;
}

.f-col h2 {
  margin: 0 0 8px;
  font-family: var(--cond);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.f-col hr {
  border: 0;
  border-top: 3px solid var(--red);
  margin: 0 0 12px;
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.f-links a:hover,
.f-links a:focus-visible {
  background: var(--red);
  color: #fff;
  border-color: var(--ink);
}

.f-bar {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 16px 0 22px;
  border-top: 3px solid #fff;
  text-align: center;
  font-size: 16px;
}

.f-bar p {
  margin: 0;
}

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

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .site-foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-head nav {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px 14px;
  }

  .nav-brand {
    order: -1;
    justify-self: center;
  }

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

  .nav-cta {
    justify-self: center;
    width: 100%;
    max-width: 340px;
  }

  .nav-side a {
    padding: 6px 12px;
    font-size: 1rem;
  }
}

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

  .hero {
    min-height: clamp(400px, 68vh, 520px);
    padding: 36px 14px;
  }

  .hero-shot {
    width: 92px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .shot-a {
    top: 5%;
    left: 2%;
  }

  .shot-b {
    bottom: 6%;
    right: 2%;
  }

  .hero-copy h1 {
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .wrap {
    padding: 24px 14px 48px;
  }

  .prose > article {
    padding: 18px 15px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 16px 0;
  }
}

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

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

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