@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --brand: #eb879c;
  --brand-2: #ffb6c1;
  --ink: #26171a;
  --ink-soft: #5f474c;
  --paper: #fff6f8;
  --card: #fffdfe;
  --line: #f2dae1;
  --deep: #b0405a;
  --r: 18px;
  --head: 96px;
  --sh-1: 0 1px 2px rgba(38, 23, 26, .05), 0 8px 18px -12px rgba(38, 23, 26, .22);
  --sh-2: 0 2px 4px rgba(38, 23, 26, .05), 0 22px 44px -22px rgba(38, 23, 26, .32);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(760px 420px at 88% -6%, #ffe4ea 0%, rgba(255, 228, 234, 0) 70%),
    radial-gradient(620px 380px at 4% 108%, #ffeef2 0%, rgba(255, 238, 242, 0) 72%);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .002em;
}

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

a { color: var(--deep); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- 顶部 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 248, .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px -24px rgba(38, 23, 26, .8);
}

.bar-note {
  margin: 0;
  padding: 7px clamp(14px, 4vw, 26px);
  background: linear-gradient(92deg, var(--brand), var(--brand-2) 78%);
  color: #3b1521;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px clamp(14px, 4vw, 26px) 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 44px;
  padding-right: 6px;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 15px;
  height: 15px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 3px 8px rgba(235, 135, 156, .55);
  transform: rotate(-12deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .012em;
  white-space: nowrap;
}

.nav {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.nav p {
  display: flex;
  gap: 3px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--card);
  color: var(--deep);
  box-shadow: var(--sh-1);
}

/* ---------- 首屏 ---------- */
.stage {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  grid-template-areas: 'fig txt';
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  max-width: 1240px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 56px) clamp(16px, 4.5vw, 44px) clamp(66px, 8vw, 104px);
}

.stage-text {
  grid-area: txt;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  text-align: right;
}

.stage-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
  color: var(--ink);
}

.cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease;
}

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

.stage-figure {
  grid-area: fig;
  margin: 0;
  align-self: stretch;
  min-height: min(58vh, 520px);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(150deg, #ffd6e0, #ffeef3 58%, #fffdfe);
  box-shadow: var(--sh-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 62px));
}

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

.stage-figure.is-blank {
  background-image:
    radial-gradient(320px 240px at 30% 24%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(150deg, #ffc9d6, #ffe7ee 62%, #fffdfe);
}

/* ---------- 正文区 ---------- */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) clamp(48px, 7vw, 86px);
}

.rail {
  position: sticky;
  top: calc(var(--head) + 16px);
  align-self: start;
  padding: 18px 15px 14px;
  border: 1px solid #fff;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.rail-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--deep);
}

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

.rail-list {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 12px;
  border-left: 3px solid transparent;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: #fff3f6;
  border-left-color: var(--brand);
  color: var(--deep);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 8px 14px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #3b1521;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.prose {
  min-width: 0;
  padding: clamp(20px, 3.2vw, 42px);
  border: 1px solid #fff;
  border-radius: calc(var(--r) + 8px);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.prose div { scroll-margin-top: calc(var(--head) + 16px); }

.prose > div + div {
  margin-top: clamp(28px, 4vw, 54px);
  padding-top: clamp(28px, 4vw, 54px);
  border-top: 1px dashed var(--line);
}

.prose h2 {
  margin: 0 0 .6em;
  font-size: clamp(1.34rem, 2.5vw, 1.86rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--ink);
}

.prose h2 > span {
  display: inline-block;
  padding-bottom: .16em;
  border-bottom: 3px solid var(--brand-2);
}

.prose h3 {
  margin: 1.7em 0 .55em;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.prose h3 > span {
  display: inline-block;
  padding-left: .55em;
  border-left: 4px solid var(--brand);
}

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

.prose a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.2em; }
.prose li { margin: .32em 0; }
.prose li::marker { color: var(--brand); }

.prose figure {
  margin: 1.6em 0;
  padding: 12px;
  border-radius: var(--r);
  background: linear-gradient(160deg, #fff, #fff1f4);
  box-shadow: var(--sh-1);
}

.prose figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.prose aside {
  margin: 1.6em 0;
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 5px solid var(--brand);
  background: #fff5f7;
  font-size: 16px;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff3f6;
  color: var(--ink-soft);
}

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

.prose table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #fff2f5;
  font-weight: 700;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff1f4;
  font-size: .93em;
}

.prose img { border-radius: 12px; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(16px, 3vw, 34px);
  padding: clamp(32px, 5vw, 58px) clamp(16px, 4vw, 32px) 18px;
  border-radius: 34px 34px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff1f5, #ffe2e9);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}

.foot-addr {
  display: grid;
  gap: 10px;
  max-width: 40ch;
  font-style: normal;
}

.foot-addr strong { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.foot-desc { font-size: 15px; line-height: 1.72; color: var(--ink-soft); }

.foot-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--deep);
}

.foot-title span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--brand);
}

.foot-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease;
}

.foot-links a:hover,
.foot-links a:focus-visible { background: #fff; color: var(--deep); }

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(38, 23, 26, .12);
  font-size: 14px;
  color: var(--ink-soft);
}

.foot-bar p { margin: 0; }

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-bar a:hover { color: var(--deep); }

/* ---------- 滚动浮现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .28s ease, transform .28s ease;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas: 'txt' 'fig';
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 62px;
  }

  .stage-text { align-items: flex-end; }

  .stage-figure { min-height: min(46vh, 350px); }

  .shell { grid-template-columns: 1fr; }

  .rail {
    position: static;
    padding: 14px 12px;
  }

  .rail-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .rail-list::-webkit-scrollbar { display: none; }

  .rail-list a {
    flex: 0 0 auto;
    min-height: 40px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .rail-list a:hover,
  .rail-list a:focus-visible { border-left-color: transparent; border-bottom-color: var(--brand); }

  .rail-top { width: auto; margin-top: 10px; }

  .foot-grid { grid-template-columns: 1fr; }
}

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

  .bar-row { gap: 6px; }

  .brand-name { font-size: 17px; }

  .nav a { padding: 9px 11px; font-size: 15px; }

  .stage-title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }

  .stage-figure { min-height: 44vh; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 42px)); }

  .prose { border-radius: var(--r); }

  .foot-links ul { grid-template-columns: 1fr 1fr; }

  .foot-bar { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cue:hover { transform: none; }
}

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