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

:root{
  --ink:#26171a;
  --ink-soft:#5d444b;
  --rose:#eb879c;
  --blush:#ffb6c1;
  --paper:#fff8f9;
  --card:#fffdfd;
  --line:rgba(38,23,26,.15);
  --line-soft:rgba(38,23,26,.08);
  --shadow-soft:0 2px 4px rgba(38,23,26,.05), 0 10px 24px rgba(235,135,156,.18);
  --shadow-lift:0 2px 6px rgba(38,23,26,.07), 0 16px 36px rgba(235,135,156,.26);
  --r:4px;
  --r-sm:8px;
  --r-pill:999px;
  --ease:230ms cubic-bezier(.4,0,.2,1);
  --sans:'Montserrat','Hiragino Sans GB','Microsoft YaHei',system-ui,-apple-system,sans-serif;
  --serif:'Cormorant','Songti SC','Noto Serif SC',Georgia,serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:clip;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  color:var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(255,182,193,.45), transparent 62%),
    radial-gradient(720px 380px at 97% 2%, rgba(235,135,156,.24), transparent 60%),
    var(--paper);
  min-height:100vh;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}
[id]{scroll-margin-top:132px}
a:focus-visible,button:focus-visible{outline:3px solid var(--rose);outline-offset:3px;border-radius:6px}

/* ---------- 顶部两行 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:30;
  padding:10px clamp(14px,4vw,32px) 12px;
  background:rgba(255,248,249,.92);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.top__brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:1180px;
  margin:0 auto;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 6px 4px 0;
  font-family:var(--serif);
  font-size:1.42rem;
  font-weight:600;
  letter-spacing:.03em;
  transition:opacity var(--ease);
}
.brand:hover{opacity:.78}
.brand__mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:var(--r-pill);
  background:linear-gradient(140deg,var(--blush),var(--rose));
  color:#fff;
  font-family:var(--sans);
  font-size:.9rem;
  font-weight:600;
  box-shadow:var(--shadow-soft);
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:var(--r-pill);
  border:1px solid var(--line);
  background:var(--card);
  color:var(--ink);
  font-size:.94rem;
  font-weight:500;
  letter-spacing:.01em;
  white-space:nowrap;
  transition:background var(--ease),color var(--ease),border-color var(--ease),transform var(--ease),box-shadow var(--ease);
}
.pill:hover{
  background:linear-gradient(140deg,rgba(255,182,193,.55),rgba(235,135,156,.32));
  border-color:var(--rose);
  transform:translateY(-1px);
}
.pill--ghost{
  padding:8px 18px;
  border-color:rgba(235,135,156,.55);
  color:#a8485d;
  background:rgba(255,255,255,.7);
}
.nav{
  max-width:1180px;
  margin:10px auto 0;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav__list{
  display:flex;
  gap:8px;
  margin:0;
  padding:2px 0 4px;
  list-style:none;
  min-width:max-content;
}
.nav__list li{flex:0 0 auto}
.nav .pill{animation:pillIn 260ms var(--ease) both}
.nav__list li:nth-child(2) .pill{animation-delay:40ms}
.nav__list li:nth-child(3) .pill{animation-delay:80ms}
.nav__list li:nth-child(4) .pill{animation-delay:120ms}
.nav__list li:nth-child(5) .pill{animation-delay:160ms}
.nav__list li:nth-child(6) .pill{animation-delay:200ms}
.nav__list li:nth-child(7) .pill{animation-delay:240ms}
.nav a[aria-current]{
  background:linear-gradient(140deg,var(--rose),var(--blush));
  border-color:transparent;
  color:var(--ink);
  font-weight:600;
  box-shadow:var(--shadow-soft);
}
@keyframes pillIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:45vh;
  margin-bottom:clamp(18px,3vw,32px);
  padding:clamp(30px,6vw,58px) clamp(16px,5vw,40px) clamp(64px,9vw,92px);
  color:#fff;
  background:linear-gradient(118deg,#3b232a,#6d3f4a 58%,#bd7281);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 48px),0 100%);
}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
}
.hero__media--cycle .hero__img{animation:heroCycle 18s linear infinite}
.hero__media--cycle .hero__img:nth-child(1){animation-delay:0s}
.hero__media--cycle .hero__img:nth-child(2){animation-delay:6s}
.hero__media--cycle .hero__img:nth-child(3){animation-delay:12s}
.hero__media:not(.hero__media--cycle) .hero__img{opacity:1}
.hero__veil{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(96deg,rgba(38,23,26,.84),rgba(38,23,26,.44) 58%,rgba(38,23,26,.1));
}
.hero__veil--flat{background:linear-gradient(118deg,rgba(38,23,26,.55),rgba(59,35,42,.1))}
.hero__inner{width:100%;max-width:1180px;margin:0 auto}
.hero__title{
  margin:0;
  max-width:22ch;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.95rem,6.2vw,3.4rem);
  line-height:1.22;
  letter-spacing:.01em;
  text-shadow:0 2px 20px rgba(38,23,26,.45);
}
@keyframes heroCycle{
  0%{opacity:0}
  3%{opacity:1}
  30%{opacity:1}
  34%{opacity:0}
  100%{opacity:0}
}

/* ---------- 主体三分 ---------- */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,222px) minmax(0,1fr);
  align-items:start;
  gap:clamp(20px,3vw,38px);
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,32px) clamp(42px,6vw,70px);
}
.rail{
  position:sticky;
  top:142px;
  padding:14px 12px 16px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--card);
}
.rail h2{
  margin:0 0 10px;
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--ink-soft);
}
.rail h2 span{border-bottom:1px solid var(--blush);padding-bottom:2px}
.rail ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.rail a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px;
  border:1px solid transparent;
  border-left-width:2px;
  border-radius:var(--r);
  color:var(--ink-soft);
  font-size:.94rem;
  transition:color var(--ease),background var(--ease),border-color var(--ease),padding var(--ease);
}
.rail a:hover,.rail a[aria-current]{
  padding-left:12px;
  color:var(--ink);
  background:rgba(255,182,193,.3);
  border-left-color:var(--rose);
}
.rail li{animation:rise 260ms var(--ease) both}
.rail li:nth-child(2){animation-delay:50ms}
.rail li:nth-child(3){animation-delay:100ms}
.rail li:nth-child(4){animation-delay:150ms}
.rail li:nth-child(5){animation-delay:200ms}
.rail li:nth-child(6){animation-delay:250ms}
.rail li:nth-child(7){animation-delay:300ms}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.stage{min-width:0}
.stage > div{
  padding:clamp(20px,4vw,44px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--card);
}

/* ---------- 正文排版 ---------- */
.prose{max-width:74ch;overflow-wrap:break-word}
.prose article{padding-block:clamp(16px,3vw,28px)}
.prose article + article{border-top:1px dashed var(--line)}
.prose article:first-child{padding-top:0}
.prose h2{
  position:relative;
  margin:0 0 .62em;
  padding-left:16px;
  font-family:var(--serif);
  font-size:clamp(1.5rem,3.4vw,2rem);
  font-weight:600;
  line-height:1.32;
}
.prose h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.34em;
  bottom:.3em;
  width:4px;
  border-radius:2px;
  background:linear-gradient(var(--rose),var(--blush));
}
.prose h2 > span{display:inline}
.prose h3{
  margin:1.7em 0 .45em;
  font-size:1.08rem;
  font-weight:600;
  line-height:1.6;
}
.prose h3 > span{box-shadow:inset 0 -.55em 0 rgba(255,182,193,.55)}
.prose p{margin:0 0 1em}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.35em}
.prose li{margin:.34em 0}
.prose li::marker{color:var(--rose)}
.prose strong{font-weight:600;color:#1d0f12}
.prose em{font-style:normal;color:var(--ink-soft)}
.prose a{color:#ab4c62;border-bottom:1px solid rgba(171,76,98,.42);transition:border-color var(--ease),color var(--ease)}
.prose a:hover{color:#8c3549;border-bottom-color:currentColor}
.prose blockquote{
  margin:1.5em 0;
  padding:14px 18px;
  border-left:3px solid var(--blush);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(255,182,193,.16);
  color:var(--ink-soft);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{width:100%;border-collapse:collapse;margin:1.3em 0;font-size:.94rem}
.prose th,.prose td{border:1px solid var(--line);padding:9px 11px;text-align:left;vertical-align:top}
.prose th{background:rgba(255,182,193,.22);font-weight:600}
.prose figure{margin:1.4em 0}
.prose figure img{border-radius:var(--r);width:100%;height:auto}
.prose figcaption{margin-top:.5em;font-size:.86rem;color:var(--ink-soft)}
.prose img{border-radius:var(--r);height:auto}
.prose hr{margin:2em 0;border:0;border-top:1px dashed var(--line)}
.prose code{padding:.1em .35em;border-radius:var(--r);background:rgba(38,23,26,.06);font-size:.92em}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(30px,5vw,60px);
  padding:clamp(56px,8vw,84px) clamp(16px,4vw,32px) 26px;
  color:#f7eaee;
  background:linear-gradient(180deg,#2d1c21,#26171a);
  clip-path:polygon(0 48px,100% 0,100% 100%,0 100%);
}
.foot__cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:1180px;
  margin:0 auto;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,182,193,.3);
}
.foot__title{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(1.6rem,4.6vw,2.4rem);
  font-weight:600;
  letter-spacing:.03em;
}
.foot__title span{background:linear-gradient(transparent 64%,rgba(235,135,156,.6) 64%)}
.btn--ghost{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 22px;
  border-radius:var(--r-pill);
  border:1px solid rgba(255,182,193,.5);
  color:#ffeff3;
  font-size:.94rem;
  transition:background var(--ease),border-color var(--ease),transform var(--ease);
}
.btn--ghost:hover{background:rgba(235,135,156,.24);border-color:var(--blush);transform:translateY(-1px)}
.foot__cols{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:clamp(18px,3vw,40px);
  max-width:1180px;
  margin:26px auto 0;
}
.foot dl{margin:0}
.foot dt{
  margin-bottom:10px;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.16em;
  color:rgba(255,182,193,.9);
}
.foot dd{
  margin:0;
  font-size:.93rem;
  line-height:1.7;
  color:rgba(247,234,238,.8);
}
.foot dd ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  color:rgba(247,234,238,.8);
  transition:color var(--ease)
}
.foot dd a:hover{color:#fff}
.foot__copy{
  max-width:1180px;
  margin:28px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,182,193,.2);
  font-size:.82rem;
  color:rgba(247,234,238,.62);
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .wrap{display:flex;flex-direction:column;gap:22px}
  .stage{order:1;width:100%}
  .rail{order:2;position:static;padding:12px 10px 10px;width:100%}
  .rail ul{
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    overflow-x:auto;
    gap:6px;
    scrollbar-width:none;
  }
  .rail ul::-webkit-scrollbar{display:none}
  .rail a{
    padding:6px 14px;
    min-height:42px;
    border-color:var(--line);
    border-left-width:1px;
    border-radius:var(--r-pill);
  }
  .rail a:hover,.rail a[aria-current]{padding-left:14px;border-color:var(--rose)}
  .foot__cols{grid-template-columns:1fr 1fr}
  .foot__cols dl:first-child{grid-column:1 / -1}
  .stage > div{border-radius:var(--r)}
  [id]{scroll-margin-top:150px}
}

@media (max-width:600px){
  .hero{clip-path:polygon(0 0,100% 0,100% calc(100% - 32px),0 100%)}
  .hero__title{max-width:16ch}
  .brand{font-size:1.28rem}
  .pill{padding:8px 14px;font-size:.9rem}
  .prose{max-width:none}
  .hero__veil{background:linear-gradient(150deg,rgba(38,23,26,.86),rgba(38,23,26,.5) 70%)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero__media--cycle .hero__img,
  .nav .pill,
  .rail li{animation:none}
  .hero__media--cycle .hero__img{opacity:1}
  .pill,.rail a,.foot dd a,.btn--ghost,.brand{transition:none}
}

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