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

:root{
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --ink:#171f26;
  --ink-2:#3f4d57;
  --ink-3:#6f7f8a;
  --line:rgba(23,31,38,.08);
  --sh-l:rgba(255,255,255,.95);
  --sh-d:rgba(23,31,38,.14);
  --lift:-6px -6px 16px var(--sh-l),6px 6px 18px var(--sh-d);
  --lift-sm:-3px -3px 9px var(--sh-l),3px 3px 10px var(--sh-d);
  --sink:inset -3px -3px 8px rgba(255,255,255,.9),inset 3px 3px 9px rgba(23,31,38,.13);
  --r-lg:16px;
  --r:12px;
  --r-sm:10px;
  --serif:'Newsreader','Noto Serif SC','Songti SC','Source Han Serif SC',serif;
  --sans:'Roboto','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:linear-gradient(168deg,#e5edf6 0%,#eef1f6 44%,#f6ebf1 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

h1,h2,h3{font-family:var(--serif);font-weight:600;letter-spacing:-.006em}

small{
  display:block;
  font-family:var(--sans);
  font-size:.73rem;
  font-weight:500;
  letter-spacing:.22em;
  color:#8b9aa6;
  margin-bottom:4px;
}

img{max-width:100%}
svg{display:block}

a{color:inherit}

/* ---------- 页头 ---------- */
.site-head{
  position:sticky;
  top:0;
  z-index:30;
  background:linear-gradient(180deg,rgba(232,240,248,.97),rgba(232,240,248,.84));
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 12px 26px rgba(23,31,38,.08);
  border-radius:0 0 var(--r) var(--r);
}

.head-inner{
  max-width:1180px;
  margin:0 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px clamp(12px,3vw,26px);
}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 14px;
  border-radius:var(--r);
  text-decoration:none;
  color:var(--ink);
  background:linear-gradient(145deg,#f0f5fa,#e1eaf3);
  box-shadow:var(--lift-sm);
  transition:transform .18s ease,box-shadow .18s ease;
}
.brand-name{font-family:var(--serif);font-size:1.16rem;font-weight:600;letter-spacing:.02em}
.brand-mark{width:21px;height:21px;color:#5c7f9c}
.brand:hover{transform:translateY(-1px)}
.brand:active{box-shadow:var(--sink);transform:scale(.98)}

.site-nav{flex:1 1 auto;min-width:0;display:flex;justify-content:flex-end}
.site-nav p{
  margin:0;
  padding:2px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  justify-content:flex-end;
}
.site-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:42px;
  padding:8px 12px;
  border-radius:var(--r);
  font-size:.93rem;
  color:var(--ink-2);
  text-decoration:none;
  background:linear-gradient(145deg,#eef4fa,#e3ecf5);
  box-shadow:var(--lift-sm);
  transition:transform .16s ease,box-shadow .16s ease,color .16s ease;
}
.site-nav a svg{width:15px;height:15px;color:#7d95a8;flex:0 0 auto}
.site-nav a:hover{transform:translateY(-2px);color:var(--ink)}
.site-nav a:active{transform:scale(.97);box-shadow:var(--sink)}

/* ---------- 主区 ---------- */
main{display:block}

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:100svh;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  align-items:center;
  gap:clamp(26px,4vw,58px);
  padding:clamp(72px,11vh,124px) clamp(18px,5vw,58px) clamp(92px,14vh,150px);
  border-radius:0 0 50% 50% / 0 0 11% 11%;
  background:
    radial-gradient(circle at 80% 16%,rgba(245,224,232,.9),transparent 56%),
    linear-gradient(152deg,#e2ebf6 0%,#eef3fa 46%,#f7ecf2 100%);
  box-shadow:inset 0 -22px 48px rgba(23,31,38,.06);
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:radial-gradient(rgba(23,31,38,.14) 1.1px,transparent 1.1px);
  background-size:21px 21px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.6),transparent 84%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.6),transparent 84%);
}

.hero-copy{max-width:38rem}
.hero-copy h1{
  margin:0 0 .55em;
  font-size:clamp(2rem,4.6vw,3.35rem);
  line-height:1.16;
  letter-spacing:-.02em;
}
.hero-desc{
  margin:0 0 1.6em;
  font-size:1.05rem;
  color:var(--ink-2);
  max-width:33em;
}
.hero-cta{margin:0}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 24px;
  border-radius:14px;
  font-size:1rem;
  font-weight:500;
  text-decoration:none;
  color:var(--ink);
  background:linear-gradient(145deg,#dde9f5,#f0f5fa);
  box-shadow:var(--lift);
  transition:transform .16s ease,box-shadow .16s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:scale(.97);box-shadow:var(--sink)}

.hero-fig{
  margin:0;
  position:relative;
  aspect-ratio:4/3;
  border-radius:var(--r-lg);
  overflow:hidden;
  background:linear-gradient(145deg,#dbe8f4,#f4e6ee);
  box-shadow:-11px -11px 30px rgba(255,255,255,.92),14px 17px 38px rgba(23,31,38,.19);
  will-change:transform;
}
.hero-fig img{display:block;width:100%;height:100%;object-fit:cover}
.hero-plate{
  width:100%;
  height:100%;
  background:
    radial-gradient(circle at 32% 28%,rgba(255,255,255,.85),transparent 56%),
    conic-gradient(from 212deg at 62% 58%,#c8e0f4,#f5e0e8,#dbeaf6,#f5e0e8,#c8e0f4);
}

/* ---------- 正文与侧栏 ---------- */
.shell{
  max-width:1140px;
  margin:0 auto;
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  gap:clamp(20px,3vw,38px);
  padding:clamp(38px,6vh,74px) clamp(14px,4vw,30px) clamp(44px,7vh,86px);
}

.rail{
  position:sticky;
  top:96px;
  align-self:start;
  padding:16px 14px;
  border-radius:var(--r-lg);
  background:linear-gradient(145deg,#eff4fa,#e2ebf5);
  box-shadow:var(--lift);
}
.rail h2{margin:0 0 10px;font-size:1.08rem;line-height:1.35}
.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:var(--r-sm);
  font-size:.94rem;
  color:var(--ink-2);
  text-decoration:none;
  transition:box-shadow .15s ease,color .15s ease;
}
.rail-list a:hover{box-shadow:var(--sink);color:var(--ink)}
.to-top{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:var(--r-sm);
  font-size:.88rem;
  text-decoration:none;
  color:var(--ink-2);
  background:linear-gradient(145deg,#ebf2f9,#e0eaf3);
  box-shadow:var(--lift-sm);
}
.to-top:active{box-shadow:var(--sink)}

.body-col{
  min-width:0;
  padding:clamp(20px,4vw,44px);
  border-radius:var(--r-lg);
  background:linear-gradient(152deg,#f1f6fb,#eaf1f8);
  box-shadow:var(--lift);
}
.body-col > div{padding-block:clamp(16px,2.6vw,28px);scroll-margin-top:112px}
.body-col > div:first-child{padding-top:0}
.body-col > div + div{border-top:1px solid var(--line)}

.body-col h2{
  margin:.2em 0 .65em;
  font-size:clamp(1.4rem,2.5vw,1.86rem);
  line-height:1.32;
}
.body-col h3{margin:1.35em 0 .5em;font-size:1.18rem;line-height:1.4}
.body-col p{margin:0 0 1.05em}
.body-col p:last-child{margin-bottom:0}
.body-col a{color:#2b6b8f;text-decoration:none;box-shadow:inset 0 -1px 0 rgba(43,107,143,.45)}
.body-col a:hover{color:#17475f}
.body-col ul,.body-col ol{margin:0 0 1.1em;padding-left:1.32em}
.body-col li{margin:.34em 0}
.body-col strong{color:var(--ink)}
.body-col figure{margin:0 0 1.15em}
.body-col img{border-radius:var(--r-sm);box-shadow:var(--lift-sm);height:auto}
.body-col blockquote{
  margin:0 0 1.2em;
  padding:14px 18px;
  border-radius:var(--r);
  background:#e7eff7;
  box-shadow:var(--sink);
  color:var(--ink-2);
}
.body-col code{
  font-size:.92em;
  padding:2px 6px;
  border-radius:6px;
  background:#e4edf5;
  box-shadow:inset 1px 1px 3px rgba(23,31,38,.12);
}
.body-col table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.2em;
  font-size:.95rem;
}
.body-col th,.body-col td{
  padding:9px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.site-foot{
  padding:clamp(36px,6vh,68px) clamp(16px,5vw,46px) 26px;
  background:linear-gradient(154deg,#e3ecf6,#f5eaf0);
  border-radius:38px 38px 0 0;
  box-shadow:inset 0 20px 44px rgba(255,255,255,.75);
}
.foot-cta{
  max-width:1140px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:clamp(22px,4vw,38px);
  border-radius:var(--r-lg);
  background:linear-gradient(145deg,#f0f6fb,#e5edf6);
  box-shadow:var(--lift);
}
.foot-cta h2{margin:0;font-size:clamp(1.5rem,3vw,2.05rem);line-height:1.3}

.foot-cols{
  max-width:1140px;
  margin:clamp(24px,4vw,42px) auto 0;
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr 1fr;
  gap:clamp(16px,3vw,32px);
}
.foot-cols address{
  font-style:normal;
  font-family:var(--serif);
  font-size:1.24rem;
  line-height:1.45;
}
.foot-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:3px 2px;
  font-size:.94rem;
  color:var(--ink-2);
  text-decoration:none;
  transition:color .15s ease,box-shadow .15s ease;
}
.foot-cols a:hover{color:var(--ink);box-shadow:inset 0 -1px 0 rgba(23,31,38,.3)}

.foot-bottom{
  max-width:1140px;
  margin:24px auto 0;
  padding-top:14px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
}
.foot-bottom p{margin:0;font-size:.88rem;color:var(--ink-3)}
.foot-bottom a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 4px;
  font-size:.88rem;
  color:var(--ink-2);
  text-decoration:none;
}
.foot-bottom a:hover{color:var(--ink)}

/* ---------- 断点 ---------- */
@media (max-width:960px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;top:auto}
  .rail-list{flex-direction:row;flex-wrap:wrap;gap:4px}
  .rail-list a{min-height:40px;padding:6px 12px;background:#e8f0f8;box-shadow:var(--lift-sm)}
  .rail .to-top{margin-top:12px}
  .hero{
    min-height:auto;
    grid-template-columns:minmax(0,1fr);
    padding:clamp(44px,8vh,72px) clamp(18px,5vw,40px) clamp(56px,9vh,88px);
    border-radius:0 0 50% 50% / 0 0 7% 7%;
  }
  .hero-fig{aspect-ratio:16/10}
}

@media (max-width:860px){
  .head-inner{flex-wrap:wrap;row-gap:8px}
  .site-nav{width:100%;justify-content:flex-start;flex-basis:100%}
  .site-nav p{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  .site-nav p::-webkit-scrollbar{display:none}
}

@media (max-width:600px){
  body{font-size:16px}
  .hero-copy h1{font-size:1.94rem}
  .foot-cols{grid-template-columns:1fr 1fr}
  .foot-cols address{grid-column:1 / -1}
  .foot-cta{flex-direction:column;align-items:flex-start}
  .foot-bottom{justify-content:space-between}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
  .hero-fig{transform:none!important}
}

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