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

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

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

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Archivo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #000;
  background: #eef7ff;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 13vh;
  right: -72px;
  width: 220px;
  height: 220px;
  background: #ff5252;
  border: 3px solid #000;
  transform: rotate(14deg);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5vh;
  left: -84px;
  width: 180px;
  height: 180px;
  background: #3bb1ff;
  border: 3px solid #000;
  transform: rotate(-11deg);
  z-index: 0;
  pointer-events: none;
}

a {
  color: #000;
}

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

/* ---------- 左侧竖排导航 ---------- */
.rail-head {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 22px;
  background: #3bb1ff;
  border-right: 3px solid #000;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
  overflow: hidden;
}

.brand .mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

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

.nav {
  min-height: 0;
}

.nav p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.nav a {
  display: block;
  padding: 11px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: #ff5252;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

.nav a:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.cta {
  margin-top: auto;
  display: block;
  padding: 14px 10px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  background: #ff5252;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: #fff;
}

/* ---------- 主区 ---------- */
main {
  position: relative;
  z-index: 1;
  margin-left: 236px;
  padding: 0 24px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  grid-template-areas:
    'hero hero'
    'art side';
  gap: 24px;
  align-items: start;
}

/* ---------- Hero ---------- */
.hero {
  grid-area: hero;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 96vh;
  padding: 56px 0 34px;
  text-align: right;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 7.6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.hero h1::after {
  content: '';
  display: block;
  width: 84px;
  height: 12px;
  margin: 18px 0 0 auto;
  background: #ff5252;
  border: 3px solid #000;
}

.lede {
  max-width: 44ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.badge {
  position: absolute;
  top: 26px;
  left: 0;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  background: #ff5252;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-6deg);
}

/* ---------- 正文卡片 ---------- */
.paper {
  grid-area: art;
  min-width: 0;
  padding: 26px 26px 30px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
}

.paper div {
  scroll-margin-top: 96px;
}

.paper div[id] {
  padding-bottom: 26px;
  margin: 0 0 26px;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.35);
}

.paper div[id]:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.paper h2,
.paper h3 {
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.paper h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.paper h2 span {
  display: inline-block;
  padding: 5px 14px;
  background: #3bb1ff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-1.2deg);
}

.paper h3 {
  margin: 26px 0 12px;
  font-size: 1.18rem;
}

.paper h3 span {
  display: inline-block;
  padding: 3px 10px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

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

.paper a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.paper a:hover {
  background: #ff5252;
}

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

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

.paper li::marker {
  font-weight: 700;
}

.paper strong {
  background: #3bb1ff;
  padding: 0 4px;
}

.paper img {
  display: block;
  margin: 20px 0;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}

.paper blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #fff;
  border: 3px solid #000;
  border-left-width: 10px;
  box-shadow: 4px 4px 0 #000;
}

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

.paper table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  background: #fff;
  border: 3px solid #000;
}

.paper th,
.paper td {
  padding: 10px 12px;
  border: 2px solid #000;
  text-align: left;
}

.paper th {
  background: #3bb1ff;
}

.paper code {
  font-size: 15px;
  background: #fff;
  border: 2px solid #000;
  padding: 1px 5px;
}

/* ---------- 右侧栏 ---------- */
.side-notes {
  grid-area: side;
  position: sticky;
  top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}

.side-notes h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.side-notes h2 span {
  display: inline-block;
  padding: 4px 12px;
  background: #ff5252;
  border: 2px solid #000;
  transform: rotate(-2deg);
}

.side-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-notes a {
  display: block;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: #fff;
  border: 2px solid #000;
  transition: background 0.14s ease, transform 0.14s ease;
}

.side-notes a:hover,
.side-notes a:focus-visible {
  background: #3bb1ff;
  transform: translateX(-3px);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-left: 236px;
  margin-top: 48px;
  background: #000;
  color: #fff;
  border-top: 3px solid #000;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.foot h2,
.foot h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.foot h2 span,
.foot h3 span {
  display: inline-block;
  padding: 4px 12px;
  background: #3bb1ff;
  color: #000;
  border: 2px solid #fff;
  transform: rotate(-1.5deg);
}

.foot address {
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.foot-desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #e8f4ff;
}

.sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sub input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  color: #000;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 0;
}

.sub input:focus-visible {
  outline: 3px solid #ff5252;
  outline-offset: 2px;
}

.sub button {
  padding: 11px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  background: #ff5252;
  border: 3px solid #fff;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 4px 4px 0 #3bb1ff;
}

.sub button:hover {
  background: #fff;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.foot li a {
  display: block;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 2px solid #fff;
  transition: background 0.14s ease;
}

.foot li a:hover,
.foot li a:focus-visible {
  background: #ff5252;
}

.copy {
  margin: 0;
  padding: 16px 24px 26px;
  text-align: center;
  font-size: 16px;
  border-top: 2px solid #3bb1ff;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

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

/* ---------- 移动端 ---------- */
@media (max-width: 980px) {
  body::before,
  body::after {
    display: none;
  }

  .rail-head {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 3px solid #000;
  }

  .brand {
    order: 1;
    width: 44px;
    height: 44px;
    box-shadow: 3px 3px 0 #000;
  }

  .cta {
    order: 2;
    margin: 0 0 0 auto;
    padding: 11px 14px;
    font-size: 16px;
  }

  .nav {
    order: 3;
    flex: 1 1 100%;
  }

  .nav p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav a {
    padding: 10px 11px;
    font-size: 16px;
    box-shadow: 2px 2px 0 #000;
  }

  main {
    margin-left: 0;
    padding: 0 14px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'hero'
      'art'
      'side';
    gap: 18px;
  }

  .hero {
    min-height: calc(100vh - 180px);
    padding: 46px 0 24px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10.5vw, 3.6rem);
  }

  .hero h1::after {
    width: 60px;
    height: 9px;
    margin-top: 14px;
  }

  .badge {
    top: 14px;
  }

  .paper {
    padding: 18px 16px 22px;
    box-shadow: 5px 5px 0 #000;
  }

  .paper div[id] {
    scroll-margin-top: 168px;
  }

  .paper h2 {
    font-size: 1.3rem;
  }

  .side-notes {
    position: static;
  }

  .foot {
    margin-left: 0;
    margin-top: 34px;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 16px 26px;
  }

  .copy {
    padding: 14px 16px 24px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: calc(100vh - 200px);
  }

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

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 3px solid #ff5252;
  outline-offset: 3px;
}

.foot :focus-visible {
  outline-color: #3bb1ff;
}

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