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

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

:root {
  --teal: #5cc6b0;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f4eee2;
  --paper-2: #ece3d2;
  --line: rgba(23, 38, 35, .16);
  --line-2: rgba(23, 38, 35, .34);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .01em;
  background-image:
    radial-gradient(circle at 12% 4%, rgba(212, 196, 168, .6), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(92, 198, 176, .22), transparent 40%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .38;
  background-image: radial-gradient(rgba(23, 38, 35, .13) .6px, transparent .6px);
  background-size: 3px 3px;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 14px; }

/* ---------- 页头与导航 ---------- */
.masthead {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px;
}

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

.nav-l--a { grid-area: 1 / 1; justify-self: end; }
.nav-l--b { grid-area: 1 / 3; justify-self: start; }

.nav-l a {
  display: inline-block;
  padding: 10px 9px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
}

.nav-l a:hover,
.nav-l a:focus-visible {
  border-bottom-color: var(--clay);
  background: rgba(212, 196, 168, .5);
}

.brand {
  grid-area: 1 / 2;
  display: block;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-sub {
  display: block;
  font-size: 12px;
  letter-spacing: .22em;
  color: #4c5c57;
}

.cta {
  grid-area: 1 / 3;
  justify-self: end;
  display: inline-block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  color: #14211d;
  background: var(--clay);
  border: 2px solid var(--ink);
  border-radius: 22px 6px 22px 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.cta:hover,
.cta:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.nav-drop { position: relative; }

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 8;
  min-width: 186px;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: none;
  background: var(--ink);
  border-radius: 4px 20px 20px 20px;
  box-shadow: 0 16px 32px rgba(23, 38, 35, .3);
}

.nav-drop:hover .drop,
.nav-drop:focus-within .drop { display: block; }

.drop a {
  display: block;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--sand);
  text-decoration: none;
  border-radius: 12px;
  border-bottom: 0;
}

.drop a:hover,
.drop a:focus-visible {
  background: rgba(92, 198, 176, .2);
  color: #ffffff;
}

/* ---------- 首屏拼贴 ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 82px;
  min-height: 45vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: var(--teal);
  clip-path: polygon(0 64%, 100% 6%, 100% 100%, 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  height: 4px;
  background: var(--clay);
  opacity: .8;
}

.collage {
  position: relative;
  min-height: 300px;
}

.frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  background: var(--sand);
  border: 2px solid var(--ink);
  box-shadow: 7px 9px 0 rgba(23, 38, 35, .16);
}

.frame--a {
  width: 64%;
  border-radius: 28px 8px 28px 8px;
  transform: rotate(-2.2deg);
}

.frame--b {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 58%;
  border-radius: 8px 28px 8px 28px;
  transform: rotate(2.6deg);
  box-shadow: 0 18px 36px rgba(23, 38, 35, .24);
}

.frame .shot {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.frame figcaption {
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: .14em;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
}

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

.eyebrow {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12.5px;
  letter-spacing: .2em;
  color: #0f1c19;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 3px 12px 3px 12px;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(29px, 4.6vw, 50px);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.hero-lead {
  font-size: 17px;
  color: #26382f;
  margin: 0 0 14px;
}

.hero-jump {
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 3px solid var(--clay);
}

.hero-jump:hover { border-bottom-color: var(--ink); }

/* ---------- 正文区 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 72px;
}

.stage {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 86px;
  padding-right: 18px;
  border-right: 2px solid var(--line-2);
}

.rail small {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--olive);
}

.rail h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.32;
}

.rail-list {
  list-style: none;
  counter-reset: rail;
  margin: 0 0 14px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail-list li {
  counter-increment: rail;
  border-bottom: 1px solid var(--line);
}

.rail-list a {
  display: block;
  padding: 10px 4px;
  font-size: 16px;
  text-decoration: none;
}

.rail-list a::before {
  content: "0" counter(rail) " ";
  font-size: 13px;
  color: var(--clay);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(92, 198, 176, .18);
  color: #0a5f52;
}

.rail-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a5b55;
}

.doc { min-width: 0; }

.doc article[id] {
  scroll-margin-top: 96px;
  padding: 24px 0 12px;
  border-top: 2px solid var(--line-2);
}

.doc article[id]:first-child {
  padding-top: 0;
  border-top: 0;
}

.doc small {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--olive);
}

.doc h2 {
  margin: 22px 0 12px;
  padding-left: 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  border-left: 8px solid var(--teal);
}

.doc h3 {
  margin: 20px 0 8px;
  font-size: 19px;
  line-height: 1.4;
  color: #20403a;
}

.doc ul,
.doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }

.doc a {
  color: #0a5f52;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc a:hover { color: #08302a; }

.doc strong {
  background: linear-gradient(transparent 62%, rgba(92, 198, 176, .6) 62%);
}

.doc blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--paper-2);
  border-left: 6px solid var(--clay);
  border-radius: 0 20px 20px 0;
}

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

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

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

.doc th { background: var(--paper-2); }

.doc hr {
  border: 0;
  height: 2px;
  margin: 22px 0;
  background: var(--line-2);
}

/* ---------- 页脚 ---------- */
.foot {
  padding: 42px 20px 26px;
  color: #e9e3d5;
  background: var(--ink);
  border-top: 6px solid var(--clay);
}

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

.foot-cta {
  margin-bottom: 34px;
  padding: 22px;
  background: rgba(92, 198, 176, .12);
  border: 2px solid rgba(212, 196, 168, .42);
  border-radius: 28px 10px 28px 10px;
}

.foot-cta small {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--teal);
}

.foot-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.32;
}

.foot-cta p { margin: 0 0 14px; color: #cfc7b6; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #0d1a17;
  text-decoration: none;
  background: var(--teal);
  border-radius: 18px 5px 18px 5px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}

.btn:hover { background: #7bd8c4; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 196, 168, .28);
}

.foot-cols h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--teal);
}

.foot-cols p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #c9c1b0;
}

.foot-cols address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: #e9e3d5;
  word-break: break-all;
}

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

.foot-cols li a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  color: #e9e3d5;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-cols li a:hover,
.foot-cols li a:focus-visible { border-bottom-color: var(--teal); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}

.foot-base p {
  margin: 0;
  font-size: 14px;
  color: #b8b0a0;
}

.foot-base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-base a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 15px;
  color: #e9e3d5;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-base a:hover { border-bottom-color: var(--teal); }

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

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

.js .stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:nth-child(2) { transition-delay: .05s; }
.js .stagger.is-in > *:nth-child(3) { transition-delay: .1s; }
.js .stagger.is-in > *:nth-child(4) { transition-delay: .15s; }
.js .stagger.is-in > *:nth-child(5) { transition-delay: .2s; }
.js .stagger.is-in > *:nth-child(6) { transition-delay: .25s; }
.js .stagger.is-in > *:nth-child(7) { transition-delay: .3s; }

/* ---------- 响应式 ---------- */
@media (min-width: 901px) {
  .masthead {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

@media (max-width: 900px) {
  .masthead { position: static; }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 14px;
  }

  .brand {
    order: 1;
    margin-right: auto;
    padding-left: 0;
    text-align: left;
  }

  .cta { order: 2; padding: 9px 14px; box-shadow: 2px 2px 0 var(--ink); }

  .nav-l {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-l--a { order: 3; }
  .nav-l--b { order: 4; }

  .nav-l a { padding: 9px 7px; }

  .drop {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 10px;
    background: transparent;
    box-shadow: none;
    border-left: 2px solid var(--line);
  }

  .drop a { color: var(--ink); padding: 9px 8px; }
  .drop a:hover { background: rgba(92, 198, 176, .18); color: #0a5f52; }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    padding: 22px 16px 70px;
  }

  .hero-copy { order: 1; text-align: left; }
  .collage { order: 2; width: 100%; min-height: 210px; }

  .frame .shot { height: 138px; }

  .wrap { padding: 22px 16px 56px; }

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

  .rail {
    position: static;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 2px solid var(--line-2);
  }

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

  .doc article[id] { scroll-margin-top: 18px; }

  .foot { padding: 34px 16px 22px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  .frame--a { width: 70%; }
  .frame--b { width: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta { transition: none; }
}

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