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

:root {
  --ink: #000000;
  --fg: #ffffff;
  --soft: #e6e6e6;
  --dim: #9c9c9c;
  --line: #262626;
  --green: #00ff80;
  --blue: #0000ff;
  --r: 4px;
  --bar: 76px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  padding-bottom: calc(var(--bar) + 28px);
  overflow-x: hidden;
}

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

a,
button,
summary,
input {
  transition: none;
}

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

::selection {
  background: var(--green);
  color: #000;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #000;
  border-top: 2px solid var(--green);
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--bar);
  padding: 10px 12px;
  max-width: 1160px;
  margin: 0 auto;
}

.side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.side-r {
  justify-content: flex-end;
}

.drop {
  position: relative;
}

.drop-btn {
  list-style: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.drop-btn::-webkit-details-marker {
  display: none;
}

.drop[open] > .drop-btn {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.drop-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 210px;
  background: #000;
  border: 2px solid var(--green);
  border-radius: var(--r);
  overflow: hidden;
}

.drop-r .drop-menu {
  left: auto;
  right: 0;
  border-color: var(--blue);
}

.drop-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
}

.drop-menu li:last-child a {
  border-bottom: 0;
}

.drop-menu a:hover,
.drop-menu a:focus-visible {
  background: var(--green);
  color: #000;
}

.drop-r .drop-menu a:hover,
.drop-r .drop-menu a:focus-visible {
  background: var(--blue);
  color: #fff;
}

.mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--green);
  border-radius: var(--r);
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.mark:hover {
  background: var(--green);
  color: #000;
}

.call {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.call:hover {
  background: #000;
  color: var(--green);
  border-color: var(--green);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 20px 28px;
  min-height: 70vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  align-content: end;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 25% 100%;
}

.badge {
  position: absolute;
  top: 14px;
  right: 18px;
  margin: 0;
  padding: 6px 12px;
  background: var(--green);
  color: #000;
  border: 1px solid #000;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
}

.hero-copy {
  align-self: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 4.1rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h1-line {
  display: inline-block;
  border-bottom: 6px solid var(--green);
  padding-bottom: 6px;
}

.hero-media {
  margin: 0;
  height: clamp(200px, 34vh, 380px);
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: var(--r);
  background: #050505;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  will-change: transform;
}

.hero-media--empty {
  background-image: repeating-linear-gradient(
    45deg,
    #0a0a0a 0 10px,
    #101010 10px 20px
  );
}

/* ---------- 正文骨架 ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.body {
  min-width: 0;
}

.prose div,
.prose {
  min-width: 0;
}

.prose section {
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
  scroll-margin-bottom: calc(var(--bar) + 24px);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.prose h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  border-left: 7px solid var(--green);
  padding-left: 12px;
}

.prose h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.25;
  font-weight: 700;
}

.prose h3 > span {
  border-left-color: var(--blue);
  padding-left: 10px;
}

.prose p {
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--soft);
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  background: var(--green);
  color: #000;
  text-decoration: none;
}

.prose strong,
.prose b {
  color: var(--green);
  font-weight: 700;
}

.prose em {
  color: var(--blue);
  font-style: normal;
  background: rgba(0, 0, 255, 0.22);
  padding: 0 4px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  max-width: 70ch;
}

.prose li {
  margin-bottom: 8px;
  color: var(--soft);
}

.prose blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 5px solid var(--blue);
  background: #070707;
  color: var(--soft);
}

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

.prose img {
  display: block;
  margin: 22px 0;
  border: 2px solid var(--line);
  border-radius: var(--r);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #0a0a0a;
  color: var(--green);
  font-weight: 700;
}

.prose time {
  color: var(--dim);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 15px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1px 5px;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 22px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px;
  background: #030303;
}

.rail-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

.rail-list {
  list-style: none;
  counter-reset: rail;
  margin: 0;
  padding: 0;
}

.rail-list li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 2px;
  border-top: 1px solid #1a1a1a;
  color: #d5d5d5;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.rail-list li a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  margin-right: 9px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.rail-list li a:hover {
  color: #000;
  background: var(--green);
  padding-left: 6px;
}

.top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: var(--r);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.top:hover {
  background: var(--blue);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 2px solid var(--blue);
  padding: 34px 20px 30px;
  max-width: 1160px;
  margin: 0 auto;
}

.foot-form {
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 22px;
}

.foot-h {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

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

.sub-in {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 0 12px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.sub-in::placeholder {
  color: var(--dim);
}

.sub-btn {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r);
  background: var(--green);
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.sub-btn:hover {
  background: var(--blue);
  color: #fff;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.foot-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--green);
  border-radius: var(--r);
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.foot-mark:hover {
  background: var(--green);
  color: #000;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c9c9c9;
  font-size: 15px;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --bar: 68px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 52px 16px 20px;
    min-height: 62vh;
  }

  .badge {
    top: 10px;
    right: 12px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .wrap {
    padding: 28px 16px 46px;
  }

  .foot {
    padding: 26px 16px 24px;
  }

  .bar {
    gap: 6px;
    padding: 8px 10px;
  }

  .mark {
    padding: 0 9px;
    letter-spacing: 0.02em;
  }

  .drop-btn,
  .call {
    padding: 0 10px;
  }

  .foot-nav {
    gap: 0 12px;
  }
}

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

  .hero-media img {
    transform: none !important;
  }
}

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