@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root{
  --rose:#eb879c;
  --blush:#ffb6c1;
  --ink:#26171a;
  --ink-2:#5b4147;
  --muted:#8d6a73;
  --bg:#fff7f9;
  --panel:rgba(255,255,255,.66);
  --line:rgba(38,23,26,.12);
  --hair:rgba(255,255,255,.85);
  --sh-1:0 2px 4px rgba(38,23,26,.06), 0 12px 26px -14px rgba(235,135,156,.6);
  --sh-2:0 1px 2px rgba(38,23,26,.08), 0 22px 44px -20px rgba(38,23,26,.42);
  --rc:4px;
  --r:10px;
  --rail:236px;
  --pad:clamp(16px,4vw,44px);
  --scroll:26px;
}

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

html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  font-family:'Roboto',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--bg);
  background-image:
    radial-gradient(1200px 680px at 92% -12%, #ffe4ea 0%, rgba(255,228,234,0) 62%),
    linear-gradient(180deg,#fff9fb 0%, #fff3f6 42%, #fbe9ee 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr);
}

a{color:#a8425c}
a:focus-visible,summary:focus-visible,button:focus-visible{
  outline:3px solid var(--rose);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px 18px 22px;
  overflow-y:auto;
  overflow-x:visible;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(252,235,240,.94));
  border-right:1px solid var(--line);
  box-shadow:8px 0 26px -20px rgba(38,23,26,.45);
  backdrop-filter:blur(10px);
  z-index:30;
}
.rail-head{display:flex;flex-direction:column;gap:12px}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(235,135,156,.4);
  box-shadow:var(--sh-1);
  text-decoration:none;
  transition:transform .24s ease, box-shadow .24s ease;
}
.mark:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.mark img{width:30px;height:30px;object-fit:contain;display:block;border-radius:6px}
.mark-dot{
  width:16px;height:16px;border-radius:50%;
  background:radial-gradient(circle at 32% 30%,var(--blush),var(--rose));
  box-shadow:0 0 0 6px rgba(255,182,193,.3);
}

.drawer summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:44px;
  padding:9px 13px;
  border-radius:var(--r);
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--sh-1);
  font-size:16px;
  font-weight:500;
  letter-spacing:.06em;
  color:var(--ink-2);
  transition:background .22s ease, color .22s ease;
}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary:hover{background:#fff3f6;color:var(--ink)}

.bars{
  position:relative;
  width:18px;height:2px;
  border-radius:2px;
  background:var(--rose);
  transition:transform .24s ease;
}
.bars::before,.bars::after{
  content:"";
  position:absolute;left:0;
  width:18px;height:2px;
  border-radius:2px;
  background:var(--rose);
  transition:transform .24s ease;
}
.bars::before{top:-6px}
.bars::after{top:6px}
.drawer[open] .bars{transform:rotate(45deg)}
.drawer[open] .bars::before{transform:translateY(6px) rotate(-90deg)}
.drawer[open] .bars::after{transform:translateY(-6px) rotate(-90deg)}

.menu{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 13px;
  border-radius:8px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  background:rgba(255,255,255,.55);
  transition:background .22s ease, color .22s ease, transform .22s ease;
}
.menu a:hover,.menu a:focus-visible{
  background:rgba(235,135,156,.2);
  color:#1d1013;
  transform:translateX(3px);
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--rose),#d4637c);
  color:#fff;
  font-weight:600;
  font-size:16px;
  letter-spacing:.08em;
  text-decoration:none;
  box-shadow:0 2px 4px rgba(38,23,26,.12), 0 16px 28px -14px rgba(235,135,156,.95);
  transition:transform .24s ease, box-shadow .24s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 3px 6px rgba(38,23,26,.16), 0 20px 32px -14px rgba(235,135,156,1)}

.rail-foot{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.rail-foot h2{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--ink-2);
}
.rail-foot .subtitle{
  margin:6px 0 0;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

/* ---------- 主区 ---------- */
main{min-width:0}

div{
  max-width:1020px;
  margin:0 auto;
  padding:0 var(--pad) 88px;
}

.hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:100vh;
  min-height:100svh;
  margin:0 calc(var(--pad) * -1) 46px;
  padding:clamp(28px,6vw,76px) var(--pad);
  overflow:hidden;
  background-color:#fff5f8;
  background-image:radial-gradient(rgba(235,135,156,.4) 1.1px, transparent 1.1px);
  background-size:20px 20px;
  border-bottom:1px solid rgba(235,135,156,.35);
}
.hero::after{
  content:"";
  position:absolute;
  right:-12%;bottom:-32%;
  width:54vw;height:54vw;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,182,193,.6),rgba(255,182,193,0) 68%);
  pointer-events:none;
}
.hero-in{
  position:relative;
  z-index:1;
  width:100%;
  max-width:880px;
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:18px;
  text-align:right;
}
.hero h1{
  margin:0;
  font-size:clamp(29px,5vw,56px);
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.005em;
  color:var(--ink);
  text-shadow:0 2px 0 rgba(255,255,255,.7);
}
.hero-lead{
  margin:0;
  max-width:44ch;
  font-size:clamp(16px,1.9vw,19px);
  line-height:1.7;
  color:#573a41;
}
.hero-img{
  width:100%;
  height:clamp(180px,34vh,340px);
  margin-top:6px;
  object-fit:cover;
  border-radius:6px;
  border:4px solid rgba(255,255,255,.8);
  box-shadow:var(--sh-2);
}

/* ---------- 正文区块（来自 page.content） ---------- */
div > section[id]{
  scroll-margin-top:var(--scroll);
  margin:0 0 22px;
  padding:clamp(20px,3.4vw,34px);
  border-radius:var(--rc);
  background:var(--panel);
  border:1px solid var(--hair);
  backdrop-filter:blur(10px) saturate(1.06);
  box-shadow:var(--sh-1);
}
div > section[id]:last-of-type{margin-bottom:0}

div h2{
  margin:0 0 14px;
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.35;
  font-weight:700;
  letter-spacing:.01em;
  color:#2b171c;
}
div h2::after{
  content:"";
  display:block;
  width:46px;height:4px;
  margin-top:11px;
  border-radius:4px;
  background:linear-gradient(90deg,var(--rose),rgba(255,182,193,0));
}
div h3{
  margin:22px 0 10px;
  font-size:19px;
  line-height:1.45;
  color:#3a1f26;
}
p.subtitle{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}
div p{margin:0 0 14px;color:var(--ink-2)}
div p:last-child{margin-bottom:0}
div ul,div ol{margin:0 0 16px;padding-left:1.35em}
div li{margin:0 0 8px}
div a{text-decoration:underline;text-underline-offset:3px}
div a:hover{color:#7d2c40}
div img{max-width:100%;height:auto;border-radius:var(--rc)}
div blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:4px solid var(--blush);
  background:rgba(255,255,255,.6);
  border-radius:0 var(--rc) var(--rc) 0;
  color:#4c3037;
}

/* ---------- 页脚 ---------- */
.foot{
  grid-column:2;
  margin-top:44px;
  padding:clamp(28px,4vw,54px) var(--pad) 32px;
  background:linear-gradient(180deg,#2c1a1f,#1b0f12);
  color:#f8e8ed;
  border-top:3px solid var(--rose);
}
.foot section{max-width:1020px;margin-left:auto;margin-right:auto}

.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:30px !important;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,182,193,.24);
}
.cta-big{
  margin:0;
  font-size:clamp(22px,3.4vw,34px);
  font-weight:700;
  letter-spacing:.03em;
  line-height:1.3;
  color:#fff;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 26px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blush),var(--rose));
  color:#26171a;
  font-weight:700;
  font-size:16px;
  letter-spacing:.08em;
  text-decoration:none;
  box-shadow:0 3px 8px rgba(0,0,0,.28);
  transition:transform .24s ease;
}
.btn:hover{transform:translateY(-2px)}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px 20px;
  margin-bottom:26px !important;
}
.fcol{display:flex;flex-direction:column;min-width:0}
.fcol a{
  display:flex;
  align-items:center;
  min-height:42px;
  font-size:16px;
  color:#efd3da;
  text-decoration:none;
  transition:color .22s ease;
}
.fcol a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}

.foot-legal{padding-top:16px;border-top:1px solid rgba(255,182,193,.2)}
.foot-legal p{margin:0;font-size:16px;color:#c6a5ae}

/* ---------- 动效 ---------- */
.js div > section[id]{opacity:0;transform:translateY(16px)}
.js div > section[id].in{
  opacity:1;
  transform:none;
  transition:opacity .28s ease, transform .28s ease;
}
.js .menu li{
  opacity:0;
  transform:translateY(-5px);
  animation:drop .26s ease forwards;
  animation-delay:var(--d,0ms);
}
@keyframes drop{to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms !important;animation-duration:.001ms !important}
  .js div > section[id]{opacity:1;transform:none}
  .js .menu li{opacity:1;transform:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:860px){
  body{display:block}
  .rail{
    position:sticky;
    top:0;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line);
    box-shadow:0 8px 22px -18px rgba(38,23,26,.55);
  }
  .rail-head{flex:1;flex-direction:row;align-items:center;gap:10px}
  .mark{width:42px;height:42px;border-radius:10px}
  .mark img{width:26px;height:26px}
  .drawer{margin-left:auto}
  .drawer summary{min-height:42px;padding:8px 14px;font-size:16px}
  .menu{
    position:absolute;
    left:0;right:0;top:100%;
    margin:0;
    padding:10px 12px;
    background:#fff;
    border-bottom:1px solid var(--line);
    border-radius:0 0 12px 12px;
    box-shadow:var(--sh-2);
  }
  .menu a{background:transparent}
  .cta{display:none}
  .rail-foot{display:none}

  div{padding:0 var(--pad) 56px}
  .hero{
    min-height:0;
    margin:0 calc(var(--pad) * -1) 30px;
    padding:32px var(--pad) 28px;
  }
  .hero-in{align-items:flex-start;text-align:left}
  .hero::after{width:70vw;height:70vw;right:-20%;bottom:-26%}
  .hero-img{height:clamp(160px,32vh,240px)}
  div > section[id]{scroll-margin-top:84px;padding:20px 18px;margin-bottom:16px}
  .foot-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-cta{flex-direction:column;align-items:flex-start}
}

@media (max-width:400px){
  .foot-cols{grid-template-columns:1fr}
}

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