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

:root{
  --ink:#171f26;
  --ink-soft:#42525f;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --bg:#dfeaf4;
  --surface:#e7f0f9;
  --hi:rgba(255,255,255,.92);
  --lo:rgba(23,31,38,.12);
  --raise:-5px -5px 15px var(--hi), 6px 6px 16px var(--lo);
  --raise-sm:-3px -3px 8px var(--hi), 4px 4px 9px rgba(23,31,38,.13);
  --press:inset -3px -3px 8px var(--hi), inset 4px 4px 10px rgba(23,31,38,.14);
  --r:16px;
}

*{ box-sizing:border-box; }

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

body{
  margin:0;
  font-family:'Poppins','Open Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background:
    radial-gradient(1000px 480px at 10% -12%, #eff7ff 0%, rgba(239,247,255,0) 62%),
    radial-gradient(880px 440px at 94% 6%, var(--pink) 0%, rgba(245,224,232,0) 64%),
    var(--bg);
  background-attachment:fixed;
}

a{ color:inherit; }

:focus-visible{
  outline:2px solid #5c82a6;
  outline-offset:2px;
}

/* 顶部细条 */
.topline{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:6px clamp(12px,3vw,34px);
  font-size:14px;
  letter-spacing:.2em;
  color:var(--ink-soft);
  background:linear-gradient(145deg,#f0f7fd,#dcebf7);
  box-shadow:inset 0 -3px 9px var(--hi), inset 0 3px 9px rgba(23,31,38,.06);
}

.topline span{ white-space:nowrap; }

/* 头部 */
.masthead{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  margin:14px clamp(10px,3vw,34px) 0;
  padding:12px clamp(12px,2vw,22px);
  border-radius:20px;
  background:linear-gradient(145deg,#eef6fd,#d6e7f5);
  box-shadow:-6px -6px 16px var(--hi), 7px 7px 18px rgba(23,31,38,.11);
}

.nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}

.nav-l ul{ justify-content:flex-end; }
.nav-r ul{ justify-content:flex-start; }

.masthead a,
.dock a,
.rail a,
footer a,
.btn-top{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:6px 14px;
  border-radius:12px;
  font-size:16px;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
  color:var(--ink);
  box-shadow:var(--raise-sm);
  transition:box-shadow .15s ease, transform .15s ease, color .15s ease;
}

.masthead a:hover,
.dock a:hover,
.rail a:hover,
footer a:hover,
.btn-top:hover{
  color:#0d1a24;
  box-shadow:-5px -5px 12px var(--hi), 6px 6px 14px rgba(23,31,38,.16);
}

.masthead a:active,
.dock a:active,
.rail a:active,
footer a:active,
.btn-top:active{
  transform:translateY(1px);
  box-shadow:var(--press);
}

.brand{
  justify-content:center;
  gap:9px;
  padding:8px 16px;
  border-radius:14px;
  font-weight:600;
  font-size:18px;
  letter-spacing:.02em;
  text-align:center;
  white-space:nowrap;
}

.brand .logo{
  width:36px;
  height:36px;
  border-radius:10px;
  object-fit:cover;
  display:block;
}

/* 二级粘性锚点条 */
.dock{
  position:sticky;
  top:0;
  z-index:30;
  margin:12px clamp(10px,3vw,34px) 0;
  padding:7px;
  border-radius:var(--r);
  background:rgba(231,240,249,.93);
  box-shadow:-4px -4px 12px var(--hi), 5px 5px 14px rgba(23,31,38,.13);
  backdrop-filter:blur(8px);
}

.dock ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
}

.dock a{
  font-size:16px;
  padding:6px 12px;
}

/* 主体网格 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:22px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:24px clamp(12px,3vw,34px) 0;
}

article{
  min-width:0;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(150deg,#e9f2fa,#dce9f5);
  box-shadow:-6px -6px 18px var(--hi), 7px 7px 20px rgba(23,31,38,.10);
}

article > section{ scroll-margin-top:104px; }

/* 大标题区 */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  min-height:45vh;
  margin-top:0;
  padding:34px 16px;
  text-align:center;
  border-radius:var(--r);
  background:linear-gradient(145deg,#ecf4fc,#d2e4f4);
  box-shadow:inset -6px -6px 16px var(--hi), inset 6px 6px 18px rgba(23,31,38,.11);
}

.hero-in{
  position:relative;
  z-index:2;
}

.hero h1{
  margin:0;
  font-size:clamp(28px,5.6vw,52px);
  line-height:1.24;
  letter-spacing:-.02em;
}

.hero-sub{
  max-width:46ch;
  margin:14px auto 0;
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
}

.hero-ghost{
  position:absolute;
  left:0;
  right:0;
  bottom:-5%;
  z-index:0;
  font-size:clamp(64px,24vw,200px);
  font-weight:700;
  line-height:.8;
  letter-spacing:-.05em;
  color:rgba(23,31,38,.06);
  pointer-events:none;
  user-select:none;
}

/* 正文区块 */
article > section:not(.hero):not(.outro){
  margin-top:24px;
  padding:22px clamp(14px,2.4vw,26px);
  border-radius:14px;
  background:linear-gradient(145deg,#eef5fc,#e0ebf7);
  box-shadow:-5px -5px 15px var(--hi), 6px 6px 16px rgba(23,31,38,.10);
}

article h2{
  margin:0 0 .55em;
  font-size:clamp(20px,3vw,27px);
  line-height:1.36;
  letter-spacing:-.01em;
}

article h3{
  margin:1.2em 0 .5em;
  font-size:clamp(18px,2.4vw,21px);
  line-height:1.45;
}

article p{ margin:0 0 1em; }
article p:last-child{ margin-bottom:0; }
article ul,
article ol{ margin:0 0 1em; padding-left:1.25em; }
article li{ margin-bottom:.35em; }
article strong{ font-weight:600; }
article blockquote{
  margin:1em 0;
  padding:14px 18px;
  border-radius:12px;
  background:linear-gradient(145deg,#f8eef3,#ecdfe9);
  box-shadow:var(--press);
}
article img{ max-width:100%; height:auto; border-radius:12px; }

small{
  display:block;
  font-size:14px;
  font-weight:500;
  letter-spacing:.2em;
  color:#6b8296;
}

/* 收尾块 */
.outro{
  margin-top:26px;
  padding:24px 20px;
  text-align:center;
  border-radius:14px;
  background:linear-gradient(145deg,#f9eff4,#ecdfe9);
  box-shadow:-5px -5px 15px var(--hi), 6px 6px 16px rgba(23,31,38,.10);
}

.outro small{ margin-bottom:4px; }

.outro h2{
  margin:4px 0 16px;
  font-size:clamp(20px,3vw,26px);
}

.btn-top{ justify-content:center; }

/* 右侧栏 */
.rail{
  position:sticky;
  top:88px;
  padding:18px 16px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#f9eff4,#ecdfe9);
  box-shadow:var(--raise);
}

.rail h2{
  margin:2px 0 14px;
  font-size:18px;
  line-height:1.4;
}

.rail ul{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}

.rail a{
  width:100%;
  font-size:16px;
}

/* 页脚 */
footer{
  margin-top:38px;
  padding:34px clamp(14px,4vw,44px) 22px;
  border-radius:26px 26px 0 0;
  background:linear-gradient(145deg,#eaf2fa,#d2e3f2);
  box-shadow:inset 0 8px 18px var(--hi), 0 -6px 18px rgba(23,31,38,.07);
}

.foot-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);
  gap:26px;
  max-width:1120px;
  margin:0 auto;
}

.foot-brand{
  margin:0 0 8px;
  font-size:19px;
  font-weight:600;
}

.foot-desc{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.foot-cols dl{ margin:0; }

.foot-cols dt{
  margin-bottom:9px;
  font-size:14px;
  letter-spacing:.2em;
  color:#6b8296;
}

.foot-cols dd{ margin:0 0 8px; }

.foot-cols dd a{
  width:100%;
  font-size:16px;
}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1120px;
  margin:26px auto 0;
  padding-top:16px;
  font-size:15px;
  color:var(--ink-soft);
  box-shadow:inset 0 1px 0 rgba(23,31,38,.09);
}

.copy{ margin:0; }

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* 动效 */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .55s ease, transform .55s ease;
  }
  .reveal.in{
    opacity:1;
    transform:none;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

/* 断点 */
@media (max-width:960px){
  main{ grid-template-columns:minmax(0,1fr); }
  .rail{ position:static; top:auto; }
  .rail ul{ grid-template-columns:1fr 1fr; }
}

@media (max-width:880px){
  .masthead{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .brand{ order:-1; }
  .nav-l ul,
  .nav-r ul{ justify-content:center; }
}

@media (max-width:820px){
  .foot-top{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width:560px){
  body{ font-size:16px; }
  article{ padding:12px; border-radius:18px; }
  .foot-cols{ grid-template-columns:1fr 1fr; }
  .rail ul{ grid-template-columns:1fr; }
  .hero{ min-height:46vh; }
  .hero-sub{ font-size:16px; }
  .dock{ margin-left:8px; margin-right:8px; }
  .masthead{ margin-left:8px; margin-right:8px; }
  .foot-base{ justify-content:flex-start; }
}

@media (max-width:420px){
  .topline span{ letter-spacing:.12em; font-size:13px; }
  .brand{ font-size:17px; padding:8px 12px; }
}

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