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

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

:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --ink-soft:#2f4a3c;
  --rail:248px;
  --line:3px solid var(--ink);
  --soft:inset -3px -3px 9px rgba(23,38,32,.12), inset 3px 3px 9px rgba(255,255,255,.78);
  --drop:6px 9px 20px rgba(23,38,32,.16);
  --bounce:cubic-bezier(.34,1.56,.64,1);
}

html{scroll-behavior:smooth;overflow-x:hidden;max-width:100%}

body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  font-family:'Poppins','Open Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, #daf6ff, rgba(218,246,255,0) 62%),
    radial-gradient(900px 520px at -5% 105%, #c9ffec, rgba(201,255,236,0) 60%),
    linear-gradient(165deg,#f6fffb 0%,#eaf7ff 52%,#f1fff9 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,p,li,a,td,th,blockquote{overflow-wrap:break-word;word-break:break-word}

img,svg,video,iframe,table,pre{max-width:100%}
img{display:block}
a{color:inherit}
:focus-visible{outline:4px solid #0f7a5f;outline-offset:3px}

.app{
  display:grid;
  grid-template-columns:minmax(0,var(--rail)) minmax(0,1fr);
  min-height:100vh;
  max-width:100%;
  overflow-x:clip;
}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px 14px 18px;
  overflow-y:auto;
  overflow-x:hidden;
  border-right:4px solid var(--ink);
  background:linear-gradient(180deg,rgba(180,253,225,.92),rgba(173,216,230,.82));
  box-shadow:inset -7px 0 16px rgba(255,255,255,.65), 7px 0 18px rgba(23,38,32,.12);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  min-height:48px;
  min-width:0;
  text-decoration:none;
  border:var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#e6fff6);
  box-shadow:var(--soft), 3px 3px 0 rgba(23,38,32,.2);
  transition:transform .2s var(--bounce);
}
.brand:hover{transform:translate(-1px,-2px)}
.brand:active{transform:translate(2px,2px)}

.mark-img{width:30px;height:30px;object-fit:cover;border-radius:9px;border:3px solid var(--ink);flex:0 0 auto}
.blob{width:26px;height:26px;flex:0 0 auto;border:3px solid var(--ink);border-radius:52% 42% 58% 44%;background:linear-gradient(140deg,var(--sky),var(--mint))}
.brand-txt{font-weight:700;font-size:16px;line-height:1.2;letter-spacing:.01em;min-width:0}

.rail-nav{flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px}
.rail-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;min-width:0}

.pill{
  display:flex;
  align-items:center;
  min-height:44px;
  max-width:100%;
  padding:11px 16px;
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none;
  border:var(--line);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#e9fffa);
  box-shadow:var(--soft), 3px 3px 0 rgba(23,38,32,.18);
  transition:transform .2s var(--bounce), box-shadow .2s ease-out, background .2s ease-out;
}
.pill:hover{transform:translate(-1px,-3px);background:linear-gradient(180deg,#ffffff,#d9fff2)}
.pill:active{transform:translate(2px,2px);box-shadow:inset -1px -1px 5px rgba(23,38,32,.22), 1px 1px 0 rgba(23,38,32,.2)}

.totop{
  appearance:none;
  cursor:pointer;
  font:inherit;
  font-size:15px;
  font-weight:600;
  min-height:44px;
  padding:10px 14px;
  color:var(--ink);
  border:var(--line);
  border-radius:999px;
  background:linear-gradient(180deg,#ecfffa,#cfeee2);
  box-shadow:var(--soft), 3px 3px 0 rgba(23,38,32,.2);
  transition:transform .2s var(--bounce);
}
.totop:hover{transform:translate(-1px,-2px)}
.totop:active{transform:translate(2px,2px)}

/* ---------- 主体 ---------- */
.flow{min-width:0;max-width:100%}
.stage{padding:20px 22px 0;min-width:0;max-width:100%}

.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:70vh;
  max-width:100%;
  margin:0 0 24px;
  overflow:hidden;
  border:4px solid var(--ink);
  border-radius:26px;
  background:linear-gradient(140deg,var(--mint),var(--sky));
  box-shadow:inset -5px -5px 14px rgba(23,38,32,.14), 9px 11px 26px rgba(23,38,32,.2);
}

.slides{position:absolute;inset:0;z-index:0;overflow:hidden}
.slide{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;opacity:0;transition:opacity 1.1s ease-out}
.slide:first-child,.slide.on{opacity:1}

.hero-mask{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(262deg,rgba(180,253,225,.92) 0%,rgba(180,253,225,.62) 44%,rgba(173,216,230,.18) 100%);
}

.hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  max-width:min(660px,100%);
  padding:clamp(20px,3vw,38px);
  text-align:right;
}
.hero-copy h1{
  margin:0 0 8px;
  font-size:clamp(32px,4.6vw,54px);
  line-height:1.12;
  letter-spacing:-.02em;
  text-shadow:2px 2px 0 rgba(255,255,255,.7);
}
.hero-brand{
  margin:0 0 6px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--ink-soft);
}
.subtitle{margin:0;font-size:16px;font-weight:500;line-height:1.65;color:var(--ink-soft)}
.hero-copy .subtitle{font-size:17px}

/* ---------- 正文区块：玻璃面板 ---------- */
.doc{min-width:0;max-width:100%}
.doc > div:not(.hero){
  position:relative;
  max-width:100%;
  margin:0 0 22px;
  padding:clamp(20px,3vw,36px);
  border:3px solid var(--ink);
  border-radius:0;
  background:rgba(255,255,255,.56);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:inset -3px -3px 11px rgba(23,38,32,.09), 6px 7px 0 rgba(23,38,32,.14);
  scroll-margin-top:112px;
}

.doc h2{
  margin:0 0 12px;
  font-size:clamp(22px,2.7vw,31px);
  line-height:1.28;
  letter-spacing:-.015em;
}
.doc .subtitle{margin:-6px 0 16px;font-weight:500}
.doc h3{margin:22px 0 8px;font-size:19px;line-height:1.4}
.doc p{margin:0 0 14px}
.doc ul,.doc ol{margin:0 0 16px;padding-left:24px}
.doc li{margin:0 0 8px}
.doc strong{font-weight:700}
.doc em{font-style:normal;background:linear-gradient(transparent 62%,rgba(180,253,225,.85) 62%)}
.doc a{color:#0d6a52;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.doc a:hover{color:#08503d}
.doc blockquote{
  margin:18px 0;
  padding:14px 18px;
  max-width:100%;
  border-left:6px solid var(--sky);
  border-radius:0 16px 16px 0;
  background:rgba(173,216,230,.28);
  overflow-wrap:break-word;
}
.doc blockquote p:last-child{margin-bottom:0}
.doc img{border:3px solid var(--ink);border-radius:16px;margin:14px 0;height:auto}
.doc svg{height:auto}
.doc table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-collapse:collapse;
  margin:16px 0;
  font-size:16px;
}
.doc th,.doc td{border:2px solid rgba(23,38,32,.45);padding:9px 11px;text-align:left;vertical-align:top}
.doc th{background:rgba(180,253,225,.55)}
.doc code{font-size:15px;background:rgba(23,38,32,.08);padding:1px 5px;border-radius:6px;overflow-wrap:break-word}
.doc pre{
  display:block;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:16px 0;
  padding:14px;
  border:3px solid var(--ink);
  border-radius:16px;
  background:rgba(23,38,32,.06);
  font-size:15px;
  line-height:1.6;
}
.doc pre code{background:none;padding:0}
.doc iframe,.doc video{width:100%;max-width:100%;border:3px solid var(--ink);border-radius:16px}
.doc hr{border:0;border-top:3px dashed rgba(23,38,32,.3);margin:22px 0}

/* ---------- 页脚 ---------- */
.foot{padding:0 22px 30px;min-width:0;max-width:100%}

.cta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  max-width:100%;
  padding:clamp(24px,4vw,44px);
  border:4px solid var(--ink);
  border-radius:24px;
  background:linear-gradient(150deg,var(--sky),var(--mint));
  box-shadow:inset -5px -5px 14px rgba(23,38,32,.14), 9px 11px 26px rgba(23,38,32,.18);
}
.cta-h{margin:0;font-size:clamp(24px,3.4vw,38px);line-height:1.2;letter-spacing:-.02em}
.cta .subtitle{max-width:56ch;font-size:16px}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 26px;
  margin-top:4px;
  font-weight:700;
  font-size:17px;
  text-decoration:none;
  border:var(--line);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#e3fff5);
  box-shadow:var(--soft), 4px 4px 0 rgba(23,38,32,.24);
  transition:transform .2s var(--bounce), box-shadow .2s ease-out;
}
.cta-btn:hover{transform:translate(-1px,-3px)}
.cta-btn:active{transform:translate(2px,3px);box-shadow:inset -1px -1px 5px rgba(23,38,32,.22), 1px 1px 0 rgba(23,38,32,.22)}

.foot-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  justify-content:space-between;
  max-width:100%;
  margin-top:20px;
  padding:12px 2px;
  border-top:3px dashed rgba(23,38,32,.35);
}
.copy{margin:0;font-size:15px;font-weight:600;min-width:0}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:0;padding:0;min-width:0}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 2px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  border-bottom:3px solid rgba(23,38,32,.28);
}
.foot-links a:hover{border-bottom-color:var(--ink)}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  .doc > div:not(.hero){
    animation:rise .62s var(--bounce) both;
    animation-delay:calc(var(--i,0) * 70ms);
  }
}
@keyframes rise{
  from{opacity:0;transform:translateY(18px) scale(.99)}
  to{opacity:1;transform:none}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .app{grid-template-columns:minmax(0,1fr)}
  .rail{
    width:100%;
    max-width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    overflow:visible;
    border-right:0;
    border-bottom:4px solid var(--ink);
    box-shadow:inset 0 -6px 14px rgba(255,255,255,.6), 0 6px 16px rgba(23,38,32,.14);
    z-index:30;
  }
  .brand{flex:0 1 auto;padding:8px 10px;min-width:0}
  .brand-txt{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rail-nav{flex:1 1 0;min-width:0;overflow-x:auto;overflow-y:hidden;padding:2px 0 4px}
  .rail-nav ul{flex-direction:row;gap:8px;width:max-content;min-width:0}
  .pill{white-space:nowrap;font-size:15px;padding:10px 14px;flex:0 0 auto}
  .totop{flex:0 0 auto;font-size:14px;padding:9px 12px}

  .stage{padding:14px 14px 0}
  .hero{min-height:54vh;border-width:3px;border-radius:22px;margin-bottom:18px;justify-content:flex-start}
  .hero-copy{padding:20px;text-align:left;width:100%;max-width:100%}
  .hero-copy .subtitle{font-size:16px}
  .doc > div:not(.hero){padding:18px;scroll-margin-top:96px}
  .foot{padding:0 14px 24px}
  .foot-bar{flex-direction:column;align-items:flex-start}
}

@media (max-width:420px){
  body{font-size:16px}
  .hero-copy h1{font-size:30px}
  .doc h2{font-size:22px}
  .doc > div:not(.hero){padding:15px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .slide{transition:none}
  .pill,.brand,.totop,.cta-btn{transition:none}
}

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