@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --bg: #e9f1f9;
  --bg2: #f9eff4;
  --ink: #171f26;
  --ink-soft: #3d4b56;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --glass: rgba(255, 255, 255, 0.6);
  --lift: 10px 10px 26px rgba(23, 31, 38, 0.13), -10px -10px 26px rgba(255, 255, 255, 0.9);
  --lift-sm: 5px 5px 14px rgba(23, 31, 38, 0.12), -5px -5px 14px rgba(255, 255, 255, 0.92);
  --sink: inset 3px 3px 8px rgba(23, 31, 38, 0.13), inset -3px -3px 8px rgba(255, 255, 255, 0.95);
}

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

body {
  margin: 0;
  padding: 0 0 120px;
  min-height: 100vh;
  font-family: 'Crimson Pro', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink);
  background: linear-gradient(155deg, var(--bg) 0%, #eff4fa 45%, var(--bg2) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 31, 38, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.42;
}

header,
main,
footer { position: relative; z-index: 1; }

h1,
h2,
h3,
h4,
.brand-text,
.dock-cta {
  font-family: 'Cormorant Garamond', 'Songti SC', Georgia, serif;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #1d3c52;
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(247, 250, 253, 0.9);
  backdrop-filter: blur(16px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 30px rgba(23, 31, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 4px;
  font-size: 1.06rem;
  white-space: nowrap;
}

.dock-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--lift-sm);
}

.dock-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dock-nav::-webkit-scrollbar { display: none; }

.dock-nav p {
  display: flex;
  gap: 6px;
  margin: 0;
}

.dock-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 1rem;
  white-space: nowrap;
  transition: box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.dock-nav a::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8e8f7, #b7d4ee);
  box-shadow: var(--lift-sm);
  transition: background 200ms ease;
}

.dock-nav a:hover {
  box-shadow: var(--lift-sm);
  transform: translateY(-1px);
}

.dock-nav a:hover::before,
.dock-nav a.on::before {
  background: linear-gradient(145deg, #fbe7ef, #eccbd9);
}

.dock-nav a.on {
  box-shadow: var(--sink);
  color: #0d1f2c;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbe7ef, #eed2de);
  box-shadow: var(--lift-sm);
  font-size: 1rem;
  white-space: nowrap;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.dock-cta:active {
  box-shadow: var(--sink);
  transform: scale(0.97);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding: 88px 20px 68px;
  overflow: hidden;
}

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

.hero-media {
  width: 100%;
  height: 118%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(233, 241, 249, 0.96), rgba(233, 241, 249, 0.76) 46%, rgba(249, 239, 244, 0.34));
}

.hero-copy {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  box-shadow: var(--lift);
}

.hero-copy h1 {
  margin: 0 0 0.35em;
  font-size: clamp(2.05rem, 5.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-desc {
  max-width: 44ch;
  margin: 0 0 1.1em;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f8fc, #e2ecf6);
  box-shadow: var(--lift-sm);
  font-size: 1rem;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.hero-jump a:hover {
  box-shadow: var(--sink);
  transform: translateY(1px);
}

/* ---------- 正文与侧栏 ---------- */
.stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 34px;
  align-items: start;
}

.flow > section {
  margin: 0 0 26px;
  padding: 30px 28px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--lift);
  scroll-margin-top: 26px;
}

.flow > section:last-child { margin-bottom: 0; }

.flow h2 {
  margin: 0 0 0.7em;
  font-size: 1.75rem;
}

.flow h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 0.18em;
}

.flow h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
}

.flow h3 {
  margin: 1.45em 0 0.5em;
  font-size: 1.3rem;
}

.flow h3 > span {
  display: inline-block;
  border-bottom: 2px solid rgba(200, 224, 244, 0.9);
  padding-bottom: 2px;
}

.flow p { margin: 0 0 1.05em; }

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

.flow ul,
.flow ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.flow li { margin: 0.35em 0; }

.flow a {
  border-bottom: 1px solid rgba(29, 60, 82, 0.42);
  transition: border-color 150ms ease, color 150ms ease;
}

.flow a:hover { border-color: var(--ink); color: #0d1f2c; }

.flow figure {
  margin: 1.4em 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lift-sm);
}

.flow img { display: block; height: auto; }

.flow blockquote {
  margin: 1.3em 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(245, 224, 232, 0.55);
  box-shadow: var(--sink);
}

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

.rail {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
}

.rail-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--lift);
}

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

.rail-title > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--pink);
}

.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.rail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f8fc, #e3edf6);
  box-shadow: var(--lift-sm);
  font-size: 1rem;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.rail-links a:hover {
  box-shadow: var(--sink);
  transform: translateY(1px);
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 48px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 8px 22px;
  align-items: center;
  font-size: 1rem;
  color: var(--ink-soft);
}

.foot p { margin: 0; }

.foot-brand {
  font-family: 'Cormorant Garamond', 'Songti SC', Georgia, serif;
  font-size: 1.08rem;
  color: var(--ink);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--ink-soft);
}

.foot-links a:hover { color: var(--ink); }

.foot-copy {
  justify-self: end;
  text-align: right;
  color: var(--ink-soft);
}

/* ---------- 断点 ---------- */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 30px;
  }

  .rail {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 158px;
    font-size: 17px;
  }

  .dock {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'brand cta'
      'nav nav';
    row-gap: 6px;
    padding: 8px 12px 10px;
  }

  .dock-brand { grid-area: brand; }
  .dock-nav { grid-area: nav; }
  .dock-cta { grid-area: cta; }

  .hero {
    min-height: 70vh;
    padding: 74px 16px 56px;
  }

  .hero-copy { padding: 24px 20px; }

  .flow > section {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .flow h2 { font-size: 1.5rem; }

  .foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-bottom: 30px;
    gap: 6px 16px;
  }

  .foot-copy {
    justify-self: start;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-media { transform: none; }
}

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