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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #f2f5f8;
  --white: #ffffff;
  --font-head: "Playfair Display", "Songti SC", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: 14vh;
  right: -90px;
  width: 230px;
  height: 230px;
  background: var(--blue);
  opacity: 0.35;
  transform: rotate(45deg);
}

body::after {
  bottom: 18vh;
  left: -100px;
  width: 210px;
  height: 210px;
  background: var(--red);
  opacity: 0.28;
  transform: rotate(45deg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: #0b0b0b;
  background: transparent;
}

img {
  max-width: 100%;
}

a {
  color: #0a5b96;
}

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

/* ---------- 顶部 ---------- */

.top {
  background: var(--white);
  border-bottom: 3px solid var(--ink);
}

.strip {
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.strip-in {
  margin: 0;
  padding: 6px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip .star {
  display: inline-block;
  padding: 0 0.75em;
  color: var(--red);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 14px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--blue);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
}

.brand-mark {
  display: block;
  height: 34px;
  width: auto;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.brand-txt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.nav p {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.nav a:hover {
  background: var(--blue);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100vh;
  overflow: hidden;
  background: #0b0b0b;
  border-bottom: 3px solid var(--ink);
}

.hero-fig {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120%;
  margin: 0;
  will-change: transform;
}

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 0 40px 13vh;
  text-align: right;
  color: var(--white);
}

.hero-h1 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-shadow: 6px 6px 0 var(--ink);
}

.hero-lead {
  margin: 0;
  padding-right: 16px;
  border-right: 7px solid var(--red);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  color: #eef7ff;
  text-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 主体 ---------- */

main {
  display: block;
}

.stage {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 70px;
}

.rail {
  position: sticky;
  top: 24px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--red);
  backdrop-filter: blur(6px);
}

.rail-h {
  margin: 0 0 2px;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.2;
}

.rail .subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #4a5a68;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.22);
  transition: background 0.12s ease, transform 0.12s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7c8a;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1px 5px;
  line-height: 1.3;
}

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

.stage-body {
  min-width: 0;
}

.stage-body > section {
  position: relative;
  margin: 0 0 34px;
  padding: 28px 26px 30px;
  background: rgba(255, 255, 255, 0.8);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--ink);
  backdrop-filter: blur(8px);
  scroll-margin-top: 110px;
}

.stage-body > section:nth-child(even) {
  box-shadow: 8px 8px 0 var(--blue);
}

.stage-body > section:nth-child(3n) {
  box-shadow: 8px 8px 0 var(--red);
}

.stage-body h2 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.22;
  border-bottom: 4px solid var(--blue);
}

.stage-body h3 {
  margin: 28px 0 8px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.stage-body h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  background: var(--red);
  border: 2px solid var(--ink);
}

.stage-body p {
  margin: 0 0 16px;
  line-height: 1.82;
}

.stage-body .subtitle,
.stage-body .subhead,
.stage-body .desc,
.stage-body .lead {
  margin: -2px 0 20px;
  font-size: 17px;
  font-weight: 500;
  color: #3c4a56;
}

.stage-body ul,
.stage-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
  line-height: 1.8;
}

.stage-body li {
  margin-bottom: 6px;
}

.stage-body blockquote {
  margin: 22px 0;
  padding: 10px 18px;
  background: rgba(255, 82, 82, 0.09);
  border-left: 7px solid var(--red);
}

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

.stage-body figure {
  margin: 22px 0;
}

.stage-body img {
  display: block;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.stage-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.stage-body a:hover {
  background: var(--blue);
  color: var(--ink);
}

.stage-body hr {
  border: 0;
  border-top: 3px solid var(--ink);
  margin: 26px 0;
}

.stage-body strong {
  font-weight: 700;
}

.stage-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

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

.stage-body th {
  background: var(--blue);
}

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

.foot {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--blue);
  padding: 44px 20px 96px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.giant {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  color: var(--blue);
  word-break: break-word;
}

.foot-t {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}

.foot-addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.9;
  color: #d4dde6;
}

.foot-addr span {
  display: block;
}

.foot-addr .host {
  color: #93a4b3;
  word-break: break-all;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.foot-bottom {
  max-width: 1200px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 3px solid var(--red);
  text-align: center;
}

.foot-bottom p {
  margin: 0;
  font-size: 16px;
  color: #d4dde6;
}

.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--blue);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.totop:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
}

/* ---------- 断点 ---------- */

@media (min-width: 900px) {
  .top {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

@media (max-width: 1024px) {
  .stage {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 42px 20px 46px;
    max-width: none;
  }

  .hero-fig {
    height: 118%;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 16px 56px;
  }

  .rail {
    position: static;
    box-shadow: 6px 6px 0 var(--blue);
  }

  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .stage-body > section {
    padding: 22px 18px 24px;
    box-shadow: 6px 6px 0 var(--ink);
    scroll-margin-top: 20px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

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

  .bar {
    padding: 10px 14px;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
  }

  .nav p {
    justify-content: center;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 16px;
  }

  .rail-list {
    grid-template-columns: 1fr;
  }

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

  .foot {
    padding: 36px 16px 92px;
  }
}

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

  .hero-fig {
    transform: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

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