:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --ink-soft: #33473c;
  --paper: #f7fffb;
  --card: #ffffff;
  --clay: 3px solid var(--ink);
  --shadow-soft: inset -2px -2px 8px rgba(173, 216, 230, 0.55), 4px 4px 8px rgba(23, 38, 32, 0.14);
  --shadow-tap: inset 2px 2px 6px rgba(23, 38, 32, 0.16), 2px 2px 0 rgba(23, 38, 32, 0.1);
  --r-lg: 24px;
  --r-md: 16px;
  --r-card: 4px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, var(--mint) 0%, rgba(180, 253, 225, 0) 44%),
    radial-gradient(circle at 88% 20%, var(--blue) 0%, rgba(173, 216, 230, 0) 48%),
    var(--paper);
  background-attachment: fixed;
}

h1, h2, h3, .brand-name, .rail-title {
  font-family: "Crimson Pro", "Noto Serif SC", Georgia, "Songti SC", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }

p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--blue);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease-out, background-color 200ms ease-out;
}

a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- 页头 ---------- */
.site-head {
  padding: 14px 20px 0;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  border: var(--clay);
  background: linear-gradient(150deg, var(--mint), var(--blue));
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.brand-mark--type {
  font-family: "Crimson Pro", serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.anchor-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 0 10px;
  background: rgba(247, 255, 251, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px dashed rgba(23, 38, 32, 0.28);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 999px;
  border: var(--clay);
  background: linear-gradient(165deg, #ffffff, var(--mint));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease-out;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: inset -2px -2px 8px rgba(173, 216, 230, 0.6), 6px 6px 6px rgba(23, 38, 32, 0.18);
}

.pill:active { transform: translateY(1px); box-shadow: var(--shadow-tap); }

/* ---------- 主容器 ---------- */
.page-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  column-gap: 36px;
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 20px 60px;
}

.page-main--inner { padding-top: 26px; }

main > section:not(.hero):not(.lead) {
  grid-column: 1;
  scroll-margin-top: 116px;
  background: var(--card);
  border: var(--clay);
  border-radius: var(--r-card);
  border-bottom-width: 9px;
  border-bottom-color: var(--blue);
  box-shadow: inset -2px -2px 8px rgba(173, 216, 230, 0.5), 5px 5px 0 rgba(23, 38, 32, 0.1);
  padding: 24px 22px 28px;
  margin-bottom: 26px;
}

main > section:not(.hero):not(.lead):nth-of-type(even) { border-bottom-color: var(--mint); }

main > section > :first-child { margin-top: 0; }
main > section > :last-child { margin-bottom: 0; }

main > section ul,
main > section ol { padding-left: 1.35em; }
main > section li { margin-bottom: 0.4em; }

main > section figure { margin: 18px 0; }
main > section figure img { border-radius: var(--r-card); border: var(--clay); }

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100svh;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  display: block;
}

.hero-blob {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 28% 26%, var(--mint) 0%, rgba(180, 253, 225, 0) 58%),
    radial-gradient(circle at 74% 72%, var(--blue) 0%, rgba(173, 216, 230, 0) 60%),
    #eafbf3;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(180, 253, 225, 0.12) 0%, rgba(180, 253, 225, 0.62) 44%, rgba(173, 216, 230, 0.94) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 820px;
  padding: 0 clamp(20px, 6vw, 72px) clamp(56px, 12vh, 120px);
  text-align: right;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  border: var(--clay);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42em;
  margin-left: auto;
}

.hero-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  clip-path: polygon(0 100%, 100% 22%, 100% 100%);
  z-index: 2;
}

/* ---------- 内页导语 ---------- */
.lead {
  grid-column: 1;
  scroll-margin-top: 116px;
  padding: 22px 0 8px;
}

.lead-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  border: var(--clay);
  border-radius: 999px;
  background: var(--mint);
}

.lead-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.lead-figure {
  margin: 20px 0 26px;
  border: var(--clay);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.lead-img { display: block; width: 100%; }

.lead-blob {
  display: block;
  height: 200px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 2;
  grid-row: 2 / span 60;
  align-self: start;
  position: sticky;
  top: 96px;
}

.rail-box {
  border: var(--clay);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #ffffff 0%, #effff8 60%, #e8f6fb 100%);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
}

.eyebrow {
  display: block;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.rail-title { margin: 0 0 12px; font-size: 1.35rem; }

.rail-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 3px dashed rgba(23, 38, 32, 0.22);
}

.rail-list li { border-bottom: 3px dashed rgba(23, 38, 32, 0.12); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 1rem;
  text-decoration: none;
}

.rail-list a:hover { background: rgba(180, 253, 225, 0.5); }

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1rem;
  text-decoration: none;
  border: var(--clay);
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff, var(--blue));
  box-shadow: var(--shadow-soft);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.to-top:active { transform: translateY(2px); }

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 26px;
  max-width: var(--wrap);
  margin: 23px auto 0;
  padding: 30px 20px 26px;
  border-top: 5px solid var(--ink);
  background: linear-gradient(180deg, rgba(180, 253, 225, 0.42), rgba(173, 216, 230, 0.55));
}

.foot-col { min-width: 0; }
.foot-col--brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-brand { margin: 0; font-family: "Crimson Pro", serif; font-size: 1.1rem; letter-spacing: 0.06em; }

.foot-col--nav dl { margin: 0; }
.foot-col--nav dt {
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.foot-col--nav dd { margin: 0; }

.foot-col--nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-col--nav a:hover { border-bottom-color: var(--ink); }

.foot-key { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.1em; }

.foot-base {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 16px;
  border-top: 3px dashed rgba(23, 38, 32, 0.28);
}

.foot-base p { margin: 0; font-size: 1rem; }

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
  .pill, .to-top { transition: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 940px) {
  .page-main {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin-top: 6px;
  }

  .hero { min-height: 78svh; }
  .hero-copy { text-align: left; padding-bottom: 64px; }
  .hero-desc { margin-left: 0; }

  .site-foot { grid-template-columns: 1fr 1fr; }
  .foot-col--more { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .anchor-nav { gap: 6px; }
  .pill { padding: 8px 11px; }
  .site-foot { grid-template-columns: 1fr; }
  .foot-col--more { grid-column: auto; }
  .hero { min-height: 74svh; }
  .hero-stripe { height: 18px; }
}

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