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

:root{
  --ink:#171f26;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --soft-hi:#eaf3fb;
  --soft-lo:#f9eef2;
  --line:rgba(23,31,38,.11);
  --raise:-6px -6px 16px rgba(255,255,255,.92), 6px 6px 16px rgba(23,31,38,.13);
  --raise-sm:-3px -3px 8px rgba(255,255,255,.9), 3px 3px 8px rgba(23,31,38,.12);
  --press:inset -3px -3px 8px rgba(255,255,255,.9), inset 3px 3px 9px rgba(23,31,38,.16);
  --r:16px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:"Space Grotesk","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:linear-gradient(155deg,#e6f1fa,#f6ebf0 46%,#eaf3fa);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%}

:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
  border-radius:10px;
}

/* ---------- 顶部 ---------- */

.masthead{
  position:relative;
  z-index:20;
  padding:16px 20px 12px;
  background:rgba(236,244,251,.88);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 20px rgba(23,31,38,.07);
}

.brandbar{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:3px 8px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  font-weight:700;
  font-size:clamp(21px,4.6vw,32px);
  letter-spacing:-.03em;
  line-height:1.1;
  transition:box-shadow .15s ease, transform .15s ease;
}

.brand:hover{box-shadow:var(--raise-sm)}
.brand:active{transform:scale(.98);box-shadow:var(--press)}
.brand-logo{width:42px;height:42px;border-radius:12px;object-fit:cover}
.brand-mark{
  display:grid;
  place-items:center;
  min-width:42px;
  height:42px;
  padding:0 8px;
  border-radius:12px;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--raise-sm);
  font-size:18px;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 22px;
  border-radius:999px;
  background:var(--ink);
  color:#f3f8fc;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  box-shadow:var(--raise);
  transition:transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}

.cta:hover{transform:translateY(-2px)}
.cta:active{transform:scale(.97);box-shadow:var(--press)}

.jumpbar{
  max-width:1180px;
  margin:10px auto 0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.jump-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:999px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  transition:box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.jump-link:hover{
  background:linear-gradient(145deg,var(--soft-hi),var(--soft-lo));
  box-shadow:var(--raise-sm);
}

.jump-link:active{box-shadow:var(--press);transform:scale(.98)}

/* ---------- 正文骨架 ---------- */

main{
  max-width:1180px;
  margin:0 auto;
  padding:20px 20px 44px;
}

.doc{display:grid;grid-template-columns:1fr;gap:18px}

.doc > div[id]{scroll-margin-top:18px}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  grid-column:1 / -1;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:60vh;
  padding:18px;
  border-radius:28px;
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--raise);
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  clip-path:polygon(0 0,100% 0,100% 84%,0 100%);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(200deg,rgba(23,31,38,.05) 28%,rgba(23,31,38,.64) 100%);
}

.hero-plain::after{
  background:linear-gradient(200deg,rgba(255,255,255,.55),rgba(255,255,255,0));
}

.hero-copy{
  max-width:32ch;
  padding:8px 6px;
  text-align:right;
  color:#f5fafd;
}

.hero-plain .hero-copy{color:var(--ink)}

.hero h1{
  margin:0;
  font-size:clamp(28px,7vw,58px);
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.035em;
}

.hero-lead{
  margin:12px 0 0;
  font-size:clamp(16px,2.2vw,18px);
  line-height:1.6;
  opacity:.95;
}

.hero-badge{
  position:absolute;
  top:16px;
  right:16px;
  transform:rotate(-6deg);
  padding:8px 15px;
  border-radius:14px;
  background:var(--ink);
  color:var(--pink);
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  box-shadow:0 10px 22px rgba(23,31,38,.3);
}

/* ---------- 侧栏 ---------- */

.rail{
  padding:20px 16px;
  border:1px solid var(--line);
  border-radius:28px;
  background:linear-gradient(145deg,var(--soft-hi),var(--soft-lo));
}

.rail h2{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.18em;
}

.rail hr{
  border:0;
  height:3px;
  margin:10px 0 0;
  border-radius:3px;
  background:linear-gradient(90deg,rgba(23,31,38,.2),rgba(23,31,38,0));
}

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

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:12px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  transition:box-shadow .15s ease, background .15s ease;
}

.rail-list a:hover{background:rgba(255,255,255,.6);box-shadow:var(--raise-sm)}
.rail-list a:active{box-shadow:var(--press)}

/* ---------- 正文区块 ---------- */

.doc > div:not(.hero){
  padding:24px 20px;
  border:1px solid var(--line);
  border-radius:28px;
  background:linear-gradient(145deg,var(--soft-hi),var(--soft-lo));
}

.doc h2{
  margin:22px 0 8px;
  font-size:clamp(20px,3.4vw,27px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.02em;
}

.doc h3{
  margin:18px 0 6px;
  font-size:clamp(17px,2.6vw,20px);
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.01em;
}

.doc > div:not(.hero) > h2:first-child{margin-top:0}

.doc p{margin:0 0 14px}
.doc p:last-child{margin-bottom:0}
.doc ul,
.doc ol{margin:0 0 14px;padding-left:1.3em}
.doc li{margin:0 0 6px}

.doc a{
  color:#1b3a52;
  text-decoration:underline;
  text-underline-offset:3px;
}

.doc a:hover{text-decoration-thickness:2px}

.doc img{
  display:block;
  height:auto;
  margin:14px 0;
  border-radius:16px;
}

.doc hr{
  border:0;
  height:6px;
  margin:16px 0;
  border-radius:4px;
  background:linear-gradient(90deg,rgba(23,31,38,.16),rgba(23,31,38,0));
}

.doc strong{font-weight:700}

/* ---------- 页脚 ---------- */

.foot{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 40px;
}

.foot-cta,
.foot-copy{grid-column:1 / -1}

.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:26px 22px;
  border-radius:28px;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--raise);
}

.foot-brand{
  margin:0;
  font-size:clamp(24px,6vw,42px);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.15;
}

.foot-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 24px;
  border-radius:999px;
  background:var(--ink);
  color:var(--pink);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}

.foot-btn:hover{transform:translateY(-2px)}
.foot-btn:active{transform:scale(.97);box-shadow:var(--press)}

.foot dl{
  margin:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:28px;
  background:linear-gradient(145deg,var(--soft-hi),var(--soft-lo));
}

.foot dt{
  font-size:16px;
  font-weight:700;
  letter-spacing:.18em;
  opacity:.72;
}

.foot dd{margin:6px 0 0}

.foot dd a,
.foot dd span{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:3px 0;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
}

.foot dd a:hover{text-decoration:underline;text-underline-offset:3px}

.foot-copy{
  margin:6px 0 0;
  text-align:center;
  font-size:16px;
  opacity:.72;
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    from{opacity:0;transform:translateY(14px)}
    to{opacity:1;transform:none}
  }
  .hero,
  .rail,
  .doc > div:not(.hero),
  .foot > *{
    animation:rise .5s ease both;
  }
  .rail{animation-delay:.06s}
  .doc > div:not(.hero):nth-of-type(2){animation-delay:.08s}
  .doc > div:not(.hero):nth-of-type(3){animation-delay:.12s}
  .doc > div:not(.hero):nth-of-type(4){animation-delay:.16s}
  .doc > div:not(.hero):nth-of-type(5){animation-delay:.2s}
  .doc > div:not(.hero):nth-of-type(6){animation-delay:.24s}
  .doc > div:not(.hero):nth-of-type(7){animation-delay:.28s}
}

/* ---------- 断点 ---------- */

@media (min-width:700px){
  .foot{grid-template-columns:repeat(3,1fr)}
}

@media (min-width:900px){
  body{font-size:18px}

  .masthead{position:sticky;top:0}

  .doc{
    grid-template-columns:250px minmax(0,1fr);
    gap:26px;
    align-items:start;
  }

  .rail{grid-column:1}

  .doc > div:not(.hero){grid-column:2}

  .hero{min-height:70vh}

  .doc > div[id]{scroll-margin-top:170px}

  .doc > div:not(.hero){padding:30px 28px}
}

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