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

:root {
  --ink: #14121A;
  --ink-2: #1B1824;
  --rose: #D2345C;
  --rose-dim: rgba(210, 52, 92, .38);
  --paper: #F5EFE6;
  --paper-2: rgba(245, 239, 230, .74);
  --paper-3: rgba(245, 239, 230, .52);
  --line: rgba(245, 239, 230, .14);
  --glass: rgba(245, 239, 230, .06);
  --serif: "Libre Bodoni", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Public Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --r: 28px;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(210, 52, 92, .20), transparent 64%),
    radial-gradient(700px 480px at 4% 24%, rgba(210, 52, 92, .08), transparent 60%),
    var(--ink);
  color: var(--paper);
  font: 400 clamp(1rem, .96rem + .18vw, 1.0625rem)/1.75 var(--sans);
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 7rem;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; }
p { margin: 0 0 1.1em; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--paper); }
strong { color: var(--paper); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; border-radius: 18px; }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- 骨架：main 直挂 div，aside 走网格左栏 ---------- */
.wrap {
  width: min(1180px, 100% - 2.25rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3.25rem);
  padding-bottom: 5rem;
}

/* ---------- Hero ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 12vh, 7rem) 0 clamp(1.8rem, 6vh, 3.4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ghost {
  position: absolute;
  top: -.16em;
  left: -.04em;
  font: 700 clamp(5rem, 21vw, 15rem)/.82 var(--serif);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 239, 230, .15);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: ghost-in 1.6s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes ghost-in {
  from { opacity: 0; transform: translate3d(0, 10%, 0); }
  to { opacity: 1; transform: none; }
}

.hero-in { position: relative; width: 100%; }

h1.kinetic {
  margin: 0 0 1.6rem;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.028em;
  background: linear-gradient(102deg, var(--paper) 26%, var(--rose) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

.ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .55em, 0) rotate(4deg);
  animation: ch-in .85s cubic-bezier(.19, 1, .22, 1) forwards;
  animation-delay: calc(var(--i) * 48ms + 140ms);
}

@keyframes ch-in {
  to { opacity: 1; transform: none; }
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper-2);
  font-size: .86rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: border-color .3s, color .3s, background .3s;
}

.jump:hover { border-color: var(--rose); color: var(--paper); background: rgba(210, 52, 92, .12); }
.arrow { display: inline-block; animation: bob 2.4s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- 左栏目录（aside） ---------- */
.rail {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 2rem;
  align-self: start;
  padding-top: 2.2rem;
}

.rail-h {
  margin: 0 0 .9rem;
  font-size: .74rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--paper-3);
  text-transform: uppercase;
}

.rail-h > span { display: inline-block; border-bottom: 1px solid var(--rose-dim); padding-bottom: .3rem; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border-left: 1px solid var(--line);
}

.rail-list a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  gap: .1rem;
  min-height: 40px;
  padding: .45rem .3rem .45rem .55rem;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--paper-2);
  font-size: .84rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .25s, border-color .25s, background .25s;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--paper);
  border-left-color: var(--rose);
  background: rgba(245, 239, 230, .05);
}

.rail-list .no {
  font-family: var(--serif);
  font-size: .72rem;
  color: var(--rose);
  letter-spacing: .04em;
}

/* ---------- 正文 ---------- */
.doc {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding-top: 2.2rem;
}

.doc > section {
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
  animation: sec-in .8s cubic-bezier(.16, 1, .3, 1) both;
}

.doc > section:last-child { border-bottom: 0; }
.doc > section:nth-child(2) { animation-delay: .04s; }
.doc > section:nth-child(3) { animation-delay: .09s; }
.doc > section:nth-child(4) { animation-delay: .14s; }
.doc > section:nth-child(5) { animation-delay: .19s; }
.doc > section:nth-child(6) { animation-delay: .24s; }

@keyframes sec-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.doc h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.16;
}

.doc h2 > span { display: inline-block; }

.doc h2 > span > span,
.doc h2 > span::after {
  color: var(--rose);
}

.doc h3 {
  margin: 2rem 0 .7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--paper);
}

.doc h3 > span { display: inline-block; }

.doc p { color: var(--paper-2); max-width: 68ch; }
.doc p:last-child { margin-bottom: 0; }

.doc ul, .doc ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--paper-2);
}

.doc li { margin-bottom: .5rem; }
.doc li::marker { color: var(--rose); }

.doc blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  border-left: 2px solid var(--rose);
  border-radius: 0 18px 18px 0;
  background: var(--glass);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
}

.doc blockquote p { color: var(--paper); }

.doc figure { margin: 1.8rem 0; }
.doc figcaption { margin-top: .6rem; font-size: .82rem; color: var(--paper-3); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .94rem;
}

.doc th, .doc td {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th { color: var(--paper); font-weight: 600; }

.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.doc time { font-size: .84rem; color: var(--paper-3); letter-spacing: .04em; }

/* ---------- 页脚 ---------- */
.foot {
  width: min(1180px, 100% - 2.25rem);
  margin-inline: auto;
  padding: 3.4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.callout {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(150deg, rgba(210, 52, 92, .16), rgba(245, 239, 230, .04) 62%),
    var(--ink-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.callout-h {
  margin: 0 0 .8rem;
  font-size: clamp(1.5rem, 4.4vw, 2.4rem);
  line-height: 1.14;
}

.callout-h > span { display: inline-block; }

.callout-p { color: var(--paper-2); max-width: 56ch; margin: 0 0 1.4rem; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .25s, background .25s;
}

.btn-cta:hover { color: #fff; background: #e04369; transform: translateY(-2px); }

.cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem 2rem;
  padding: 2.4rem 0 1.6rem;
}

.col address { font-style: normal; font-size: .95rem; color: var(--paper-2); }
.col address strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }

.col h3 {
  margin: 0 0 .8rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--paper-3);
}

.col h3 > span { display: inline-block; }

.col ul { list-style: none; margin: 0; padding: 0; }

.col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper-2);
  font-size: .9rem;
  text-decoration: none;
}

.col ul a:hover { color: var(--rose); }

.copy {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--paper-3);
  letter-spacing: .08em;
}

/* ---------- 底部玻璃胶囊栏 ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: clamp(.6rem, 2vw, 1.1rem);
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 1.5rem));
  z-index: 60;
}

.dock-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  align-items: center;
  gap: .35rem;
  padding: .42rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 18, 26, .8);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 48px -28px #000;
}

.nav { min-width: 0; }
.nav-l { grid-column: 1; }
.nav-r { grid-column: 3; }
.mark { grid-column: 2; }
.srch-btn { grid-column: 4; }
.srch { grid-column: 5; }

.nav ol {
  display: flex;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-l ol { justify-content: flex-start; }
.nav-r ol { justify-content: flex-end; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .4rem .58rem;
  border-radius: 999px;
  color: var(--paper-2);
  font-size: .78rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s, background .25s;
}

.nav a:hover { color: var(--paper); background: rgba(245, 239, 230, .09); }

.mark {
  padding: .4rem .8rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.mark:hover { color: var(--rose); }

.srch-btn {
  min-height: 40px;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-2);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}

.srch-btn:hover { color: var(--paper); border-color: var(--rose); }

.srch { margin: 0; }

.srch input {
  width: 7.5rem;
  min-height: 40px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 239, 230, .05);
  color: var(--paper);
  font: inherit;
  font-size: .8rem;
  transition: border-color .25s, width .3s;
}

.srch input::placeholder { color: var(--paper-3); }
.srch input:focus { outline: none; border-color: var(--rose); }

/* ---------- 锚点偏移与滚动条 ---------- */
section { scroll-margin-top: 2rem; }

::selection { background: var(--rose); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav a { font-size: .73rem; padding: .4rem .44rem; }
  .srch input { width: 5.6rem; }
}

@media (max-width: 880px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rail {
    grid-column: 1;
    grid-row: 2;
    position: static;
    padding: .9rem 0 .2rem;
  }
  .doc {
    grid-column: 1;
    grid-row: 3;
    padding-top: .6rem;
  }
  .rail-h { margin-bottom: .5rem; }
  .rail-list {
    flex-direction: row;
    gap: .3rem;
    overflow-x: auto;
    border-left: 0;
    padding-bottom: .4rem;
    scrollbar-width: none;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list a {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    gap: .4rem;
    padding: .45rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-left: 0;
    background: var(--glass);
  }
  .rail-list a:hover, .rail-list a:focus-visible { border-color: var(--rose); background: rgba(210, 52, 92, .12); }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { padding-bottom: 8.5rem; }

  .dock-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .4rem;
    padding: .45rem .55rem;
    border-radius: 26px;
  }
  .nav {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav ol { flex-wrap: nowrap; }
  .nav-r ol { justify-content: flex-start; }
  .mark { order: 2; flex: 0 0 auto; padding: .4rem .5rem; }
  .srch-btn { order: 3; margin-left: auto; }
  .srch { order: 4; flex: 1 1 100%; }
  .srch input { width: 100%; }
  .nav a { font-size: .76rem; padding: .4rem .5rem; }

  .hero { min-height: 62vh; }
  .ghost { font-size: clamp(4rem, 30vw, 8rem); }
  .doc p { max-width: none; }
}

@media (max-width: 420px) {
  .wrap, .foot { width: calc(100% - 1.5rem); }
  .cols { grid-template-columns: 1fr; }
  .col ul a { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ch, .ghost, .doc > section, .arrow { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn-cta:hover { transform: none; }
}

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