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

:root{
  --ink:#171f26;
  --ink-2:#42505c;
  --sky:#c8e0f4;
  --rose:#f5e0e8;
  --panel:linear-gradient(145deg,#f1f7fc,#fbeff4);
  --panel-soft:linear-gradient(145deg,#f6fafd,#fdf3f7);
  --out:-6px -6px 16px rgba(255,255,255,.95), 8px 8px 22px rgba(23,31,38,.14);
  --out-s:-3px -3px 9px rgba(255,255,255,.9), 4px 4px 11px rgba(23,31,38,.13);
  --in:inset -4px -4px 10px rgba(255,255,255,.92), inset 5px 5px 13px rgba(23,31,38,.13);
  --r:28px;
  --r-s:16px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:'Outfit','Work Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:linear-gradient(165deg,#eef4fa 0%,#f3f6fb 46%,#f9eef2 100%);
  background-attachment:fixed;
}

a{color:inherit}
img{max-width:100%}

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

p{margin:0 0 1em}

/* 顶部细条 */
.ticker{
  display:flex;
  justify-content:center;
  overflow:hidden;
  padding:7px 18px;
  font-size:13px;
  letter-spacing:.05em;
  color:#2c3941;
  background:linear-gradient(90deg,var(--sky),var(--rose));
  box-shadow:inset 0 -4px 8px rgba(255,255,255,.75);
}
.ticker-line{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 页头 */
.top{
  position:sticky;
  top:0;
  z-index:30;
  padding:8px clamp(14px,4vw,40px) 6px;
  background:rgba(241,247,252,.88);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 26px rgba(23,31,38,.09);
}

.top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 2px;
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  color:var(--ink);
}

.brand-mark{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:var(--out-s);
}

.pills{
  display:flex;
  gap:9px;
  margin-top:8px;
  padding:4px 2px 10px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.pills::-webkit-scrollbar{display:none}

.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:9px 17px;
  border-radius:999px;
  font-size:.92rem;
  color:var(--ink-2);
  text-decoration:none;
  background:var(--panel-soft);
  box-shadow:var(--out-s);
  transition:transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.pill:hover{
  transform:translateY(-2px);
  color:var(--ink);
  box-shadow:-4px -4px 10px #fff, 6px 6px 15px rgba(23,31,38,.16);
}
.pill:active{transform:scale(.97);box-shadow:var(--in)}
.pill.is-active{
  font-weight:600;
  color:var(--ink);
  box-shadow:var(--in);
}

/* 头图区 */
.hero{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(18px,4vw,46px);
  min-height:45vh;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(22px,4.5vw,52px) clamp(16px,5vw,56px);
}

.hero-side{flex:0 0 auto}

.hero-art{
  display:block;
  width:clamp(92px,17vw,172px);
  height:auto;
  border-radius:var(--r);
  object-fit:cover;
  box-shadow:var(--out);
}

.hero-copy{
  max-width:34rem;
  text-align:right;
}

.hero-h1{
  margin:0;
  font-size:clamp(1.85rem,5.2vw,3rem);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.012em;
}

.hero-desc{
  margin:14px 0 0;
  font-size:1rem;
  color:var(--ink-2);
}

/* 主体 */
.layout{
  display:grid;
  grid-template-columns:16.5rem minmax(0,1fr);
  gap:clamp(20px,3vw,34px);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,5vw,56px) clamp(38px,7vw,80px);
}

.rail{
  position:sticky;
  top:9.75rem;
}

.rail-inner{
  padding:20px 18px;
  border-radius:var(--r);
  background:linear-gradient(145deg,#eaf2f9,#f8eef3);
  box-shadow:var(--in);
}

.rail-h2{
  margin:0;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.07em;
}

hr{
  width:54px;
  height:3px;
  margin:11px 0 16px;
  border:0;
  border-radius:3px;
  background:linear-gradient(90deg,var(--sky),var(--rose));
  box-shadow:inset 0 1px 2px rgba(23,31,38,.14);
}

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

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 11px;
  border-radius:14px;
  font-size:.94rem;
  color:var(--ink-2);
  text-decoration:none;
  transition:color .16s ease, box-shadow .16s ease, background .16s ease;
}
.rail-nav a:hover{
  color:var(--ink);
  background:rgba(255,255,255,.72);
  box-shadow:var(--out-s);
}
.rail-nav a.is-active{
  font-weight:600;
  color:var(--ink);
  box-shadow:var(--in);
}

/* 正文 */
.doc{
  display:grid;
  gap:clamp(16px,2.4vw,26px);
  min-width:0;
  overflow-wrap:break-word;
}

.doc > section{
  scroll-margin-top:9.75rem;
  padding:clamp(20px,3vw,38px);
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:var(--out);
  animation:rise .5s ease both;
}

.doc > section:nth-child(1){animation-delay:.02s}
.doc > section:nth-child(2){animation-delay:.06s}
.doc > section:nth-child(3){animation-delay:.1s}
.doc > section:nth-child(4){animation-delay:.14s}
.doc > section:nth-child(5){animation-delay:.18s}
.doc > section:nth-child(6){animation-delay:.22s}
.doc > section:nth-child(7){animation-delay:.26s}
.doc > section:nth-child(n+8){animation-delay:.3s}

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

.doc h2{
  margin:0 0 2px;
  font-size:clamp(1.26rem,2.6vw,1.68rem);
  line-height:1.32;
  font-weight:600;
  letter-spacing:-.01em;
}

.doc h2 + hr{margin-top:10px}

.doc h3{
  margin:26px 0 6px;
  font-size:1.1rem;
  line-height:1.45;
  font-weight:600;
}

.doc h3 + hr{margin-top:8px}

.doc p{color:var(--ink-2)}
.doc strong{color:var(--ink)}

.doc ul,.doc ol{
  margin:0 0 1em;
  padding-left:1.25em;
  color:var(--ink-2);
}
.doc li{margin:.34em 0}

.doc a{
  color:#2b5a7b;
  text-decoration:underline;
  text-decoration-color:rgba(43,90,123,.35);
  text-underline-offset:3px;
}
.doc a:hover{text-decoration-color:rgba(43,90,123,.8)}

.doc img{
  display:block;
  height:auto;
  margin:1.1em 0;
  border-radius:20px;
  box-shadow:var(--out-s);
}

.doc blockquote{
  margin:1.1em 0;
  padding:14px 18px;
  border-radius:var(--r-s);
  background:linear-gradient(145deg,#e9f1f8,#f9eef3);
  box-shadow:var(--in);
}
.doc blockquote > :last-child{margin-bottom:0}

.doc table{
  width:100%;
  margin:1.1em 0;
  border-collapse:collapse;
  font-size:.96rem;
}
.doc th,.doc td{
  padding:9px 12px;
  text-align:left;
  vertical-align:top;
}
.doc th{
  font-weight:600;
  color:var(--ink);
  box-shadow:inset 0 -2px 0 rgba(23,31,38,.1);
}
.doc tr + tr td{box-shadow:inset 0 1px 0 rgba(23,31,38,.06)}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 18px;
  max-width:1180px;
  margin:0 auto;
  padding:22px clamp(16px,5vw,56px) 40px;
  font-size:.9rem;
  color:var(--ink-2);
  box-shadow:inset 0 8px 16px -12px rgba(23,31,38,.22);
}

.foot section{margin:0}

.foot dl{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  margin:0;
}
.foot dt,.foot dd{margin:0}

.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 13px;
  border-radius:999px;
  color:var(--ink-2);
  text-decoration:none;
  background:var(--panel-soft);
  box-shadow:var(--out-s);
  transition:transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.foot a:hover{
  transform:translateY(-2px);
  color:var(--ink);
}
.foot a:active{transform:scale(.97);box-shadow:var(--in)}

.foot-legal{margin-left:auto}
.foot-legal p{margin:0}

/* 移动端 */
@media (max-width:780px){
  .layout{
    grid-template-columns:minmax(0,1fr);
    padding-bottom:48px;
  }

  .rail{position:static}

  .rail-inner{
    padding:16px 14px;
    box-shadow:var(--out-s);
  }

  .rail-h2{font-size:.94rem}
  hr{margin:8px 0 12px}

  .rail-nav ol{
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    gap:8px;
    padding-bottom:2px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .rail-nav ol::-webkit-scrollbar{display:none}

  .rail-nav a{
    min-height:40px;
    padding:8px 14px;
    white-space:nowrap;
    border-radius:999px;
    background:var(--panel-soft);
    box-shadow:var(--out-s);
  }

  .hero{
    flex-direction:column-reverse;
    align-items:flex-end;
    justify-content:center;
    min-height:auto;
    padding-top:26px;
    padding-bottom:26px;
  }

  .hero-art{width:88px;border-radius:22px}

  .hero-copy{max-width:none}
  .hero-desc{margin-top:10px;font-size:.96rem}

  .doc > section{scroll-margin-top:11rem}
  .doc h2 + hr{margin-top:8px}

  .foot{padding-bottom:34px;gap:10px 12px}
  .foot-legal{margin-left:0}
}

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

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