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

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

:root {
  --lime: #87ff71;
  --sun: #ffce5c;
  --ink: #192617;
  --deep: #0d170c;
  --text: #dcf8d3;
  --muted: #b6dcac;
  --glass: rgba(135, 255, 113, 0.06);
  --line: rgba(135, 255, 113, 0.34);
  --rail: 264px;
  --r: 18px;
}

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

body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: Montserrat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 206, 92, 0.18) 0 2px, transparent 2px) 12px 24px / 38px 38px,
    radial-gradient(circle, rgba(135, 255, 113, 0.13) 0 3px, transparent 3px) 0 0 / 54px 54px,
    radial-gradient(900px 640px at 88% -12%, #26441f 0%, transparent 62%),
    radial-gradient(700px 520px at 4% 104%, #213318 0%, transparent 60%),
    linear-gradient(165deg, #1b2c17 0%, #101c0e 58%, #0a110a 100%);
}

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

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

:focus-visible {
  outline: 3px dashed var(--sun);
  outline-offset: 3px;
}

/* ---------- 左侧固定栏 ---------- */

.shell { display: block; min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 22px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(13, 23, 12, 0.97), rgba(13, 23, 12, 0.88));
  border-right: 2px dashed var(--line);
  backdrop-filter: blur(10px);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 6px;
  height: 96px;
  background: repeating-linear-gradient(180deg, var(--sun) 0 10px, transparent 10px 20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lime);
  font-family: Cormorant, "Songti SC", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding: 4px 0;
}

.brand-text { display: block; }

.mark {
  flex: 0 0 auto;
  display: block;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--lime), var(--sun));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-9deg);
}

.mark--img {
  clip-path: none;
  border-radius: 10px;
  object-fit: cover;
  transform: rotate(-4deg);
}

.menu { margin: 0; }

.menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  border-bottom: 2px dotted rgba(255, 206, 92, 0.42);
}

.menu > summary::-webkit-details-marker { display: none; }

.menu > summary::after {
  content: "＋";
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--lime);
}

.menu[open] > summary::after { content: "－"; }

.menu > menu,
.menu > ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.navlist li { margin: 0; }

.navlist a {
  display: block;
  padding: 11px 12px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.navlist a:hover,
.navlist a:focus-visible {
  color: var(--ink);
  background: var(--lime);
  border-left-color: var(--sun);
  transform: translateX(5px);
}

.side-cta {
  margin-top: auto;
  display: block;
  padding: 14px 16px;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border-radius: var(--r);
  border: 2px dashed rgba(25, 38, 23, 0.45);
  transform: rotate(-1.6deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-cta:hover {
  transform: rotate(1.2deg) translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 206, 92, 0.28);
}

/* ---------- 主区 ---------- */

main { margin-left: var(--rail); }

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 30px 70px;
}

.stage { display: block; }

.leaf { display: block; }

/* 首屏 */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 90px 0 70px;
  isolation: isolate;
}

.hero > * { position: relative; z-index: 1; }

.blob {
  position: absolute;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.blob-a {
  width: 150px;
  height: 150px;
  left: -34px;
  top: 16%;
  background: var(--lime);
  opacity: 0.5;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-15deg);
}

.blob-b {
  width: 108px;
  height: 108px;
  right: -22px;
  bottom: 20%;
  border: 12px solid var(--sun);
  border-radius: 50%;
  opacity: 0.55;
}

.blob-c {
  width: 120px;
  height: 70px;
  right: 8%;
  top: 12%;
  background: repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.55) 0 6px, transparent 6px 14px);
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
  transform: rotate(8deg);
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(255, 206, 92, 0.24);
  animation: drift 7s ease-in-out infinite;
}

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

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: Cormorant, "Songti SC", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #f2ffe9;
  text-shadow: 0 0 30px rgba(135, 255, 113, 0.34);
}

.hero-sub {
  margin: 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-art {
  margin: 12px 0 0;
  width: 100%;
  max-width: 720px;
  transform: rotate(-1deg);
}

.hero-img {
  display: block;
  width: 100%;
  max-height: 44vh;
  object-fit: cover;
  border-radius: var(--r);
  border: 2px dashed var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

/* 正文 */

.prelude {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
}

.prelude h2 {
  margin: 0;
  font-family: Cormorant, "Songti SC", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sun);
  letter-spacing: 0.02em;
}

hr {
  border: 0;
  height: 9px;
  margin: 0;
  background: repeating-linear-gradient(115deg, var(--lime) 0 13px, transparent 13px 25px);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 100%);
}

.leaf h2 {
  margin: 0 0 12px;
  font-family: Cormorant, "Songti SC", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--sun);
  letter-spacing: 0.02em;
}

.leaf h3 {
  margin: 26px 0 10px;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lime);
}

.leaf h2 + hr,
.leaf h3 + hr { margin: 0 0 22px; }

.leaf > article {
  position: relative;
  margin: 0 0 30px;
  padding: 34px 30px;
  border-radius: var(--r);
  background: var(--glass);
  border: 2px dashed var(--line);
  backdrop-filter: blur(8px);
  scroll-margin-top: 30px;
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.leaf > article:hover {
  border-color: rgba(255, 206, 92, 0.6);
  background: rgba(135, 255, 113, 0.09);
}

.leaf > article::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 92px;
  height: 92px;
  background: rgba(255, 206, 92, 0.16);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.leaf p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 1.82;
}

.leaf p:last-child { margin-bottom: 0; }

.leaf a {
  color: var(--sun);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.leaf a:hover { color: var(--lime); }

.leaf ul,
.leaf ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.leaf li { margin: 0 0 0.5em; line-height: 1.75; }

.leaf blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--lime);
  background: rgba(135, 255, 113, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

.leaf strong { color: var(--lime); }

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

.leaf img {
  border-radius: var(--r);
  border: 2px dashed var(--line);
}

.leaf table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 16px;
}

.leaf th,
.leaf td {
  padding: 10px 12px;
  border: 1px dotted var(--line);
  text-align: left;
}

.leaf th { color: var(--sun); background: rgba(255, 206, 92, 0.1); }

/* ---------- 页脚 ---------- */

footer {
  margin-left: var(--rail);
  padding: 0 30px 44px;
  border-top: 2px dotted var(--line);
  background: linear-gradient(180deg, rgba(135, 255, 113, 0.06), transparent 70%);
}

.foot-in {
  max-width: 1020px;
  margin: 0 auto;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 36px;
  padding: 32px 30px;
  border-radius: var(--r);
  background: rgba(255, 206, 92, 0.12);
  border: 2px dashed rgba(255, 206, 92, 0.52);
  transform: rotate(-0.7deg);
}

.cta p {
  margin: 0;
  font-family: Cormorant, "Songti SC", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sun);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(135, 255, 113, 0.32);
}

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

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.foot-cols dd { margin: 0; }

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.foot-cols dd a:hover {
  color: var(--sun);
  border-bottom-color: var(--sun);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dotted rgba(135, 255, 113, 0.28);
  font-size: 0.9rem;
  color: #9ec795;
}

.foot-base .copy { margin: 0; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px dotted var(--line);
  color: var(--lime);
  text-decoration: none;
  font-size: 16px;
}

.totop:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
  .rail {
    position: static;
    width: auto;
    height: auto;
    gap: 16px;
    padding: 18px 18px 22px;
    border-right: 0;
    border-bottom: 2px dashed var(--line);
  }

  .rail::after {
    top: auto;
    bottom: -2px;
    right: 0;
    width: 120px;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 20px);
  }

  main,
  footer { margin-left: 0; }

  .wrap { padding: 0 18px 54px; }

  footer { padding: 0 18px 36px; }

  .hero {
    min-height: auto;
    padding: 46px 0 46px;
    gap: 14px;
  }

  .blob-a { width: 96px; height: 96px; left: -26px; top: 8%; }
  .blob-b { width: 76px; height: 76px; border-width: 9px; right: -18px; bottom: 14%; }
  .blob-c { width: 84px; height: 52px; right: 4%; top: 4%; }

  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.9rem); }

  .hero-img { max-height: 32vh; }

  .leaf > article { padding: 24px 18px; }

  .foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }

  .cta { padding: 24px 20px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .foot-cols { grid-template-columns: 1fr; }
  .cta-btn { width: 100%; justify-content: center; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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