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

:root{
  --mint:#b4fde1;
  --blue:#add8e6;
  --ink:#172620;
  --ink-2:#3d574c;
  --line:#d7efe4;
  --card:#ffffff;
  --r:20px;
  --clay: inset -2px -2px 8px rgba(23,38,32,.09), 6px 8px 18px rgba(23,38,32,.13);
  --clay-sm: inset -2px -2px 6px rgba(23,38,32,.07), 3px 4px 10px rgba(23,38,32,.11);
}

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

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

body{
  margin:0;
  font:400 17px/1.7 Inter,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(880px 520px at 6% -8%, #dbfff2 0%, rgba(219,255,242,0) 68%),
    radial-gradient(760px 560px at 104% 10%, #ddf1fb 0%, rgba(221,241,251,0) 64%),
    linear-gradient(170deg,#f4fffb 0%, #e8f8f1 55%, #eef8fd 100%);
  background-attachment:fixed;
  padding-left:290px;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3{ margin:0; line-height:1.2; letter-spacing:-.012em; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

.is-off{ display:none; }

/* 左侧固定黏土导航 */
.dock{
  position:fixed;
  inset:0 auto 0 0;
  width:264px;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px 18px 28px;
  background:linear-gradient(180deg,#f0fff9,#e2f4fb);
  border-right:3px solid var(--line);
  box-shadow:inset -6px 0 16px rgba(23,38,32,.05), 12px 0 28px rgba(23,38,32,.07);
  overflow-y:auto;
  scrollbar-width:none;
}
.dock::-webkit-scrollbar{ display:none; }

.mark{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:48px;
  padding:5px 4px;
  font-weight:600;
  font-size:17px;
  border-radius:16px;
  transition:transform .2s ease-out;
}
.mark:hover{ transform:translateY(-2px); }
.mark-i{
  flex:0 0 auto;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--mint);
  border:3px solid #9fe9cb;
  box-shadow:var(--clay-sm);
  overflow:hidden;
}
.mark-i svg,.mark-i img{ width:22px; height:22px; }
.mark-t{ line-height:1.25; }

.search{ display:block; }
.search input{
  width:100%;
  min-height:44px;
  padding:9px 16px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:#fff;
  border:3px solid #d9eee5;
  border-radius:999px;
  box-shadow: inset 2px 2px 7px rgba(23,38,32,.07), 3px 4px 10px rgba(23,38,32,.09);
  -webkit-appearance:none;
  appearance:none;
}
.search input::placeholder{ color:#7d968c; }
.search input:focus{
  outline:none;
  border-color:#8fd8ff;
  box-shadow: inset 2px 2px 7px rgba(23,38,32,.08), 0 0 0 4px rgba(173,216,230,.5);
}

.dock-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.dock-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 17px;
  font-size:16px;
  font-weight:500;
  color:var(--ink);
  border-radius:999px;
  border:3px solid #d9eee5;
  background:linear-gradient(160deg,#ffffff,#f2fffa);
  box-shadow:var(--clay-sm);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), background .2s ease-out, border-color .2s ease-out;
}
.dock-nav a:hover{
  transform:translateY(-3px);
  background:linear-gradient(160deg,var(--mint),#d8fff0);
  border-color:#9fe9cb;
}
.dock-nav a:active{
  transform:translateY(1px);
  box-shadow:inset 3px 3px 9px rgba(23,38,32,.2);
}

/* 顶部展示区 */
.hero{
  min-height:70vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  align-items:center;
  gap:clamp(22px,4vw,56px);
  padding:clamp(30px,5vw,66px) clamp(20px,4vw,56px);
}
.hero-copy{ text-align:center; }
.hero-copy h1{
  font-size:clamp(30px,4.4vw,52px);
  font-weight:600;
}
.hero-desc{
  margin:20px auto 0;
  max-width:34ch;
  font-size:clamp(16px,1.4vw,19px);
  color:var(--ink-2);
}

.hero-art{
  position:relative;
  min-height:270px;
  display:grid;
  place-items:center;
  padding:clamp(14px,2vw,22px);
  border-radius:26px;
  border:4px solid #ffffff;
  background:linear-gradient(150deg,var(--mint),var(--blue));
  box-shadow: inset -3px -3px 12px rgba(23,38,32,.12), 12px 14px 28px rgba(23,38,32,.16);
  animation:float 8s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}
.hero-img{
  width:100%;
  height:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(23,38,32,.18);
}
.hero-blob{
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #ffffff, rgba(255,255,255,.15));
  box-shadow: inset -6px -6px 16px rgba(23,38,32,.12);
}
.badge{
  position:absolute;
  top:-14px;
  left:-8px;
  padding:8px 17px;
  font-size:15px;
  font-weight:600;
  border-radius:999px;
  background:#fff;
  border:3px solid #bfead9;
  box-shadow:var(--clay-sm);
  animation:bob 3.6s cubic-bezier(.34,1.56,.64,1) infinite;
}
@keyframes bob{
  0%,100%{ transform:translateY(0) rotate(-3deg); }
  50%{ transform:translateY(-8px) rotate(3deg); }
}

/* 正文骨架 */
main{
  display:block;
  padding:0 clamp(20px,4vw,56px) 44px;
}
.wrap{ max-width:1180px; margin:0 auto; }
.wrap > article{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(18px,3vw,34px);
  align-items:start;
}

section{ min-width:0; }

small.eb{
  display:inline-block;
  padding:4px 13px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.14em;
  color:#3f7561;
  background:var(--mint);
  border:2px solid #9fe9cb;
  border-radius:999px;
}
section > h2{
  margin:12px 0 26px;
  font-size:clamp(24px,3vw,34px);
  font-weight:600;
}

section article{
  margin-bottom:clamp(18px,3vw,28px);
  padding:clamp(18px,3vw,34px);
  background:var(--card);
  border:3px solid #dbf0e6;
  border-radius:var(--r);
  box-shadow:var(--clay);
  scroll-margin-top:96px;
}
section article small{
  display:inline-block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.12em;
  color:#3f7561;
}
section article h2{
  margin-bottom:14px;
  font-size:clamp(21px,2.6vw,28px);
  font-weight:600;
}
section article small + h2{ margin-top:0; }
section article h3{
  margin:24px 0 10px;
  font-size:19px;
  font-weight:600;
}
section article > :first-child{ margin-top:0; }
section article > :last-child{ margin-bottom:0; }
section p{ color:var(--ink-2); }
section strong{ color:var(--ink); }
section ul,section ol{ padding-left:1.3em; margin:0 0 1em; }
section li{ margin-bottom:.45em; }
section a{
  color:#14604a;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
section a:hover{ color:#0d3f30; background:var(--mint); border-radius:6px; }
section blockquote{
  margin:0 0 1em;
  padding:14px 18px;
  border-left:5px solid var(--blue);
  border-radius:12px;
  background:#f4fdff;
  color:var(--ink-2);
}
section code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.95em;
  padding:2px 6px;
  border-radius:8px;
  background:#eafaf3;
}

/* 右侧栏 */
.rail{
  position:sticky;
  top:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rail-nav{
  padding:16px 14px;
  border:3px solid #dbeef6;
  border-radius:var(--r);
  background:#fff;
  box-shadow:var(--clay);
}
.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  font-size:15px;
  line-height:1.35;
  color:var(--ink-2);
  border-radius:12px;
  transition:background .2s ease-out, transform .2s ease-out;
}
.rail-nav a:hover{
  background:var(--blue);
  color:var(--ink);
  transform:translateX(-3px);
}
.totop{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  font-size:15px;
  font-weight:600;
  border-radius:999px;
  background:linear-gradient(160deg,var(--mint),#d9fff0);
  border:3px solid #9fe9cb;
  box-shadow:var(--clay-sm);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1);
}
.totop:hover{ transform:translateY(-3px); }
.totop:active{ transform:translateY(1px); }

/* 页脚单行 */
.foot{
  margin:12px clamp(20px,4vw,56px) 0;
  padding:18px 6px 30px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 20px;
  border-top:3px solid var(--line);
}
.foot-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:16px;
}
.foot-copy{
  flex:1 1 180px;
  text-align:center;
  font-size:15px;
  color:#5d766c;
}
.foot-nav{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  font-size:15px;
  color:var(--ink-2);
  border-radius:999px;
  transition:background .2s ease-out;
}
.foot-nav a:hover{ background:var(--blue); color:var(--ink); }

/* 滚动入场 */
.stagger{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease-out, transform .55s cubic-bezier(.34,1.56,.64,1);
}
.stagger.in{ opacity:1; transform:none; }

@media (max-width:980px){
  body{ padding-left:0; }
  .dock{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:3px solid var(--line);
    box-shadow:0 10px 20px rgba(23,38,32,.09);
  }
  .mark{ flex:0 0 auto; padding:4px 2px; }
  .mark-t{ white-space:nowrap; }
  .search{ flex:0 0 auto; width:132px; }
  .dock-nav{ flex:0 0 auto; }
  .dock-nav ul{ flex-direction:row; gap:8px; }
  .dock-nav a{ white-space:nowrap; }

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:26px;
  }
  .hero-art{ min-height:200px; order:2; }
  .badge{ top:-12px; left:2px; }
  .wrap > article{ grid-template-columns:1fr; }
  .rail{ position:static; top:auto; }
  .rail-nav ul{ flex-direction:row; flex-wrap:wrap; }
  .rail-nav a{ min-height:40px; }
  .foot-brand .mark-i{ width:34px; height:34px; border-radius:12px; }
}

@media (max-width:560px){
  .hero-copy h1{ font-size:31px; }
  .hero-desc{ font-size:16px; }
  .foot{ flex-direction:column; align-items:center; text-align:center; }
  .foot-copy{ flex:0 0 auto; order:3; }
  .foot-nav{ justify-content:center; }
  .rail-nav ul{ flex-direction:column; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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