:root{
  --ink:#26171a;
  --ink-soft:#4c333a;
  --deep:#26171a;
  --deep-2:#342025;
  --deep-3:#1e1216;
  --rose:#eb879c;
  --blush:#ffb6c1;
  --paper:#fff7f8;
  --soft:#fff0f3;
  --line:#f1c9d2;
  --line-deep:#5c3a43;
  --link:#a23450;
  --radius:28px;
  --serif:"Crimson Pro",Georgia,"Songti SC","Times New Roman",serif;
  --sans:"Atkinson Hyperlegible","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  padding-bottom:104px;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:#f9e9ec;
  background:
    radial-gradient(900px 520px at 82% -140px,rgba(235,135,156,.36),transparent 70%),
    radial-gradient(680px 420px at -5% 22%,rgba(255,182,193,.15),transparent 70%),
    var(--deep);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--blush);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--blush);outline-offset:2px;border-radius:8px}
img{max-width:100%;height:auto}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:.45rem;
  padding:.5rem .7rem calc(.5rem + env(safe-area-inset-bottom,0px));
  background:rgba(30,18,22,.95);
  border-top:1px solid var(--line-deep);
  backdrop-filter:blur(12px);
}
.dock-side{display:none;margin:0;padding:0;list-style:none;gap:.1rem}
.dock-side a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 .55rem;
  font-size:16px;color:#f2dbe1;border-radius:999px;
  transition:background .22s ease,color .22s ease;
}
.dock-side a:hover{background:rgba(255,182,193,.16);color:#fff;text-decoration:none}
.dock-side a.hit{background:rgba(255,182,193,.26);color:#fff}

.mark{
  display:inline-flex;align-items:center;gap:.45rem;min-height:44px;
  padding:0 .35rem;justify-self:center;color:#fff;
  transition:opacity .22s ease;
}
.mark:hover{text-decoration:none;opacity:.85}
.mark-badge{
  width:28px;height:28px;flex:0 0 28px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg,var(--blush),var(--rose));
  color:#3a1c22;font-family:var(--serif);font-size:15px;font-weight:700;
}
.mark-name{
  font-family:var(--serif);font-size:16px;letter-spacing:.06em;white-space:nowrap;
}

.drawer{justify-self:start;position:relative}
.drawer summary{
  display:inline-flex;align-items:center;gap:.4rem;min-height:44px;
  padding:0 .7rem;border-radius:999px;border:1px solid var(--line-deep);
  color:#f2dbe1;font-size:16px;cursor:pointer;list-style:none;
  transition:border-color .22s ease,background .22s ease;
}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary:hover{border-color:var(--blush);background:rgba(255,182,193,.12)}
.drawer-lines{width:16px;height:2px;border-radius:2px;background:var(--blush);box-shadow:0 5px 0 var(--blush),0 -5px 0 var(--blush)}
.drawer-list{
  position:absolute;left:0;bottom:calc(100% + .55rem);margin:0;padding:.45rem;
  list-style:none;display:grid;gap:2px;min-width:min(76vw,290px);
  background:var(--deep-2);border:1px solid var(--line-deep);
  border-radius:20px;box-shadow:0 2px 4px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.4);
}
.drawer-list a{
  display:flex;align-items:center;min-height:44px;padding:0 .75rem;
  border-radius:12px;color:#f7e6ea;font-size:16px;
}
.drawer-list a:hover,.drawer-list a.hit{background:rgba(255,182,193,.2);color:#fff;text-decoration:none}

.find{margin:0;justify-self:end}
.find input{
  width:88px;height:44px;padding:0 .7rem;font:inherit;font-size:16px;
  border-radius:999px;border:1px solid var(--line-deep);
  background:rgba(255,255,255,.06);color:#fbeef1;
  transition:border-color .22s ease,background .22s ease;
}
.find input::placeholder{color:#c8aeb5}
.find input:focus{border-color:var(--blush);background:rgba(255,255,255,.13);outline-offset:1px}

/* ---------- 首屏 ---------- */
main{display:block;padding:0 .7rem 1rem}
section{
  width:100%;max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;
}
section > .hero,section > div,section > .rail{grid-column:1}
.hero{
  display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;
  padding:2rem .35rem 1.3rem;min-height:44vh;
}
.hero-copy{flex:1 1 240px;min-width:0}
.hero-brand{
  margin:0 0 .45rem;font-size:16px;letter-spacing:.2em;
  color:var(--blush);text-transform:none;
}
h1{
  margin:0 0 .7rem;font-family:var(--serif);font-weight:600;
  font-size:clamp(1.9rem,6vw,3.1rem);line-height:1.16;color:#fff;
  letter-spacing:.01em;
}
.hero-lead{margin:0;max-width:36ch;color:#f0d9df}
.hero-art-wrap{flex:0 0 auto}
.hero-art{
  width:104px;height:104px;border-radius:26px;object-fit:cover;
  border:1px solid var(--line-deep);will-change:transform;
}
.hero-mark{
  display:inline-flex;width:100px;height:100px;border-radius:50%;
  align-items:center;justify-content:center;
  background:linear-gradient(160deg,rgba(255,182,193,.92),rgba(235,135,156,.86));
  color:#3a1c22;font-family:var(--serif);font-size:42px;font-weight:700;
  border:1px solid rgba(255,255,255,.28);will-change:transform;
}

/* ---------- 正文卡片 ---------- */
section > div{
  background:var(--paper);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--radius);
  padding:1.35rem 1.1rem;
  scroll-margin-block-start:1.2rem;
  transition:border-color .25s ease,transform .25s ease;
}
section > div:hover{border-color:var(--rose)}
section > div h2{
  font-family:var(--serif);font-weight:600;color:#3a1c22;
  font-size:clamp(1.4rem,3.6vw,1.95rem);line-height:1.25;
  margin:.15rem 0 .7rem;
}
section > div h3{
  font-family:var(--serif);font-weight:600;color:#3a1c22;
  font-size:1.25rem;line-height:1.35;margin:1.3rem 0 .45rem;
}
section > div h2 + h3{margin-top:.2rem}
section > div small{
  display:block;font-size:16px;letter-spacing:.14em;color:var(--link);
}
section > div p{margin:0 0 .95rem}
section > div a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
section > div ul,section > div ol{margin:0 0 1rem;padding-left:1.3rem}
section > div li{margin:.3rem 0}
section > div li::marker{color:var(--rose)}
section > div strong{color:#4a1c28}
section > div blockquote{
  margin:1rem 0;padding:.7rem 1rem;color:var(--ink-soft);
  background:var(--soft);border-left:3px solid var(--rose);
  border-radius:0 16px 16px 0;
}
section > div time{font-size:16px;color:#8a5661}
section > div figure{margin:1.1rem 0}
section > div figcaption{font-size:16px;color:#8a5661;margin-top:.4rem}
section > div img{border-radius:18px;border:1px solid var(--line)}
section > div table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1rem}
section > div th,section > div td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}
section > div th{background:var(--soft);color:#43222b}
section > div code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;
  background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:.05em .35em;
}
section > div pre{
  overflow-x:auto;background:var(--soft);border:1px solid var(--line);
  border-radius:16px;padding:.9rem;margin:0 0 1rem;
}
section > div pre code{border:0;background:none;padding:0}
section > div hr{border:0;border-top:1px solid var(--line);margin:1.3rem 0}

/* ---------- 侧栏 ---------- */
.rail{
  background:var(--deep-2);color:#f7e6ea;
  border:1px solid var(--line-deep);border-radius:var(--radius);
  padding:.95rem 1rem 1.1rem;
}
.rail-eyebrow{display:block;font-size:16px;letter-spacing:.16em;color:var(--blush)}
.rail-head{
  font-family:var(--serif);font-weight:600;font-size:1.3rem;
  margin:.15rem 0 .7rem;color:#fff;
}
.rail-list{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.rail-list a{
  display:flex;align-items:center;min-height:40px;padding:.35rem .55rem;
  border-radius:12px;color:#f0d9df;font-size:16px;
  transition:background .22s ease,color .22s ease;
}
.rail-list a:hover{background:rgba(255,182,193,.18);color:#fff;text-decoration:none}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:.5rem 1rem;margin-top:1.6rem;padding:1.1rem .9rem 1.4rem;
  border-top:1px solid var(--line-deep);background:var(--deep-3);
  color:#d6bfc6;font-size:16px;
}
.foot-mark a{color:#fff;font-family:var(--serif);font-size:18px;letter-spacing:.04em}
.foot-nav menu{
  display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .3rem;
  margin:0;padding:0;list-style:none;
}
.foot-nav a{
  display:inline-flex;align-items:center;min-height:40px;padding:0 .5rem;
  border-radius:10px;color:#e8cfd5;font-size:16px;
  transition:background .22s ease,color .22s ease;
}
.foot-nav a:hover{background:rgba(255,182,193,.14);color:#fff;text-decoration:none}
.foot-note{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem .5rem;color:#b79aa2}

/* ---------- 桌面 ---------- */
@media (min-width:900px){
  body{padding-bottom:96px}
  .dock{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
    padding:.5rem 1.5rem;
  }
  .dock-side{display:flex}
  .side-a{grid-column:1;justify-self:end}
  .mark{grid-column:2;font-size:17px}
  .mark-name{font-size:17px}
  .side-b{grid-column:3;justify-self:start}
  .find{grid-column:4}
  .find input{width:140px}
  .find input:focus{width:180px}
  .drawer{display:none}
  main{padding:0 1.5rem 1.4rem}
  section{
    grid-template-columns:minmax(0,1fr) 17.5rem;
    gap:1.1rem 1.3rem;align-items:start;
  }
  section > .hero{grid-column:1 / -1;padding:2.6rem .5rem 1.6rem}
  section > div{padding:1.9rem 1.9rem}
  .rail{grid-column:2;grid-row:2 / span 99;position:sticky;top:1.2rem;align-self:start}
  .foot{justify-content:space-between;padding:1.2rem 1.6rem 1.5rem}
  .foot-note{justify-content:flex-end;text-align:right}
}
@media (min-width:1200px){
  h1{font-size:3.3rem}
  .hero-art{width:120px;height:120px}
  .hero-mark{width:116px;height:116px;font-size:48px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .hero-art,.hero-mark{transform:none !important}
}

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