/* =========================================================
   V4 · 夜航 —— 霓虹暗黑风
   左侧固定导轨 + Bento 网格 + 荧光绿 / 紫
   ========================================================= */
:root {
  --bg: #05060a;
  --panel: #0a0c12;
  --panel-2: #0d1018;
  --ink: #e9edf5;
  --muted: #8b93a7;
  --dim: #5c6478;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --lime: #d4ff3f;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --rail: 84px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(212, 255, 63, 0.25);
  color: #000;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 30px;
}

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

.skip {
  position: fixed;
  left: 90px;
  top: -70px;
  z-index: 200;
  padding: 9px 14px;
  background: var(--lime);
  color: #07080b;
  font-size: 13px;
  font-weight: 700;
}

.skip:focus {
  top: 10px;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 导轨 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 18px;
  background: #07080d;
  border-right: 1px solid var(--line);
}

.rail-logo {
  display: block;
  margin-bottom: 30px;
}

.rail-logo img {
  width: 42px;
  height: 42px;
  display: block;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.rail-link {
  width: 58px;
  padding: 9px 0 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}

.rail-link svg {
  width: 19px;
  height: 19px;
}

.rail-link span {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rail-link:hover {
  color: var(--ink);
  background: var(--panel-2);
}

.rail-link[aria-current="page"] {
  color: var(--lime);
  background: rgba(212, 255, 63, 0.08);
}

.rail-foot {
  margin-top: auto;
  display: grid;
  place-items: center;
  gap: 10px;
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.rail-foot em {
  writing-mode: vertical-rl;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

.page {
  margin-left: var(--rail);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lime {
  background: var(--lime);
  color: #06070a;
  box-shadow: 0 0 24px -6px rgba(212, 255, 63, 0.45);
}

.btn-lime:hover {
  box-shadow: 0 0 30px -4px rgba(212, 255, 63, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 82% 0%, rgba(139, 92, 246, 0.2), transparent 62%),
    radial-gradient(620px 340px at 8% 30%, rgba(212, 255, 63, 0.08), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 10%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 40% 10%, #000, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(212, 255, 63, 0.35);
  background: rgba(212, 255, 63, 0.06);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.14;
  letter-spacing: 0.005em;
  font-weight: 900;
}

.hero h1 .outline {
  color: var(--lime);
  margin-left: 2px;
  text-shadow: 0 0 30px rgba(212, 255, 63, 0.35);
}

.hero h1 .violet {
  color: var(--violet);
}

.hero p {
  max-width: 50ch;
  font-size: 16px;
  color: var(--muted);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.hero-stats b em {
  font-style: normal;
  font-size: 12px;
  color: var(--lime);
  margin-left: 3px;
}

.hero-stats span {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Hero bento */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 210px 150px;
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0c12;
  opacity: 0.95;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 10, 0.85));
  pointer-events: none;
}

.tile-a {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  border-color: rgba(212, 255, 63, 0.3);
  box-shadow: 0 0 40px -18px rgba(212, 255, 63, 0.5);
}

.tile-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(5, 6, 10, 0.8);
  border: 1px solid rgba(212, 255, 63, 0.35);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.tile-b {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.tile-stat {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(240px 160px at 80% 10%, rgba(139, 92, 246, 0.28), transparent 70%), var(--panel);
}

.tile-stat b {
  font-family: var(--mono);
  font-size: 58px;
  line-height: 1;
  color: var(--ink);
}

.tile-stat span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--violet);
}

/* 跑马灯 */
.ticker {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07080d;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker-set {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.ticker-set i {
  font-style: normal;
  color: var(--lime);
  font-size: 8px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 区块 ---------- */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.sec-label::before {
  content: "//";
  color: var(--violet);
}

.sec-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.sec-head p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}

.more:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* 内核 bento */
.kernel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kernel {
  position: relative;
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.kernel:hover {
  border-color: rgba(212, 255, 63, 0.4);
  transform: translateY(-3px);
}

.kernel .num {
  position: absolute;
  right: 16px;
  top: 0;
  font-family: var(--mono);
  font-size: 80px;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
}

.kernel h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kernel p {
  margin: 8px 0 20px;
  font-size: 13px;
  color: var(--muted);
  max-width: 30ch;
}

.kernel .kfoot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.kernel .kfoot b {
  font-size: 20px;
  color: var(--lime);
}

/* 程序矩阵 */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pcard:hover {
  border-color: rgba(212, 255, 63, 0.45);
  box-shadow: 0 0 46px -22px rgba(212, 255, 63, 0.6);
  transform: translateY(-3px);
}

.pcard-wide {
  grid-column: span 2;
}

.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0e15;
  border-bottom: 1px solid var(--line);
}

.pcard-wide .pcard-media {
  aspect-ratio: 21 / 9;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}

.pcard:hover .pcard-media img {
  transform: scale(1.035);
}

.pcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 10, 0.7));
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.badge-v {
  left: 10px;
  top: 10px;
  background: var(--lime);
  color: #06070a;
  font-weight: 700;
}

.badge-c {
  right: 10px;
  top: 10px;
  background: rgba(5, 6, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.pcard h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard h3 a:hover {
  color: var(--lime);
}

.pcard p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.chip {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pcard-foot .go {
  margin-left: auto;
  font-family: var(--mono);
  color: var(--lime);
  font-size: 13px;
}

/* 能力条 */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.cap {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.cap:last-child {
  border-right: 0;
}

.cap b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.cap h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}

.cap p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* 联系 */
.connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(212, 255, 63, 0.28);
  background:
    radial-gradient(400px 200px at 88% 0%, rgba(212, 255, 63, 0.12), transparent 65%),
    radial-gradient(360px 200px at 0% 100%, rgba(139, 92, 246, 0.22), transparent 65%), var(--panel);
}

.connect h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.connect p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

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

/* ---------- 页脚 ---------- */
.foot {
  padding: 46px 0 26px;
  background: #07080d;
}

.foot-word {
  font-family: var(--mono);
  font-size: clamp(42px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-cols ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-cols h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.foot-cols a:hover {
  color: var(--lime);
}

.foot-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- 列表页 ---------- */
.page-head {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 80% 0%, rgba(139, 92, 246, 0.18), transparent 65%);
  pointer-events: none;
}

.crumb {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 20px;
}

.crumb a:hover {
  color: var(--lime);
}

.page-head h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 900;
}

.page-head .lead {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill em {
  font-style: normal;
  color: var(--dim);
}

.pill:hover {
  color: var(--ink);
  border-color: var(--lime);
}

.pill[aria-pressed="true"],
.pill[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #06070a;
  font-weight: 700;
}

.pill[aria-pressed="true"] em,
.pill[aria-current="page"] em {
  color: rgba(6, 7, 10, 0.6);
}

.search {
  position: relative;
  margin-left: auto;
}

.search input {
  width: 250px;
  height: 36px;
  padding: 0 34px 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: #07080d;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
}

.search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 63, 0.1);
}

.search svg {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.result-line b {
  color: var(--lime);
}

.empty {
  display: none;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.empty.is-on {
  display: block;
}

.empty b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------- 详情覆盖层 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.overlay.is-open {
  display: block;
}

.overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.overlay-frame {
  position: absolute;
  inset: 22px;
  margin: auto;
  max-width: 1000px;
  max-height: calc(100% - 44px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(212, 255, 63, 0.4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 80px -20px rgba(212, 255, 63, 0.28);
}

.overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.overlay-x {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.overlay-x:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.overlay-scroll {
  flex: 1;
  overflow-y: auto;
}

.overlay-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.overlay-body {
  padding: 26px 34px 34px;
}

.overlay-body h2 {
  margin: 6px 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.overlay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}

.overlay-meta span {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.overlay-meta .hot {
  border-color: rgba(212, 255, 63, 0.4);
  color: var(--lime);
  background: rgba(212, 255, 63, 0.07);
}

.overlay-foot {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #07080d;
}

.overlay-foot .btn {
  flex: 1;
}

.prose {
  font-size: 14px;
  line-height: 1.9;
  color: #b9c2d3;
  overflow-wrap: anywhere;
}

.prose p {
  margin-bottom: 14px;
}

.prose b,
.prose strong {
  color: var(--ink);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.prose code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(212, 255, 63, 0.08);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.88em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
}

/* 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 140;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid rgba(212, 255, 63, 0.4);
  background: #0b0d14;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 联系页 ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.term {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.term-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}

.term-head i:first-child {
  background: var(--lime);
}

.term b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.term p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.term .btn {
  margin-top: 16px;
}

.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps li > b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.1em;
}

.steps h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.steps p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .matrix {
    grid-template-columns: 1fr 1fr;
  }

  .pcard-wide {
    grid-column: span 2;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cap:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 980px) {
  .rail {
    position: sticky;
    top: 0;
    width: auto;
    height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 13, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .rail-logo {
    margin: 0 18px 0 0;
  }

  .rail-logo img {
    width: 34px;
    height: 34px;
  }

  .rail-nav {
    flex-direction: row;
    width: auto;
    gap: 2px;
    overflow-x: auto;
  }

  .rail-link {
    width: 54px;
    padding: 6px 0;
  }

  .rail-foot {
    display: none;
  }

  .page {
    margin-left: 0;
  }

  .hero {
    padding: 44px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-bento {
    max-width: 560px;
  }

  .kernel-grid {
    grid-template-columns: 1fr;
  }

  .connect {
    padding: 28px;
  }

  .skip {
    left: 16px;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-bento {
    grid-template-rows: 150px 150px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 44px 0;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .matrix {
    grid-template-columns: 1fr;
  }

  .pcard-wide {
    grid-column: auto;
  }

  .pcard-wide .pcard-media {
    aspect-ratio: 4 / 3;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .connect {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .fit {
    width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }

  .search input {
    width: 100%;
  }

  .overlay-frame {
    inset: 0;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .overlay-cover {
    aspect-ratio: 4 / 3;
  }

  .overlay-body {
    padding: 20px 18px 28px;
  }

  .rail-link span {
    display: none;
  }

  .rail-link {
    width: 44px;
  }
}
