@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root{
  --bg:#e8eff6;
  --ink:#171f26;
  --ink-2:#465863;
  --pri:#c8e0f4;
  --sec:#f5e0e8;
  --line:#1e5c8a;
  --r:18px;
  --pad-x:30px;
  --sh:-6px -6px 16px rgba(255,255,255,.92), 7px 7px 20px rgba(23,31,38,.14);
  --sh-sm:-3px -3px 8px rgba(255,255,255,.88), 4px 4px 10px rgba(23,31,38,.12);
  --sh-in:inset -4px -4px 10px rgba(255,255,255,.92), inset 4px 4px 10px rgba(23,31,38,.14);
  --font:'Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --display:'Bebas Neue','Source Sans 3','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  padding-left:240px;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
}

img{ display:block; max-width:100%; height:auto }
p{ margin:0 0 1em }
a{ color:var(--ink) }
h1,h2,h3,h4{ font-family:var(--display); font-weight:700; letter-spacing:.01em; line-height:1.15 }
h1{ font-size:clamp(2.3rem,6vw,4.6rem); line-height:1.05; margin:0 0 18px }
h2{ font-size:clamp(1.35rem,2.6vw,1.9rem); margin:0 0 .55em }
h3{ font-size:1.18rem; margin:1.4em 0 .5em }
h4{ font-size:1.04rem; margin:1.2em 0 .4em }

.sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* soft reveal */
[data-reveal]{ transition:opacity .62s ease, transform .62s cubic-bezier(.2,.7,.3,1) }
.reveal-on [data-reveal]{ opacity:0; transform:translateY(20px) }
.reveal-on [data-reveal].is-in{ opacity:1; transform:none }

/* ---------- 左侧竖排导航 ---------- */
.side{
  position:fixed;
  inset:0 auto 0 0;
  width:240px;
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:26px 20px 30px;
  overflow-y:auto;
  background:linear-gradient(158deg,#f0f6fb,#dae6f1);
  box-shadow:8px 0 26px rgba(23,31,38,.09);
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:8px 12px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.04em;
  box-shadow:var(--sh-sm);
  background:linear-gradient(145deg,#f6fafd,#dde8f3);
  transition:transform .15s ease, box-shadow .15s ease;
}
.brand:active{ transform:scale(.98); box-shadow:var(--sh-in) }
.brand-mark{
  width:22px; height:22px; border-radius:8px; flex:0 0 auto;
  background:linear-gradient(145deg,var(--sec),var(--pri));
  box-shadow:-2px -2px 6px rgba(255,255,255,.9), 2px 2px 6px rgba(23,31,38,.16);
}
.brand-name{ font-size:1rem }

nav{ min-width:0 }
nav p{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0;
  padding:0;
}
nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-size:.95rem;
  font-weight:600;
  color:var(--ink);
  background:linear-gradient(145deg,#f3f8fc,#e0ebf5);
  box-shadow:var(--sh-sm);
  transition:transform .15s ease, box-shadow .15s ease, color .15s ease;
}
nav a:hover{ box-shadow:var(--sh-in); color:#0f3a58 }
nav a:active{ transform:scale(.975) }
nav a.on{ box-shadow:var(--sh-in); color:#0f3a58 }
.dot{
  width:7px; height:7px; flex:0 0 auto; border-radius:50%;
  background:linear-gradient(145deg,var(--pri),var(--sec));
  box-shadow:0 0 0 2px rgba(255,255,255,.7);
}

.call{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:.94rem;
  color:#0f3a58;
  background:linear-gradient(145deg,#faf3f6,#ecd9e3);
  box-shadow:var(--sh-sm);
  transition:transform .15s ease, box-shadow .15s ease;
}
.call:active{ transform:scale(.97); box-shadow:var(--sh-in) }

/* ---------- 主体网格 ---------- */
main{
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--pad-x) 70px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:30px;
  align-items:start;
}

/* ---------- hero ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  overflow:hidden;
  min-height:100vh;
  display:flex;
  align-items:center;
  gap:46px;
  padding:64px 0 110px;
}
.hero-copy{ flex:1 1 52%; min-width:0; text-align:left; position:relative; z-index:2 }
.lede{
  max-width:34ch;
  font-size:1.06rem;
  color:var(--ink-2);
  margin:0 0 28px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 28px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.02em;
  background:linear-gradient(145deg,#fafcfe,#d9e6f2);
  box-shadow:var(--sh);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ box-shadow:var(--sh-in) }
.btn:active{ transform:scale(.97) }

.hero-art{
  flex:1 1 46%;
  position:relative;
  aspect-ratio:4 / 3;
  border-radius:var(--r);
  overflow:hidden;
  background:linear-gradient(145deg,#e6eef7,#d2e0ee);
  box-shadow:var(--sh-in);
}
.hero-art::after{
  content:"";
  position:absolute;
  inset:auto 18px 18px auto;
  width:74px; height:74px;
  border-radius:22px;
  background:linear-gradient(145deg,var(--sec),var(--pri));
  opacity:.6;
  box-shadow:-3px -3px 10px rgba(255,255,255,.7);
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}
.hero-slash{
  position:absolute;
  left:0; right:0; bottom:0;
  height:96px;
  background:linear-gradient(92deg,var(--pri),var(--sec));
  clip-path:polygon(0 62%,100% 0,100% 100%,0 100%);
  z-index:1;
}

/* ---------- 正文卡片 ---------- */
.doc{ min-width:0 }
.doc > article{
  position:relative;
  margin:0 0 28px;
  padding:28px 28px 34px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#f1f7fc,#dee9f3);
  box-shadow:var(--sh);
  scroll-margin-top:26px;
}
.doc > article::after{
  content:"";
  position:absolute;
  left:28px; right:28px; bottom:0;
  height:3px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--pri),var(--sec));
}
.doc a{
  color:var(--line);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.doc ul,.doc ol{ margin:0 0 1em; padding-left:1.3em }
.doc li{ margin:.35em 0 }
.doc blockquote{
  margin:1.4em 0;
  padding:16px 20px;
  border-radius:14px;
  background:linear-gradient(145deg,#eef4fa,#e0eaf4);
  box-shadow:var(--sh-in);
  color:var(--ink-2);
}
.doc img{ border-radius:14px; box-shadow:var(--sh-sm); margin:1em 0 }
.doc table{ width:100%; border-collapse:collapse; font-size:.96rem; margin:1em 0 }
.doc th,.doc td{ padding:9px 10px; text-align:left; border-bottom:1px solid rgba(23,31,38,.1) }

/* ---------- 右侧 aside ---------- */
.rail{
  position:sticky;
  top:28px;
  padding:22px 20px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#eff5fb,#dbe7f2);
  box-shadow:var(--sh);
}
.rail h2{ font-size:1.05rem; letter-spacing:.08em; margin:0 0 2px }
.subtitle{
  margin:0 0 16px;
  font-size:.78rem;
  letter-spacing:.16em;
  color:var(--ink-2);
}
.toc{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  display:grid;
  gap:7px;
}
.toc a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 13px;
  border-radius:12px;
  text-decoration:none;
  font-size:.94rem;
  background:linear-gradient(145deg,#f4f9fd,#e2ecf6);
  box-shadow:var(--sh-sm);
  transition:transform .15s ease, box-shadow .15s ease;
}
.toc a:hover{ box-shadow:var(--sh-in) }
.toc a:active{ transform:scale(.975) }
.totop{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:12px;
  text-decoration:none;
  font-size:.92rem;
  color:var(--ink-2);
  box-shadow:var(--sh-in);
}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--pad-x) 44px;
}
.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px 18px;
  padding:16px 22px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#eff5fb,#dce8f3);
  box-shadow:var(--sh);
}
.foot-name{ font-style:normal; font-weight:700; letter-spacing:.03em }
.foot-nav{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
}
.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  text-decoration:none;
  font-size:.9rem;
  box-shadow:var(--sh-sm);
  transition:box-shadow .15s ease;
}
.foot-nav a:hover{ box-shadow:var(--sh-in) }
.foot-call{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font-size:.9rem;
  color:#0f3a58;
  background:linear-gradient(145deg,#faf3f6,#ecd9e3);
  box-shadow:var(--sh-sm);
}
.foot-form{ margin-left:auto; display:flex; gap:8px }
.foot-form input{
  width:158px;
  min-height:42px;
  padding:0 14px;
  border:0;
  border-radius:12px;
  font-family:inherit;
  font-size:.94rem;
  color:var(--ink);
  background:#e3ecf5;
  box-shadow:var(--sh-in);
}
.foot-form input::placeholder{ color:#69808f }
.foot-form button{
  min-height:42px;
  padding:0 20px;
  border:0;
  border-radius:12px;
  font-family:inherit;
  font-size:.94rem;
  font-weight:600;
  color:#0f3a58;
  cursor:pointer;
  background:linear-gradient(145deg,#f9f4f7,#e8d7e2);
  box-shadow:var(--sh-sm);
  transition:transform .15s ease, box-shadow .15s ease;
}
.foot-form button:active{ transform:scale(.97); box-shadow:var(--sh-in) }
.copy{
  margin:20px 0 0;
  text-align:center;
  font-size:.85rem;
  color:var(--ink-2);
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  body{ padding-left:0 }
  .side{
    position:sticky;
    inset:auto;
    top:0;
    width:100%;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    overflow:visible;
    background:linear-gradient(160deg,#f0f6fb,#dfeaf4);
    box-shadow:0 10px 24px rgba(23,31,38,.11);
  }
  .brand{ padding:6px 9px; min-height:42px; flex:0 0 auto }
  .brand-name{ font-size:.94rem }
  nav{ flex:1 1 auto }
  nav p{
    flex-direction:row;
    gap:7px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  nav p::-webkit-scrollbar{ display:none }
  nav a{ white-space:nowrap; min-height:42px; padding:8px 12px }
  .call{ margin-top:0; flex:0 0 auto; min-height:42px; padding:8px 14px }

  main{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    padding:0 16px 52px;
  }
  .hero{
    min-height:calc(100vh - 74px);
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:26px;
    padding:34px 0 74px;
  }
  .hero-copy{ flex:0 0 auto }
  .hero-art{ flex:0 0 auto; width:100%; aspect-ratio:3 / 2 }
  .hero-slash{ height:64px }
  .lede{ max-width:none; font-size:1rem }

  .doc > article{ padding:20px 18px 26px; scroll-margin-top:96px }
  .doc > article::after{ left:18px; right:18px }

  .rail{ position:static }

  .foot{ padding:0 16px 34px }
  .foot-row{ padding:14px 16px }
  .foot-form{ margin-left:0; width:100% }
  .foot-form input{ flex:1 1 auto; width:auto; min-width:0 }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto }
  [data-reveal]{ transition:none }
  .reveal-on [data-reveal]{ opacity:1; transform:none }
}

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