/* ==========================================================================
   CZJX · 川中计算机协会
   主题：cyberpunk-neon（对齐 StyleKit 风格包 + showcase 参考）
   纯色霓虹 #00ffff / #ff00ff，面板内置扫描线，四角准星 HUD，等宽字体
   ========================================================================== */

:root {
  /* 底色 */
  --bg: #0a0a0f;
  --bg-panel: #0d0d18;
  --bg-deep: #07070c;

  /* 霓虹 */
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --green: #00ff00;

  /* 文字 */
  --text: #e0e0e0;
  --text-strong: #ffffff;
  --dim: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.56);
  --cyan-dim: rgba(0, 255, 255, 0.72);

  /* 线 */
  --line: rgba(255, 255, 255, 0.08);
  --line-cyan: rgba(0, 255, 255, 0.2);
  --line-cyan-strong: rgba(0, 255, 255, 0.45);

  /* 发光 */
  --glow-sm: 0 0 10px rgba(0, 255, 255, 0.3);
  --glow-md: 0 0 20px rgba(0, 255, 255, 0.5);
  --glow-lg: 0 0 30px rgba(0, 255, 255, 0.7);

  /* 圆角：风格包上限 rounded-lg(8px)，showcase 走硬边，取 2px */
  --radius: 2px;

  --font: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", "PingFang SC", "Microsoft YaHei", monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 3.75rem;

  /* showcase 面板内扫描线 */
  --scanlines: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0 1px,
    transparent 1px 3px
  );
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg);
  /* 风格包原配方：4px 周期青色扫描线 + scan-drift 漂移 */
  background-image: linear-gradient(
    transparent 50%,
    rgba(0, 255, 255, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scan-drift 6s linear infinite;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@keyframes scan-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100px;
  }
}

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}

/* 顶部网格光晕，只做氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 55% at 50% 0%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 85% 55% at 50% 0%,
    #000 0%,
    transparent 78%
  );
  pointer-events: none;
}

h1,
h2,
h3 {
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* -------------------------------- 布局 ---------------------------------- */

.container {
  width: min(72rem, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

main {
  display: block;
  flex: 1 0 auto;
  padding-block: clamp(1.75rem, 5vw, 3rem) clamp(2.5rem, 7vw, 4rem);
  counter-reset: sec;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 70;
  transform: translateY(-150%);
  background: var(--bg-deep);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  box-shadow: var(--glow-md);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* -------------------------------- 页头 ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-cyan);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid transparent;
  color: var(--dim);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.1s linear, border-color 0.1s linear,
    background-color 0.1s linear, box-shadow 0.1s linear;
}

.nav a:hover {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(0, 255, 255, 0.07);
}

.nav a[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.55);
  text-shadow: none;
}

/* -------------------------------- 焦点 ---------------------------------- */

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.16), var(--glow-sm);
}

/* -------------------------------- 主视觉 -------------------------------- */

/* 主视觉不套面板：showcase 的 hero 是开放式区块，四角准星只属于 HUD 指标块 */
.hero {
  position: relative;
  padding: clamp(0.75rem, 2.5vw, 1.75rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

.hero__sep {
  color: rgba(255, 255, 255, 0.24);
}

.hero__dim {
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: none;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan);
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 8.6vw, 6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

/* 风格包里保留的渐变文字：青 → 品红，透明填充必须靠 drop-shadow 补发光 */
.hero__sub {
  margin: 0.55rem 0 0;
  font-size: clamp(0.7rem, 2.1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #00ffff 0%, #8bfbff 45%, #ff00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.55))
    drop-shadow(0 0 34px rgba(255, 0, 255, 0.35));
}

.hero__lede {
  margin: 1.6rem 0 0;
  max-width: 54ch;
  font-size: 0.86rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.cursor {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
  animation: cursor-blink 1.05s steps(1) infinite;
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

/* -------------------------------- 按钮 ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.1s linear, background-color 0.1s linear,
    color 0.1s linear, border-color 0.1s linear, transform 0.1s linear;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
  background: rgba(0, 255, 255, 0.12);
  color: #d6ffff;
}

/* showcase 的按压错位 */
.btn:active {
  transform: translate(2px, -1px);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #7cffff;
  border-color: #7cffff;
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.75), 0 0 60px rgba(0, 255, 255, 0.45);
}

.btn--ghost {
  border-color: rgba(255, 0, 255, 0.5);
  color: var(--magenta);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--magenta);
  background: rgba(255, 0, 255, 0.09);
  color: #ff9dff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.35);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

/* -------------------------------- 区块 ---------------------------------- */

.section {
  counter-increment: sec;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.35);
}

/* 区块编号：// 01 */
.section__title::before {
  display: block;
  margin-bottom: 0.5rem;
  content: "// " counter(sec, decimal-leading-zero);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--cyan-dim);
  text-shadow: none;
}

.section__link {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding-block: 0.2rem;
  margin-block: -0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.1s linear, text-shadow 0.1s linear;
}

.section__link:hover,
.section__link:focus-visible {
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px currentColor;
}

.lede {
  margin: 0 0 1.35rem;
  max-width: 62ch;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--dim);
}

.stamp {
  margin: 0;
  min-height: 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* 未启用 JS 时不显示永远停在 loading 的占位 */
.no-js .state--loading {
  display: none;
}

/* -------------------------------- 面板 ---------------------------------- */

.card {
  position: relative;
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background-color: var(--bg-panel);
  background-image: var(--scanlines);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s linear, box-shadow 0.15s linear;
}

.card:hover,
.card:focus-visible,
.card:focus-within {
  border-color: var(--line-cyan-strong);
  background-image: linear-gradient(
      135deg,
      rgba(0, 255, 255, 0.07),
      transparent 60%
    ),
    var(--scanlines);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.35);
}

/* 活动卡 */
.activity-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity {
  display: grid;
  gap: 0.8rem;
}

.activity__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.activity__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.activity__summary {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--dim);
}

.activity__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.activity__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.activity__meta svg {
  flex: none;
  color: var(--cyan);
  opacity: 0.85;
}

.activity__details {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.16);
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--dim);
}

.activity__details li {
  position: relative;
  padding-left: 1rem;
}

.activity__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
}

/* 活动详情入口：卡片是 grid，按钮不撑满整行 */
.activity__cta {
  justify-self: start;
  margin-top: 0.35rem;
}

/* 已结束：去强调，不再是可执行的下一步 */
.activity--ended .activity__title {
  color: rgba(255, 255, 255, 0.64);
}

.activity--ended .activity__summary,
.activity--ended .activity__details {
  color: var(--faint);
}

.activity--ended .activity__details li::before {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

/* -------------------------------- 徽章 ---------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--upcoming {
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.badge--ongoing {
  color: var(--green);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.4);
}

.badge--ended {
  color: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.28);
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.tag::before {
  content: "#";
  color: var(--magenta);
  opacity: 0.9;
}

/* -------------------------------- 三栏概览 ------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pillar {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.pillar__index {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--cyan-dim);
}

.pillar__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}

.pillar__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--dim);
}

/* -------------------------------- 文档库 -------------------------------- */

.doc-groups {
  display: grid;
  gap: 2rem;
}

.doc-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-cyan);
}

.doc-group__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.doc-group__count {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.doc-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
}

.doc-item__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.doc-item__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.doc-item__summary {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--dim);
}

.doc-item__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.doc-item__go {
  color: var(--cyan);
  white-space: nowrap;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-item--pending {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(13, 13, 24, 0.55);
}

.doc-item--pending .doc-item__title {
  color: rgba(255, 255, 255, 0.62);
}

.doc-item--pending .doc-item__go {
  color: var(--faint);
}

/* -------------------------------- 状态区 -------------------------------- */

.state {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.35rem 1.25rem;
  border: 1px dashed var(--line-cyan);
  background-color: rgba(13, 13, 24, 0.7);
  background-image: var(--scanlines);
  font-size: 0.84rem;
  color: var(--dim);
}

.state p {
  margin: 0;
}

.state--loading {
  border-style: solid;
}

.state--loading::before {
  content: "";
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.9),
    transparent
  );
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: loading-sweep 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

@keyframes loading-sweep {
  0% {
    background-position: -50% 0;
  }
  100% {
    background-position: 150% 0;
  }
}

.state--empty {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--faint);
}

.state--error {
  border-style: solid;
  border-color: rgba(255, 102, 102, 0.7);
  background-color: rgba(48, 8, 14, 0.35);
  color: #ffd9d9;
  box-shadow: 0 0 20px rgba(255, 60, 60, 0.22);
}

.state--error .state__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff8080;
  text-shadow: 0 0 10px rgba(255, 80, 80, 0.7);
}

.state__detail {
  font-size: 0.74rem;
  color: rgba(255, 217, 217, 0.78);
  word-break: break-word;
}

/* -------------------------------- 页面标题 ------------------------------ */

.page-head {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

.page-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0, 255, 255, 0.22);
}

.page-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.8);
}

.page-head .lede {
  margin-top: 1.15rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding-block: 0.2rem;
  margin-block: -0.2rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  border-bottom-color: var(--cyan);
}

.crumbs li + li::before {
  content: "/";
  color: rgba(0, 255, 255, 0.4);
}

.doc-shell {
  padding: clamp(1.25rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line-cyan);
  background-color: var(--bg-panel);
  background-image: var(--scanlines);
  box-shadow: inset 0 0 80px rgba(0, 255, 255, 0.04);
}

/* -------------------------------- 正文排版 ------------------------------ */

.prose {
  max-width: 46rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
  line-height: 1.4;
  color: var(--text-strong);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.45);
}

.prose h2 {
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-cyan);
}

.prose h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.prose h2::before,
.prose h3::before {
  content: "// ";
  color: var(--cyan);
  opacity: 0.85;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.3rem;
}

.prose li::marker {
  color: var(--cyan);
}

.prose a {
  color: var(--cyan);
  text-decoration-color: rgba(0, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus-visible {
  text-decoration-color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.prose strong {
  color: var(--text-strong);
  font-weight: 700;
}

.prose code {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 255, 255, 0.09);
  color: #a8ffff;
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(0, 255, 255, 0.18);
  background-color: var(--bg-deep);
  background-image: var(--scanlines);
  font-size: 0.82rem;
  line-height: 1.7;
  tab-size: 2;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #c6e8f2;
  font-size: 1em;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border: 1px solid var(--line-cyan);
  background: var(--bg-deep);
}

/* 图片外包一层按钮，键盘也能打开大图 */
.prose-figure {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.prose-figure img {
  margin-top: 0;
}

body.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 10, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

/* 舞台负责裁切与居中，图片的缩放平移全交给 transform */
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-out;
}

.lightbox__stage.is-zoomed {
  cursor: grab;
}

.lightbox__stage.is-zoomed:active {
  cursor: grabbing;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line-cyan-strong);
  background: var(--bg-deep);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.22);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cyan);
  background: rgba(10, 10, 15, 0.9);
  color: var(--cyan);
  cursor: pointer;
  box-shadow: var(--glow-sm);
}

.lightbox__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__btn:hover:not(:disabled),
.lightbox__btn:focus-visible {
  background: rgba(0, 255, 255, 0.12);
  box-shadow: var(--glow-lg);
}

.lightbox__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
}

.lightbox__zoom {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

/* -------------------------------- 关于页 -------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panel {
  padding: clamp(1.25rem, 3.2vw, 1.9rem);
  border: 1px solid var(--line);
  background-color: var(--bg-panel);
  background-image: var(--scanlines);
}

.panel__title {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.panel__title::before {
  content: "// ";
  color: var(--cyan);
  font-weight: 400;
}

.plain-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.plain-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plain-list b {
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plain-list span {
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.8;
}

.panel__note {
  margin: 0;
  color: var(--dim);
  font-size: 0.98rem;
  line-height: 1.9;
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
}

.contact-list .label {
  min-width: 4.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-list .value {
  color: var(--cyan);
  text-decoration: none;
  word-break: break-word;
}

a.value:hover,
a.value:focus-visible {
  text-shadow: 0 0 10px currentColor;
}

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

.site-footer {
  position: relative;
  z-index: 2;
  padding-block: 1.8rem 2rem;
  border-top: 1px solid var(--line-cyan);
  background: rgba(7, 7, 12, 0.94);
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.footer-brand strong {
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding-block: 0.2rem;
  margin-block: -0.2rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-note {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* -------------------------------- 404 ----------------------------------- */

.notfound {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding-block: clamp(1.5rem, 6vw, 3rem);
}

.notfound__code {
  margin: 0;
  font-size: clamp(3rem, 13vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan), 0 0 60px rgba(0, 255, 255, 0.55);
  animation: neon-pulse 2.4s ease-in-out infinite;
}

/* -------------------------------- 响应式 -------------------------------- */

@media (max-width: 44rem) {
  .header-inner {
    justify-content: flex-start;
    gap: 0.15rem;
  }

  .nav {
    flex: 1 1 100%;
    gap: 0.1rem;
  }

  .nav a {
    padding: 0 0.45rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .hero__title {
    letter-spacing: 0.02em;
  }
}

@media (min-width: 44.06rem) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doc-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .doc-item__side {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 62rem) {
  :root {
    --header-h: 4.25rem;
  }
}

/* -------------------------------- 减少动态 ------------------------------ */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* 扫描线漂移、脉冲数字、光标闪烁、加载条全部停住 */
  body {
    animation: none !important;
  }

  .notfound__code,
  .dot {
    animation: none !important;
  }

  .cursor {
    animation: none !important;
    opacity: 1;
  }

  .state--loading::before {
    background-position: 50% 0;
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}

/* -------------------------------- 打印 ---------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    animation: none;
  }

  /* 深色主题的浅色文字在纸上等于隐形，打印时统一压成实色 */
  body * {
    color: #111 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
