@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root{
  --plum:#26171a;
  --pink:#ffb6c1;
  --primary:#eb879c;
  --deep:#c4556f;
  --blush:#fff8f9;
  --wash:#fdeef1;
  --line:#f3d8df;
  --ink:#2b1b1f;
  --muted:#6a4e54;
  --card:#ffffff;
  --shadow-s:0 2px 4px rgba(38,23,26,.06),0 8px 18px rgba(196,85,111,.09);
  --shadow-m:0 3px 6px rgba(38,23,26,.07),0 18px 34px rgba(196,85,111,.16);
  --display:'Bebas Neue','Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --body:'Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%,#ffe1e8 0%,rgba(255,225,232,0) 62%),
    radial-gradient(900px 480px at 4% 24%,#fdeef1 0%,rgba(253,238,241,0) 58%),
    var(--blush);
  padding-bottom:108px;
}

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

main section[id],main [id^="home"]{scroll-margin-top:92px}

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  background:rgba(38,23,26,.95);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,182,193,.28);
  box-shadow:0 -8px 26px rgba(38,23,26,.3);
  padding:6px max(10px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-bottom));
}

.dock-list{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0 auto;
  padding:2px;
  max-width:1120px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.dock-list::-webkit-scrollbar{display:none}
.dock-list li{flex:0 0 auto}

.dock-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  color:#ffd8e0;
  text-decoration:none;
  white-space:nowrap;
  border-radius:999px;
  transition:background .24s ease,color .24s ease,transform .24s ease;
}
.dock-list a:hover{background:rgba(255,182,193,.18);color:#fff;transform:translateY(-1px)}
.dock-list a[aria-current="true"]{background:var(--primary);color:#26171a;font-weight:700}

.dock-brand a{
  font-family:var(--display);
  font-size:23px;
  letter-spacing:.1em;
  color:#fff;
  padding-right:14px;
  margin-right:8px;
  border-right:1px solid rgba(255,182,193,.34);
  border-radius:0;
  gap:8px;
}
.dock-brand a:hover{background:transparent;color:var(--pink)}
.brand-mark{width:26px;height:26px;border-radius:50%;object-fit:cover;display:block}
.brand-name{display:inline-block;line-height:1.1}

/* ---------- hero ---------- */
.hero{
  position:relative;
  isolation:isolate;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:9vh max(20px,calc((100% - 1120px)/2)) 46px;
  background:linear-gradient(160deg,#3b2429,#26171a 60%,#4a2a32);
  overflow:hidden;
}

.hero-media{
  position:absolute;
  left:0;right:0;top:-10%;bottom:0;
  margin:0;
  overflow:hidden;
  border-radius:0 0 50% 50% / 0 0 13vh 13vh;
  will-change:transform;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to left,rgba(38,23,26,.86),rgba(38,23,26,.5) 52%,rgba(38,23,26,.16));
}
.hero-img{width:100%;height:100%;object-fit:cover;display:block}

.hero-ghost{
  position:absolute;
  left:2%;
  bottom:2vh;
  z-index:1;
  font-family:var(--display);
  font-size:clamp(64px,15vw,182px);
  line-height:.86;
  letter-spacing:.09em;
  color:rgba(255,182,193,.2);
  white-space:nowrap;
  pointer-events:none;
  will-change:transform;
}

.hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  max-width:min(760px,100%);
  margin-left:auto;
  text-align:right;
}

.hero-title{
  margin:0 0 12px;
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(30px,5.3vw,58px);
  line-height:1.06;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 2px 18px rgba(38,23,26,.5);
}

.hero-desc{
  max-width:44ch;
  margin:0 0 0 auto;
  font-size:16.5px;
  color:#ffe6ec;
  text-shadow:0 1px 10px rgba(38,23,26,.5);
}

/* ---------- 主体网格 ---------- */
.stage{
  max-width:1120px;
  margin:0 auto;
  padding:44px 20px 12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:36px;
  align-items:start;
}

main > section + section{margin-top:0}

/* ---------- 正文 ---------- */
.prose{min-width:0;overflow-wrap:break-word}

.prose > section{
  background:var(--card);
  border:1px solid #fbe7eb;
  border-radius:4px;
  box-shadow:var(--shadow-s);
  padding:26px 24px;
  margin-bottom:24px;
}
.prose > section:last-child{margin-bottom:0}

.prose h2{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(23px,3.4vw,31px);
  line-height:1.2;
  letter-spacing:.03em;
  color:var(--plum);
  margin:0 0 14px;
}
.prose h2::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin-top:12px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--primary),var(--pink));
}

.prose h3{
  font-size:19px;
  font-weight:700;
  color:var(--plum);
  margin:26px 0 10px;
}

.prose p{margin:0 0 16px;color:var(--ink)}
.prose p:last-child{margin-bottom:0}

.prose ul,.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--primary)}

.prose img{max-width:100%;height:auto;border-radius:4px;display:block;margin:18px 0;box-shadow:var(--shadow-s)}

.prose blockquote{
  margin:20px 0;
  padding:14px 18px;
  border-left:4px solid var(--pink);
  border-radius:4px;
  background:var(--wash);
  box-shadow:0 2px 4px rgba(38,23,26,.05);
  color:#4a3138;
}
.prose blockquote p:last-child{margin-bottom:0}

.prose a{text-decoration:underline;text-underline-offset:3px}

.prose table{width:100%;border-collapse:collapse;font-size:16px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}

/* ---------- 侧栏 ---------- */
.rail{position:sticky;top:24px}

.rail-card{
  background:var(--card);
  border:1px solid #fbe7eb;
  border-radius:4px;
  box-shadow:var(--shadow-m);
  padding:18px 17px 14px;
}

.rail-kicker{
  display:block;
  font-size:15px;
  font-weight:700;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--deep);
}

.rail-title{
  margin:2px 0 12px;
  font-family:var(--display);
  font-weight:400;
  font-size:25px;
  letter-spacing:.06em;
  color:var(--plum);
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
}
.rail-list li{counter-increment:rail}

.rail-list a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:44px;
  padding:9px 4px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px dashed #f6dfe4;
  transition:color .22s ease,padding-left .22s ease;
}
.rail-list li:last-child a{border-bottom:0}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--display);
  font-size:16px;
  letter-spacing:.06em;
  color:var(--primary);
}
.rail-list a:hover,.rail-list a[aria-current="true"]{color:var(--deep);padding-left:8px}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1120px;
  margin:6px auto 0;
  padding:26px 20px 34px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  font-size:16px;
  color:var(--muted);
}
.foot section{margin:0;min-width:0}
.foot-mid{text-align:center;color:var(--plum);font-weight:600}
.foot-end{text-align:right}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .22s ease,border-color .22s ease;
}
.foot a:hover{color:var(--deep);border-color:var(--primary)}

/* ---------- 滚动进入 ---------- */
.reveal{opacity:0;transform:translateY(14px)}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .3s ease,transform .3s ease;
}

/* ---------- 断点 ---------- */
@media (max-width:960px){
  .stage{
    grid-template-columns:minmax(0,1fr);
    gap:26px;
    padding-top:34px;
  }
  .rail{position:static;order:2}
  .rail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
  .rail-list a{border-bottom:1px dashed #f6dfe4}
  .prose{order:1}
}

@media (max-width:700px){
  body{font-size:16.5px;padding-bottom:100px}
  .hero{min-height:clamp(300px,48vh,400px);padding:52px 20px 34px}
  .hero-media{border-radius:0 0 50% 50% / 0 0 8vh 8vh}
  .hero-title{font-size:clamp(28px,8vw,40px)}
  .hero-desc{font-size:16px}
  .dock-brand a{font-size:21px}
  .stage{padding:26px 16px 10px}
  .prose > section{padding:20px 17px;margin-bottom:16px}
  .foot{grid-template-columns:1fr;gap:2px;text-align:center;padding:20px 16px 26px}
  .foot-mid{order:-1}
  .foot-end{text-align:center}
  .foot-top{text-align:center}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .reveal{opacity:1;transform:none}
  .hero-media,.hero-ghost{transform:none !important}
}

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