:root {
  --lime: #87ff71;
  --must: #ffce5c;
  --ink: #192617;
  --paper: #f3f8ec;
  --glass: rgba(255, 255, 255, 0.66);
  --deep: #123a1c;
}

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

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

body {
  margin: 0;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(25, 38, 23, 0.15) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  overflow-x: hidden;
}

div {
  scroll-margin-top: 148px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--deep);
}

.top {
  display: block;
  height: 0;
}

/* ---------- 顶栏 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  background-image: radial-gradient(circle, rgba(25, 38, 23, 0.13) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgba(25, 38, 23, 0.08);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(14px, 4vw, 44px) 4px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink);
}

.logo__box {
  width: 24px;
  height: 24px;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.logo__img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
}

.logo__word {
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--must);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  padding: 2px clamp(12px, 4vw, 40px) 8px;
}

.tab,
.drop__sum {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}

.tab:hover,
.tab:focus-visible,
.drop__sum:hover {
  background: rgba(135, 255, 113, 0.55);
}

.drop {
  position: relative;
}

.drop__sum {
  list-style: none;
  background: transparent;
  border-bottom: 3px solid var(--must);
}

.drop__sum::-webkit-details-marker {
  display: none;
}

.drop[open] > .drop__sum {
  background: var(--lime);
}

.drop__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 70;
  min-width: 186px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--ink);
}

.drop__menu li {
  list-style: none;
}

.drop__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.98rem;
}

.drop__menu a:hover,
.drop__menu a:focus-visible {
  background: var(--must);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding: clamp(26px, 6vw, 62px) clamp(16px, 5vw, 56px) clamp(64px, 11vw, 120px);
  overflow: hidden;
  color: #e9fbdf;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__shapes span {
  position: absolute;
  display: block;
}

.sh1 {
  top: -8%;
  right: -8%;
  width: min(42vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--must);
  mix-blend-mode: screen;
  opacity: 0.92;
}

.sh2 {
  bottom: 12%;
  left: -5%;
  width: min(32vw, 200px);
  aspect-ratio: 1;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-12deg);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.sh3 {
  right: 18%;
  bottom: 4%;
  width: min(46vw, 300px);
  height: 110px;
  transform: rotate(6deg);
  background: repeating-radial-gradient(circle at 18px 18px, var(--lime) 0 3px, transparent 3px 19px);
  opacity: 0.45;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 4vw, 46px);
  grid-template-columns: 1fr;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__h {
  margin: 0 0 14px;
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 8.6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--lime);
  overflow-wrap: anywhere;
}

.hero__lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.65;
  color: #d5eac8;
}

.hero__media {
  min-width: 0;
}

.hero__pic {
  display: block;
  width: 100%;
  border: 5px solid var(--lime);
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 10px 10px 0 rgba(135, 255, 113, 0.28);
}

/* ---------- 主体 ---------- */
.frame {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) clamp(15px, 4vw, 44px);
}

.rail {
  align-self: start;
  padding: 14px;
  background: var(--glass);
  border: 2px dashed var(--ink);
  border-radius: 4px;
  backdrop-filter: blur(7px);
}

.rail-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rail-h__dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--must);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.rail-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted rgba(25, 38, 23, 0.42);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(255, 206, 92, 0.5);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.prose {
  min-width: 0;
}

.prose > div {
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3.2vw, 32px);
  background: var(--glass);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(25, 38, 23, 0.16);
  backdrop-filter: blur(8px);
}

.prose > div:nth-of-type(even) {
  box-shadow: 8px 8px 0 rgba(255, 206, 92, 0.7);
}

.prose > div:nth-of-type(3n) {
  box-shadow: 8px 8px 0 rgba(135, 255, 113, 0.65);
}

.prose h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0.1em 0 0.6em;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose h2::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 0.5em;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.prose h2 span,
.prose h3 span {
  display: inline-block;
}

.prose h3 {
  margin: 1.3em 0 0.4em;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--deep);
}

.prose p {
  margin: 0 0 1em;
}

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong {
  background: linear-gradient(transparent 58%, rgba(255, 206, 92, 0.85) 58%);
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  background: rgba(255, 206, 92, 0.28);
  border-left: 6px solid var(--must);
  border-radius: 4px;
}

.prose figure {
  margin: 1.2em 0 0;
}

.prose img {
  border: 3px solid var(--ink);
  border-radius: 4px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid rgba(25, 38, 23, 0.45);
  text-align: left;
}

.prose th {
  background: rgba(135, 255, 113, 0.4);
}

.prose hr {
  height: 3px;
  margin: 1.6em 0;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 20px);
}

/* ---------- 页脚 ---------- */
.ground {
  margin-top: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 46px) 22px;
  color: #d9efd0;
  background: var(--ink);
  border-top: 7px solid var(--lime);
  clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%);
}

.ground__top {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
}

.ground__big {
  margin: 0 0 10px;
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--lime);
  overflow-wrap: anywhere;
}

.ground__note {
  max-width: 34ch;
  margin: 0;
  color: #c2dcb8;
}

.ground__cols {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ground dl {
  margin: 0;
}

.ground dt {
  margin-bottom: 6px;
  padding-bottom: 6px;
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 0.92rem;
  color: var(--must);
  letter-spacing: 0.05em;
  border-bottom: 2px dotted rgba(255, 206, 92, 0.5);
}

.ground dd {
  margin: 0;
}

.ground dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 3px;
  color: #e4f7db;
  text-decoration: none;
  font-size: 0.97rem;
}

.ground dd a:hover,
.ground dd a:focus-visible {
  color: var(--lime);
}

.ground__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 2px solid rgba(135, 255, 113, 0.35);
  font-size: 0.95rem;
}

.ground__cr {
  margin: 0;
}

.ground__up {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  background: var(--must);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

/* ---------- 动效 ---------- */
.js .prose > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .prose > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 820px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 900px) {
  .frame {
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 142px;
    max-height: calc(100vh - 170px);
    overflow: auto;
  }

  div {
    scroll-margin-top: 150px;
  }
}

@media (min-width: 880px) {
  .ground__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }

  div {
    scroll-margin-top: 210px;
  }
}

@media (max-width: 460px) {
  .tabs {
    gap: 0 2px;
  }

  .tab,
  .drop__sum {
    padding: 0 9px;
    font-size: 0.94rem;
  }

  .cta {
    padding: 0 12px;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .ground__cols {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .prose > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__pic,
  .hero__shapes {
    transform: none;
  }

  .cta {
    transition: none;
  }
}

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