@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root{
  --ink:#171f26;
  --ink-2:#4a5b67;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --bg-a:#e7f0f8;
  --bg-b:#f5ecf1;
  --light:rgba(255,255,255,.95);
  --dark:rgba(23,31,38,.16);
  --raise:-6px -6px 14px var(--light), 6px 6px 18px var(--dark);
  --raise-sm:-3px -3px 8px var(--light), 3px 3px 10px var(--dark);
  --sink:inset -4px -4px 10px var(--light), inset 4px 4px 10px var(--dark);
  --r:4px;
  --rail:180px;
}

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

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

body{
  margin:0;
  font-family:'Atkinson Hyperlegible',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:linear-gradient(155deg,var(--bg-a) 0%,var(--bg-b) 60%,#eef2f7 100%);
  background-attachment:fixed;
  min-height:100vh;
}

a:focus-visible,button:focus-visible{outline:3px solid #7fa9c9;outline-offset:3px}

section[id]{scroll-margin-top:92px}

/* 顶部细条 */
.ticker{
  display:none;
  position:fixed;
  inset:0 0 auto 0;
  height:34px;
  align-items:center;
  overflow:hidden;
  z-index:40;
  background:linear-gradient(90deg,var(--blue),var(--pink));
  box-shadow:0 2px 10px rgba(23,31,38,.12);
}
.ticker-track{
  display:flex;
  align-items:center;
  width:max-content;
  font-size:.78rem;
  letter-spacing:.18em;
  color:#31424d;
  animation:tickmove 44s linear infinite;
}
.ticker-track span{padding:0 .9rem;white-space:nowrap}
.ticker-track b{padding:0 .1rem;font-weight:400;opacity:.6}
@keyframes tickmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* 左侧竖排导航 */
.rail{
  position:fixed;
  left:0;right:0;top:0;
  height:56px;
  display:flex;
  align-items:center;
  gap:.2rem;
  padding:0 .6rem;
  overflow-x:auto;
  z-index:50;
  background:linear-gradient(145deg,#e6eef7,#f4ecf1);
  box-shadow:0 6px 18px rgba(23,31,38,.1);
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}
.rail-nav{display:flex;align-items:center;gap:.15rem}
.rail-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 .7rem;
  border-radius:var(--r);
  color:var(--ink);
  font-size:.86rem;
  text-decoration:none;
  white-space:nowrap;
  transition:box-shadow .15s ease,transform .15s ease;
}
.rail-link:hover{box-shadow:var(--raise-sm)}
.rail-link:active{box-shadow:var(--sink);transform:scale(.97)}
.mark{
  order:-1;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:42px;
  padding:0 .7rem;
  margin-right:.4rem;
  border-radius:var(--r);
  color:var(--ink);
  font-weight:700;
  letter-spacing:.04em;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:var(--raise-sm);
}
.mark img{display:block;border-radius:50%}

@media(min-width:861px){
  .ticker{display:flex}
  .rail{
    top:34px;right:auto;bottom:0;
    height:auto;
    width:var(--rail);
    flex-direction:column;
    justify-content:center;
    gap:.15rem;
    padding:1rem .6rem;
    overflow-x:hidden;
    overflow-y:auto;
    box-shadow:1px 0 0 rgba(255,255,255,.9), 8px 0 24px rgba(23,31,38,.08);
  }
  .rail-nav{flex-direction:column;width:100%}
  .rail-link{width:100%;justify-content:center;min-height:44px}
  .mark{order:0;flex-direction:column;gap:.3rem;width:100%;justify-content:center;padding:.6rem .3rem;margin:.5rem 0 .9rem;text-align:center;font-size:.95rem}
  section[id]{scroll-margin-top:70px}
}

/* 主体 */
.stage{padding:calc(56px + 1.2rem) 1rem 3rem}
@media(min-width:861px){.stage{margin-left:var(--rail);padding:calc(34px + 1.4rem) 2rem 4rem}}

.hero{
  position:relative;
  min-height:calc(100svh - 56px);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  text-align:right;
  padding:2rem 0;
  overflow:hidden;
  background-image:radial-gradient(rgba(23,31,38,.11) 1.1px,transparent 1.1px);
  background-size:20px 20px;
}
@media(min-width:861px){
  .hero{min-height:calc(100svh - 34px);padding-right:1rem}
}
.hero-title{
  position:relative;
  z-index:2;
  margin:0;
  max-width:15ch;
  font-size:clamp(2.4rem,7.6vw,5.6rem);
  line-height:1.03;
  letter-spacing:-.02em;
}
.hero-fig{position:absolute;inset:0;margin:0;z-index:1;pointer-events:none}
.orb{
  position:absolute;
  border-radius:50%;
  background:linear-gradient(145deg,#eaf3fb,#f7eaf0);
  box-shadow:-10px -10px 26px #fff, 12px 12px 30px rgba(23,31,38,.13);
}
.orb-a{width:clamp(140px,28vw,290px);aspect-ratio:1;left:3%;top:13%}
.orb-b{width:clamp(100px,19vw,200px);aspect-ratio:1;left:24%;bottom:12%;background:linear-gradient(145deg,var(--pink),var(--blue))}

/* 侧栏 + 正文 */
.cols{display:grid;grid-template-columns:1fr;gap:1.5rem;margin-top:2rem}
@media(min-width:861px){
  .cols{grid-template-columns:minmax(0,230px) minmax(0,1fr);gap:2.4rem;align-items:start}
}
.side{
  padding:1.1rem 1.1rem 1.2rem;
  border-radius:var(--r);
  background:linear-gradient(145deg,#eaf2fa,#f6edf2);
  box-shadow:var(--raise);
  border-bottom:3px solid var(--pink);
}
@media(min-width:861px){.side{position:sticky;top:calc(34px + 1.6rem)}}
.lead{margin:0;font-size:.95rem;line-height:1.75;color:var(--ink-2)}

.body{min-width:0;max-width:70ch}
.body section{
  padding:2.2rem 0;
  border-top:1px solid rgba(23,31,38,.08);
  animation:rise .5s ease both;
}
.body section:first-child{border-top:0;padding-top:0}
.body section:nth-of-type(2){animation-delay:.05s}
.body section:nth-of-type(3){animation-delay:.1s}
.body section:nth-of-type(4){animation-delay:.15s}
.body section:nth-of-type(5){animation-delay:.2s}
.body section:nth-of-type(6){animation-delay:.25s}
.body section:nth-of-type(7){animation-delay:.3s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.body h2{
  font-size:clamp(1.35rem,3.4vw,1.85rem);
  line-height:1.28;
  margin:.15rem 0 .9rem;
  letter-spacing:-.01em;
}
.body h3{font-size:1.15rem;line-height:1.4;margin:1.6rem 0 .6rem}
.body small{display:block;font-size:.78rem;letter-spacing:.2em;color:#66798a;margin-bottom:.15rem}
.body p{margin:0 0 1rem}
.body ul,.body ol{margin:0 0 1.1rem;padding-left:1.25rem}
.body li{margin-bottom:.45rem}
.body a{
  color:#1d3c52;
  text-decoration:underline;
  text-decoration-color:rgba(200,224,244,1);
  text-decoration-thickness:.22em;
  text-underline-offset:.12em;
}
.body a:hover{text-decoration-color:var(--pink)}
.body strong{font-weight:700}
.body figure{
  margin:1.2rem 0;
  padding:1rem;
  border-radius:var(--r);
  background:linear-gradient(145deg,#eaf2fa,#f6eef2);
  box-shadow:var(--raise);
  border-bottom:3px solid var(--blue);
}
.body img{display:block;max-width:100%;height:auto;border-radius:var(--r)}
.body blockquote{
  margin:1.2rem 0;
  padding:1rem 1.1rem;
  border-radius:var(--r);
  background:linear-gradient(145deg,#e9f1f9,#f6edf2);
  box-shadow:var(--sink);
}
.body blockquote p:last-child{margin-bottom:0}
.body time{
  display:inline-block;
  font-size:.82rem;
  letter-spacing:.04em;
  color:var(--ink-2);
  background:#e3edf6;
  padding:.15rem .55rem;
  border-radius:var(--r);
  box-shadow:var(--sink);
}
.body table{width:100%;border-collapse:collapse;font-size:.95rem}
.body th,.body td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid rgba(23,31,38,.1)}
.body hr{border:0;height:1px;background:rgba(23,31,38,.1);margin:1.6rem 0}

/* 页脚 */
.foot{
  margin-top:3rem;
  padding:2rem 1rem 1.2rem;
  background:linear-gradient(160deg,#e6eef7,#f6ecf1);
  box-shadow:inset 0 8px 20px rgba(255,255,255,.9), 0 -6px 22px rgba(23,31,38,.07);
}
@media(min-width:861px){.foot{margin-left:var(--rail);padding:2.6rem 2rem 1.4rem}}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.4rem 1.3rem;
  border-radius:var(--r);
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--raise);
  border-bottom:3px solid rgba(23,31,38,.12);
}
.cta-brand{margin:0;font-size:clamp(1.6rem,6vw,2.6rem);font-weight:700;line-height:1.1;letter-spacing:.02em}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 1.3rem;
  border-radius:var(--r);
  color:var(--ink);
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
  background:linear-gradient(145deg,#eef5fb,#f8eff3);
  box-shadow:var(--raise-sm);
  transition:box-shadow .15s ease,transform .15s ease;
}
.cta-btn:active{box-shadow:var(--sink);transform:scale(.97)}

.fcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;margin:2rem 0 1.6rem}
@media(min-width:861px){.fcols{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fcol dl,.fcol dd{margin:0}
.fcol dt{font-size:.78rem;letter-spacing:.2em;color:var(--ink-2);margin-bottom:.4rem}
.fcol dd{display:flex;flex-direction:column}
.fcol dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--ink);
  font-size:.92rem;
  text-decoration:none;
}
.fcol dd a:hover{text-decoration:underline;text-decoration-color:var(--pink);text-decoration-thickness:.2em}
.fmark{display:inline-flex;align-items:center;gap:.45rem;min-height:40px;color:var(--ink);font-weight:700;text-decoration:none}
.fmark img{display:block;border-radius:50%}
.copy{
  margin:0;
  padding-top:1rem;
  border-top:1px solid rgba(23,31,38,.1);
  font-size:.82rem;
  letter-spacing:.06em;
  color:var(--ink-2);
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ticker-track{animation:none}
  .body section{animation:none}
  .rail-link,.cta-btn{transition:none}
}

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