:root{
  --ink:#171f26;
  --ink-soft:#394855;
  --muted:#556472;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --surface-a:#f3f8fd;
  --surface-b:#e5edf5;
  --sl:-6px -6px 16px rgba(255,255,255,.95);
  --sd:6px 6px 16px rgba(23,31,38,.14);
  --sl-sm:-3px -3px 8px rgba(255,255,255,.95);
  --sd-sm:3px 3px 8px rgba(23,31,38,.15);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Quicksand',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background:linear-gradient(170deg,#eaf1f8 0%,#edf2f8 52%,#f8ebf1 100%);
  background-attachment:fixed;
  padding-bottom:112px;
  overflow-x:hidden;
}
img{max-width:100%}
p{margin:0 0 1em}
a{color:var(--ink-soft)}
:focus-visible{outline:2px solid #2a6a92;outline-offset:3px;border-radius:10px}

/* 品牌角标 */
.brandmark{
  position:fixed;top:14px;left:14px;z-index:60;
  width:50px;height:50px;display:grid;place-items:center;
  border-radius:50%;overflow:hidden;
  background:linear-gradient(145deg,#f3f8fd,#e2eaf3);
  box-shadow:var(--sl),var(--sd);
  color:var(--ink);text-decoration:none;
  font-weight:700;font-size:21px;line-height:1;
}
.brandmark img{width:100%;height:100%;object-fit:cover;display:block}
.brandmark:active{box-shadow:inset 4px 4px 10px rgba(23,31,38,.18),inset -4px -4px 10px rgba(255,255,255,.9);transform:scale(.95)}

/* 首屏 */
.stage{
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  text-align:center;
  overflow:hidden;
  padding:clamp(78px,13vh,124px) 20px clamp(58px,10vh,104px);
}
.ghost{
  position:absolute;inset:0;
  display:grid;place-items:center;
  padding:0 10px;
  overflow:hidden;
  pointer-events:none;
  font-family:'Caveat',"Kaiti SC",KaiTi,cursive;
  font-weight:700;
  font-size:clamp(64px,17vw,206px);
  line-height:.92;
  letter-spacing:-.02em;
  color:rgba(23,31,38,.06);
  text-align:center;
  user-select:none;
}
.stage h1{
  position:relative;z-index:3;
  margin:0 0 14px;
  font-size:clamp(30px,6.6vw,58px);
  line-height:1.22;
  font-weight:700;
  letter-spacing:.01em;
  text-shadow:0 1px 0 rgba(255,255,255,.85);
}
.stage .lead{
  position:relative;z-index:3;
  margin:0 auto;max-width:34em;
  font-size:clamp(16px,2.3vw,19px);
  color:var(--ink-soft);
}
.collage{position:absolute;inset:0;margin:0;pointer-events:none;z-index:1}
.collage img{
  position:absolute;display:block;
  width:min(38vw,232px);height:auto;object-fit:cover;
  border-radius:18px;
  box-shadow:var(--sl),var(--sd);
  opacity:.8;
}
.collage img:nth-child(1){top:8%;left:2%;transform:rotate(-7deg)}
.collage img:nth-child(2){bottom:7%;right:2%;transform:rotate(6deg)}

/* 主体分栏 */
.body-area{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px 34px;
  display:grid;
  gap:26px;
  align-items:start;
}
.reader{min-width:0}

/* 正文排版 */
.reader div{
  padding:26px 20px 22px;
  margin:0 0 24px;
  border-radius:0;
  background:linear-gradient(145deg,var(--surface-a),var(--surface-b));
  box-shadow:var(--sl),var(--sd);
  border-bottom:4px solid var(--pink);
  scroll-margin-top:96px;
}
.reader div:nth-of-type(even){border-bottom-color:var(--blue)}
.reader div:last-child{margin-bottom:0}
.reader h2{
  margin:.1em 0 .65em;
  font-size:clamp(21px,3.4vw,27px);
  line-height:1.36;
  font-weight:700;
}
.reader h3{margin:1.3em 0 .5em;font-size:19px;line-height:1.45}
.reader small{
  display:block;
  margin:0 0 .35em;
  font-size:16px;
  letter-spacing:.08em;
  color:#6d7d8a;
}
.reader ul,.reader ol{margin:0 0 1em;padding-left:1.35em}
.reader li{margin:.4em 0}
.reader a{color:#1e5a7d;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.reader strong{color:#0f171d}
.reader img{border-radius:14px;box-shadow:var(--sl-sm),var(--sd-sm);height:auto}
.reader blockquote{
  margin:0 0 1em;padding:14px 18px;
  background:var(--pink);
  border-left:6px solid #d9a9bd;
  border-radius:0;
}
.reader blockquote p:last-child{margin-bottom:0}
.reader table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;font-size:16px}
.reader th,.reader td{padding:9px 12px;border-bottom:1px solid rgba(23,31,38,.16);text-align:left}
.reader hr{border:0;height:2px;background:rgba(23,31,38,.12);margin:1.6em 0}

/* 侧栏 */
.rail{
  padding:22px 18px 20px;
  border-radius:0;
  background:linear-gradient(145deg,#f4f9fd,#e4ecf4);
  box-shadow:var(--sl),var(--sd);
  border-bottom:4px solid var(--blue);
  scroll-margin-top:96px;
}
.rail small{
  display:block;margin:0 0 .3em;
  font-size:16px;letter-spacing:.1em;color:#6d7d8a;
}
.rail h2{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.4;
  font-weight:700;
}
.rail ol{margin:0;padding:0;list-style:none;counter-reset:rail}
.rail li{counter-increment:rail;margin:0 0 4px}
.rail li a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:8px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;font-size:16px;
  line-height:1.35;
}
.rail li a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:'Caveat',cursive;
  font-size:19px;
  color:#8b9dab;
  min-width:1.7em;
  flex:none;
}
.rail li a:hover{background:linear-gradient(145deg,#fbfdff,#e2eaf3);box-shadow:var(--sl-sm),var(--sd-sm)}

/* 页脚 */
.foot{
  max-width:1180px;
  margin:0 auto;
  padding:38px 18px 6px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"brand brand" "links copy";
  gap:10px 14px;
  align-items:center;
}
.foot-brand{
  grid-area:brand;margin:0;
  font-family:'Caveat',"Kaiti SC",KaiTi,cursive;
  font-weight:700;
  font-size:clamp(36px,11vw,82px);
  line-height:1.02;
  letter-spacing:.01em;
  color:#2d3b47;
}
.foot-links{grid-area:links;margin:0;display:flex;flex-wrap:wrap;gap:2px 4px}
.foot-links a{
  padding:12px 10px;
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  font-size:16px;
}
.foot-links a:hover{color:#1e5a7d}
.foot-copy{
  grid-area:copy;
  justify-self:end;
  align-self:center;
  padding:8px 0;
  color:var(--muted);
  font-size:16px;
}

/* 底部导航条 */
.dock{
  position:fixed;
  left:50%;transform:translateX(-50%);
  bottom:14px;z-index:70;
  width:min(560px,calc(100% - 24px));
  display:flex;flex-direction:column-reverse;
  text-align:center;
}
.dock summary{
  list-style:none;
  display:flex;align-items:center;justify-content:center;
  gap:.5em;
  min-height:48px;padding:11px 24px;
  border-radius:999px;
  background:linear-gradient(145deg,#f4f9fd,#e1e9f2);
  box-shadow:var(--sl),var(--sd);
  font-weight:700;font-size:16px;color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.dock summary::-webkit-details-marker{display:none}
.dock summary::after{
  content:"";width:9px;height:9px;flex:none;
  border-right:2px solid #6d7d8a;
  border-bottom:2px solid #6d7d8a;
  transform:rotate(-135deg) translateY(-2px);
  transition:transform .18s ease;
}
.dock[open] summary{box-shadow:inset 5px 5px 12px rgba(23,31,38,.17),inset -5px -5px 12px rgba(255,255,255,.92)}
.dock[open] summary::after{transform:rotate(45deg) translateY(-2px)}
.dock menu{
  margin:0 0 10px;padding:10px;
  list-style:none;
  display:grid;gap:6px;
  border-radius:18px;
  background:linear-gradient(145deg,#f4f9fd,#e3ebf4);
  box-shadow:var(--sl),var(--sd);
  max-height:58vh;overflow-y:auto;
}
.dock menu li{margin:0}
.dock menu li a{
  display:flex;align-items:center;justify-content:center;
  min-height:44px;padding:9px 12px;
  border-radius:12px;
  text-decoration:none;color:var(--ink);
  font-weight:600;font-size:16px;line-height:1.3;
}
.dock menu li a:hover{background:linear-gradient(145deg,#fbfdff,#e0e8f1)}
.dock menu li a:active{box-shadow:inset 3px 3px 8px rgba(23,31,38,.18),inset -3px -3px 8px rgba(255,255,255,.92);transform:scale(.985)}
.details-closed .dock menu{display:none}

/* 动效 */
.reveal-ready [data-reveal]{opacity:0;transform:translateY(14px)}
.reveal-ready [data-reveal].in{
  opacity:1;transform:none;
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal-ready [data-reveal]{opacity:1;transform:none;transition:none}
  .dock summary::after{transition:none}
}

/* 窄屏微调 */
@media (max-width:600px){
  body{font-size:17px;padding-bottom:118px}
  .collage img{width:min(34vw,144px);border-radius:14px;opacity:.58}
  .stage{padding-left:14px;padding-right:14px}
  .reader div{padding:22px 16px 18px}
  .foot{grid-template-columns:1fr;grid-template-areas:"brand" "links" "copy";gap:6px}
  .foot-copy{justify-self:start;padding:0 10px 6px}
}
@media (max-width:900px) and (min-width:601px){
  .collage img{opacity:.65}
}

/* 宽屏 */
@media (min-width:900px){
  .body-area{
    grid-template-columns:minmax(0,1fr) 282px;
    gap:32px;
    padding:0 28px 60px;
  }
  .rail{position:sticky;top:26px}
  .foot{padding:52px 28px 6px}
  .stage h1{max-width:20em}
}

/* 大屏留白 */
@media (min-width:1240px){
  .stage{min-height:72vh}
}

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