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

* {
  box-sizing: border-box;
}

:root {
  --g: #00ff80;
  --b: #0000ff;
  --k: #000000;
  --w: #ffffff;
  --h: 66px;
  --pad: 20px;
  --max: 1320px;
}

body {
  margin: 0;
  padding-top: var(--h);
  background: var(--k);
  color: #f3f5f3;
  font-family: 'Epilogue', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: 'Anton', Impact, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-wrap: balance;
}

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

/* ---------- 顶栏 ---------- */
.mast {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--h);
  background: var(--k);
  border-bottom: 3px solid var(--g);
  z-index: 60;
}

.mast-in {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.split {
  min-width: 0;
}

.split p {
  margin: 0;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
}

.split-l p {
  justify-content: flex-start;
}

.split-r p {
  justify-content: flex-end;
}

.split a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  color: var(--w);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.split a:hover,
.split a:focus-visible {
  background: var(--g);
  color: var(--k);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  min-height: 44px;
  font-family: 'Anton', Impact, system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: 0.03em;
  color: var(--g);
  text-decoration: none;
  white-space: nowrap;
}

.brand i {
  font-style: normal;
  color: var(--b);
  -webkit-text-stroke: 0;
  background: var(--g);
  padding: 0 4px;
}

.brand:hover {
  color: var(--k);
  background: var(--g);
}

.brand:hover i {
  background: var(--b);
  color: var(--w);
}

.end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--b);
  color: var(--w);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 28px;
  white-space: nowrap;
}

.cta:hover,
.cta:focus-visible {
  background: var(--g);
  color: var(--k);
}

.burger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--k);
  color: var(--g);
  border: 3px solid var(--g);
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.burger:hover,
.burger:focus-visible {
  background: var(--g);
  color: var(--k);
}

/* ---------- 全屏菜单 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 16px var(--pad) 40px;
  background: var(--k);
  border-top: 6px solid var(--g);
  overflow-y: auto;
}

body.menu-open .sheet {
  display: block;
}

.sheet-top {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--g);
  font-family: 'Anton', Impact, system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.28em;
}

.sheet-x {
  min-height: 44px;
  padding: 0 18px;
  background: var(--g);
  color: var(--k);
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.sheet-x:hover,
.sheet-x:focus-visible {
  background: var(--b);
  color: var(--w);
}

.sheet-nav p {
  margin: 0;
  display: grid;
  gap: 8px;
}

.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  background: var(--b);
  color: var(--w);
  text-decoration: none;
  font-family: 'Anton', Impact, system-ui, sans-serif;
  font-size: clamp(20px, 5vw, 30px);
  border-bottom: 3px solid var(--k);
}

.sheet-nav a:nth-child(even) {
  background: var(--k);
  color: var(--g);
  border: 3px solid var(--g);
  border-left-width: 8px;
}

.sheet-nav a:hover,
.sheet-nav a:focus-visible {
  background: var(--g);
  color: var(--k);
  border-color: var(--k);
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: calc(100vh - var(--h));
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  border-bottom: 4px solid var(--g);
  overflow: hidden;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: calc(100vh - var(--h));
  background: var(--b);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: -60px 0 auto 0;
  width: 100%;
  height: calc(100% + 120px);
  object-fit: cover;
  display: block;
  will-change: transform;
}

.hero-copy {
  padding: 44px clamp(18px, 4vw, 56px);
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6.6vw, 5.2rem);
  color: var(--w);
  text-transform: none;
}

.hero-desc {
  max-width: 34ch;
  margin: 0 auto 28px;
  color: #ccd8d0;
  font-size: 17px;
}

.hero-cta {
  margin: 0;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 32px;
  background: var(--g);
  color: var(--k);
  border-radius: 28px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.hero-cta a:hover,
.hero-cta a:focus-visible {
  background: var(--b);
  color: var(--w);
}

/* ---------- 锚点条 ---------- */
.anchors {
  position: sticky;
  top: var(--h);
  z-index: 55;
  background: var(--k);
  border-bottom: 3px solid var(--b);
}

.anchor-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.anchor-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 12px;
  color: #d8e4da;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.anchor-row b {
  font-family: 'Anton', Impact, system-ui, sans-serif;
  font-weight: 400;
  color: var(--b);
  -webkit-text-stroke: 0;
  background: #101010;
  padding: 2px 6px;
}

.anchor-row a:hover b,
.anchor-row a:focus-visible b {
  background: var(--k);
  color: var(--g);
}

.anchor-row a:hover,
.anchor-row a:focus-visible {
  background: var(--g);
  color: var(--k);
}

/* ---------- 主体 ---------- */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
}

.body {
  min-width: 0;
}

.body > div {
  border-top: 3px solid var(--g);
  padding: 44px 0 16px;
  scroll-margin-top: calc(var(--h) + 64px);
}

.body > div:first-child {
  border-top-color: var(--b);
}

.body > div > small {
  display: block;
  color: var(--b);
  background: var(--g);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 4px 12px;
  margin: 0 0 12px;
  width: fit-content;
}

.body h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  color: var(--g);
}

.body h3 {
  margin: 30px 0 12px;
  font-size: 1.3rem;
  color: var(--w);
}

.body p {
  margin: 0 0 18px;
}

.body ul,
.body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.body li {
  margin: 0 0 10px;
}

.body blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--b);
  color: var(--w);
  border-radius: 28px;
}

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

.body a {
  color: var(--g);
  text-decoration: none;
  border-bottom: 2px solid var(--b);
}

.body a:hover,
.body a:focus-visible {
  background: var(--g);
  color: var(--k);
  border-bottom-color: var(--k);
}

.body strong {
  color: var(--w);
  background: #141414;
  padding: 0 4px;
}

.body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
}

.body th,
.body td {
  border: 2px solid #1f1f1f;
  padding: 10px 12px;
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: calc(var(--h) + 60px);
  border: 3px solid var(--b);
  background: var(--k);
  padding: 18px;
}

.rail small {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--g);
  margin: 0 0 4px;
}

.rail h2 {
  margin: 0 0 16px;
  font-size: 21px;
  color: var(--w);
}

.rail-list {
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  background: var(--b);
  color: var(--w);
  border-radius: 28px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--g);
  color: var(--k);
}

.rail-top {
  margin: 0;
}

.rail-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 3px solid var(--g);
  border-radius: 28px;
  color: var(--g);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.rail-top a:hover,
.rail-top a:focus-visible {
  background: var(--g);
  color: var(--k);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 4px solid var(--b);
  padding: 26px var(--pad) 34px;
  max-width: var(--max);
  margin: 0 auto;
}

.foot-row {
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.foot-row span,
.foot-row a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.foot-row span {
  color: var(--w);
  justify-self: start;
}

.foot-row a {
  color: var(--g);
}

.foot-row a:nth-child(2) {
  justify-self: center;
}

.foot-row a:nth-child(3) {
  justify-self: end;
}

.foot-row a:hover,
.foot-row a:focus-visible {
  background: var(--g);
  color: var(--k);
}

.foot small {
  display: block;
  font-size: 16px;
  color: #9da8a0;
}

/* ---------- 断点 ---------- */
@media (max-width: 1120px) {
  .split {
    display: none;
  }

  .mast-in {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 48px;
  }

  .rail {
    position: static;
    order: 2;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    order: 1;
    padding: 34px 18px 38px;
  }

  .hero-media {
    order: 2;
    min-height: 44vh;
    height: 44vh;
  }

  .hero-img {
    inset: 0;
    height: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
  }

  .anchor-row {
    padding: 0 6px;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 14px;
    --h: 62px;
  }

  .mast-in {
    gap: 8px;
    padding: 0 12px;
  }

  .brand {
    font-size: 16px;
    gap: 5px;
  }

  .cta {
    padding: 0 12px;
    font-size: 16px;
  }

  .burger {
    padding: 0 10px;
  }

  .body > div {
    padding-top: 34px;
  }

  .grid {
    padding-bottom: 40px;
  }

  .foot-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .foot-row span,
  .foot-row a,
  .foot-row a:nth-child(2),
  .foot-row a:nth-child(3) {
    justify-self: start;
  }
}

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

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