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

:root{
  --mint:#b4fde1;
  --sky:#add8e6;
  --ink:#172620;
  --paper:#f0fdf7;
  --card:#ffffff;
  --muted:#48605a;
  --r-lg:24px;
  --r-md:16px;
  --r-sm:4px;
  --soft:0 4px 8px rgba(23,38,32,.12);
  --hard:6px 6px 0 rgba(23,38,32,.15);
}

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

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

body{
  margin:0;
  font-family:'Space Grotesk','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, var(--mint) 0%, rgba(180,253,225,0) 62%),
    radial-gradient(760px 480px at 98% 6%, var(--sky) 0%, rgba(173,216,230,0) 58%),
    var(--paper);
  background-attachment:fixed;
}

a{color:inherit}
a:focus-visible{outline:3px solid #0b6b4f;outline-offset:3px}

p{margin:0 0 1em}
img{max-width:100%}

.skip{
  position:absolute;
  top:-64px;
  left:12px;
  z-index:60;
  padding:10px 16px;
  background:var(--ink);
  color:var(--mint);
  font-weight:700;
  text-decoration:none;
  border-radius:0 0 14px 14px;
  transition:top .2s ease-out;
}
.skip:focus{top:0}

/* 顶部两行：品牌独占一行，菜单在下 */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  padding:8px clamp(12px,3vw,28px) 10px;
  background:rgba(240,253,247,.95);
  border-bottom:3px solid var(--ink);
  box-shadow:0 8px 18px rgba(23,38,32,.09);
  backdrop-filter:blur(10px);
}

.brandrow{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:2px 4px;
  font-size:clamp(19px,3vw,25px);
  font-weight:700;
  letter-spacing:.06em;
  text-decoration:none;
  color:var(--ink);
  border-radius:14px;
}
.brand:hover span{background:linear-gradient(transparent 62%, var(--sky) 62%)}

.brand-mark{
  width:34px;
  height:34px;
  object-fit:cover;
  border:3px solid var(--ink);
  border-radius:11px;
  background:var(--mint);
  box-shadow:inset -2px -2px 6px rgba(255,255,255,.7);
}

.menubar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

.menubar ol{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex:1 1 auto;
  margin:0;
  padding:0;
  list-style:none;
}
.menubar ol li{display:flex}

.menubar ol a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  font-weight:500;
  line-height:1.2;
  text-decoration:none;
  color:var(--ink);
  background:#fff;
  border:3px solid var(--ink);
  border-radius:14px;
  box-shadow:3px 3px 0 rgba(23,38,32,.18), inset -2px -2px 5px rgba(23,38,32,.06);
  transition:transform .18s ease-out, box-shadow .18s ease-out, background .18s ease-out;
}
.menubar ol a:hover{background:var(--mint);transform:translateY(-1px)}
.menubar ol a:active{transform:translate(2px,2px);box-shadow:1px 1px 0 rgba(23,38,32,.18)}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 20px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  color:var(--mint);
  background:var(--ink);
  border:3px solid var(--ink);
  border-radius:999px;
  box-shadow:4px 4px 0 rgba(23,38,32,.28), inset -2px -2px 7px rgba(255,255,255,.16);
  transition:transform .18s ease-out, box-shadow .18s ease-out, background .18s ease-out;
}
.cta:hover{background:#0c1a14}
.cta:active{transform:translate(2px,2px);box-shadow:1px 1px 0 rgba(23,38,32,.28)}

.wrap{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:clamp(16px,3vw,30px) clamp(12px,3vw,28px) 56px;
}

/* Hero：左图右文，紧凑，下接色带 */
.hero{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:center;
  gap:clamp(16px,3vw,30px);
  min-height:45vh;
}

.hero-art{
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  min-height:min(38vh,300px);
  border:3px solid var(--ink);
  border-radius:var(--r-lg);
  background:linear-gradient(150deg,var(--mint),var(--sky));
  box-shadow:
    inset -4px -4px 12px rgba(255,255,255,.6),
    inset 4px 4px 10px rgba(23,38,32,.1),
    8px 8px 0 rgba(23,38,32,.16);
}

.hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}

.blob{
  width:56%;
  aspect-ratio:1;
  border:3px solid rgba(23,38,32,.55);
  border-radius:46% 54% 52% 48% / 52% 45% 55% 48%;
  background:radial-gradient(circle at 32% 26%, #ffffff, rgba(255,255,255,.4) 52%, rgba(23,38,32,.14));
  animation:bob 6s ease-in-out infinite;
}

.hero-copy{text-align:center;padding:6px 0}
.hero-copy h1{
  margin:0;
  font-size:clamp(27px,5vw,46px);
  line-height:1.22;
  font-weight:700;
  letter-spacing:.01em;
}

.band{
  height:18px;
  margin:20px 0 24px;
  border:3px solid var(--ink);
  border-radius:999px;
  background:repeating-linear-gradient(-45deg, var(--mint) 0 12px, var(--sky) 12px 24px);
  box-shadow:4px 4px 0 rgba(23,38,32,.14);
}

/* 正文 + 右侧栏 */
.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:clamp(16px,2.6vw,28px);
  align-items:start;
}

.prose{min-width:0;overflow-wrap:break-word}

.prose > article{
  margin:0 0 22px;
  padding:clamp(16px,2.4vw,30px);
  background:var(--card);
  border:3px solid var(--ink);
  border-radius:var(--r-sm);
  box-shadow:var(--soft);
  scroll-margin-top:172px;
}

.prose h2{
  margin:.15em 0 .55em;
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.35;
  letter-spacing:.01em;
}

.prose h3{
  margin:.9em 0 .4em;
  font-size:clamp(18px,2.1vw,21px);
  line-height:1.4;
}

.prose p{line-height:1.8}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.35em}
.prose li{margin:.25em 0}

.prose a{
  color:#0b6b4f;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.prose a:hover{color:var(--ink);background:var(--mint)}

.prose img{
  display:block;
  margin:1em 0;
  height:auto;
  border:3px solid var(--ink);
  border-radius:16px;
  box-shadow:var(--soft);
}

.prose blockquote{
  margin:1em 0;
  padding:12px 16px;
  border:3px solid var(--ink);
  border-radius:16px;
  background:linear-gradient(160deg,#f3fffa,#e0fbf1);
  box-shadow:inset -2px -2px 8px rgba(255,255,255,.8);
}

.prose hr{
  margin:1.2em 0;
  border:0;
  border-top:3px solid rgba(23,38,32,.32);
}

.prose table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:16px;
}
.prose th,.prose td{
  padding:8px 10px;
  border:2px solid rgba(23,38,32,.25);
  text-align:left;
}

/* 侧栏 */
.side{position:sticky;top:160px}

.side-card{
  padding:16px;
  background:linear-gradient(170deg,#ffffff,#eefcf5);
  border:3px solid var(--ink);
  border-radius:20px;
  box-shadow:
    inset -3px -3px 10px rgba(255,255,255,.75),
    5px 5px 0 rgba(23,38,32,.16);
}

.side-h{
  margin:0 0 4px;
  font-size:17px;
  letter-spacing:.14em;
}

.side-card hr{
  margin:8px 0 12px;
  border:0;
  border-top:3px solid var(--ink);
}

.side-list{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}

.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  color:var(--ink);
  border:3px solid transparent;
  border-radius:14px;
  transition:background .18s ease-out, border-color .18s ease-out;
}
.side-list a:hover{background:var(--mint);border-color:var(--ink)}

/* 页脚：三栏，只有 p 与 small */
footer{
  display:grid;
  grid-template-columns:1fr 1.3fr 1fr;
  grid-template-areas:
    "brand links copy"
    "brand links note";
  gap:8px 18px;
  align-items:start;
  margin-top:12px;
  padding:30px clamp(12px,3vw,28px) 28px;
  border-top:3px solid var(--ink);
  background:linear-gradient(180deg,#e6fff6,#cbf2e7);
  box-shadow:inset 0 6px 16px rgba(23,38,32,.07);
}

.foot-brand{
  grid-area:brand;
  margin:0;
  font-size:20px;
  font-weight:700;
  letter-spacing:.05em;
}

.foot-links{
  grid-area:links;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0 4px;
  margin:0;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 8px;
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  border-bottom:2px solid transparent;
  transition:border-color .18s ease-out, background .18s ease-out;
}
.foot-links a:hover{border-bottom-color:var(--ink);background:rgba(255,255,255,.6)}

.foot-copy{
  grid-area:copy;
  margin:0;
  text-align:center;
  font-size:16px;
  font-weight:600;
}

.foot-note{
  grid-area:note;
  display:block;
  text-align:center;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

@keyframes bob{
  0%,100%{transform:translateY(-7px) rotate(-3deg)}
  50%{transform:translateY(7px) rotate(3deg)}
}

@keyframes rise{
  from{opacity:0;transform:translateY(16px) scale(.99)}
  to{opacity:1;transform:none}
}

@media (prefers-reduced-motion: no-preference){
  .prose > article{animation:rise .55s cubic-bezier(.34,1.56,.64,1) both}
  .prose > article:nth-child(1){animation-delay:.02s}
  .prose > article:nth-child(2){animation-delay:.07s}
  .prose > article:nth-child(3){animation-delay:.12s}
  .prose > article:nth-child(4){animation-delay:.17s}
  .prose > article:nth-child(5){animation-delay:.22s}
  .prose > article:nth-child(6){animation-delay:.27s}
  .prose > article:nth-child(7){animation-delay:.32s}
}

@media (max-width:920px){
  .content-grid{grid-template-columns:1fr}
  .side{position:static;order:2}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{order:1}
  .hero-art{order:2;min-height:210px;max-height:38vh}
  .prose > article{scroll-margin-top:196px}
}

@media (max-width:720px){
  .menubar ol a{padding:6px 10px}
  .cta{padding:6px 16px}
  footer{
    grid-template-columns:1fr;
    grid-template-areas:"brand" "links" "copy" "note";
    justify-items:center;
    text-align:center;
    padding:26px 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .blob{animation:none}
  .hero-img{transform:none !important}
}

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