@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --ink:#171f26;
  --sky:#c8e0f4;
  --rose:#f5e0e8;
  --bg:#e9eef4;
  --line:rgba(23,31,38,.1);
  --r:18px;
  --up:-7px -7px 16px rgba(255,255,255,.95), 8px 8px 20px rgba(23,31,38,.14);
  --flat:-4px -4px 10px rgba(255,255,255,.9), 5px 5px 13px rgba(23,31,38,.11);
  --down:inset -3px -3px 8px rgba(255,255,255,.95), inset 4px 4px 10px rgba(23,31,38,.16);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  background:
    radial-gradient(1100px 640px at 4% -8%, #dbeaf8 0%, rgba(219,234,248,0) 60%),
    radial-gradient(900px 600px at 100% 4%, #f9e8ef 0%, rgba(249,232,239,0) 58%),
    var(--bg);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%}
a{color:inherit;text-decoration:none}

:focus-visible{
  outline:2px solid #7fa9cc;
  outline-offset:3px;
  border-radius:12px;
}

/* 左侧固定栏 */
.side{
  position:fixed;
  inset:0 auto 0 0;
  width:228px;
  z-index:20;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
  padding:22px 16px 18px;
  background:linear-gradient(160deg,#f2f7fb,#e4edf5);
  box-shadow:8px 0 24px rgba(23,31,38,.08);
}

.brand{
  width:46px;
  height:46px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:14px;
  font-weight:800;
  font-size:18px;
  color:#22404f;
  background:linear-gradient(145deg,var(--sky),#b6d4ec);
  box-shadow:var(--flat);
  transition:transform .15s ease, box-shadow .15s ease;
}
.brand img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
}
.brand:active{transform:scale(.95);box-shadow:var(--down)}

.side-nav{
  width:100%;
  flex:1 1 auto;
  overflow-y:auto;
}
.side-nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.side-nav a{
  display:block;
  padding:11px 15px;
  min-height:42px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  color:#2c3f4c;
  background:linear-gradient(145deg,#eef4f9,#dfe9f2);
  box-shadow:var(--flat);
  transition:transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.side-nav a:hover{transform:translateX(3px);color:#12222c}
.side-nav a:active{box-shadow:var(--down);transform:translateX(1px) scale(.99)}

.cta{
  margin-top:auto;
  display:block;
  width:100%;
  text-align:center;
  padding:13px 16px;
  min-height:44px;
  border-radius:999px;
  font-size:16px;
  font-weight:800;
  color:#1d3441;
  background:linear-gradient(145deg,var(--rose),#eecdd9);
  box-shadow:var(--up);
  transition:transform .15s ease, box-shadow .15s ease;
}
.cta:active{transform:scale(.97);box-shadow:var(--down)}

/* 主区 */
.page{
  position:relative;
  margin-left:228px;
  padding:clamp(18px,3vw,38px) clamp(16px,3.4vw,48px) 72px;
  max-width:1280px;
}

.stage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(20px,4vw,54px);
  align-items:center;
  min-height:70vh;
  padding:clamp(10px,3vw,28px) 0 clamp(26px,5vw,52px);
}
.stage::before{
  content:"01";
  position:absolute;
  left:-.04em;
  top:-.14em;
  z-index:0;
  font-size:clamp(5rem,15vw,12rem);
  font-weight:800;
  line-height:.9;
  letter-spacing:-.05em;
  color:rgba(23,31,38,.05);
  pointer-events:none;
}
.stage-copy{position:relative;z-index:1}

.kicker{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
  color:#4a6a7e;
}

h1{
  margin:0 0 14px;
  font-size:clamp(2rem,4.6vw,3.3rem);
  line-height:1.14;
  letter-spacing:-.025em;
  font-weight:800;
}

.lede{
  margin:0;
  max-width:46ch;
  font-size:17.5px;
  color:#3d4f5c;
}

.stage-art{
  position:relative;
  z-index:1;
  margin:0;
  border-radius:var(--r);
  overflow:hidden;
  min-height:clamp(230px,44vh,440px);
  background:linear-gradient(145deg,var(--sky) 0%, #d9e7f4 38%, var(--rose) 100%);
  box-shadow:var(--up);
  will-change:transform;
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.72;
}
.orb-a{
  width:58%;
  aspect-ratio:1;
  left:-10%;
  bottom:-14%;
  background:radial-gradient(circle at 30% 30%, #fff, #f6dce6 60%, #e9c6d6);
  animation:drift 11s ease-in-out infinite alternate;
}
.orb-b{
  width:40%;
  aspect-ratio:1;
  right:-6%;
  top:-10%;
  background:radial-gradient(circle at 40% 40%, #fff, #d3e8f9 60%, #aecfe9);
  animation:drift 14s ease-in-out infinite alternate-reverse;
}
.stage-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:var(--r);
}
@keyframes drift{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(10px,-16px,0) scale(1.14)}
}

/* 侧栏 + 正文 */
.doc{
  display:grid;
  grid-template-columns:minmax(0,250px) minmax(0,1fr);
  gap:clamp(18px,3vw,42px);
  align-items:start;
  padding-top:clamp(16px,3vw,30px);
}

.rail{
  position:sticky;
  top:24px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.rail-block{
  padding:16px 15px 18px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#f2f7fb,#e5eef6);
  box-shadow:var(--flat);
}
.rail h2{
  margin:0 0 12px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.01em;
}
.rail h2 span{
  display:inline-block;
  padding:4px 11px;
  border-radius:999px;
  color:#2b4a5d;
  background:linear-gradient(145deg,#dfeaf5,#cfe0ef);
  box-shadow:var(--down);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:9px 12px;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  color:#33475a;
  background:linear-gradient(145deg,#eff5fa,#e2ebf4);
  box-shadow:var(--flat);
  transition:transform .15s ease, box-shadow .15s ease;
}
.rail-list a:active{transform:scale(.98);box-shadow:var(--down)}
.rail-brand{
  margin:0 0 12px;
  font-weight:700;
}
.rail-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:11px;
  border-radius:999px;
  font-weight:800;
  color:#1d3441;
  background:linear-gradient(145deg,var(--rose),#eecdd9);
  box-shadow:var(--up);
}
.rail-cta:active{box-shadow:var(--down);transform:scale(.97)}

.doc-body{
  position:relative;
  max-width:74ch;
  font-size:17px;
}
.doc-body section{scroll-margin-top:24px}
.doc-body section[id]{scroll-margin-top:24px}
.doc-body section + section{
  margin-top:2.4rem;
  padding-top:2.2rem;
  border-top:1px solid var(--line);
}
.doc-body h2,
.doc-body h3{
  margin:0 0 .6em;
  line-height:1.28;
  font-weight:800;
  letter-spacing:-.012em;
}
.doc-body h2{font-size:clamp(1.4rem,2.6vw,1.85rem)}
.doc-body h3{font-size:1.22rem}
.doc-body p{margin:0 0 1.05em;color:#2b3a45}
.doc-body ul,
.doc-body ol{margin:0 0 1.15em;padding-left:1.35em}
.doc-body li{margin:.35em 0;color:#2b3a45}
.doc-body strong{font-weight:800}
.doc-body a{
  color:#1f5b7a;
  text-decoration:underline;
  text-underline-offset:2px;
}
.doc-body img{
  height:auto;
  border-radius:var(--r);
  box-shadow:var(--flat);
}
.doc-body blockquote{
  margin:1.2em 0;
  padding:14px 18px;
  border-radius:var(--r);
  color:#31434f;
  background:linear-gradient(145deg,#f1f6fa,#e4edf5);
  box-shadow:var(--flat);
}
.doc-body blockquote p:last-child{margin-bottom:0}

/* 页脚 */
.foot{
  margin-left:228px;
  margin-top:44px;
  padding:26px clamp(16px,3.4vw,48px) 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  background:linear-gradient(160deg,#eef4f9,#e3ecf4);
  box-shadow:inset 0 8px 18px rgba(255,255,255,.9), inset 0 -8px 18px rgba(23,31,38,.06);
}
.foot-brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:16px;
  font-weight:800;
}
.foot-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--sky),var(--rose));
  box-shadow:var(--flat);
}
.foot-nav{
  display:flex;
  flex-wrap:wrap;
  gap:2px 10px;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 8px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  color:#37505f;
}
.foot-nav a:hover{color:#12222c;background:rgba(255,255,255,.6)}
.foot-copy{
  margin:0;
  font-size:16px;
  color:#4a5c68;
}

/* 回到顶部 */
.to-top{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:30;
  min-height:44px;
  padding:11px 16px;
  border:0;
  border-radius:999px;
  font:inherit;
  font-size:16px;
  font-weight:800;
  color:#1d3441;
  cursor:pointer;
  background:linear-gradient(145deg,#eaf1f7,#dbe7f1);
  box-shadow:var(--up);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .15s ease, box-shadow .15s ease;
}
.to-top.on{opacity:1;pointer-events:auto}
.to-top:active{box-shadow:var(--down);transform:scale(.97)}

@media (max-width:940px){
  .side{
    position:sticky;
    top:0;
    inset:auto;
    width:auto;
    height:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    box-shadow:0 8px 20px rgba(23,31,38,.1);
  }
  .brand{width:42px;height:42px}
  .side-nav{
    order:3;
    width:100%;
    flex:none;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:2px;
  }
  .side-nav p{
    flex-direction:row;
    gap:8px;
    width:max-content;
  }
  .side-nav a{
    display:flex;
    align-items:center;
    white-space:nowrap;
    padding:9px 15px;
  }
  .side-nav a:hover{transform:none}
  .cta{
    margin-left:auto;
    width:auto;
    flex:none;
    display:flex;
    align-items:center;
    padding:11px 18px;
    min-height:42px;
  }
  .page{
    margin-left:0;
    padding:18px 16px 56px;
  }
  .stage{
    grid-template-columns:1fr;
    min-height:0;
    gap:20px;
    padding:6px 0 26px;
  }
  .stage::before{font-size:5.5rem;top:-.2em}
  .stage-art{min-height:210px;order:2}
  .doc{grid-template-columns:1fr}
  .rail{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    gap:12px;
  }
  .rail-block{flex:1 1 240px}
  .rail-list{flex-direction:row;flex-wrap:wrap}
  .rail-list li{flex:1 1 auto}
  .rail-list a{justify-content:center}
  .doc-body section,
  .doc-body section[id]{scroll-margin-top:122px}
  .foot{
    margin-left:0;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:22px 16px 30px;
  }
  .foot-copy{order:3}
  .to-top{right:14px;bottom:14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .orb{animation:none}
  .brand,.side-nav a,.cta,.rail-list a,.rail-cta,.to-top{transition-duration:.01ms}
}

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