:root {
  --rose: #eb879c;
  --rose-soft: #ffb6c1;
  --rose-deep: #ab4a61;
  --ink: #26171a;
  --ink-2: rgba(38, 23, 26, 0.68);
  --bg: #fdf6f8;
  --paper: #ffffff;
  --line: rgba(38, 23, 26, 0.09);
  --r: 18px;
  --sh-1: 0 2px 4px rgba(38, 23, 26, 0.05), 0 10px 26px -12px rgba(171, 74, 97, 0.32);
  --sh-2: 0 4px 8px rgba(38, 23, 26, 0.05), 0 26px 54px -24px rgba(171, 74, 97, 0.45);
  --ff: "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --fd: "Cormorant", "Songti SC", "Times New Roman", serif;
  --dock-ad: 96px;
}

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

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

body {
  margin: 0;
  padding-bottom: var(--dock-ad);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { display: block; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- 顶部主视觉 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  min-height: 70vh;
  padding: clamp(3.5rem, 12vh, 7rem) clamp(1rem, 5vw, 3.5rem) clamp(5rem, 15vh, 9rem);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
  background:
    radial-gradient(120% 90% at 88% 6%, #ffffff 0%, #fdeef2 42%, #ffe1e8 100%);
}

.hero-figure {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  background:
    radial-gradient(60% 60% at 22% 78%, rgba(255, 182, 193, 0.55), transparent 70%),
    radial-gradient(48% 48% at 78% 24%, rgba(235, 135, 156, 0.28), transparent 72%);
}

.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ghost {
  position: absolute;
  right: -0.1em;
  bottom: 12%;
  z-index: -1;
  font-family: var(--fd);
  font-size: clamp(3.2rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(38, 23, 26, 0.09);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: clamp(1.1rem, 3vw, 2.3rem);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 0 0 0.6em;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: 0.005em;
  font-weight: 700;
}

.hero-lede {
  margin: 0 0 1.4em;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-soft));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

/* ---------- 版面骨架 ---------- */
.stage {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2.4rem);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.8rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4.5rem);
}

.rail {
  position: sticky;
  top: 1.4rem;
  align-self: start;
  padding: 1.05rem 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

.rail-title {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.rail-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.rail-list a:hover,
.rail-list a.is-active {
  background: #fdeef2;
  color: var(--rose-deep);
  transform: translateX(2px);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 12px;
}

.rail-top:hover { background: #fdeef2; color: var(--rose-deep); }

/* ---------- 正文 ---------- */
.prose { min-width: 0; }

.prose > section {
  margin: 0 0 clamp(1rem, 2.4vw, 1.7rem);
  padding: clamp(1.1rem, 2.8vw, 2.3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: 120px;
}

.prose > section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff, #fdf3f5);
}

.prose h2 {
  margin: 0 0 0.7em;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
}

.prose small,
.eyebrow {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--rose-deep);
}

.prose ul,
.prose ol { margin: 0 0 1.1em; }

.prose li { margin-bottom: 0.45em; }

.prose figure {
  margin: 1.3rem 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.prose figure img { width: 100%; height: auto; }

.prose figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  background: #fdf3f5;
}

.prose aside {
  margin: 1.3rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--rose-soft);
  border-radius: 0 14px 14px 0;
  background: #fdf1f4;
}

.prose blockquote {
  margin: 1.3rem 0;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: #fdf1f4;
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1em;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem clamp(0.7rem, 2.4vw, 1.4rem) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 34px -20px rgba(38, 23, 26, 0.4);
}

.dock-side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dock-side--end { margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(38, 23, 26, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.pill:hover,
.pill.is-active {
  transform: translateY(-2px);
  background: #fdeef2;
  color: var(--rose-deep);
  box-shadow: var(--sh-1);
}

.pill--primary {
  background: var(--rose);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.pill--primary:hover,
.pill--primary.is-active {
  background: var(--rose-deep);
  color: #fff;
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  margin-inline: auto;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dock-mark { font-size: 1.1rem; }

.dock-name { font-size: 1rem; }

/* ---------- 页脚 ---------- */
.foot {
  background: linear-gradient(180deg, #332025, #26171a);
  color: #f8e9ec;
  padding-bottom: 1.2rem;
}

.foot a { color: #ffd9e0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

.foot .eyebrow { color: var(--rose-soft); }

.foot-cta {
  max-width: 1080px;
  margin: clamp(1.6rem, 4vw, 2.6rem) auto 0;
  width: calc(100% - 2rem);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  border-radius: var(--r);
  border: 1px solid rgba(255, 182, 193, 0.35);
  background: linear-gradient(135deg, rgba(235, 135, 156, 0.3), rgba(255, 182, 193, 0.1));
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

.foot-h {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.4;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #26171a !important;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.foot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
  text-decoration: none !important;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
  max-width: 1080px;
  margin: 0 auto;
  width: calc(100% - 2rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.foot-mark { font-size: 1.2rem; }

.foot-name { font-size: 1.05rem; }

.foot-nav dl { margin: 0; }

.foot-nav dt {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--rose-soft);
}

.foot-nav dd {
  margin: 0;
  display: inline-block;
  width: 50%;
  vertical-align: top;
}

.foot-nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.9rem 0.2rem 0;
  font-size: 0.98rem;
}

.foot-jump { display: flex; justify-content: flex-end; align-items: flex-start; }

.foot-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 182, 193, 0.4);
  font-size: 0.95rem;
}

.foot-base {
  text-align: center;
  padding-top: 1.1rem;
}

.foot-base p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(248, 233, 236, 0.72);
}

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

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail-list { flex-direction: row; flex-wrap: wrap; }
  .rail-list a { padding: 0.3rem 0.8rem; background: #fdf1f4; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-jump { justify-content: flex-start; }
  .foot-nav dd { width: 33.33%; }
}

@media (max-width: 860px) {
  :root { --dock-ad: 178px; }
  .dock {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom));
  }
  .dock-brand {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
    margin: 0 0 0.15rem;
  }
  .dock-side {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dock-side--end { margin-left: 0; }
  .pill { padding: 0.4rem 0.75rem; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero {
    align-items: flex-end;
    min-height: 66vh;
    padding: 3rem 1rem 4.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
  .hero-copy { max-width: 100%; }
  .hero-ghost { bottom: 8%; opacity: 0.85; }
  .foot-nav dd { width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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