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

:root{
  --ink:#26171a;
  --ink-soft:#5b4247;
  --link:#b8455f;
  --pink:#eb879c;
  --pink-lt:#ffb6c1;
  --bg:#fdf3f5;
  --card:#fffdfd;
  --line:#f3d8de;
  --r:10px;
  --sh:0 2px 4px rgba(38,23,26,.06), 0 12px 26px -14px rgba(38,23,26,.28);
  --tap:44px;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:110px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Be Vietnam Pro","Noto Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background:var(--bg);
  letter-spacing:.005em;
}

a{color:var(--link)}
:focus-visible{outline:3px solid var(--link);outline-offset:2px;border-radius:6px}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(253,243,245,.95);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}

.top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px clamp(14px,4vw,34px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
}

.mark{
  width:32px;
  height:32px;
  flex:none;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--ink);
  color:var(--pink-lt);
  font-size:16px;
  font-weight:700;
  box-shadow:var(--sh);
}

img.mark{object-fit:cover;background:none}

.brand-name{font-size:16px;letter-spacing:.05em}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 17px;
  border-radius:999px;
  background:var(--ink);
  color:#fff4f7;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  box-shadow:0 2px 4px rgba(38,23,26,.2), 0 10px 20px -12px rgba(38,23,26,.6);
  transition:transform .24s ease, background .24s ease;
}

.cta:hover{background:#3b2126;transform:translateY(-1px)}

.anchors{
  border-top:1px solid var(--line);
  overflow-x:auto;
  scrollbar-width:none;
  padding:0 clamp(8px,3vw,26px);
}

.anchors::-webkit-scrollbar{display:none}

.anchors p{
  display:flex;
  gap:2px;
  margin:0;
  white-space:nowrap;
}

.anchors a{
  display:inline-flex;
  align-items:center;
  min-height:var(--tap);
  padding:0 11px;
  color:var(--ink-soft);
  text-decoration:none;
  font-size:16px;
  border-bottom:2px solid transparent;
  transition:color .22s ease, border-color .22s ease, background .22s ease;
}

.anchors a:hover{color:var(--ink);border-bottom-color:var(--pink)}
.anchors a.on{color:var(--ink);border-bottom-color:var(--pink);background:#fbe7ec}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:clamp(30px,7vw,66px) clamp(16px,5vw,48px) clamp(46px,9vw,80px);
  background:linear-gradient(158deg,#ffffff 0%,#ffe9ee 56%,#ffd7e0 100%);
  border-bottom:1px solid var(--line);
}

.hero::after{
  content:"";
  position:absolute;
  left:38%;
  right:-14%;
  bottom:-34%;
  height:64%;
  background:var(--pink-lt);
  opacity:.5;
  transform:rotate(-7deg);
  border-radius:var(--r);
  z-index:0;
}

.hero-grid{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(16px,4vw,44px);
}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(29px,6.2vw,54px);
  line-height:1.18;
  letter-spacing:-.012em;
  font-weight:700;
}

.lede{
  margin:0 0 22px;
  max-width:46ch;
  font-size:clamp(16px,2.2vw,19px);
  color:var(--ink-soft);
}

.hero-act{margin:0}

.btn{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 23px;
  border-radius:999px;
  background:var(--pink);
  color:#2b1114;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  box-shadow:0 2px 4px rgba(38,23,26,.12), 0 14px 24px -14px rgba(235,135,156,1);
  transition:transform .24s ease, box-shadow .24s ease;
}

.btn:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(38,23,26,.14), 0 18px 28px -14px rgba(235,135,156,1)}

.hero-art{
  width:clamp(92px,21vw,164px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
}

.hero-art svg{
  width:100%;
  height:100%;
  animation:spin 24s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- 内容区 ---------- */
.page{
  padding:clamp(26px,5vw,56px) clamp(14px,4vw,34px) clamp(44px,7vw,76px);
}

.layout{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  gap:clamp(18px,3vw,36px);
  align-items:start;
}

.rail{
  position:sticky;
  top:112px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:16px 16px 14px;
  box-shadow:var(--sh);
}

.rail h2{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--ink-soft);
}

.rail hr{
  border:0;
  height:3px;
  width:36px;
  margin:0 0 12px;
  border-radius:2px;
  background:var(--pink);
}

.rail-list{
  list-style:none;
  counter-reset:rail;
  margin:0 0 10px;
  padding:0;
  display:grid;
  gap:1px;
}

.rail-list li{counter-increment:rail}

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:0 8px;
  border-radius:8px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  transition:background .22s ease, color .22s ease;
}

.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:12.5px;
  font-weight:600;
  color:var(--pink);
  font-variant-numeric:tabular-nums;
}

.rail-list a:hover{background:#fbe7ec}

.rail-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 8px;
  font-size:16px;
  color:var(--ink-soft);
  text-decoration:none;
  border-top:1px solid var(--line);
  width:100%;
}

.rail-top:hover{color:var(--ink)}

.body{min-width:0}

.body div[id]{scroll-margin-top:112px}

.body > div{
  background:var(--card);
  border:1px solid var(--line);
  border-bottom:3px solid var(--pink-lt);
  border-radius:var(--r);
  padding:clamp(18px,3.4vw,34px);
  margin-bottom:clamp(18px,3vw,28px);
  box-shadow:var(--sh);
  transition:opacity .3s ease, transform .3s ease, border-color .24s ease;
}

.body > div:last-child{margin-bottom:0}
.body > div:hover{border-bottom-color:var(--pink)}

.body h2{
  margin:0 0 10px;
  font-size:clamp(21px,3.4vw,27px);
  line-height:1.34;
  letter-spacing:-.01em;
}

.body h2 + hr{
  border:0;
  height:3px;
  width:58px;
  margin:0 0 16px;
  border-radius:2px;
  background:var(--pink);
}

.body h3{
  margin:24px 0 8px;
  font-size:19px;
  line-height:1.45;
}

.body h3 + hr{
  border:0;
  height:1px;
  margin:0 0 12px;
  background:var(--line);
}

.body p{margin:0 0 14px}
.body p:last-child{margin-bottom:0}

.body a{color:var(--link);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

.body ul,.body ol{margin:0 0 16px;padding-left:1.25em}
.body li{margin:0 0 7px}

.body img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:var(--r);
  margin:6px 0 18px;
  box-shadow:var(--sh);
}

.body blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:3px solid var(--pink);
  background:#fdeef1;
  border-radius:0 var(--r) var(--r) 0;
  color:var(--ink-soft);
}

.body strong{font-weight:600}
.body code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.94em;background:#fbe7ec;padding:1px 5px;border-radius:5px}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:#fdf3f5;
  padding:clamp(24px,4vw,42px) clamp(16px,4vw,34px);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(14px,3vw,30px);
}

.foot .brand{color:#fdf3f5}
.foot .mark{background:var(--pink);color:#2b1114}

.foot-brand{display:flex;align-items:center;gap:12px}

.foot-big{
  font-size:clamp(23px,4.2vw,34px);
  font-weight:700;
  letter-spacing:-.015em;
  line-height:1.1;
}

.foot-nav p{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 10px;
  border-radius:8px;
  color:#f7dfe5;
  text-decoration:none;
  font-size:16px;
  transition:background .22s ease, color .22s ease;
}

.foot-nav a:hover{background:rgba(255,182,193,.18);color:#ffffff}

.foot-legal p{margin:0;font-size:16px;color:#e8c9d1}

/* ---------- 滚动显现 ---------- */
.body > div.reveal{opacity:0;transform:translateY(16px)}
.body > div.reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:-1}
  .rail-list{grid-template-columns:1fr 1fr;gap:2px}
  .foot{grid-template-columns:minmax(0,1fr);justify-items:start}
  .foot-legal{order:3}
}

@media (max-width:560px){
  html{scroll-padding-top:104px}
  body{font-size:16px;line-height:1.75}
  .brand-name{display:none}
  .hero{min-height:70vh;padding-top:clamp(24px,9vw,48px)}
  .hero-grid{grid-template-columns:minmax(0,1fr)}
  .hero-art{width:76px;order:-1}
  .anchors a{padding:0 9px}
  .foot-big{font-size:24px}
  .rail-list{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art svg{animation:none}
  .body > div.reveal{opacity:1;transform:none}
  .btn:hover,.cta:hover{transform:none}
}

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