@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --ink: #26171a;
  --ink-deep: #1b1013;
  --text: #f7ecef;
  --muted: #d6c0c7;
  --glass: rgba(255, 182, 193, 0.07);
  --glass-2: rgba(255, 182, 193, 0.12);
  --stroke: rgba(255, 182, 193, 0.22);
  --r: 28px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.32), 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  --rail: 248px;
  --pad: clamp(16px, 4vw, 52px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-left: var(--rail);
  min-height: 100vh;
  color: var(--text);
  font-family: 'Didact Gothic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(235, 135, 156, 0.2), transparent 62%),
    radial-gradient(760px 520px at 4% 108%, rgba(255, 182, 193, 0.13), transparent 64%),
    linear-gradient(168deg, var(--ink) 0%, var(--ink-deep) 62%, #150c0f 100%);
  background-attachment: fixed;
}

a {
  color: var(--pink-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

div[id],
section[id] {
  scroll-margin-top: 26px;
}

/* ---------- 左侧竖排栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 16px 26px;
  overflow-y: auto;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.13), rgba(38, 23, 26, 0.62) 42%, rgba(27, 16, 19, 0.85));
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 14px 0 44px -28px rgba(0, 0, 0, 0.9);
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 8px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--pink-soft);
  font-family: 'Poiret One', 'Didact Gothic', system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  transition: background 240ms ease, color 240ms ease;
}

.brand a:hover {
  background: var(--glass-2);
  color: #fff;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.grp {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.032);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.grp summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 18px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: background 220ms ease, color 220ms ease;
}

.grp summary::-webkit-details-marker {
  display: none;
}

.grp summary::after {
  content: '+';
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  color: var(--pink);
  transition: transform 240ms ease;
}

.grp summary:hover {
  background: var(--glass);
  color: #fff;
}

.grp[open] summary {
  color: var(--pink-soft);
}

.grp[open] summary::after {
  transform: rotate(45deg);
}

.grp-list {
  list-style: none;
  margin: 0;
  padding: 2px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grp-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.grp-list a:hover {
  background: var(--glass-2);
  color: #fff;
  transform: translateX(3px);
}

.cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #2b1418;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink) 70%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.34), 0 16px 30px -14px rgba(235, 135, 156, 0.85);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.34), 0 20px 34px -14px rgba(235, 135, 156, 0.95);
}

/* ---------- 主体 ---------- */
main {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--pad) 8px;
}

.hero {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(20px, 3.4vw, 44px);
  min-height: 45vh;
  padding: 14px 0 26px;
  isolation: isolate;
}

.hero-word {
  position: absolute;
  right: -0.06em;
  top: -0.02em;
  z-index: -1;
  font-size: clamp(66px, 12.5vw, 176px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: rgba(255, 182, 193, 0.09);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-art {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.slot {
  border-radius: var(--r);
  overflow: hidden;
  height: clamp(152px, 27vh, 232px);
  border: 1px solid var(--stroke);
  background: linear-gradient(152deg, rgba(255, 182, 193, 0.24), rgba(38, 23, 26, 0.6));
  box-shadow: var(--shadow);
}

.slot:only-child {
  grid-column: 1 / -1;
}

.slot-photo,
.slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-a {
  transform: rotate(-2deg);
}

.slot-b {
  transform: translateY(24px) rotate(2.6deg);
}

.hero-copy {
  position: relative;
  text-align: right;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- 侧栏目录 ---------- */
.side-index {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.side-index small {
  display: block;
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--pink);
}

.side-index h2 {
  margin: 6px 0 12px;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: #fff;
}

.side-index ol {
  list-style: none;
  counter-reset: idx;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-index li {
  counter-increment: idx;
}

.side-index a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease;
}

.side-index a::before {
  content: counter(idx, decimal-leading-zero);
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-right: 9px;
}

.side-index a:hover {
  background: var(--glass-2);
  color: #fff;
}

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

.prose > div {
  padding: 30px 0 22px;
  border-top: 1px solid rgba(255, 182, 193, 0.14);
}

.prose > div:first-child {
  border-top: 0;
  padding-top: 6px;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.32;
  color: #fff;
  letter-spacing: 0.01em;
}

.prose h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  color: var(--pink-soft);
}

.prose p {
  margin: 0 0 15px;
  color: #eedfe3;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.prose li {
  margin: 0 0 8px;
}

.prose strong {
  color: #fff;
}

.prose figure {
  margin: 20px 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--stroke);
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 18px 18px 0;
  background: var(--glass);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 182, 193, 0.2);
  text-align: left;
}

.prose th {
  background: var(--glass);
  color: #fff;
}

.prose aside {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 22px;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto 30px;
  padding: 20px 24px;
  border-radius: var(--r);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--muted);
  margin-inline: var(--pad);
}

.site-foot p {
  margin: 0;
}

.foot-brand {
  grid-area: 1 / 1;
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--pink-soft);
}

.foot-copy {
  grid-area: 1 / 2;
  justify-self: end;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.foot-links {
  grid-area: 2 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms ease;
}

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

/* ---------- 动效 ---------- */
.js .reveal {
  transition: opacity 280ms ease, transform 280ms ease;
}

.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .reveal:not(.in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta:hover,
  .grp-list a:hover {
    transform: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: 66px;
  }

  div[id],
  section[id] {
    scroll-margin-top: 78px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.95);
  }

  .brand a {
    min-height: 44px;
    padding: 4px 4px;
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .grp {
    position: relative;
    flex: 0 0 auto;
  }

  .grp summary {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .grp summary::after {
    font-size: 17px;
    margin-left: 6px;
  }

  .grp-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 186px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: rgba(30, 18, 21, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    z-index: 40;
  }

  .grp-list a {
    min-height: 44px;
    font-size: 16px;
  }

  .cta {
    margin-top: 0;
    margin-left: auto;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px var(--pad) 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 6px 0 18px;
  }

  .hero-art {
    order: 2;
  }

  .slot {
    height: clamp(132px, 24vh, 190px);
  }

  .slot-b {
    transform: translateY(14px) rotate(2.4deg);
  }

  .hero-copy {
    order: 1;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-word {
    font-size: clamp(58px, 20vw, 120px);
  }

  .side-index {
    position: static;
  }

  .prose {
    max-width: none;
  }

  .site-foot {
    margin-inline: var(--pad);
    padding: 18px 18px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .foot-brand {
    grid-area: 1 / 1;
  }

  .foot-copy {
    grid-area: 3 / 1;
    justify-self: start;
  }

  .foot-links {
    grid-area: 2 / 1;
  }
}

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