@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root{
  --coral:#FF4D3D;
  --coral-d:#E63C2C;
  --ink:#111827;
  --mist:#E8ECF2;
  --paper:#FFFFFF;
  --grey:#59636F;
}

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

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

body{
  margin:0;
  padding:0 0 100px;
  background:var(--mist);
  color:var(--ink);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px;
  line-height:1.65;
  font-weight:500;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
p{margin:0}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

svg{
  width:16px;
  height:16px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---------- 底部固定导航 ---------- */
.topbar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  background:var(--ink);
  border-top:3px solid var(--coral);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  color:#fff;
  font-weight:700;
  letter-spacing:-.01em;
}

.brand .mark{
  width:30px;
  height:30px;
  border-radius:4px;
  background:var(--coral);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:700;
}

.topbar nav{min-width:0;overflow-x:auto;scrollbar-width:none}
.topbar nav::-webkit-scrollbar{display:none}

.topbar ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.topbar li a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 11px;
  border-radius:4px;
  color:#C9D1DE;
  white-space:nowrap;
  transition:color .18s ease,background-color .18s ease;
}

.topbar li a .ic{display:inline-flex}
.topbar li a:hover{color:#fff;background:#1F2937}

.cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 15px;
  border-radius:4px;
  background:var(--coral);
  color:#fff;
  font-weight:700;
  white-space:nowrap;
  transition:background-color .18s ease;
}
.cta:hover{background:var(--coral-d)}

/* ---------- 主体网格 ---------- */
.page{
  max-width:1160px;
  margin:0 auto;
  padding:0 14px 36px;
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:20px 28px;
  align-items:start;
  counter-reset:sec;
}

.page > *{grid-column:2;min-width:0}
.page > .hero{grid-column:1 / -1;grid-row:1}
.page > .rail{grid-column:1;grid-row:2 / -1}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  grid-column:1 / -1;
  overflow:hidden;
  margin:0;
  min-height:45vh;
  display:grid;
  place-items:center;
  padding:52px 18px 66px;
  text-align:center;
  background:var(--coral);
  color:#fff;
  border-bottom-left-radius:50% 46px;
  border-bottom-right-radius:50% 46px;
  scroll-margin-top:14px;
}

.hero-fig{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
  overflow:hidden;
}

.hero-fig img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.32;
  transform:scale(1.06);
  will-change:transform;
}

.hero-blk{display:block;width:100%;height:100%;background:var(--coral)}

.hero-box{position:relative;z-index:1;max-width:38rem}

.hero h1{
  margin:0;
  font-size:clamp(29px,6.4vw,50px);
  line-height:1.18;
  font-weight:800;
  letter-spacing:-.025em;
}

.hero-sub{
  margin:14px auto 0;
  max-width:34ch;
  font-size:17px;
  line-height:1.6;
  color:#FFF1EF;
}

/* ---------- 左侧目录 ---------- */
.rail{
  position:sticky;
  top:16px;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:18px;
  padding:15px 13px;
}

.rail small{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--coral);
}

.rail h2{
  margin:2px 0 10px;
  font-size:19px;
  line-height:1.3;
  letter-spacing:-.01em;
  font-weight:800;
}

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

.rail a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:2px 6px;
  border-radius:4px;
  color:var(--ink);
  transition:background-color .18s ease,color .18s ease;
}

.rail a:hover{background:var(--mist);color:var(--coral)}

/* ---------- 正文区块（来自 page.content 与模板） ---------- */
.page > article:not(.hero){
  position:relative;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:18px;
  padding:26px 20px 22px;
  margin:0;
  counter-increment:sec;
  scroll-margin-top:14px;
  scroll-margin-bottom:96px;
}

.page > article:not(.hero)::before{
  content:counter(sec,decimal-leading-zero);
  position:absolute;
  top:-2px;
  right:-2px;
  padding:1px 11px 2px;
  background:var(--coral);
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  border-radius:0 16px 0 14px;
}

.page article small{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--coral);
  margin-bottom:3px;
}

.page article h2{
  margin:.1em 0 .55em;
  font-size:clamp(21px,3vw,26px);
  line-height:1.3;
  letter-spacing:-.015em;
  font-weight:800;
}

.page article h3{
  margin:1.35em 0 .4em;
  font-size:19px;
  line-height:1.35;
  font-weight:700;
}

.page article h2 + p,
.page article h2 + ul,
.page article h2 + ol,
.page article small + h2 + p{margin-top:0}

.page article p{margin:0 0 1em;max-width:66ch;line-height:1.78}
.page article p:last-child{margin-bottom:0}

.page article ul,
.page article ol{padding-left:1.3em;margin:0 0 1em;line-height:1.75}
.page article li{margin:.32em 0}

.page article a{
  color:var(--coral);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.page article strong{font-weight:800}

.page article blockquote{
  margin:1em 0;
  padding:12px 16px;
  border-left:4px solid var(--coral);
  background:var(--mist);
  border-radius:0 4px 4px 0;
}

.page article img{border-radius:4px;margin:1em 0}
.page article figure{margin:1em 0}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1160px;
  margin:0 auto;
  padding:26px 14px 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 18px;
  border-top:2px solid var(--ink);
}

.foot-brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}

.foot-brand .mark{
  width:26px;
  height:26px;
  border-radius:4px;
  background:var(--coral);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:700;
}

.foot-links{display:flex;flex-wrap:wrap;gap:2px}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 9px;
  border-radius:4px;
  color:var(--grey);
  transition:color .18s ease,background-color .18s ease;
}
.foot-links a:hover{color:var(--coral);background:var(--mist)}

.foot small{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--grey);
}

.foot small a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 8px;
  color:var(--ink);
  font-weight:700;
}

/* ---------- 动效 ---------- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .45s ease}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-fig img{transform:none!important}
  .topbar a,.cta,.rail a,.foot a{transition:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .page{grid-template-columns:minmax(0,1fr);gap:16px;padding:0 12px 28px}
  .page > *{grid-column:1}
  .page > .rail{grid-row:auto;position:static;padding:9px 11px;border-radius:4px}
  .rail small,.rail h2{display:none}
  .rail ul{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
  .rail ul::-webkit-scrollbar{display:none}
  .rail a{white-space:nowrap;border:1.5px solid var(--mist)}
  .hero{min-height:42vh;padding:44px 16px 56px;border-bottom-left-radius:50% 34px;border-bottom-right-radius:50% 34px}
  .brand .bn{display:none}
  .foot{grid-template-columns:minmax(0,1fr);align-items:start}
  .foot-links{margin-top:-4px}
}

@media (max-width:560px){
  .topbar{padding:8px 10px;gap:6px}
  .topbar li a{padding:0 9px}
  .cta{padding:0 12px}
  .page > article:not(.hero){padding:22px 16px 18px}
  .hero-sub{font-size:16px}
}:<<

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