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

:root{
  --cream:#F6E7EA;
  --rose:#D96C8A;
  --ink:#2B2B33;
  --rose-deep:#B94E6D;
  --paper:#FFFBFC;
  --glass:rgba(255,255,255,.62);
  --line:rgba(43,43,51,.13);
  --hair:rgba(217,108,138,.32);
  --serif:"EB Garamond","Songti SC","Noto Serif SC",Georgia,serif;
  --sans:"Lato","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --r:28px;
  --dock:80px;
}

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

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

body{
  margin:0;
  padding:0 0 calc(var(--dock) + 20px);
  font:400 17px/1.78 var(--sans);
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 92% -6%,#FBEFF2 0,rgba(251,239,242,0) 62%),
    linear-gradient(180deg,var(--paper) 0,var(--cream) 78%,#FFF5F8 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%}
p{margin:0 0 1em}
a{color:var(--rose-deep)}

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

/* ---------- 英雄区 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:70vh;
  min-height:max(70vh,430px);
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(140deg,#2B2B33,#7A4257 62%,#D96C8A);
}

.hero-media{position:absolute;inset:0;z-index:0}
.hero-photo{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.06);animation:heroDrift 16s ease-out both}

.hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(205deg,rgba(43,43,51,.78) 0,rgba(43,43,51,.34) 52%,rgba(217,108,138,.42) 100%);
}

.hero-slash{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:76px;
  z-index:2;
  background:linear-gradient(90deg,var(--rose),#F3BFCE);
  clip-path:polygon(0 100%,100% 8%,100% 100%);
  opacity:.92;
}

.hero-inner{
  position:relative;
  z-index:3;
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:110px 22px 96px;
  text-align:right;
  color:#fff;
}

.hero-kicker{
  margin:0 0 .5em;
  font-family:var(--sans);
  font-size:16px;
  letter-spacing:.42em;
  text-transform:none;
  color:#FFE3EB;
  display:flex;
  justify-content:flex-end;
}

.kicker-type{
  display:inline-block;
  padding-right:.5em;
  border-right:2px solid rgba(255,227,235,.85);
  white-space:nowrap;
  animation:typeIn 1.15s steps(9,end) .18s both,caretBlink 1s steps(1,end) 1.3s 3;
}

.hero-title{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.5rem,8vw,4.9rem);
  line-height:1.04;
  letter-spacing:.02em;
  background:linear-gradient(96deg,#FFFFFF 8%,#FFD9E4 46%,#FF9DBA 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 2px 26px rgba(43,43,51,.22);
  animation:titleIn 1.05s cubic-bezier(.16,.84,.24,1) both;
}

/* ---------- 骨架 ---------- */
.page-main{padding:0}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:26px;
  align-items:start;
  padding:58px 0 26px;
}

/* ---------- 正文 ---------- */
.prose{
  min-width:0;
  padding:clamp(20px,4vw,46px);
  border:1px solid var(--hair);
  border-radius:var(--r);
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px) saturate(1.1);
  backdrop-filter:blur(12px) saturate(1.1);
  box-shadow:0 22px 54px rgba(43,43,51,.08),inset 0 1px 0 rgba(255,255,255,.7);
}

.prose > article{
  scroll-margin-top:24px;
  padding:4px 0 6px;
}

.prose > article + article{
  margin-top:30px;
  padding-top:30px;
  border-top:1px dashed rgba(43,43,51,.16);
}

.prose h2{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.45rem,3.3vw,2.05rem);
  line-height:1.28;
  letter-spacing:.01em;
  margin:0 0 .45em;
  color:var(--ink);
}

.prose h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.15rem,2.4vw,1.4rem);
  line-height:1.4;
  margin:1.4em 0 .5em;
}

.prose hr{
  border:0;
  height:3px;
  width:70px;
  margin:0 0 1.25em;
  background:linear-gradient(90deg,var(--rose),rgba(217,108,138,0));
  border-radius:3px;
}

.prose ul,.prose ol{padding-left:1.25em;margin:0 0 1.1em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--rose)}

.prose blockquote{
  margin:1.2em 0;
  padding:.7em 1.1em;
  border-left:4px solid var(--rose);
  background:rgba(246,231,234,.72);
  border-radius:0 18px 18px 0;
  font-family:var(--serif);
  font-size:1.06em;
  color:#413741;
}

.prose img{border-radius:18px;height:auto;display:block;margin:1em 0}
.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:9px 8px;text-align:left}
.prose code{font-size:.95em;background:rgba(43,43,51,.07);padding:.1em .35em;border-radius:6px}

.prose a{
  color:var(--rose-deep);
  text-decoration:none;
  background-image:linear-gradient(var(--rose),var(--rose));
  background-repeat:no-repeat;
  background-size:100% 1px;
  background-position:0 100%;
  transition:background-size .25s ease,color .25s ease;
}
.prose a:hover{color:var(--ink);background-size:100% 3px}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:18px;
  padding:22px 18px;
  border:1px solid var(--hair);
  border-radius:var(--r);
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 18px 40px rgba(43,43,51,.07);
}

.side-title{
  font-family:var(--serif);
  font-weight:600;
  font-size:1.1rem;
  letter-spacing:.3em;
  margin:0 0 .5em;
  color:var(--ink);
}

.side-rule{
  border:0;
  height:2px;
  width:44px;
  margin:0 0 1em;
  background:var(--rose);
}

.side-list{list-style:none;margin:0;padding:0}
.side-list li{opacity:0;animation:riseIn .5s ease both;animation-delay:calc(.12s + var(--i) * 55ms)}

.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 10px 6px 0;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(43,43,51,.09);
  transition:padding-left .22s ease,color .22s ease;
}
.side-list a::before{
  content:"";
  width:7px;height:7px;
  margin-right:10px;
  border-radius:50%;
  background:var(--rose);
  opacity:.55;
  transition:transform .22s ease,opacity .22s ease;
}
.side-list a:hover{padding-left:8px;color:var(--rose-deep)}
.side-list a:hover::before{transform:scale(1.5);opacity:1}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:46px;
  padding:0 20px 30px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:16px 24px;
  border-top:1px solid var(--hair);
  background:linear-gradient(180deg,#FFF9FB,#F4DEE4);
}

.foot-cta{
  flex:1 1 100%;
  padding:46px 10px 10px;
  text-align:center;
}

.cta-big{
  margin:0 0 .25em;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.9rem,6vw,3.1rem);
  line-height:1.12;
  background:linear-gradient(92deg,var(--ink) 6%,var(--rose-deep) 94%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:titleIn .9s cubic-bezier(.16,.84,.24,1) both;
}

.cta-sub{max-width:44ch;margin:0 auto 1em;font-size:16px;color:#5A5058}
.cta-act{margin:0}

.cta-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 26px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  letter-spacing:.14em;
  text-decoration:none;
  transition:transform .22s ease,background .22s ease,box-shadow .22s ease;
}
.cta-link:hover{background:var(--rose-deep);transform:translateY(-2px);box-shadow:0 12px 24px rgba(185,78,109,.32)}

.foot-mark{flex:0 0 auto}
.foot-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  text-decoration:none;
}
.foot-logo .brand-ico,.dock-brand .brand-ico{width:26px;height:26px;border-radius:50%;object-fit:cover}
.brand-mark{font-family:var(--serif);font-size:1.2rem;line-height:1;color:#fff}

.foot-nav{flex:1 1 320px;min-width:0}
.foot-nav dl{
  display:flex;
  flex-wrap:wrap;
  gap:4px 6px;
  margin:0;
  justify-content:center;
}
.foot-nav dt,.foot-nav dd{margin:0}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border:1px solid transparent;
  transition:border-color .22s ease,color .22s ease,background .22s ease;
}
.foot-nav a:hover{border-color:var(--hair);color:var(--rose-deep);background:rgba(255,255,255,.8)}

.foot-copy{flex:0 0 auto;text-align:center;font-size:16px}
.copy-line{margin:0;font-family:var(--serif);letter-spacing:.06em}
.copy-note{margin:0;font-size:16px;color:#6B6169}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:70;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:var(--dock);
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  background:rgba(255,251,252,.9);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-top:1px solid var(--hair);
  box-shadow:0 -12px 32px rgba(43,43,51,.1);
}

.dock-brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  text-decoration:none;
  transition:transform .25s ease;
}
.dock-brand:hover{transform:rotate(-8deg) scale(1.06)}

.dock-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:stretch;
  gap:2px;
  overflow-x:auto;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.dock-nav::-webkit-scrollbar{display:none}

.dock-link{
  flex:0 0 auto;
  scroll-snap-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:52px;
  padding:6px 11px;
  border-radius:16px;
  color:#4A4149;
  font-size:16px;
  line-height:1.2;
  text-decoration:none;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}
.dock-link:hover{background:rgba(217,108,138,.14);color:var(--rose-deep);transform:translateY(-2px)}
.dock-link.active{background:rgba(217,108,138,.2);color:var(--rose-deep);font-weight:700}
.dock-txt{white-space:nowrap}

.ico{display:block;width:12px;height:12px;background:var(--rose);transition:transform .22s ease}
.dock-link:hover .ico{transform:scale(1.25) rotate(8deg)}
.i1{border-radius:50%}
.i2{border-radius:3px}
.i3{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.i4{border-radius:50%;background:transparent;border:2px solid var(--rose)}
.i5{width:14px;height:3px;border-radius:2px}
.i6{background:transparent;border:2px solid var(--rose);border-radius:2px;clip-path:polygon(50% 0,100% 100%,0 100%)}
.i7{border-radius:2px 8px 2px 8px}

.dock-cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 16px;
  border-radius:999px;
  background:var(--rose);
  color:#fff;
  font-size:16px;
  letter-spacing:.1em;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(217,108,138,.32);
  transition:transform .22s ease,background .22s ease;
}
.dock-cta:hover{background:var(--rose-deep);transform:translateY(-2px)}

/* ---------- 动效 ---------- */
@keyframes titleIn{
  from{opacity:0;transform:translateY(28px) scale(.985);letter-spacing:.2em;filter:blur(7px)}
  to{opacity:1;transform:none;letter-spacing:.02em;filter:blur(0)}
}
@keyframes typeIn{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
@keyframes caretBlink{50%{border-color:transparent}}
@keyframes heroDrift{from{transform:scale(1.14)}to{transform:scale(1.02)}}
@keyframes riseIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .75s cubic-bezier(.16,.84,.24,1)}
.js .reveal.in{opacity:1;transform:none}

.prose > article:target{
  box-shadow:inset 3px 0 0 var(--rose);
  padding-left:16px;
  border-radius:0 16px 16px 0;
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .stage{grid-template-columns:1fr;gap:20px;padding-top:36px}
  .side{position:static;order:2}
  .side-list{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
}

@media (max-width:600px){
  body{font-size:17px}
  .hero{min-height:74vh}
  .hero-inner{padding:96px 18px 88px}
  .hero-slash{height:44px}
  .wave,.prose{padding-left:18px;padding-right:18px}
  .prose{border-radius:22px;padding:22px 18px}
  .foot-nav dl{justify-content:flex-start}
  .foot-copy{text-align:left}
  .dock-brand{width:44px;height:44px}
  .dock-link{padding:6px 9px}
}

@media (max-width:380px){
  .dock-txt{font-size:16px}
  .dock-cta{padding:8px 12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
  .js .reveal{opacity:1;transform:none}
  .side-list li{opacity:1}
  .hero-photo{transform:none}
  .hero-title,.cta-big{letter-spacing:.02em}
}

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