@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#000000;
  --blue:#3bb1ff;
  --red:#ff5252;
  --paper:#eef7ff;
  --sky:#d8ecff;
  --white:#ffffff;
  --rail:118px;
}

*{box-sizing:border-box;}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Outfit','Rubik','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.62;
  font-weight:500;
  overflow-wrap:break-word;
}

img{max-width:100%;}

a{color:var(--ink);}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:3px solid var(--red);
  outline-offset:3px;
}

/* ---------- 左侧固定竖排导航 ---------- */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:16px 10px 18px;
  background:var(--ink);
  color:var(--white);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.rail-mark{
  flex:0 0 auto;
  width:52px;height:52px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--blue);
  color:var(--ink);
  border:3px solid var(--white);
  border-radius:14px;
  box-shadow:4px 4px 0 var(--red);
  font-size:24px;
  font-weight:700;
  text-decoration:none;
  line-height:1;
}

.rail-mark img{width:100%;height:100%;object-fit:cover;display:block;}

.rail-nav{width:100%;}

.rail-nav ol{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rail-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:9px 6px;
  background:var(--white);
  color:var(--ink);
  border:3px solid var(--white);
  border-radius:12px;
  box-shadow:3px 3px 0 var(--blue);
  font-size:16px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.rail-nav a:hover{
  background:var(--blue);
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 var(--red);
}

.rail-cta{
  margin-top:auto;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:8px 6px;
  background:var(--red);
  color:var(--ink);
  border:3px solid var(--white);
  border-radius:12px;
  box-shadow:3px 3px 0 var(--blue);
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  transition:transform .14s ease, box-shadow .14s ease;
}

.rail-cta:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--blue);}

/* ---------- 主区 ---------- */
main{margin-left:var(--rail);}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:28px;
  align-items:start;
  padding:0 24px;
}

.stage{min-width:0;}

.hero{
  min-height:100vh;
  min-height:100svh;
  margin:0 0 30px;
  padding:48px 0 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:26px;
}

.hero-top{padding-right:8px;}

h1{
  margin:0;
  font-size:clamp(2.1rem,5.6vw,4.1rem);
  line-height:1.03;
  letter-spacing:-.02em;
  font-weight:700;
}

.hero-lede{
  max-width:46ch;
  margin:16px 0 0;
  font-size:18px;
  font-weight:500;
}

.hero-fig{
  margin:0;
  aspect-ratio:16/9;
  max-height:54vh;
  border:3px solid var(--ink);
  border-radius:18px;
  box-shadow:7px 7px 0 var(--ink);
  background:var(--blue);
  overflow:hidden;
}

.hero-fig:empty{display:none;}

.hero-fig img{width:100%;height:100%;object-fit:cover;display:block;}

/* ---------- 正文块 ---------- */
.stage-body > section{
  background:var(--white);
  border-radius:18px;
  padding:28px 24px;
  margin:0 0 22px;
}

.stage-body > section:nth-of-type(even){background:var(--sky);}

.stage-body > section[id]{scroll-margin-top:26px;}

.stage-body h2{
  margin:0 0 12px;
  font-size:clamp(1.45rem,2.8vw,2rem);
  line-height:1.14;
  font-weight:700;
  letter-spacing:-.01em;
}

.stage-body h3{
  margin:24px 0 10px;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
}

.stage-body p{margin:0 0 14px;}
.stage-body p:last-child{margin-bottom:0;}

.stage-body a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}

.stage-body a:hover{background:var(--blue);}

hr{
  height:0;
  margin:0 0 18px;
  border:0;
  border-top:3px solid var(--ink);
}

.stage-body ul,
.stage-body ol{
  margin:0 0 14px;
  padding-left:22px;
}

.stage-body li{margin:0 0 8px;}

/* ---------- 右侧栏 ---------- */
.side{
  position:sticky;
  top:24px;
  align-self:start;
  background:var(--blue);
  border:3px solid var(--ink);
  border-radius:18px;
  box-shadow:6px 6px 0 var(--ink);
  padding:18px 16px 20px;
}

.side h2{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
}

.side hr{margin:0 0 14px;}

.side ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 11px;
  background:var(--white);
  border:3px solid var(--ink);
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  transition:transform .14s ease, box-shadow .14s ease;
}

.side a:hover{
  background:var(--red);
  transform:translate(-2px,-2px);
  box-shadow:4px 4px 0 var(--ink);
}

/* ---------- 页脚（仅 p 与 small） ---------- */
.foot{
  margin-top:34px;
  padding:36px 24px 24px;
  background:var(--ink);
  color:var(--white);
  border-top:3px solid var(--ink);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:start;
}

.foot p{margin:0;font-size:16px;}

.foot-brand{
  font-size:22px !important;
  font-weight:700;
  color:var(--blue);
  line-height:1.2;
}

.foot-col a{
  display:inline-block;
  padding:4px 0;
  min-height:28px;
  color:var(--white);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.foot-col a:hover{background:var(--red);color:var(--ink);text-decoration:none;}

.sub-form{display:flex;gap:8px;flex-wrap:wrap;}

.sub-form input{
  flex:1 1 110px;
  min-height:46px;
  padding:0 10px;
  border:3px solid var(--white);
  border-radius:10px;
  background:var(--ink);
  color:var(--white);
  font-family:inherit;
  font-size:16px;
}

.sub-form input::placeholder{color:#9fc9e6;}

.sub-form button{
  min-height:46px;
  padding:0 16px;
  border:3px solid var(--white);
  border-radius:10px;
  background:var(--red);
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease;
}

.sub-form button:hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--blue);}

.foot-base{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:6px !important;
  padding-top:16px;
  border-top:3px solid var(--white);
}

.foot-base small{font-size:16px;}

.foot-base a{
  display:inline-block;
  padding:6px 0;
  min-height:32px;
  color:var(--white);
}

/* ---------- 进场 ---------- */
.rv{opacity:0;transform:translateY(16px);transition:opacity .45s ease, transform .45s ease;}
.rv-in{opacity:1;transform:none;}

/* ---------- 响应式 ---------- */
@media (max-width:1080px){
  .wrap{grid-template-columns:minmax(0,1fr) 250px;gap:20px;}
}

@media (max-width:880px){
  .rail{
    position:sticky;
    top:0;left:auto;bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-bottom:3px solid var(--ink);
    overflow:visible;
  }

  .rail-mark{width:42px;height:42px;border-radius:10px;font-size:20px;box-shadow:3px 3px 0 var(--red);}

  .rail-nav{flex:1 1 auto;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;}

  .rail-nav ol{flex-direction:row;gap:8px;}

  .rail-nav a{white-space:nowrap;min-height:42px;padding:8px 13px;box-shadow:2px 2px 0 var(--blue);}

  .rail-cta{display:none;}

  main{margin-left:0;}

  .wrap{grid-template-columns:minmax(0,1fr);padding:0 14px;gap:22px;}

  .hero{padding-top:26px;min-height:auto;}

  .hero-fig{max-height:none;}

  .stage-body > section{padding:22px 16px;margin-bottom:16px;border-radius:14px;}

  .stage-body > section[id]{scroll-margin-top:86px;}

  .side{position:static;border-radius:14px;box-shadow:4px 4px 0 var(--ink);}

  .side ul{flex-direction:row;flex-wrap:wrap;}

  .side li{flex:1 1 130px;}

  .foot{grid-template-columns:1fr 1fr;padding:28px 14px 20px;gap:16px;}

  .foot-base{flex-direction:column;align-items:flex-start;}
}

@media (max-width:420px){
  body{font-size:16px;}
  .hero-lede{font-size:17px;}
  .stage-body > section{padding:20px 14px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .rv{opacity:1;transform:none;transition:none;}
  .rail-nav a,
  .side a,
  .rail-cta,
  .sub-form button{transition:none;}
}

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