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

:root{
  --ink:#26171a;
  --rose:#eb879c;
  --pink:#ffb6c1;
  --blush:#fff3f6;
  --surface:#ffffff;
  --muted:#6d545a;
  --link:#b84862;
  --line:#f5dde2;
  --soft:0 2px 4px rgba(38,23,26,.05), 0 16px 36px -20px rgba(38,23,26,.28);
  --soft-2:0 1px 2px rgba(38,23,26,.07), 0 8px 18px -12px rgba(38,23,26,.22);
  --r:12px;
  --wide:1120px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden}
body{
  margin:0;
  color:var(--ink);
  font:400 16px/1.75 Poppins,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(1100px 460px at 84% -10%, #ffe1e8 0%, rgba(255,225,232,0) 64%),
    radial-gradient(760px 380px at 4% 4%, #fff0f3 0%, rgba(255,240,243,0) 70%),
    linear-gradient(180deg,#fffafb 0%, #fff4f7 42%, #fffbfc 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
}
main{display:block}
menu{margin:0;padding:0;list-style:none}
img{max-width:100%}

:where(a,summary):focus-visible{outline:3px solid var(--rose);outline-offset:2px;border-radius:10px}

/* 顶栏 */
.top{
  max-width:var(--wide);
  margin:0 auto;
  padding:14px 18px 8px;
  display:flex;
  align-items:center;
  gap:10px;
}
.mark{
  flex:0 0 auto;
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--soft-2);
  color:var(--ink);
  text-decoration:none;
  overflow:hidden;
  transition:transform .24s ease, box-shadow .24s ease;
}
.mark:hover{transform:translateY(-2px) rotate(-3deg);box-shadow:var(--soft)}
.mark-img{width:100%;height:100%;object-fit:contain}
.mark-svg{display:flex}
.mark-svg svg{width:26px;height:26px;display:block}
.mark-txt{
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:20px;
  line-height:1;
  color:var(--rose);
}

.nav{margin-left:auto;position:relative}
.nav > summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 17px;
  border-radius:999px;
  background:var(--surface);
  box-shadow:var(--soft-2);
  font-weight:500;
  transition:box-shadow .24s ease;
}
.nav > summary::-webkit-details-marker{display:none}
.nav > summary:hover{box-shadow:var(--soft)}
.nav > summary::after{
  content:"";
  width:8px;height:8px;
  border-right:2px solid var(--rose);
  border-bottom:2px solid var(--rose);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .24s ease;
}
.nav[open] > summary::after{transform:rotate(-135deg) translateY(-2px)}

.nav-list{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:30;
  min-width:210px;
  padding:8px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--soft);
}
.nav-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:10px;
  color:var(--ink);
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.nav-list a:hover{background:var(--blush);color:var(--link)}

.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  background:var(--rose);
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  box-shadow:0 10px 20px -12px rgba(235,135,156,.95);
  transition:transform .24s ease, box-shadow .24s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 14px 24px -12px rgba(235,135,156,1)}

/* 二级粘性锚点条 */
.rail{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,249,250,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.rail-list{
  max-width:var(--wide);
  margin:0 auto;
  padding:0 14px;
  display:flex;
  gap:2px;
  overflow-x:auto;
  scrollbar-width:none;
}
.rail-list::-webkit-scrollbar{display:none}
.rail-list a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 12px;
  color:var(--muted);
  text-decoration:none;
  white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.rail-list a:hover{color:var(--ink);border-bottom-color:var(--rose)}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  max-width:var(--wide);
  margin:0 auto;
  padding:28px 18px 20px;
  min-height:45vh;
  display:grid;
  place-items:center;
  text-align:center;
}
.ghost{
  position:absolute;
  inset:auto 0 4% 0;
  z-index:0;
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:clamp(64px,16vw,180px);
  line-height:.92;
  letter-spacing:.02em;
  white-space:nowrap;
  text-align:center;
  color:rgba(235,135,156,.17);
  user-select:none;
  pointer-events:none;
}
.hero-copy{position:relative;z-index:2;max-width:660px}
.hero h1{
  margin:0;
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:clamp(30px,5.4vw,54px);
  line-height:1.16;
  letter-spacing:.01em;
}
.lede{
  margin:14px auto 0;
  max-width:44ch;
  color:var(--muted);
  font-size:17px;
}
.collage{
  position:absolute;
  inset:0;
  margin:0;
  z-index:1;
  pointer-events:none;
}
.shot{
  position:absolute;
  width:clamp(118px,16vw,208px);
  aspect-ratio:4/3;
  object-fit:cover;
  padding:6px;
  background:var(--surface);
  border-radius:26px;
  box-shadow:var(--soft);
}
.shot.s1{left:2%;top:9%;transform:rotate(-5deg)}
.shot.s2{right:2%;bottom:7%;transform:rotate(4deg)}

/* 正文 + 侧栏 */
.shell{
  max-width:var(--wide);
  margin:0 auto;
  padding:16px 18px 44px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:28px;
  align-items:start;
}
.prose{min-width:0}
.prose div{
  position:relative;
  background:var(--surface);
  border-radius:28px;
  border-bottom:4px solid var(--pink);
  box-shadow:var(--soft-2);
  padding:22px 22px 18px;
  margin:0 0 20px;
  scroll-margin-top:86px;
}
.prose div:last-child{margin-bottom:0}
.prose h2{
  margin:0 0 12px;
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:clamp(21px,2.5vw,27px);
  line-height:1.32;
}
.prose h3{
  margin:22px 0 8px;
  font-size:19px;
  line-height:1.4;
}
.prose p{margin:0 0 14px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 14px;padding-left:1.25em}
.prose li{margin:6px 0}
.prose a{
  color:var(--link);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.prose strong{font-weight:600}
.prose blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-left:4px solid var(--pink);
  border-radius:0 14px 14px 0;
  background:var(--blush);
  color:var(--muted);
}
.prose figure{margin:16px 0}
.prose figure img{border-radius:18px;display:block;height:auto}
.prose hr{
  border:0;
  height:1px;
  background:var(--line);
  margin:18px 0;
}

.side{
  position:sticky;
  top:64px;
  background:var(--surface);
  border-radius:28px;
  border-bottom:4px solid var(--pink);
  box-shadow:var(--soft-2);
  padding:18px 18px 20px;
}
.side h2{
  margin:0 0 8px;
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:17px;
  letter-spacing:.04em;
}
.side hr{
  border:0;
  height:2px;
  margin:0 0 12px;
  background:linear-gradient(90deg,var(--rose),rgba(235,135,156,0));
}
.side-list{display:grid;gap:2px}
.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:10px;
  border-left:2px solid transparent;
  color:var(--muted);
  text-decoration:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.side-list a:hover{background:var(--blush);color:var(--ink);border-left-color:var(--rose)}

/* 页脚 */
footer{
  max-width:var(--wide);
  margin:0 auto;
  padding:22px 18px 44px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px 18px;
}
footer p{
  margin:0;
  font-family:Righteous,"PingFang SC",sans-serif;
  font-size:clamp(34px,8.5vw,62px);
  line-height:1;
  letter-spacing:.02em;
  color:var(--rose);
}
footer small{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 14px;
  font-size:16px;
  color:var(--muted);
  padding-bottom:4px;
}
footer small a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 2px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--pink);
  transition:border-color .2s ease;
}
footer small a:hover{border-bottom-color:var(--rose)}

/* 动效 */
.nav-list li,
.rail-list li,
.side-list li{animation:rise .26s both;animation-delay:calc(var(--i,0) * 26ms)}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hero-copy{animation:fade .3s both}
@keyframes fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.will-in{opacity:0;transform:translateY(16px)}
.will-in.is-in{opacity:1;transform:none;transition:opacity .28s ease,transform .28s ease}

/* 桌面导航 */
@media (min-width:900px){
  .nav > summary{display:none}
  details.nav:not([open]) > .nav-list{display:flex}
  .nav-list{
    position:static;
    display:flex;
    flex-wrap:wrap;
    gap:2px;
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
  }
  .nav-list a{padding:8px 11px;color:var(--muted);font-weight:500}
  .nav-list a:hover{background:var(--surface);color:var(--ink);box-shadow:var(--soft-2)}
}

/* 窄屏 */
@media (max-width:899px){
  .shell{grid-template-columns:minmax(0,1fr);gap:20px}
  .side{position:static;order:-1}
  .side-list{grid-template-columns:1fr 1fr;gap:2px 6px}
  .hero{display:block;min-height:0;padding:22px 16px 8px}
  .ghost{inset:6px 0 auto 0;font-size:clamp(58px,17vw,104px)}
  .hero h1{font-size:clamp(28px,8vw,40px)}
  .hero-copy{max-width:none}
  .lede{font-size:16px}
  .collage{
    position:static;
    display:flex;
    gap:10px;
    margin:18px 0 0;
  }
  .shot{position:static;flex:1 1 0;width:auto;aspect-ratio:4/3;transform:none;border-radius:20px}
  .shot.s1{transform:rotate(-2deg)}
  .shot.s2{transform:rotate(2deg)}
  .prose div{padding:18px 16px 16px;border-radius:22px}
  footer{padding-bottom:56px}
}

@media (max-width:420px){
  .top{padding:12px 14px 6px;gap:8px}
  .cta{padding:10px 14px}
  .side-list{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .will-in{opacity:1;transform:none}
}

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