@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root{
  --ink:#26171a;
  --ink-2:#312024;
  --ink-3:#3b262b;
  --rose:#eb879c;
  --pink:#ffb6c1;
  --paper:#f8eef0;
  --muted:#cfb8bd;
  --r:18px;
  --bar:72px;
  --sh-soft:0 2px 4px rgba(0,0,0,.26), 0 10px 26px rgba(0,0,0,.22);
  --serif:"Playfair Display","Songti SC","Source Han Serif SC",Georgia,"Times New Roman",serif;
}

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

html{
  scroll-behavior:smooth;
  background:var(--ink);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:
    radial-gradient(120% 80% at 88% -8%, #3a2129 0%, rgba(58,33,41,0) 58%),
    radial-gradient(100% 70% at 6% 12%, #35212a 0%, rgba(53,33,42,0) 62%),
    var(--ink);
  color:var(--paper);
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
  padding-bottom:calc(var(--bar) + 26px);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{line-height:1.16; letter-spacing:-.012em; margin:0}
p{margin:0}
img{max-width:100%}
a{color:var(--pink); text-decoration:none}
a:focus-visible{outline:3px solid var(--pink); outline-offset:3px; border-radius:10px}

[id]{scroll-margin-top:26px}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  z-index:40;
  left:50%;
  bottom:calc(10px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(1100px, calc(100% - 18px));
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  border-radius:20px;
  background:rgba(49,32,36,.94);
  border:1px solid rgba(255,182,193,.18);
  box-shadow:0 2px 4px rgba(0,0,0,.34), 0 16px 36px rgba(0,0,0,.46);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.brand-mark{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:12px;
  color:var(--paper);
  font-family:var(--serif);
  font-size:1.02rem;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  transition:background .24s ease, color .24s ease;
}
.brand-mark:hover{background:rgba(255,182,193,.14); color:var(--pink)}

.dock-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.dock-nav::-webkit-scrollbar{display:none}
.dock-nav p{display:flex; gap:3px; white-space:nowrap; margin:0}
.dock-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:0 12px;
  border-radius:12px;
  color:var(--muted);
  font-size:.94rem;
  transition:background .24s ease, color .24s ease;
}
.dock-nav a::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--rose);
  opacity:.85;
  flex:0 0 auto;
}
.dock-nav a:hover{background:rgba(255,182,193,.13); color:var(--paper)}
.dock-nav a:first-child{color:var(--paper); background:rgba(235,135,156,.2)}

/* ---------- 主区 ---------- */
.sheet{display:block}

.hero{
  min-height:100vh;
  min-height:100svh;
  max-width:1160px;
  margin:0 auto;
  padding:58px 18px 132px;
  display:grid;
  grid-template-columns:1fr;
  align-content:center;
  gap:30px;
}

.hero-copy{text-align:right}
.hero h1{
  font-family:var(--serif);
  font-size:clamp(2.5rem,10vw,5.4rem);
  font-weight:700;
  color:var(--paper);
  text-shadow:0 2px 22px rgba(235,135,156,.24);
}
.hero h1::after{
  content:"";
  display:block;
  width:74px;
  height:4px;
  margin:20px 0 0 auto;
  border-radius:3px;
  background:linear-gradient(90deg,var(--rose),rgba(255,182,193,0));
}

.hero-plates{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
}

.plate{
  margin:0;
  aspect-ratio:3/4;
  border-radius:var(--r);
  background:linear-gradient(155deg,var(--ink-3) 0%,#2b1b20 62%,#221518 100%);
  box-shadow:var(--sh-soft);
  overflow:hidden;
  transform:translate3d(0, calc(var(--shift,0px) + var(--py,0px)), 0);
  will-change:transform;
}
.plate-b{--shift:34px}
.plate-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ---------- 分栏 ---------- */
.split{
  max-width:1160px;
  margin:0 auto;
  padding:36px 18px 8px;
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}

.rail ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rail a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  color:var(--muted);
  font-size:.93rem;
  transition:background .24s ease, color .24s ease;
}
.rail a:hover{background:rgba(255,182,193,.16); color:var(--paper)}
.rail a:focus-visible{outline:3px solid var(--pink); outline-offset:2px}

.content{min-width:0}
.content h2{
  font-family:var(--serif);
  font-size:clamp(1.65rem,5vw,2.5rem);
  color:var(--pink);
}
.subtitle{
  margin-top:12px;
  max-width:56ch;
  color:var(--muted);
  font-size:1rem;
}

/* ---------- 正文 ---------- */
.prose{
  margin-top:32px;
  display:grid;
  gap:18px;
}
.prose > div{
  padding:26px 20px;
  border-radius:var(--r);
  background:rgba(255,255,255,.05);
  box-shadow:0 2px 4px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.05);
}
.prose > div:nth-child(even){background:rgba(235,135,156,.1)}
.prose h2,.prose h3{
  font-family:var(--serif);
  color:var(--paper);
  margin-bottom:.5em;
}
.prose h2{font-size:clamp(1.35rem,4vw,1.95rem)}
.prose h3{font-size:1.16rem}
.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 1em; padding-left:1.25em}
.prose li{margin-bottom:.4em}
.prose a{text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px}
.prose img{border-radius:14px; display:block}
.prose strong{color:var(--pink)}

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

/* ---------- 页脚 ---------- */
.foot{
  max-width:1160px;
  margin:52px auto 0;
  padding:34px 18px calc(var(--bar) + 44px);
}
.foot-brand{
  font-family:var(--serif);
  font-size:clamp(2.4rem,13vw,7rem);
  line-height:.94;
  letter-spacing:-.022em;
  color:var(--rose);
  margin-bottom:26px;
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:20px 0;
  border-top:1px solid rgba(255,182,193,.18);
  border-bottom:1px solid rgba(255,182,193,.18);
}
.foot-cols dl{margin:0}
.foot-cols dt{
  font-size:.8rem;
  letter-spacing:.16em;
  color:var(--rose);
  margin-bottom:8px;
}
.foot-cols dd{margin:0}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--muted);
  font-size:.93rem;
  line-height:1.4;
}
.foot-cols a:hover{color:var(--paper)}
.foot-base{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:16px;
  color:var(--muted);
  font-size:.9rem;
}
.foot-base a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:var(--muted);
}
.foot-base a:hover{background:rgba(255,182,193,.16); color:var(--paper)}

/* ---------- 断点 ---------- */
@media (min-width:820px){
  :root{--bar:64px}
  .hero{
    grid-template-columns:1.02fr .98fr;
    align-items:center;
    gap:44px;
    padding:70px 32px 140px;
  }
  .hero-copy{order:2}
  .hero-plates{order:1}
  .split{
    grid-template-columns:232px minmax(0,1fr);
    gap:46px;
    padding:48px 32px 8px;
    align-items:start;
  }
  .rail{position:sticky; top:28px}
  .rail ul{flex-direction:column; flex-wrap:nowrap}
  .prose > div{padding:32px 28px}
  .foot{padding:44px 32px calc(var(--bar) + 56px)}
  .foot-cols{gap:26px}
  .foot-cols a{font-size:.96rem}
}

@media (min-width:1024px){
  body{font-size:18px}
  .prose{grid-gap:22px}
}

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

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