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

:root{
  --ink:#171f26;
  --ink-soft:rgba(23,31,38,.68);
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --surf:#e8eef5;
  --surf-hi:#f0f5fa;
  --r:18px;
  --lift:-5px -5px 15px rgba(255,255,255,.92), 6px 7px 18px rgba(23,31,38,.14);
  --lift-sm:-3px -3px 8px rgba(255,255,255,.9), 3px 4px 10px rgba(23,31,38,.13);
  --press:inset -3px -3px 8px rgba(255,255,255,.85), inset 3px 3px 8px rgba(23,31,38,.17);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding:0 0 108px;
  overflow-x:clip;
  color:var(--ink);
  font-family:'Plus Jakarta Sans',-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:16px;
  line-height:1.7;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(200,224,244,.85), transparent 62%),
    radial-gradient(760px 480px at 100% 4%, rgba(245,224,232,.9), transparent 60%),
    linear-gradient(168deg,#e6edf6 0%,#f7eef3 100%);
  background-attachment:fixed;
}

a{color:var(--ink)}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:12px}

/* ---------- 底部固定条 ---------- */
.bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg, rgba(233,238,245,.9), rgba(233,238,245,.99));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 -10px 26px rgba(23,31,38,.13), inset 0 1px 0 rgba(255,255,255,.9);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 14px 0 10px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:-.01em;
  white-space:nowrap;
  background:linear-gradient(145deg,var(--surf-hi),var(--surf));
  box-shadow:var(--lift-sm);
  transition:box-shadow .15s ease, transform .15s ease;
}
.brand:active{box-shadow:var(--press);transform:scale(.97)}

.mark{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:9px;
  font-size:14px;
  font-weight:800;
  color:var(--ink);
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--lift-sm);
}

.pillnav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.pillnav::-webkit-scrollbar{display:none}
.pillnav p{
  display:flex;
  gap:8px;
  margin:0;
  padding:2px 1px;
}
.pillnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
  background:linear-gradient(145deg,var(--surf-hi),var(--surf));
  box-shadow:var(--lift-sm);
  transition:box-shadow .15s ease, transform .15s ease;
}
.pillnav a:active{box-shadow:var(--press);transform:scale(.96)}

.chip{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  font-size:16px;
  font-weight:700;
  white-space:nowrap;
  text-decoration:none;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--lift-sm);
  transition:box-shadow .15s ease, transform .15s ease;
}
.chip:active{box-shadow:var(--press);transform:scale(.96)}

/* ---------- 版式 ---------- */
.shell{
  max-width:1140px;
  margin:0 auto;
  padding:30px 18px 44px;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.stage{grid-column:2;grid-row:1;min-width:0}
.rail{grid-column:1;grid-row:1}

div > article{
  position:relative;
  margin:0 0 24px;
  padding:24px 22px 28px;
  border-radius:var(--r);
  background:linear-gradient(150deg,var(--surf-hi),var(--surf));
  box-shadow:var(--lift);
  scroll-margin-top:22px;
  scroll-margin-bottom:118px;
}
div > article::after{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  bottom:0;
  height:3px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}

/* ---------- 头屏 ---------- */
.hero{
  display:flex;
  flex-direction:column;
  gap:14px;
  justify-content:center;
  min-height:45vh;
  padding:30px 22px 32px;
  border-radius:22px;
}
.hero-copy{display:flex;flex-direction:column;gap:14px;text-align:left}

h1{
  margin:0;
  font-size:clamp(28px,4.4vw,44px);
  line-height:1.24;
  letter-spacing:-.025em;
  font-weight:800;
}

.lede{
  margin:0;
  max-width:46ch;
  font-size:17px;
  line-height:1.72;
  color:var(--ink-soft);
}

.hero-act{display:flex;flex-wrap:wrap;gap:10px;margin:2px 0 0}

.btn{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 22px;
  border-radius:14px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--lift);
  transition:box-shadow .15s ease, transform .15s ease;
}
.btn:active{box-shadow:var(--press);transform:scale(.97)}
.btn.ghost{background:linear-gradient(145deg,var(--surf-hi),var(--surf))}
.btn.ghost:active{box-shadow:var(--press)}

.slash{
  display:block;
  height:8px;
  border-radius:8px;
  transform:skewY(-1.1deg);
  background:linear-gradient(90deg,var(--blue),var(--pink));
  box-shadow:var(--lift-sm);
}

.hero-figure{
  margin:0;
  overflow:hidden;
  border-radius:16px;
  box-shadow:var(--lift);
  clip-path:polygon(0 5%,100% 0,100% 100%,0 100%);
  background:var(--surf);
}
.hero-figure .hero-img{display:block;width:100%;height:auto}
.hero-figure.rot{position:relative;aspect-ratio:16/9}
.hero-figure.rot .hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  animation:rotfade 12s linear infinite;
}
.hero-figure.rot .hero-img:nth-child(2){animation-delay:4s}
.hero-figure.rot .hero-img:nth-child(3){animation-delay:8s}
@keyframes rotfade{
  0%{opacity:0}
  3%{opacity:1}
  30%{opacity:1}
  36%{opacity:0}
  100%{opacity:0}
}
.hero-figure.rot .hero-img:only-child{opacity:1;animation:none}

/* ---------- 正文排版 ---------- */
.stage h2{
  margin:0 0 8px;
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.35;
  letter-spacing:-.015em;
  font-weight:800;
}
.stage h3{
  margin:26px 0 8px;
  font-size:19px;
  line-height:1.4;
  font-weight:700;
}
.stage hr{
  height:6px;
  border:0;
  border-radius:6px;
  margin:0 0 18px;
  background:linear-gradient(90deg,rgba(200,224,244,.95),rgba(245,224,232,.95));
  box-shadow:inset 1px 1px 3px rgba(255,255,255,.9), inset -1px -1px 3px rgba(23,31,38,.09);
}
.stage p{margin:0 0 15px;line-height:1.78}
.stage p:last-child,
.stage ul:last-child,
.stage ol:last-child{margin-bottom:0}
.stage ul,
.stage ol{margin:0 0 15px;padding-left:22px}
.stage li{margin:0 0 7px;line-height:1.78}
.stage strong{font-weight:800}
.stage blockquote{
  margin:0 0 15px;
  padding:14px 16px;
  border-radius:14px;
  color:var(--ink-soft);
  background:linear-gradient(145deg,var(--surf),var(--surf-hi));
  box-shadow:inset 3px 3px 9px rgba(23,31,38,.1), inset -3px -3px 9px rgba(255,255,255,.9);
}
.stage a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:rgba(200,224,244,1)}
.stage img{max-width:100%;height:auto;border-radius:14px;box-shadow:var(--lift)}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:24px;
  padding:20px 18px 22px;
  border-radius:var(--r);
  background:linear-gradient(150deg,var(--surf-hi),var(--surf));
  box-shadow:var(--lift);
}
.rail h2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
}
.rail hr{
  height:5px;
  border:0;
  border-radius:5px;
  margin:0 0 14px;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}
.rail-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.rail-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  background:linear-gradient(145deg,var(--surf-hi),var(--surf));
  box-shadow:var(--lift-sm);
  transition:box-shadow .15s ease, transform .15s ease;
}
.rail-nav a:active{box-shadow:var(--press);transform:scale(.96)}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1140px;
  margin:0 auto;
  padding:6px 18px 34px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px 14px;
  align-items:center;
  font-size:16px;
}
.foot p{margin:0}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
  color:var(--ink-soft);
}
.foot a:hover{color:var(--ink)}
.foot small{font-size:16px;color:rgba(23,31,38,.55)}

/* ---------- 滚动出现 ---------- */
.js .stage > article,
.js .rail{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease, transform .5s ease;
}
.js .stage > article.in,
.js .rail.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .stage > article,
  .js .rail{opacity:1;transform:none;transition:none}
  .hero-figure.rot .hero-img{animation:none;opacity:0}
  .hero-figure.rot .hero-img:first-child{opacity:1}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .shell{grid-template-columns:1fr;padding:22px 16px 40px}
  .stage{grid-column:1;grid-row:1}
  .rail{grid-column:1;grid-row:2;position:static}
  .hero{min-height:auto;padding:26px 20px 28px}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 16px 30px}
}

@media (max-width:560px){
  body{padding-bottom:100px;font-size:16px}
  .bar{gap:8px;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}
  .brand{padding:0 12px 0 8px}
  .pillnav a{padding:0 13px}
  .chip{padding:0 13px}
  .foot{grid-template-columns:1fr}
  .foot small{order:-1}
  div > article{padding:20px 17px 24px}
  div > article::after{left:17px;right:17px}
  .hero{padding:22px 17px 24px}
}

@media (max-width:360px){
  .brand-txt{display:none}
}

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