@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --ink: #192617;
  --deeper: #101c0d;
  --neon: #87ff71;
  --gold: #ffce5c;
  --paper: #eef8e8;
  --muted: #b3cda8;
  --line: rgba(135, 255, 113, 0.28);
  --glass: rgba(233, 255, 226, 0.055);
  --font: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0 0 7rem;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 206, 92, 0.16), transparent 44%),
    radial-gradient(circle at 88% 3%, rgba(135, 255, 113, 0.18), transparent 42%),
    linear-gradient(180deg, #1b2a17 0%, var(--ink) 42%, var(--deeper) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(135, 255, 113, 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

body:has(.menu-toggle:checked) {
  overflow: hidden;
}

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

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem max(0.9rem, calc((100% - 1180px) / 2));
  background: rgba(15, 26, 12, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px dashed var(--line);
}

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: var(--glass);
  transform: rotate(-1.6deg);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.brand:hover {
  transform: rotate(0deg);
  border-color: var(--neon);
}

.brand-mark {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
}

.brand-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--neon);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(255, 206, 92, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--gold);
}

.burger {
  position: relative;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--glass);
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:checked ~ .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle:checked ~ .burger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 全屏遮罩菜单 ---------- */

.dock-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  overflow-y: auto;
  padding: 4.6rem 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 206, 92, 0.2), transparent 46%),
    radial-gradient(circle at 82% 76%, rgba(135, 255, 113, 0.22), transparent 46%),
    rgba(12, 22, 10, 0.975);
}

.dock-nav::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 8%;
  width: 120px;
  height: 120px;
  background: var(--neon);
  opacity: 0.16;
  transform: rotate(14deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.menu-toggle:checked ~ .dock-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dock-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: auto;
  max-width: 38rem;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.5rem 1.05rem;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dock-nav a:hover {
  color: var(--ink);
  background: var(--neon);
  border-color: var(--neon);
  transform: translateY(-2px);
}

/* ---------- 版面骨架 ---------- */

.stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0.9rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem;
  align-items: start;
}

.sheet-main {
  min-width: 0;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 2.3rem 1.1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(135, 255, 113, 0.11), rgba(255, 206, 92, 0.07)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -28px;
  width: 112px;
  height: 112px;
  background: var(--gold);
  opacity: 0.9;
  transform: rotate(-14deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 136px;
  height: 136px;
  border: 10px solid var(--neon);
  border-radius: 50%;
  opacity: 0.45;
}

.hero h1,
.hero .lead {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 4px 4px 0 rgba(20, 33, 16, 0.95), 0 0 26px rgba(135, 255, 113, 0.35);
}

.lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- 正文区 ---------- */

.sheet-main > div:not(.hero) {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.35rem 1.1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--neon);
  border-radius: 4px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  scroll-margin-top: 1.2rem;
  scroll-margin-bottom: 6.5rem;
}

.sheet-main > div:not(.hero)::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 15px;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

.sheet-main > div:not(.hero):nth-of-type(even) {
  border-left-color: var(--gold);
}

.sheet-main h2 {
  margin: 0.15rem 0 0.7rem;
  padding-bottom: 0.4rem;
  font-size: 1.42rem;
  line-height: 1.32;
  color: #ffffff;
  border-bottom: 2px dashed rgba(255, 206, 92, 0.42);
}

.sheet-main h3 {
  margin: 1.05rem 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--neon);
}

.sheet-main h2 + p,
.sheet-main h3 + p {
  margin-top: 0.2rem;
}

.sheet-main p {
  margin: 0.7rem 0;
  color: #dcebd4;
}

.sheet-main a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.sheet-main a:hover {
  color: var(--neon);
}

.sheet-main ul,
.sheet-main ol {
  margin: 0.7rem 0;
  padding-left: 1.25rem;
}

.sheet-main li {
  margin: 0.35rem 0;
  color: #dcebd4;
}

.sheet-main li::marker {
  color: var(--neon);
}

.sheet-main strong {
  color: #ffffff;
}

.sheet-main blockquote {
  margin: 0.9rem 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px dotted var(--gold);
  color: var(--muted);
}

.sheet-main img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.sheet-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet-main th,
.sheet-main td {
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

.sheet-main th {
  color: var(--gold);
}

/* ---------- 右侧栏 ---------- */

.rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.rail-card {
  padding: 1rem 0.9rem 1.05rem;
  border: 1px dashed rgba(255, 206, 92, 0.55);
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(255, 206, 92, 0.12), rgba(135, 255, 113, 0.06));
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transform: rotate(-1deg);
}

.rail-sub {
  border-color: var(--line);
  background: linear-gradient(150deg, rgba(135, 255, 113, 0.12), rgba(255, 255, 255, 0.03));
  transform: rotate(0.9deg);
}

.rail-card h2 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.rail-sub h2 {
  color: var(--neon);
}

.rail-card .subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
}

.rail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.4rem;
  font-size: 0.9rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.rail-links a:hover {
  color: var(--ink);
  background: var(--neon);
  border-bottom-color: var(--neon);
}

.sub {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.sub input {
  min-height: 42px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.sub input::placeholder {
  color: #90ab86;
}

.sub button {
  min-height: 42px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.sub button:hover {
  background: var(--neon);
  transform: translateY(-1px);
}

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

.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 1.35rem 0.95rem 1.6rem;
  display: grid;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.foot p {
  margin: 0;
}

.foot-about strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.85rem;
  align-content: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
}

.foot-links a:hover {
  color: var(--neon);
}

.foot-copy {
  display: block;
  padding-top: 0.7rem;
  text-align: center;
  border-top: 1px dotted rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

/* ---------- 断点 ---------- */

@media (min-width: 760px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.6rem;
    padding-bottom: 1.8rem;
  }

  .foot-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .rail {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .rail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .stage {
    padding: 0.7rem 0.7rem 2rem;
  }

  .hero {
    min-height: 45vh;
    padding: 1.8rem 0.85rem;
  }

  .sheet-main > div:not(.hero) {
    padding: 1.1rem 0.85rem 1.2rem;
  }

  .sheet-main h2 {
    font-size: 1.28rem;
  }

  .brand-name {
    max-width: 6.4rem;
  }

  .cta {
    padding: 0.25rem 0.7rem;
  }

  .foot {
    padding-inline: 0.8rem;
  }
}

/* ---------- 动效降级 ---------- */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

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