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

:root {
  --ink: #192617;
  --ink-2: #22331f;
  --lime: #87ff71;
  --cream: #ffce5c;
  --body: #e9f5e0;
  --dim: #c3d9b6;
  --edge: rgba(135, 255, 113, 0.4);
  --card-r: 18px;
  --sans: Epilogue, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --shout: Anton, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(135, 255, 113, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--lime); }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--shout);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

/* ---------- 页头：品牌行 + 菜单行 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(25, 38, 23, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 2px dashed var(--edge);
  padding: 10px max(20px, calc((100% - 1240px) / 2)) 8px;
}

.brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--shout);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  position: relative;
  width: 26px;
  height: 26px;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-8deg);
}
.mark::after {
  content: "";
  position: absolute;
  inset: 8px 8px 2px;
  background: var(--ink);
  border-radius: 50%;
}

.find {
  display: flex;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--body);
  background: rgba(135, 255, 113, 0.08);
  border: 2px solid var(--edge);
  border-radius: var(--card-r);
}
.find input::placeholder { color: #9db98e; }

.find button {
  height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--card-r);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.find button:hover { transform: rotate(-3deg); background: var(--lime); }

.navwrap nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.navwrap nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: #dcf2d2;
  text-decoration: none;
  border: 1px dashed var(--edge);
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.navwrap nav a:hover,
.navwrap nav a:focus-visible {
  background: var(--lime);
  color: var(--ink);
  border-style: solid;
  transform: rotate(-2deg);
}

/* ---------- 主体骨架：内容在左，侧栏在右 ---------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 34px;
  align-items: start;
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  min-height: 45vh;
  padding: 26px 0 32px;
  overflow: hidden;
}
.hero::after {
  content: "01";
  position: absolute;
  right: -3%;
  top: -12%;
  font-family: var(--shout);
  font-size: clamp(92px, 17vw, 190px);
  line-height: 0.8;
  color: rgba(255, 206, 92, 0.14);
  -webkit-text-stroke: 2px rgba(255, 206, 92, 0.36);
  pointer-events: none;
  z-index: 0;
}
.hero-copy { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.5rem);
  color: var(--cream);
  text-shadow: 4px 4px 0 rgba(135, 255, 113, 0.32);
}

.lede {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--dim);
}

.hero-act { margin: 22px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: var(--card-r);
  text-decoration: none;
  transform: rotate(-2deg);
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: rotate(0deg) translateY(-2px); background: var(--cream); }

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
}
.hero-art img {
  width: 100%;
  border: 3px solid var(--lime);
  border-radius: var(--card-r);
  transform: rotate(2.5deg);
  background: rgba(135, 255, 113, 0.08);
}

.hero-art--shapes {
  aspect-ratio: 1 / 1;
  min-height: 210px;
  border: 3px dashed var(--lime);
  border-radius: var(--card-r);
  transform: rotate(-2deg);
  overflow: hidden;
}
.hero-art--shapes i { position: absolute; display: block; }
.hero-art--shapes i:nth-child(1) {
  left: 8%; top: 12%;
  width: 46%; height: 46%;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hero-art--shapes i:nth-child(2) {
  right: 10%; top: 18%;
  width: 34%; height: 34%;
  background: var(--cream);
  border-radius: 50%;
  mix-blend-mode: screen;
}
.hero-art--shapes i:nth-child(3) {
  left: 14%; bottom: 14%;
  width: 72%; height: 16%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 10px, transparent 10px 20px);
  transform: rotate(-6deg);
}

/* ---------- 正文 ---------- */
section > div {
  scroll-margin-top: 130px;
  padding: 32px 0;
  border-top: 2px dashed rgba(135, 255, 113, 0.28);
}
section > div:first-of-type { border-top: 0; padding-top: 12px; }

section > div > small,
section small {
  display: block;
  padding-left: 19px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
}

section h2 {
  position: relative;
  padding-left: 19px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--lime);
}
section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  background: var(--cream);
  transform: rotate(45deg);
}

section h3 {
  margin: 26px 0 10px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--cream);
}
section h4 { margin: 20px 0 8px; font-size: 17px; color: var(--cream); }

section p,
section li { font-size: 17px; line-height: 1.8; }

section a {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

section ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
section ol { list-style: decimal; padding-left: 24px; margin: 0 0 1em; }
section li { margin: 0.36em 0; }

section img {
  margin: 18px 0;
  border: 2px solid var(--lime);
  border-radius: var(--card-r);
}

section blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  color: #d9ebce;
  background: rgba(255, 206, 92, 0.09);
  border-left: 4px solid var(--cream);
  border-radius: 0 var(--card-r) var(--card-r) 0;
}

section table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 16px;
}
section th,
section td {
  padding: 9px 11px;
  text-align: left;
  border: 1px dashed rgba(135, 255, 113, 0.45);
}
section th { background: rgba(135, 255, 113, 0.1); }

section code {
  padding: 1px 5px;
  font-size: 15px;
  background: rgba(135, 255, 113, 0.14);
  border-radius: 6px;
}

section hr {
  border: 0;
  border-top: 2px dotted var(--edge);
  margin: 26px 0;
}

section figure { margin: 20px 0; }
section figcaption { font-size: 15px; color: var(--dim); }

div.flash { background: rgba(255, 206, 92, 0.13); border-radius: var(--card-r); }

/* ---------- 右侧侧栏 ---------- */
.rail {
  position: sticky;
  top: 132px;
  padding: 16px 16px 10px;
  background: rgba(135, 255, 113, 0.06);
  border: 2px dashed var(--lime);
  border-radius: var(--card-r);
}
.rail .kicker {
  margin-bottom: 4px;
  padding-left: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.rail h2 {
  margin: 0 0 10px;
  font-family: var(--shout);
  font-size: 1.2rem;
  color: var(--cream);
}
.rail .toc a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 2px;
  font-size: 16px;
  color: #dff3d5;
  text-decoration: none;
  border-bottom: 1px dashed rgba(135, 255, 113, 0.28);
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.rail .toc li:last-child a { border-bottom: 0; }
.rail .toc a:hover,
.rail .toc a:focus-visible { color: var(--lime); padding-left: 8px; }

/* ---------- 页脚：三列 dl ---------- */
.foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
  padding: 0 max(20px, calc((100% - 1240px) / 2)) 18px;
  border-top: 3px solid var(--lime);
  background: linear-gradient(180deg, rgba(135, 255, 113, 0.09), transparent 62%);
  overflow: hidden;
}
.ftop {
  grid-column: 1 / -1;
  padding: 18px 0 6px;
  font-family: var(--shout);
  font-size: clamp(2.2rem, 12vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 206, 92, 0.16);
  -webkit-text-stroke: 2px var(--cream);
}

.foot dl {
  margin: 0;
  padding: 14px;
  border: 2px dashed rgba(255, 206, 92, 0.5);
  border-radius: var(--card-r);
}
.foot dt {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}
.foot dd { margin: 0; }
.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #dff3d5;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.foot dd a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.foot dl dd:not(:last-child) { margin-bottom: 2px; }

.fbot {
  grid-column: 1 / -1;
  padding-top: 14px;
  text-align: center;
  font-size: 16px;
  color: #b0c8a1;
  border-top: 2px dashed rgba(135, 255, 113, 0.3);
}
.fbot p { margin: 0; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js section > div {
    opacity: 0;
    transform: translateY(16px) rotate(-0.4deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js section > div.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rail { position: static; order: 3; }
  .mast { position: static; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 20px;
    padding-top: 18px;
  }
  .hero::after { top: -4%; font-size: clamp(80px, 26vw, 140px); }
  .hero-art--shapes { aspect-ratio: 16 / 9; min-height: 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  section > div { scroll-margin-top: 20px; }
}

@media (max-width: 420px) {
  .brandline { gap: 10px; }
  .logo { font-size: 21px; }
  .find { flex: 1 1 100%; }
  .navwrap nav ul { gap: 6px; }
  .navwrap nav a { padding: 8px 11px; font-size: 15px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .lede { font-size: 17px; }
  .ftop { -webkit-text-stroke-width: 1.4px; }
}

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