@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

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

:root {
  --ink: #26171a;
  --deep: #180e11;
  --deep-2: #22141a;
  --rose: #eb879c;
  --blush: #ffb6c1;
  --paper: #fdf2f4;
  --text: #f7e9ec;
  --muted: #dcbfc6;
  --rail: 250px;
  --r: 4px;
  --soft: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 30px rgba(0, 0, 0, .26);
  --fast: 220ms cubic-bezier(.2, .6, .3, 1);
}

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

body {
  margin: 0;
  font-family: "Space Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(820px 520px at 8% -8%, #4a2833 0%, rgba(74, 40, 51, 0) 62%),
    radial-gradient(680px 460px at 100% 18%, #331d25 0%, rgba(51, 29, 37, 0) 60%),
    var(--deep);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 2px;
  border-radius: var(--r);
}

main [id] { scroll-margin-top: 92px; }

/* ---------- 左侧竖排导航 ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px 18px;
  overflow-y: auto;
  background: linear-gradient(178deg, #241519, #160d10 70%);
  box-shadow: 1px 0 0 rgba(235, 135, 156, .22), 12px 0 34px rgba(0, 0, 0, .45);
}

.rail-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: rgba(235, 135, 156, .14);
  box-shadow: var(--soft);
  transition: transform var(--fast), background var(--fast);
}

.rail-brand:hover { transform: translateY(-2px); background: rgba(235, 135, 156, .26); }

.mark { width: 40px; height: 40px; border-radius: var(--r); object-fit: cover; }

.mark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--deep);
  background: linear-gradient(140deg, var(--blush), var(--rose));
}

.rail-list {
  list-style: none;
  counter-reset: railstep;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: var(--r);
  transition: background var(--fast), color var(--fast), transform var(--fast);
}

.rail-list a::before {
  counter-increment: railstep;
  content: counter(railstep, decimal-leading-zero);
  margin-right: 10px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--rose);
}

.rail-list a:hover {
  color: #fff;
  background: rgba(235, 135, 156, .16);
  transform: translateX(4px);
}

.rail-contact {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--deep);
  border-radius: var(--r);
  background: linear-gradient(140deg, var(--blush), var(--rose));
  box-shadow: var(--soft);
  transition: transform var(--fast), filter var(--fast);
}

.rail-contact:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---------- 头部大图 ---------- */

main { margin-left: var(--rail); }

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(155deg, #46252f, #1d1115 72%);
}

.hero-img {
  position: absolute;
  inset: -8% 0 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.85) contrast(1.05);
  will-change: transform;
}

.veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(18, 9, 13, .94) 0%, rgba(18, 9, 13, .62) 52%, rgba(18, 9, 13, .22) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 56px clamp(20px, 5vw, 68px) 62px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--blush);
}

.hero h1 {
  margin: 0;
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: clamp(27px, 4.6vw, 50px);
  line-height: 1.32;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 10px;
  z-index: 3;
  background: linear-gradient(90deg, var(--rose), var(--blush));
  transform: skewY(-1.1deg);
  transform-origin: left bottom;
}

/* ---------- 版心 ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 34px) 72px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 34px;
  align-items: start;
  padding-top: 42px;
}

.intro {
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r);
  color: #2d1218;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  box-shadow: var(--soft);
}

.intro h2 {
  margin: 0 0 8px;
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  letter-spacing: .04em;
  color: #2d1218;
}

.intro .subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #3a1a21;
}

/* ---------- 正文块 ---------- */

.prose { min-width: 0; }

.prose > div[id] {
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--soft);
  transition: transform var(--fast), box-shadow var(--fast);
}

.prose > div[id]:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .3), 0 20px 38px rgba(0, 0, 0, .3);
}

.prose h2 {
  margin: 0 0 12px;
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  letter-spacing: .03em;
  color: #3a1f27;
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  line-height: 1.5;
  color: #4a2630;
}

.prose p {
  margin: 0 0 13px;
  font-size: 16px;
  line-height: 1.85;
  color: #43272e;
}

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

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

.prose li {
  margin: 0 0 8px;
  line-height: 1.8;
  color: #43272e;
}

.prose li::marker { color: #b25a70; }

.prose strong { color: #2f1419; font-weight: 700; }

.prose a {
  color: #a03d55;
  text-decoration: underline;
  text-decoration-color: rgba(160, 61, 85, .4);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: #a03d55; }

.prose blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--r) var(--r) 0;
  background: #f8e2e7;
  color: #4a2630;
}

.prose blockquote p { margin: 0; }

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

.prose > div[id] > :first-child { margin-top: 0; }

/* ---------- 右侧栏 ---------- */

.side {
  position: sticky;
  top: 24px;
  padding: 16px;
  border-radius: var(--r);
  background: #251519;
  box-shadow: var(--soft);
}

.side-title {
  margin: 0 0 10px;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  letter-spacing: .24em;
  color: var(--blush);
}

.side-list {
  list-style: none;
  counter-reset: sidestep;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: var(--r);
  transition: background var(--fast), color var(--fast);
}

.side-list a::before {
  counter-increment: sidestep;
  content: counter(sidestep, decimal-leading-zero);
  margin-right: 8px;
  font-size: 12px;
  color: var(--rose);
}

.side-list a:hover { color: #fff; background: rgba(235, 135, 156, .16); }

.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  border-radius: var(--r);
  color: var(--blush);
  background: rgba(235, 135, 156, .14);
  transition: background var(--fast), transform var(--fast);
}

.to-top:hover { background: rgba(235, 135, 156, .26); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */

.foot {
  margin-left: var(--rail);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2.4vw, 28px);
  padding: 26px clamp(16px, 3vw, 34px);
  background: #140b0e;
  border-top: 1px solid rgba(235, 135, 156, .28);
}

.foot-mark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: rgba(235, 135, 156, .14);
}

.foot-word {
  font-family: "Syncopate", "PingFang SC", sans-serif;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--rose);
  white-space: nowrap;
}

.foot-nav { min-width: 0; }

.foot-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: var(--r);
  transition: color var(--fast), background var(--fast);
}

.foot-nav a:hover { color: #fff; background: rgba(235, 135, 156, .16); }

.foot-copy {
  margin-left: auto;
  font-size: 16px;
  letter-spacing: .06em;
  color: #b99aa2;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 960px) {
  main [id] { scroll-margin-top: 86px; }

  .rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  }

  .rail-brand { width: 44px; height: 44px; flex: 0 0 auto; }
  .mark { width: 34px; height: 34px; }

  .rail-list {
    flex-direction: row;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .rail-list a { white-space: nowrap; padding: 10px 11px; }
  .rail-list a::before { display: none; }

  .rail-contact { flex: 0 0 auto; padding: 0 14px; }

  main, .foot { margin-left: 0; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 26px;
  }

  .side { position: static; order: 2; }

  .hero { min-height: 62vh; }
  .hero-copy { padding: 40px 20px 44px; }

  .foot { padding: 22px 16px; gap: 10px; }
  .foot-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .foot-word { font-size: 26px; }
  .hero { min-height: 66vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .hero-img { transform: none !important; }
  .prose > div[id]:hover { transform: none; }
  .rail-list a:hover { transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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