*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:'Be Vietnam Pro','Noto Sans',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  color:#171f26;
  overflow-wrap:break-word;
  background-color:#eaf2f9;
  background-image:
    radial-gradient(900px 700px at 6% -12%,#f7e9f0 0%,rgba(247,233,240,0) 62%),
    radial-gradient(1000px 820px at 102% -4%,#e0edfa 0%,rgba(224,237,250,0) 60%);
  background-attachment:fixed;
}
img{display:block;max-width:100%;height:auto}
a{color:#1f4a68}
:focus-visible{outline:2px solid #6f96b4;outline-offset:2px}

/* 侧栏 */
.rail{
  position:fixed;
  top:0;bottom:0;left:0;
  width:208px;
  z-index:20;
  display:flex;
  flex-direction:column;
  gap:.8rem;
  padding:1.5rem 1.1rem;
  background:linear-gradient(155deg,#dcebf7 0%,#f3e4ec 100%);
  box-shadow:10px 0 28px rgba(23,31,38,.08);
}
.rail nav{margin-top:auto;margin-bottom:auto;min-width:0}
.rail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.rail .sub{padding:.4rem 0 0 .8rem;gap:.3rem}
.rail .sub{display:none}
.rail .set:hover .sub,.rail .set:focus-within .sub{display:flex}
.rail nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .85rem;
  border-radius:14px;
  text-decoration:none;
  font-size:.95rem;
  font-weight:500;
  color:#171f26;
  background:linear-gradient(145deg,#e9f3fb,#f6ebf1);
  box-shadow:-3px -3px 8px rgba(255,255,255,.92),3px 3px 9px rgba(23,31,38,.10);
  transition:box-shadow 150ms ease,transform 150ms ease;
}
.rail nav a:hover{
  transform:translateY(-1px);
  box-shadow:-2px -2px 7px rgba(255,255,255,.95),5px 6px 15px rgba(23,31,38,.15);
}
.rail nav a:active{
  transform:scale(.97);
  box-shadow:inset -2px -2px 6px rgba(255,255,255,.9),inset 4px 4px 9px rgba(23,31,38,.12);
}
.rail .sub a{font-size:.88rem;font-weight:400;min-height:40px;padding:.35rem .75rem;border-radius:12px;box-shadow:none;background:rgba(255,255,255,.35)}
.rail .sub a:hover{background:rgba(255,255,255,.7);box-shadow:none}
.brand{
  display:grid;
  place-items:center;
  width:52px;height:52px;
  flex:0 0 auto;
  border-radius:17px;
  overflow:hidden;
  text-decoration:none;
  color:#171f26;
  font-size:.7rem;
  font-weight:600;
  line-height:1.06;
  text-align:center;
  padding:3px;
  background:linear-gradient(145deg,#f4eaf0,#e0eef9);
  box-shadow:-3px -3px 8px rgba(255,255,255,.92),4px 4px 11px rgba(23,31,38,.14);
  transition:transform 150ms ease;
}
.brand:active{transform:scale(.95)}
.brand img{width:100%;height:100%;object-fit:cover;border-radius:15px}
.brand span{word-break:break-all}

/* 主体 */
main{padding-left:208px}

.hero{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:clamp(1.4rem,4vw,3rem);
  min-height:100svh;
  padding:clamp(2rem,5vw,3.6rem) clamp(1.2rem,4vw,3rem) clamp(3rem,8vw,5.5rem);
}
.hero-copy{grid-column:2;grid-row:1;text-align:right}
.hero h1{
  margin:0 0 1rem;
  font-size:clamp(2.1rem,4.6vw,3.5rem);
  line-height:1.14;
  letter-spacing:-.02em;
  font-weight:700;
}
.hero-sub{
  margin:0 0 0 auto;
  max-width:34ch;
  font-size:1rem;
  line-height:1.65;
  color:#3d4c58;
}
.hero-art{position:relative;grid-column:1;grid-row:1;min-height:58vh;will-change:transform}

.shot{
  position:absolute;
  display:block;
  height:auto;
  border-radius:18px;
  object-fit:cover;
  box-shadow:-6px -6px 18px rgba(255,255,255,.9),9px 9px 24px rgba(23,31,38,.15);
}
.shot-a{width:70%;top:4%;left:0;transform:rotate(-3.5deg);aspect-ratio:4/5}
.shot-b{width:62%;right:2%;bottom:0;transform:rotate(3deg);aspect-ratio:4/5}
.tile{aspect-ratio:4/5;display:block}
.shot-a.tile{background:linear-gradient(145deg,#cde3f5,#eef6fc)}
.shot-b.tile{background:linear-gradient(145deg,#f6e2ec,#fbf4f8)}
.rot-stack{overflow:hidden;aspect-ratio:4/5}
.rot{position:absolute;inset:0;width:100%;height:100%;border-radius:0;box-shadow:none;opacity:0;transition:opacity .9s ease;transform:none}
.rot.on{opacity:1}

.wrap{padding:0 clamp(1.2rem,4vw,3rem)}
.body{margin:0}
article{
  max-width:76ch;
  margin:0 auto;
  padding:clamp(1.25rem,3.4vw,2.8rem);
  border-radius:18px;
  background:#f7fbfe;
  box-shadow:-6px -6px 18px rgba(255,255,255,.95),9px 9px 24px rgba(23,31,38,.10);
}
article small{
  display:block;
  margin:0 0 .4rem;
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.2em;
  color:#73899c;
}
article h2{
  margin:0 0 1rem;
  font-size:clamp(1.35rem,2.6vw,1.8rem);
  line-height:1.32;
  letter-spacing:-.01em;
}
article > h2{font-size:clamp(1.55rem,3.2vw,2.05rem);margin-bottom:1.2rem}
article h3{margin:1.5rem 0 .5rem;font-size:1.12rem;line-height:1.4}
article p{margin:0 0 1.1rem}
article ul,article ol{margin:0 0 1.2rem;padding-left:1.35rem}
article li{margin-bottom:.45rem}
article strong{font-weight:600}
article img{border-radius:18px;box-shadow:-4px -4px 12px rgba(255,255,255,.9),6px 6px 16px rgba(23,31,38,.12)}
article table{width:100%;border-collapse:collapse;font-size:.95rem;margin:0 0 1.2rem;border-radius:14px;overflow:hidden}
article th,article td{padding:.55rem .7rem;text-align:left;box-shadow:inset 0 -1px 0 rgba(23,31,38,.07)}
article blockquote{margin:0 0 1.2rem;padding:.9rem 1.1rem;border-radius:16px;background:#eef6fc;box-shadow:inset 4px 4px 10px rgba(23,31,38,.06)}
article pre{overflow-x:auto;padding:.9rem;border-radius:14px;background:#eaf3fa;font-size:.9rem}
article code{font-size:.92em}

article > div[id]{
  margin-top:1.6rem;
  padding:clamp(1rem,2.6vw,1.8rem);
  border-radius:18px;
  background:#f0f7fc;
  box-shadow:inset -3px -3px 9px rgba(255,255,255,.95),inset 5px 5px 12px rgba(23,31,38,.06);
  scroll-margin-top:88px;
}
article > div[id] h2{margin-top:0}

/* 页脚 */
.foot{
  margin:clamp(2.5rem,7vw,4.5rem) 0 0 208px;
  padding:clamp(1.6rem,4vw,3rem);
  border-radius:26px 26px 0 0;
  background:linear-gradient(160deg,#f4e8ef 0%,#e2eef9 100%);
  box-shadow:0 -8px 26px rgba(23,31,38,.08);
}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:1.5rem}
.foot address{font-style:normal}
.foot-brand{
  display:block;
  font-size:clamp(1.8rem,5vw,3.1rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
}
.foot ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.foot ul a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#26323b;
  text-decoration:none;
}
.foot ul a:hover{text-decoration:underline}
.foot-bar{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:.6rem 1rem;
  margin-top:1.8rem;
  padding-top:.9rem;
  box-shadow:inset 0 1px 0 rgba(23,31,38,.09);
}
.foot-bar p{margin:0;font-size:.85rem;color:#56656f}
.foot-bar a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#26323b;
  text-decoration:none;
  font-size:.9rem;
}
.foot-bar a:hover{text-decoration:underline}

@media (max-width:860px){
  .rail{
    position:sticky;
    top:0;bottom:auto;left:auto;
    width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:.55rem;
    padding:.5rem .7rem;
    box-shadow:0 6px 18px rgba(23,31,38,.10);
  }
  .rail .brand{width:44px;height:44px;border-radius:14px;font-size:.62rem}
  .rail nav{margin:0;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
  .rail nav > ul{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.4rem}
  .rail .set{display:flex;flex-direction:row;align-items:center;gap:.4rem}
  .rail .sub{display:flex;flex-direction:row;padding:0;gap:.4rem}
  .rail nav a{white-space:nowrap;min-height:44px}
  main{padding-left:0}
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:1.4rem .9rem 2.4rem;
    gap:1.6rem;
  }
  .hero-copy{grid-column:1;grid-row:1;text-align:left}
  .hero-sub{margin-left:0;max-width:none}
  .hero-art{grid-column:1;grid-row:2;min-height:42vh}
  .wrap{padding:0 .9rem}
  .foot{margin-left:0;padding:1.4rem .9rem 1.6rem}
  .foot-grid{grid-template-columns:1fr 1fr;gap:1.2rem}
  .foot address{grid-column:1 / -1}
  article > div[id]{scroll-margin-top:76px}
}

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

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