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

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

:root {
  --lime: #87ff71;
  --mustard: #ffce5c;
  --ink: #192617;
  --paper: #f2f7e8;
  --card: #ffffff;
  --rail: 252px;
  --head: 82px;
  --display: "Anton", "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(25, 38, 23, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }

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

/* ---------- 顶部品牌行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--lime);
}

.masthead::after {
  content: "";
  display: block;
  height: 9px;
  background: repeating-linear-gradient(135deg,
    var(--mustard) 0 14px,
    var(--lime) 14px 28px,
    var(--ink) 28px 42px);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: var(--lime);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 3.4vw, 1.65rem);
  letter-spacing: 0.02em;
}

.brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-6deg);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--mustard);
  color: var(--ink);
  border: 3px solid var(--lime);
  text-decoration: none;
  font-weight: 700;
  transform: rotate(-2deg);
}

.contact:hover, .contact:focus-visible { background: var(--lime); border-color: var(--mustard); }

/* ---------- 两栏骨架 ---------- */
.frame {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---------- 左侧边栏 ---------- */
.rail {
  position: sticky;
  top: var(--head);
  align-self: start;
  padding: 26px 16px 40px;
  background: var(--card);
  border-right: 4px dashed var(--ink);
  min-height: calc(100vh - var(--head));
}

.rail-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.rail-h > span {
  display: inline-block;
  padding: 2px 11px;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(-1.5deg);
}

.rail-h + * { margin-top: 0; }

.rail-nav ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rail-nav li:nth-child(odd) a::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--mustard);
  border: 2px solid var(--ink);
  flex: none;
}

.rail-nav li:nth-child(even) a::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: none;
}

.rail-nav a:hover, .rail-nav a:focus-visible {
  background: var(--mustard);
  border-bottom-color: var(--ink);
}

.rail-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 2px dotted var(--ink);
}

.rail-sub a:hover, .rail-sub a:focus-visible { background: var(--lime); }

/* ---------- 主区域 / Hero ---------- */
.stage { min-width: 0; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 96px);
  padding: 46px 4vw 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(135, 255, 113, 0.42), rgba(242, 247, 232, 0) 62%),
    repeating-linear-gradient(45deg, rgba(25, 38, 23, 0.05) 0 8px, transparent 8px 16px);
}

.badge {
  position: absolute;
  top: 24px;
  right: 4vw;
  margin: 0;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--lime);
  border: 3px solid var(--lime);
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(7deg);
}

.hero h1 {
  margin: 26px 0 14px auto;
  max-width: 15ch;
  text-align: right;
  font-size: clamp(2.3rem, 7.2vw, 5.2rem);
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 46ch;
  padding-top: 12px;
  text-align: right;
  font-size: 1.02rem;
  border-top: 3px solid var(--ink);
}

.hero-fig {
  position: relative;
  margin: 26px 0 0;
  padding-bottom: 18px;
  min-height: 32vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
}

.shape { position: absolute; display: block; pointer-events: none; }

.shape-a {
  z-index: 1;
  top: 2%;
  left: 3%;
  width: 132px;
  height: 132px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-10deg) translate3d(0, var(--py, 0px), 0);
  mix-blend-mode: multiply;
}

.shape-b {
  z-index: 3;
  top: 24%;
  right: 5%;
  width: 96px;
  height: 96px;
  background: var(--lime);
  border: 4px solid var(--ink);
  transform: rotate(12deg) translate3d(0, var(--py, 0px), 0);
}

.shape-c {
  z-index: 1;
  left: 12%;
  bottom: 0;
  width: 64%;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 11px, transparent 11px 22px);
}

/* ---------- 正文 ---------- */
.copy {
  max-width: min(80ch, 100%);
  padding: 56px 4vw 80px;
}

.copy > div {
  padding: 44px 0;
  border-top: 4px solid var(--ink);
  scroll-margin-top: 108px;
}

.copy > div:first-child { border-top: 0; padding-top: 0; }

.copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
}

.copy h2 > span {
  padding: 3px 12px;
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--mustard);
}

.copy h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
}

.copy h3 > span { border-bottom: 4px solid var(--mustard); }

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

.copy a:hover { background: var(--mustard); }

.copy ul, .copy ol { margin: 0 0 16px; padding-left: 1.35em; }
.copy li { margin: 0 0 8px; }
.copy img { width: 100%; margin: 6px 0 18px; }

.copy figure { margin: 22px 0; }

.copy blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--card);
  border-left: 9px solid var(--mustard);
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}

.copy table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.97rem; }
.copy th, .copy td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
.copy th { background: var(--mustard); }

.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: #e9f5e1;
  border-top: 9px solid var(--lime);
  padding: 42px 20px 22px;
}

.foot-brand { max-width: 1140px; margin: 0 auto; }

.brand-lite {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--lime);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
}

.foot-desc { margin: 8px 0 0; max-width: 52ch; color: #cfe3c3; }

.foot-cols {
  max-width: 1140px;
  margin: 26px auto 0;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 3px dotted rgba(135, 255, 113, 0.55);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mustard);
  margin-bottom: 8px;
}

.foot-cols dd { margin: 0; }

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #e9f5e1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-cols a:hover, .foot-cols a:focus-visible { color: var(--lime); border-bottom-color: var(--lime); }

.foot-bar {
  max-width: 1140px;
  margin: 24px auto 0;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
  border-top: 3px solid rgba(255, 206, 92, 0.65);
}

.foot-bar p { margin: 0; }
.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--lime);
  text-decoration: none;
}

.foot-bar a:hover { text-decoration: underline; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0, 1fr); }

  .rail {
    position: static;
    min-height: 0;
    padding: 14px 14px 10px;
    border-right: 0;
    border-bottom: 4px dashed var(--ink);
    background: var(--card);
  }

  .rail-h { font-size: 0.95rem; margin-bottom: 8px; }

  .rail-nav ul {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    margin: 0;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav a {
    white-space: nowrap;
    border: 2px solid var(--ink);
    background: var(--paper);
    padding: 4px 12px;
  }

  .rail-sub {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
  }

  .hero {
    min-height: 0;
    padding: 62px 18px 0;
  }

  .badge { top: 16px; right: 18px; }

  .hero h1 {
    margin-left: 0;
    max-width: none;
    font-size: clamp(2rem, 9.6vw, 3.2rem);
    text-align: right;
  }

  .hero-fig { min-height: 26vh; margin-top: 22px; }

  .shape-a { width: 92px; height: 92px; }
  .shape-b { width: 70px; height: 70px; }

  .copy { padding: 36px 18px 60px; }
  .copy > div { scroll-margin-top: 84px; padding: 34px 0; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { padding: 34px 18px 20px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .copy h2 { font-size: 1.42rem; }
  .copy h2 > span { box-shadow: 5px 5px 0 var(--mustard); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .masthead, .rail, .foot { position: static; }
  body { background: #fff; }
}

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