:root {
  --ink: #1f2617;
  --ink-2: #151c0f;
  --ink-3: #0f160a;
  --lime: #80ff00;
  --neon: #00ff00;
  --paper: #eef6e2;
  --dim: #a3b78d;
  --radius: 18px;
  --font: "Space Grotesk", "Inter", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  padding-bottom: 92px;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% -8%, rgba(128, 255, 0, .18), transparent 46%),
    radial-gradient(circle at 4% 34%, rgba(0, 255, 0, .09), transparent 40%);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}

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

/* 底部固定条：品牌居左 + 图标链接 + 联系入口 */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
  background: rgba(21, 28, 15, .95);
  border-top: 2px solid var(--lime);
  backdrop-filter: blur(9px);
}

.dock-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 82px;
  min-height: 44px;
  padding: 4px 6px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.dock-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--lime);
  color: #12200a;
  font-size: 14px;
  font-weight: 700;
}

img.mark { object-fit: cover; }

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.dock-nav::-webkit-scrollbar { display: none; }

.dock-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 2px;
  list-style: none;
}

.dock-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(128, 255, 0, .3);
  border-radius: 999px;
  background: rgba(128, 255, 0, .1);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s, color .16s;
}

.dock-nav a:hover,
.dock-nav a:focus-visible {
  background: var(--lime);
  color: #12200a;
}

.ico { color: var(--neon); font-size: 10px; }
.dock-nav a:hover .ico { color: #12200a; }

.dock-cta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--lime);
  color: #12200a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 #0b1405;
}

/* 跑马灯 */
.ticker {
  overflow: hidden;
  padding: 7px 0;
  border-bottom: 2px solid var(--ink-2);
  background: var(--lime);
  color: #12200a;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ticker-run {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: slide 30s linear infinite;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 头图：斜切底边 + 右对齐文案 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 45vh;
  padding: 84px clamp(16px, 5vw, 44px) 48px;
  background: linear-gradient(152deg, #2c3721, var(--ink) 62%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
  isolation: isolate;
  overflow: hidden;
}

.hero-fig { position: absolute; inset: 0; z-index: -1; }

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  filter: saturate(150%) contrast(1.06);
  transform: scale(1.08);
}

.hero-solid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg, rgba(128, 255, 0, .16) 0 22px, transparent 22px 48px);
}

.hero-in {
  max-width: 26ch;
  text-align: right;
}

.sticker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--neon);
  color: #0f1c07;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 #0b1405;
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(1.85rem, 8.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .6);
}

main { display: block; }

.sheet {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px) 12px;
}

/* 目录块 */
.toc { padding: 34px 0 8px; }

.toc small {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--lime);
  color: #12200a;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  transform: rotate(-2deg);
}

.toc h2 {
  margin: 10px 0 18px;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  letter-spacing: -.02em;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.toc-grid a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--lime);
  color: #12200a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  transition: transform .18s ease;
}

.toc-grid li:nth-child(even) a { background: var(--neon); }
.toc-grid a:hover,
.toc-grid a:focus-visible { transform: translate(-2px, -2px) rotate(-1.2deg); }

/* 正文区块 */
.sheet > div {
  padding-block: 40px;
  border-top: 2px dashed rgba(128, 255, 0, .3);
  scroll-margin-top: 26px;
}

.sheet > div h2 {
  margin: .15em 0 .55em;
  font-size: clamp(1.45rem, 5.6vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.sheet > div h3 {
  margin: 1.5em 0 .45em;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.sheet > div p { margin: 0 0 1.05em; }
.sheet > div ul,
.sheet > div ol { padding-left: 1.25em; }
.sheet > div li { margin: .45em 0; }
.sheet > div a { text-underline-offset: 3px; text-decoration-thickness: 2px; }

.sheet > div blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-left: 5px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(128, 255, 0, .09);
}

.sheet > div blockquote p:last-child { margin-bottom: 0; }

.sheet > div table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.sheet > div th,
.sheet > div td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(128, 255, 0, .25);
  text-align: left;
  vertical-align: top;
}

.sheet > div img {
  margin: 1.1em 0;
  border-radius: var(--radius);
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 44px;
  padding: 40px clamp(16px, 5vw, 40px) 22px;
  border-top: 3px solid var(--lime);
  background: var(--ink-2);
}

.foot h3 {
  margin: 0 0 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
}

.f-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.f-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(128, 255, 0, .45);
  border-radius: 999px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.f-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.f-nav a:hover,
.f-top:hover { color: var(--lime); text-decoration: underline; }

.f-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--lime);
  color: #12200a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 #0b1405;
}

.f-host {
  margin: 12px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 132px;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid rgba(128, 255, 0, .42);
  border-radius: var(--radius);
  background: var(--ink-3);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.sub button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--neon);
  color: #12200a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.f-base {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 255, 0, .22);
  text-align: center;
}

.f-base p {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

/* 进场错落 */
.js .sheet > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .3, 1);
}

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

@media (min-width: 760px) {
  body { font-size: 18px; padding-bottom: 96px; }
  .hero { min-height: 48vh; padding-top: 96px; }
  .foot { grid-template-columns: 1.35fr 1fr 1fr 1.5fr; align-items: start; gap: 32px; }
  .toc-grid { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
}

@media (max-width: 380px) {
  .dock-brand span { display: none; }
  .dock-brand { max-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-run { animation: none; }
  .js .sheet > div { opacity: 1; transform: none; transition: none; }
  .hero-fig img { transform: none !important; }
  .toc-grid a:hover { transform: none; }
}

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