@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink: #26171a;
  --ink-deep: #1b1012;
  --ink-well: #150d0f;
  --paper: #f7eef1;
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --line: rgba(235, 135, 156, .34);
  --line-soft: rgba(235, 135, 156, .16);
  --muted: rgba(247, 238, 241, .64);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 26px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 104px;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

a { color: var(--pink-soft); }

:focus-visible {
  outline: 3px solid var(--pink-soft);
  outline-offset: 3px;
}

img { max-width: 100%; }

/* ---------- 顶部大图 ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 28px 96px;
  overflow: hidden;
  background: var(--ink-well);
  border-bottom: 1px solid var(--pink);
  isolation: isolate;
}

.hero-fig {
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.06);
}

.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(21, 13, 15, .95) 0%, rgba(21, 13, 15, .8) 46%, rgba(21, 13, 15, .34) 100%),
    radial-gradient(circle at 88% 12%, rgba(235, 135, 156, .18), transparent 58%);
}

.hero-copy {
  position: relative;
  max-width: 780px;
  text-align: left;
}

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--pink-soft);
  border: 1px solid var(--pink);
  background: rgba(235, 135, 156, .1);
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { border-color: rgba(235, 135, 156, .55); }
  50% { border-color: var(--pink-soft); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 4.1rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0;
  max-width: 48ch;
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(247, 238, 241, .84);
  border-left: 2px solid var(--pink);
  padding-left: 16px;
}

/* ---------- 主体骨架 ---------- */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 56px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: start;
}

.prose { min-width: 0; }

.prose article {
  padding: 62px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 26px;
}

.prose article:nth-of-type(even) { background: rgba(235, 135, 156, .022); }

.prose article:last-child { border-bottom: 0; }

.prose h2 {
  margin: 0 0 .75em;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -.01em;
}

.prose h3 {
  margin: 1.7em 0 .6em;
  font-size: clamp(1.14rem, 2.4vw, 1.35rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--pink-soft);
}

.prose h2 > span,
.prose h3 > span {
  position: relative;
  display: inline-block;
  padding-left: 17px;
}

.prose h2 > span::before,
.prose h3 > span::before {
  content: '';
  position: absolute;
  left: 0;
  top: .26em;
  bottom: .16em;
  width: 5px;
  background: var(--pink);
}

.prose p { margin: 0 0 1.15em; max-width: 68ch; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; max-width: 66ch; }

.prose li { margin: .4em 0; }

.prose a {
  color: var(--pink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 182, 193, .45);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.prose a:hover { color: #fff; text-decoration-color: var(--pink); }

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  background: var(--ink);
  color: rgba(247, 238, 241, .9);
  font-weight: 300;
}

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

.prose figure {
  margin: 1.6em 0;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 10px;
}

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

.prose figcaption {
  font-size: .84rem;
  color: var(--muted);
  padding-top: 9px;
  letter-spacing: .04em;
}

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

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

.prose th { background: var(--ink); color: var(--pink-soft); font-weight: 600; }

.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2em 0; }

.prose code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .9em;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 26px;
  margin-top: 62px;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 20px 18px 8px;
}

.rail-t {
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--pink);
}

.rail-t > span { border-bottom: 1px solid var(--line); padding-bottom: 6px; display: inline-block; }

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

.rail-l a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 0;
  font-size: .93rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s ease, padding-left .2s ease;
}

.rail-l li:last-child a { border-bottom: 0; }

.rail-l a:hover { color: var(--pink-soft); padding-left: 6px; }

/* ---------- 全屏菜单 ---------- */
.ov {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 140px;
  overflow-y: auto;
  background: var(--ink-well);
  border-bottom: 1px solid var(--pink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}

.ov.on { visibility: visible; opacity: 1; transform: none; }

.ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ov-t {
  margin: 0;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--pink);
}

.ov-x, .dock-btn {
  background: transparent;
  color: var(--pink-soft);
  border: 1px solid var(--line);
  font: inherit;
  font-size: .9rem;
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ov-x:hover, .dock-btn:hover { background: rgba(235, 135, 156, .14); color: #fff; border-color: var(--pink); }

.ov-find {
  display: flex;
  gap: 0;
  margin: 26px 0 22px;
  max-width: 520px;
}

.ov-find input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-right: 0;
  color: var(--paper);
  font: inherit;
  font-size: .96rem;
}

.ov-find input::placeholder { color: var(--muted); }

.ov-find button {
  min-height: 46px;
  padding: 10px 18px;
  background: var(--pink);
  color: var(--ink);
  border: 1px solid var(--pink);
  font: inherit;
  font-weight: 600;
  font-size: .94rem;
  cursor: pointer;
  transition: background .2s ease;
}

.ov-find button:hover { background: var(--pink-soft); }

.ov nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  counter-reset: m;
}

.ov nav li { counter-increment: m; }

.ov nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.ov nav a::before {
  content: counter(m, decimal-leading-zero);
  color: var(--pink);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .12em;
  margin-right: 16px;
}

.ov nav a:hover { color: var(--pink-soft); padding-left: 10px; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "brand nav"
    "sub   nav"
    "c     b";
  gap: 20px 48px;
  max-width: 1160px;
  margin: 72px auto 0;
  padding: 44px 28px 30px;
  border-top: 1px solid var(--pink);
  background: var(--ink-well);
}

.foot-brand {
  grid-area: brand;
  margin: 0;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--pink-soft);
}

.foot-sub {
  grid-area: sub;
  display: flex;
  margin: 0;
  max-width: 400px;
}

.foot-sub input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-right: 0;
  color: var(--paper);
  font: inherit;
  font-size: .94rem;
}

.foot-sub input::placeholder { color: var(--muted); }

.foot-sub button {
  min-height: 46px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink-soft);
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.foot-sub button:hover { background: var(--pink); color: var(--ink); }

.foot-nav {
  grid-area: nav;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px 24px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

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

.foot-c, .foot-b {
  display: block;
  font-size: .79rem;
  color: var(--muted);
  letter-spacing: .05em;
}

.foot-c { grid-area: c; }
.foot-b { grid-area: b; justify-self: end; text-align: right; }

.foot-b a { color: var(--muted); text-decoration: none; padding: 0 2px; }
.foot-b a:hover { color: var(--pink-soft); }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(21, 13, 15, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pink);
}

.dock-g { display: flex; gap: 4px; }

.dock-g:not(.dock-l) { justify-content: flex-end; }

.dock-g a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.dock-g a:hover { color: var(--pink-soft); border-color: var(--line); }

.dock-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--pink);
  color: var(--pink-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.dock-brand:hover { background: var(--pink); color: var(--ink); }

.dock-r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rail {
    position: static;
    margin: 8px 0 48px;
  }
  .hero { min-height: 68vh; }
}

@media (max-width: 820px) {
  .dock-g { display: none; }
  .dock-r { gap: 8px; }
  .hero { padding: 108px 20px 92px; }
  .spread { padding: 0 20px; }
  .prose article { padding: 48px 0; }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "sub" "nav" "c" "b";
    padding: 36px 20px 26px;
  }
  .foot-b { justify-self: start; text-align: left; }
  .foot-nav { gap: 6px 20px; }
  .ov { padding: 22px 20px 130px; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .dock { padding: 9px 12px; }
  .dock-brand { padding: 8px 12px; font-size: .94rem; letter-spacing: .06em; }
  .dock-btn { padding: 10px 11px; }
}

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

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