:root{
  --ink:#171f26;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --muted:#54656f;
  --r:16px;
  --r-lg:28px;
  --sh:-6px -6px 15px rgba(255,255,255,.92), 6px 6px 16px rgba(23,31,38,.14);
  --sh-in:inset -3px -3px 8px rgba(255,255,255,.95), inset 3px 3px 9px rgba(23,31,38,.13);
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  font-family:"Fira Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:#eaf1f7;
  background-image:
    radial-gradient(760px 520px at 4% -6%,#f5e0e8 0%,rgba(245,224,232,0) 62%),
    radial-gradient(900px 640px at 100% 0%,#cfe3f5 0%,rgba(207,227,245,0) 58%);
  background-repeat:no-repeat;
}

h1,
h2,
h3{
  font-weight:600;
  letter-spacing:-.015em;
}

a{
  color:#245f87;
}

a:focus-visible{
  outline:2px solid #2b6d99;
  outline-offset:3px;
}

.frame{
  max-width:1400px;
  margin:0 auto;
  padding:18px 18px 0;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  column-gap:26px;
}

/* ---------- 左侧竖排 ---------- */

.rail{
  grid-column:1;
  grid-row:1 / span 2;
  position:sticky;
  top:18px;
  align-self:start;
  height:calc(100vh - 36px);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px 14px;
  border-radius:30px;
  background:linear-gradient(155deg,#e0ecf7 0%,#cde0f0 100%);
  box-shadow:var(--sh);
  z-index:25;
}

.brand{
  align-self:flex-start;
  width:50px;
  height:50px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  font-size:22px;
  font-weight:600;
  background:linear-gradient(145deg,#f9e9f1,#ead3df);
  box-shadow:var(--sh);
  transition:transform .15s ease,box-shadow .15s ease;
}

.brand:active{
  transform:scale(.95);
  box-shadow:var(--sh-in);
}

.rail-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  scrollbar-width:thin;
}

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

.rail-nav a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 11px;
  min-height:44px;
  border-radius:14px;
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  transition:background .18s ease,box-shadow .18s ease;
}

.rail-nav a:hover,
.rail-nav a[aria-current]{
  background:#dcebf8;
  box-shadow:var(--sh-in);
}

.dot{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:linear-gradient(145deg,#f8e6ee,#dcc2d0);
  box-shadow:0 1px 2px rgba(23,31,38,.2);
}

.cta{
  margin-top:auto;
  display:block;
  min-height:46px;
  padding:13px 10px;
  border-radius:16px;
  text-align:center;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  background:linear-gradient(145deg,#f9e6ef,#e7d0dc);
  box-shadow:var(--sh);
  transition:transform .15s ease,box-shadow .15s ease;
}

.cta:active{
  transform:scale(.97);
  box-shadow:var(--sh-in);
}

/* ---------- 主区 ---------- */

.stage{
  grid-column:2;
  grid-row:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 224px;
  gap:26px;
  align-items:start;
}

main{
  min-width:0;
  max-width:820px;
}

.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:calc(100vh - 36px);
  padding:64px 42px 72px;
  margin:0 0 26px;
  border-radius:var(--r-lg);
  background:linear-gradient(150deg,#d9e9f7 0%,#eef4fa 46%,#f7e7ef 100%);
  background-size:180% 180%;
  box-shadow:var(--sh);
  animation:drift 19s ease-in-out infinite;
}

.hero-art{
  position:absolute;
  inset:0;
  margin:0;
  z-index:1;
}

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

.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(96deg,rgba(238,244,250,.94) 0%,rgba(238,244,250,.62) 56%,rgba(247,231,239,.24) 100%);
}

.hero-art figcaption{
  position:absolute;
  left:42px;
  bottom:36px;
  z-index:2;
  font-family:"Fira Code",ui-monospace,monospace;
  font-size:13px;
  letter-spacing:.22em;
  color:#4b5c68;
}

.hero-copy{
  position:relative;
  z-index:3;
  max-width:22ch;
}

.hero h1{
  margin:0;
  font-size:clamp(32px,6.4vw,68px);
  line-height:1.12;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:12px;
  z-index:4;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}

main > div:not(.hero){
  margin:0 0 22px;
  padding:26px 28px 18px;
  border-radius:var(--r-lg);
  background:linear-gradient(152deg,#e8f1f9 0%,#dae9f5 100%);
  box-shadow:var(--sh);
  scroll-margin-top:96px;
  animation:rise .5s cubic-bezier(.2,.75,.3,1) both;
}

main > div:not(.hero):nth-child(n+3){
  animation-delay:.06s;
}

main > div:not(.hero):nth-child(n+5){
  animation-delay:.12s;
}

main > div:not(.hero):nth-child(n+7){
  animation-delay:.18s;
}

main h2{
  margin:4px 0 0;
  font-size:25px;
  line-height:1.35;
}

main h3{
  margin:22px 0 8px;
  font-size:19px;
  line-height:1.45;
}

main hr{
  border:0;
  height:5px;
  margin:12px 0 18px;
  border-radius:6px;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}

main h2 + hr,
main h3 + hr{
  margin-top:10px;
}

main p{
  margin:0 0 16px;
}

main ul,
main ol{
  margin:0 0 16px;
  padding-left:1.25em;
}

main li{
  margin:0 0 8px;
}

main li::marker{
  color:#7d97a8;
}

main blockquote{
  margin:0 0 18px;
  padding:16px 20px;
  border-radius:var(--r);
  background:#e9f2f9;
  box-shadow:var(--sh-in);
}

main blockquote p:last-child{
  margin:0;
}

main strong{
  font-weight:600;
}

main figure{
  margin:0 0 18px;
}

main figure img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
}

main figcaption{
  margin-top:8px;
  font-size:16px;
  color:var(--muted);
}

/* ---------- 右侧 ---------- */

.notes{
  position:sticky;
  top:18px;
  align-self:start;
  max-height:calc(100vh - 36px);
  overflow-y:auto;
  padding:16px 12px;
  border-radius:24px;
  background:linear-gradient(150deg,#f5e7ee 0%,#ecdbc5 100%);
  background:linear-gradient(150deg,#f5e7ee 0%,#ecdae4 100%);
  box-shadow:var(--sh);
}

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

.notes a{
  display:block;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
}

.notes a:hover,
.notes a:focus-visible{
  box-shadow:var(--sh-in);
}

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

.foot{
  grid-column:2;
  grid-row:2;
  margin:30px 0 0;
  padding:32px 28px 24px;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  background:linear-gradient(158deg,#e3eef8 0%,#e9dfe8 100%);
  box-shadow:var(--sh);
}

.foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:22px;
}

.foot address{
  font-style:normal;
  font-weight:600;
  font-size:18px;
  line-height:1.6;
}

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

.foot-grid a{
  display:inline-block;
  padding:9px 0;
  color:#3b4c57;
  font-size:16px;
  line-height:1.6;
  text-decoration:none;
}

.foot-grid a:hover{
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:4px;
}

.copy{
  margin:24px 0 0;
  text-align:center;
  font-size:16px;
  color:#54656f;
}

@keyframes drift{
  0%,100%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
}

@keyframes rise{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:none;}
}

@media (max-width:1024px){
  .stage{
    grid-template-columns:minmax(0,1fr) 196px;
    gap:20px;
  }
  .hero{
    padding:56px 32px 66px;
  }
  .hero-art figcaption{
    left:32px;
  }
}

@media (max-width:920px){
  .frame{
    grid-template-columns:minmax(0,1fr);
    column-gap:0;
    padding:0 12px;
  }
  .rail{
    grid-column:1;
    grid-row:1;
    top:0;
    height:auto;
    margin:0 -12px 16px;
    padding:10px 12px 12px;
    flex-direction:row;
    align-items:center;
    gap:8px;
    border-radius:0 0 26px 26px;
  }
  .brand{
    align-self:center;
    width:44px;
    height:44px;
    font-size:19px;
    border-radius:14px;
  }
  .rail-nav{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .rail-nav::-webkit-scrollbar{
    display:none;
  }
  .rail-nav ul{
    flex-direction:row;
    gap:4px;
  }
  .rail-nav a{
    padding:10px 12px;
    white-space:nowrap;
  }
  .cta{
    flex:0 0 auto;
    margin:0 0 0 auto;
    padding:12px 14px;
    min-height:44px;
  }
  .stage{
    grid-column:1;
    grid-row:2;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
  }
  .hero{
    min-height:0;
    padding:48px 22px 58px;
    margin-bottom:20px;
  }
  .hero-art figcaption{
    left:22px;
    bottom:26px;
  }
  main > div:not(.hero){
    padding:22px 18px 14px;
    scroll-margin-top:84px;
  }
  .notes{
    position:static;
    max-height:none;
    padding:14px 12px;
  }
  .notes ul{
    grid-template-columns:1fr 1fr;
  }
  .foot{
    grid-column:1;
    grid-row:3;
    padding:26px 20px 20px;
  }
  .foot-grid{
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
  .foot address{
    grid-column:1 / -1;
  }
}

@media (max-width:420px){
  .notes ul{
    grid-template-columns:1fr;
  }
  .brand{
    width:42px;
    height:42px;
  }
}

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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