:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --paper: #edf3f9;
  --brass: #a8825c;
  --line: rgba(23, 31, 38, 0.09);
  --serif: 'Cormorant Garamond', 'Crimson Pro', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Crimson Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --up: -6px -6px 14px rgba(255, 255, 255, 0.95);
  --down: 7px 7px 18px rgba(23, 31, 38, 0.13);
  --in: inset 3px 3px 8px rgba(23, 31, 38, 0.12), inset -3px -3px 8px rgba(255, 255, 255, 0.95);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(200, 224, 244, 0.9), transparent 44%),
    radial-gradient(circle at 88% 16%, rgba(245, 224, 232, 0.92), transparent 48%),
    radial-gradient(circle at 50% 92%, rgba(200, 224, 244, 0.7), transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

a {
  color: #2f6086;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(240, 246, 252, 0.95), rgba(246, 239, 244, 0.88));
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(23, 31, 38, 0.07);
}

.nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 20px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 14px;
  text-decoration: none;
}

.brand-orb {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: #35506a;
  background: linear-gradient(145deg, #dcecf9, #f7e6ee);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.95), 3px 3px 8px rgba(23, 31, 38, 0.14);
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
}

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

.nav-side--r {
  justify-self: end;
  margin-right: 146px;
}

.nav-side a {
  display: inline-block;
  padding: 11px 10px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.nav-side a:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--in);
}

.nav-acts {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.call {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  background: linear-gradient(145deg, #fdf6f9, #f0dbe5);
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.95), 4px 4px 12px rgba(23, 31, 38, 0.12);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.call:hover {
  box-shadow: var(--in);
  transform: translateY(1px);
}

.burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 4px;
  background: linear-gradient(145deg, #f8fbfe, #e5edf7);
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.95), 4px 4px 12px rgba(23, 31, 38, 0.14);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #3a5266;
}

.burger:hover,
.burger[aria-expanded='true'] {
  box-shadow: var(--in);
  transform: scale(0.96);
}

/* ---------- 全屏菜单 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 80px 26px 40px;
  overflow-y: auto;
  background: linear-gradient(160deg, #eef5fb, #f9eff4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .sheet {
  opacity: 1;
  visibility: visible;
}

.sheet a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.24rem;
  letter-spacing: 0.06em;
}

.sheet a:active {
  box-shadow: var(--in);
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 11px 17px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #35506a;
  cursor: pointer;
  background: linear-gradient(145deg, #f9fcff, #e5edf7);
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.95), 4px 4px 12px rgba(23, 31, 38, 0.14);
}

.sheet-close:active {
  box-shadow: var(--in);
}

/* ---------- 主区 ---------- */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 24px 30px;
  align-items: start;
}

.stage > article {
  grid-column: 1;
}

.stage article[id] {
  scroll-margin-top: 88px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 26px;
  align-items: center;
  min-height: 45vh;
  padding: 26px 28px 54px;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(200, 224, 244, 0.62), rgba(245, 224, 232, 0.68));
  box-shadow: var(--down);
}

.hero::after {
  content: '';
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -92px;
  height: 150px;
  border-radius: 50%;
  background: var(--paper);
  z-index: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}

.hero-copy h1 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.hero-sub {
  margin: 0 0 1.4em;
  color: rgba(23, 31, 38, 0.75);
  font-size: 1rem;
}

.hero-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.1em;
  background: linear-gradient(145deg, #fdf7fa, #efd9e4);
  box-shadow: -5px -5px 12px rgba(255, 255, 255, 0.95), 5px 5px 14px rgba(23, 31, 38, 0.13);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.hero-cta:hover {
  box-shadow: var(--in);
  transform: translateY(1px);
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--blue), var(--pink));
  box-shadow: -5px -5px 14px rgba(255, 255, 255, 0.9), 6px 6px 18px rgba(23, 31, 38, 0.16);
}

.hero-art .plate {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(200, 224, 244, 0.92), rgba(245, 224, 232, 0.92));
}

.hero-art .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-art .slide.on {
  opacity: 1;
}

.hero-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(23, 31, 38, 0.12);
}

/* ---------- 正文面板 ---------- */
.stage > article:not(.hero) {
  padding: 24px 24px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--down);
}

.stage h2 {
  margin: 0 0 0.7em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.42rem, 2.9vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: 0.03em;
}

.stage h2 > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brass);
}

.stage h3 {
  margin: 1.5em 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
}

.stage h3 > span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(168, 130, 92, 0.6);
}

.stage p {
  margin: 0 0 1.05em;
  color: rgba(23, 31, 38, 0.87);
}

.stage :is(ul, ol) {
  padding-left: 1.25em;
}

.stage li {
  margin: 0.35em 0;
}

.stage a {
  color: #2f6086;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168, 130, 92, 0.65);
}

.stage blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(245, 224, 232, 0.62);
  box-shadow: var(--in);
}

.stage figure {
  margin: 1.2em 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--down);
}

.stage figure img {
  border-radius: 4px;
}

.stage :is(table, pre) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.stage code,
.stage pre {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.94rem;
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 2;
  grid-row: 2 / -1;
  align-self: start;
  position: sticky;
  top: 88px;
  padding: 18px 16px 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, #f9fcff, #e8f1fa);
  box-shadow: var(--up), var(--down);
}

.rail h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.rail h2 > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--brass);
}

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

.rail li + li {
  margin-top: 2px;
}

.rail a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 0.96rem;
  text-decoration: none;
  color: rgba(23, 31, 38, 0.82);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.rail a:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--in);
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 22px 46px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px 18px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
}

.foot-mark {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.foot-l a,
.foot-r a {
  display: block;
  padding: 9px 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(23, 31, 38, 0.78);
}

.foot-l a:hover,
.foot-r a:hover {
  color: #2f6086;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-copy {
  align-self: end;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: rgba(23, 31, 38, 0.62);
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

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

  .hero-art .slide {
    transition: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
  }

  .nav-side {
    display: none;
  }

  .nav-acts {
    position: static;
    transform: none;
  }

  .brand {
    position: static;
    transform: none;
  }
}

@media (max-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 44px;
  }

  .stage > article {
    grid-column: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 18px 46px;
  }

  .hero-art {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .hero::after {
    bottom: -84px;
    height: 132px;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

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

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .stage > article:not(.hero) {
    padding: 20px 18px 24px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    padding: 26px 18px 38px;
  }

  .foot-mark {
    grid-column: 1 / -1;
  }

  .foot-copy {
    grid-column: 1 / -1;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }
}

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