/* ==========================================================================
   8.4 班级官网 · 设计系统
   风格：深空底 + 青蓝电光 + 红色班徽点缀，简约大气 + 科技感
   ========================================================================== */

/* ── 设计变量 ─────────────────────────────────────────────────────────── */
:root {
  --bg-0: #04060d;
  --bg-1: #070c18;
  --bg-2: #0b1222;
  --panel: rgba(12, 19, 35, 0.72);
  --panel-2: rgba(16, 25, 45, 0.6);
  --line: rgba(96, 143, 214, 0.16);
  --line-2: rgba(96, 143, 214, 0.28);
  --text: #e9f0fb;
  --text-dim: #9db0cf;
  --text-faint: #6b7fa2;

  --cyan: #35d6ff;
  --cyan-deep: #1a9fd4;
  --violet: #8b7bff;
  --red: #ef3b52;
  --ok: #34d399;
  --warn: #fbbf24;

  --glow-cyan: 0 0 32px rgba(53, 214, 255, 0.28);
  --glow-red: 0 0 32px rgba(239, 59, 82, 0.24);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.68, 0, 1);
}

/* ── 基础 ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* 全局网格 */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(96, 143, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 143, 214, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: #7fe6ff;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(53, 214, 255, 0.3);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: rgba(96, 143, 214, 0.25);
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(53, 214, 255, 0.45);
}

/* ── 布局 ─────────────────────────────────────────────────────────────── */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

main {
  position: relative;
  z-index: 2;
}

.section {
  padding: 84px 0;
  position: relative;
}
.section--tight {
  padding: 56px 0;
}

/* 章节标题 */
.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
}

.grad-text {
  background: linear-gradient(100deg, #ffffff 10%, var(--cyan) 55%, var(--violet) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.dim {
  color: var(--text-dim);
}

/* ── 背景光晕 ─────────────────────────────────────────────────────────── */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb--cyan {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(53, 214, 255, 0.28), transparent 68%);
  top: -180px;
  right: -120px;
}
.orb--violet {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.22), transparent 68%);
  top: 40%;
  left: -180px;
  animation-delay: -8s;
}
.orb--red {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(239, 59, 82, 0.16), transparent 68%);
  bottom: -140px;
  right: 22%;
  animation-delay: -14s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-60px, 50px, 0) scale(1.14);
  }
}

/* ── 顶部公告条 ───────────────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 40;
  background: linear-gradient(90deg, rgba(239, 59, 82, 0.14), rgba(53, 214, 255, 0.12));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.topbar__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(239, 59, 82, 0.2);
  border: 1px solid rgba(239, 59, 82, 0.4);
  color: #ffb3bd;
}
.topbar__text {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

/* ── 导航 ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(4, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex: none;
}
.brand:hover {
  color: var(--text);
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(53, 214, 255, 0.18), rgba(239, 59, 82, 0.14));
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  flex: none;
}
.brand__mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(53, 214, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.brand__text strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand__text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 15px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  position: relative;
  transition: all 0.22s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
  background: rgba(53, 214, 255, 0.08);
}
.nav__links a[aria-current="page"] {
  color: #fff;
  background: rgba(53, 214, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(53, 214, 255, 0.28);
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #04121a !important;
  background: linear-gradient(120deg, var(--cyan), #63e3ff);
  box-shadow: 0 6px 22px rgba(53, 214, 255, 0.24);
  border: none;
  white-space: nowrap;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(53, 214, 255, 0.36);
  color: #04121a !important;
}
.nav__cta .lock {
  font-size: 12px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  place-items: center;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--red));
  box-shadow: 0 0 12px rgba(53, 214, 255, 0.6);
}

/* ── 首屏 ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(53, 214, 255, 0.28);
  background: rgba(53, 214, 255, 0.06);
  margin-bottom: 24px;
}
.hero__kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 74px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 .line-2 {
  display: block;
}

.hero__desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.24s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #6ae6ff);
  box-shadow: 0 8px 26px rgba(53, 214, 255, 0.26);
}
.btn--primary:hover {
  color: #04121a;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(53, 214, 255, 0.4);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(53, 214, 255, 0.5);
  background: rgba(53, 214, 255, 0.08);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 9px;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 班级精神词 */
.motto {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.motto span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 5px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* 首屏右侧班徽面板 */
.hero__badge {
  position: relative;
  aspect-ratio: 1;
  max-width: 360px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.hero__badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(53, 214, 255, 0.14), transparent 62%);
}
.hero__badge-inner img {
  width: 66%;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(53, 214, 255, 0.32));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.hero__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(53, 214, 255, 0.28);
  animation: spin 42s linear infinite;
}
.hero__ring--2 {
  inset: 14%;
  border-style: solid;
  border-color: rgba(239, 59, 82, 0.22);
  animation-duration: 28s;
  animation-direction: reverse;
}
.hero__ring--3 {
  inset: 24%;
  border-color: rgba(139, 123, 255, 0.22);
  animation-duration: 18s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── 数据看板 ─────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.stat {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.stat:hover::before {
  opacity: 1;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__num em {
  font-style: normal;
  font-size: 14px;
  color: var(--cyan);
  font-weight: 500;
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.stat__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  opacity: 0.28;
}

/* ── 卡片通用 ─────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 18px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: all 0.32s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card::after {
  /* 四角装饰 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(53, 214, 255, 0.5) 0 12px, transparent 12px) top left /
      22px 22px no-repeat,
    linear-gradient(-135deg, rgba(53, 214, 255, 0.5) 0 12px, transparent 12px) top right / 22px 22px
      no-repeat;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 214, 255, 0.32);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(53, 214, 255, 0.1);
}
.card:hover::after {
  opacity: 0.5;
}
.card--accent-red:hover {
  border-color: rgba(239, 59, 82, 0.36);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(239, 59, 82, 0.12);
}
.card--accent-violet:hover {
  border-color: rgba(139, 123, 255, 0.36);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.24);
  color: var(--cyan);
}
.card--accent-red .card__icon {
  background: rgba(239, 59, 82, 0.1);
  border-color: rgba(239, 59, 82, 0.26);
  color: #ff7386;
}
.card--accent-violet .card__icon {
  background: rgba(139, 123, 255, 0.1);
  border-color: rgba(139, 123, 255, 0.26);
  color: #a99cff;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.card__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}
.card__features {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.card__features li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.card__features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* ── 公告列表 ─────────────────────────────────────────────────────────── */
.notice-list {
  display: grid;
  gap: 12px;
}
.notice {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.26s var(--ease);
}
.notice:hover {
  border-color: rgba(53, 214, 255, 0.3);
  background: var(--panel-2);
  transform: translateX(4px);
}
.notice__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.notice__date b {
  display: block;
  font-size: 20px;
  color: var(--text);
  line-height: 1.2;
}
.notice__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notice__summary {
  font-size: 13.5px;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.notice__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.tag--notice {
  color: #7fe6ff;
  border-color: rgba(53, 214, 255, 0.34);
  background: rgba(53, 214, 255, 0.08);
}
.tag--activity {
  color: #a99cff;
  border-color: rgba(139, 123, 255, 0.34);
  background: rgba(139, 123, 255, 0.08);
}
.tag--honor {
  color: #ffb3bd;
  border-color: rgba(239, 59, 82, 0.34);
  background: rgba(239, 59, 82, 0.08);
}
.tag--study {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(52, 211, 153, 0.08);
}
.tag--pin {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.08);
}
.tag--locked {
  color: #ffb3bd;
  border-color: rgba(239, 59, 82, 0.4);
  background: rgba(239, 59, 82, 0.1);
}

/* ── 时间线 ───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(139, 123, 255, 0.5), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 30px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(53, 214, 255, 0.6);
}
.tl-item__date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.tl-item h4 {
  font-size: 16px;
  margin: 5px 0 5px;
}
.tl-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── 班委网格 ─────────────────────────────────────────────────────────── */
.member {
  padding: 20px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.26s var(--ease);
}
.member:hover {
  border-color: rgba(53, 214, 255, 0.3);
  transform: translateY(-4px);
}
.member__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.member__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.member__duty {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── 表单 ─────────────────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req {
  color: var(--red);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 22, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.22s var(--ease);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(53, 214, 255, 0.6);
  background: rgba(9, 16, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.12);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #55688a;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-msg {
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 9px;
  display: none;
}
.form-msg.is-ok {
  display: block;
  color: #86efac;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.form-msg.is-err {
  display: block;
  color: #ffb3bd;
  background: rgba(239, 59, 82, 0.1);
  border: 1px solid rgba(239, 59, 82, 0.3);
}

/* 联系信息卡 */
.info-card {
  padding: 26px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.26s var(--ease);
}
.info-card:hover {
  border-color: rgba(53, 214, 255, 0.3);
}
.info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.22);
  color: var(--cyan);
}
.info-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.info-card__value {
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
}

/* ── 文件库 ───────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
}
.chip {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: all 0.22s var(--ease);
  font-family: inherit;
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.chip.is-active {
  color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #6ae6ff);
  border-color: transparent;
  font-weight: 600;
}
.chip small {
  opacity: 0.7;
  font-family: var(--font-mono);
  margin-left: 4px;
}

.unlock-banner {
  display: none;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: var(--r);
  margin-bottom: 26px;
  background: linear-gradient(100deg, rgba(53, 214, 255, 0.1), rgba(139, 123, 255, 0.06));
  border: 1px solid rgba(53, 214, 255, 0.3);
}
.unlock-banner.is-on {
  display: flex;
}
.unlock-banner.is-locked {
  background: linear-gradient(100deg, rgba(239, 59, 82, 0.1), rgba(251, 191, 36, 0.05));
  border-color: rgba(239, 59, 82, 0.32);
}
.unlock-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(53, 214, 255, 0.14);
  border: 1px solid rgba(53, 214, 255, 0.32);
  color: var(--cyan);
}
.unlock-banner.is-locked .unlock-banner__icon {
  background: rgba(239, 59, 82, 0.14);
  border-color: rgba(239, 59, 82, 0.34);
  color: #ff8f9e;
}
.unlock-banner__body {
  flex: 1;
  min-width: 0;
}
.unlock-banner__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.unlock-banner__desc {
  font-size: 13px;
  color: var(--text-dim);
}

.file-card {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.28s var(--ease);
  align-items: flex-start;
}
.file-card:hover {
  border-color: rgba(53, 214, 255, 0.3);
  transform: translateY(-3px);
}
.file-card.is-locked {
  border-color: rgba(239, 59, 82, 0.24);
}
.file-card.is-locked:hover {
  border-color: rgba(239, 59, 82, 0.44);
}
.file-card__ext {
  width: 50px;
  height: 58px;
  flex: none;
  border-radius: 8px 8px 8px 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.26);
  color: var(--cyan);
  position: relative;
  text-transform: uppercase;
}
.file-card__ext::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: linear-gradient(225deg, var(--bg-0) 50%, rgba(53, 214, 255, 0.5) 50%);
  border-radius: 0 8px 0 0;
}
.file-card.is-locked .file-card__ext {
  background: rgba(239, 59, 82, 0.1);
  border-color: rgba(239, 59, 82, 0.28);
  color: #ff8f9e;
}
.file-card.is-locked .file-card__ext::after {
  background: linear-gradient(225deg, var(--bg-0) 50%, rgba(239, 59, 82, 0.5) 50%);
}
.file-card__body {
  flex: 1;
  min-width: 0;
}
.file-card__title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.file-card__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.65;
}
.file-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.file-card__action {
  flex: none;
  align-self: center;
}

/* ── 弹层 ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #0c1424, #080e1c);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  padding: 32px;
  animation: riseIn 0.32s var(--ease);
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
}
.modal__close:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.08);
}
.modal h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.modal__steps {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step__n {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.28);
}
.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.step p b {
  color: var(--text);
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-2);
  margin: 4px 0 20px;
  gap: 12px;
}
.qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 12px;
}
.qr-box span {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.code-input {
  display: flex;
  gap: 10px;
}
.code-input input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 22, 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  outline: none;
  transition: all 0.22s;
}
.code-input input:focus {
  border-color: rgba(53, 214, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.12);
}

/* ── 表格 ─────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(53, 214, 255, 0.04);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.is-open {
  border-color: rgba(53, 214, 255, 0.32);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item__q i {
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
  font-style: normal;
  flex: none;
}
.faq-item.is-open .faq-item__q i {
  transform: rotate(45deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.is-open .faq-item__a {
  max-height: 340px;
}
.faq-item__a p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ── 页脚 ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 13, 0.9));
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer ul a,
.footer ul li {
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer ul a:hover {
  color: var(--cyan);
}
.footer__brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 14px 0 0;
  max-width: 320px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.footer__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__badges span {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
}

/* ── 入场动画 ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── 加载骨架 ─────────────────────────────────────────────────────────── */
.skeleton {
  border-radius: var(--r);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.07) 42%,
    rgba(255, 255, 255, 0.03) 62%
  );
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}
.skeleton--card {
  height: 168px;
}
.skeleton--row {
  height: 84px;
}

/* ── 空状态 / 错误 ────────────────────────────────────────────────────── */
.empty {
  padding: 56px 24px;
  text-align: center;
  border-radius: var(--r);
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.015);
}
.empty__icon {
  font-size: 30px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.empty h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── 页面头部（内页）─────────────────────────────────────────────────── */
.page-head {
  padding: 60px 0 12px;
  position: relative;
}
.page-head__back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-head p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 640px;
  margin: 0;
}

/* ── 统计条（内页）───────────────────────────────────────────────────── */
.strip {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.strip > div {
  flex: 1 1 140px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.strip > div:last-child {
  border-right: none;
}
.strip b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: #fff;
}
.strip span {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ── 提示条 ───────────────────────────────────────────────────────────── */
.note {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: rgba(53, 214, 255, 0.06);
  border: 1px solid rgba(53, 214, 255, 0.22);
  font-size: 13px;
  color: var(--text-dim);
  align-items: flex-start;
}
.note b {
  color: var(--text);
}
.note--red {
  background: rgba(239, 59, 82, 0.07);
  border-color: rgba(239, 59, 82, 0.26);
}
.note__icon {
  color: var(--cyan);
  flex: none;
  margin-top: 1px;
}
.note--red .note__icon {
  color: #ff8f9e;
}

/* ── 响应式 ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__badge {
    max-width: 260px;
    margin: 0 auto;
  }
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(6, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__toggle {
    display: grid;
  }
  .nav__cta {
    display: none;
  }
  .grid--3,
  .grid--4,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat__num {
    font-size: 26px;
  }
  .notice {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .notice__date {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
  .notice__date b {
    font-size: 16px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .file-card {
    flex-direction: column;
    gap: 14px;
  }
  .file-card__action {
    width: 100%;
  }
  .file-card__action .btn {
    width: 100%;
    justify-content: center;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .modal__panel {
    padding: 24px;
  }
}

/* ==========================================================================
   科技感增强层：HUD 框架 / 扫描线 / 数据驾驶舱 / 图表容器
   ========================================================================== */

/* ── HUD 四角括号 ─────────────────────────────────────────────────────── */
.hud {
  position: relative;
}
.hud > .hud__c {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(53, 214, 255, 0.55);
  pointer-events: none;
  z-index: 3;
}
.hud__c--tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.hud__c--tr {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}
.hud__c--bl {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}
.hud__c--br {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* ── 扫描线 ───────────────────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    rgba(53, 214, 255, 0.024) 0px,
    rgba(53, 214, 255, 0.024) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}
.scanbeam {
  position: fixed;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(53, 214, 255, 0.055), transparent);
  animation: beam 9s linear infinite;
}
@keyframes beam {
  0% {
    top: -20%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* ── 六边形网格底纹 ───────────────────────────────────────────────────── */
.hexbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%2335d6ff' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/%3E%3Cpath d='M28 48 L56 64 L56 96 L28 112 L0 96 L0 64 Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 10%, transparent 75%);
}

/* ── 故障风标题 ───────────────────────────────────────────────────────── */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.glitch::before {
  animation: glitch-a 3.6s steps(1) infinite;
  text-shadow: -1.5px 0 rgba(239, 59, 82, 0.75);
}
.glitch::after {
  animation: glitch-b 4.4s steps(1) infinite;
  text-shadow: 1.5px 0 rgba(53, 214, 255, 0.75);
}
@keyframes glitch-a {
  0%,
  92%,
  100% {
    transform: none;
    opacity: 0;
  }
  93% {
    transform: translate(-2px, 1px);
    opacity: 0.9;
  }
  95% {
    transform: translate(2px, -1px);
    opacity: 0.7;
  }
  97% {
    transform: translate(-1px, 0);
    opacity: 0.85;
  }
}
@keyframes glitch-b {
  0%,
  88%,
  100% {
    transform: none;
    opacity: 0;
  }
  90% {
    transform: translate(2px, -1px);
    opacity: 0.8;
  }
  94% {
    transform: translate(-2px, 1px);
    opacity: 0.6;
  }
}

/* ── 终端打字框 ───────────────────────────────────────────────────────── */
.terminal {
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, rgba(8, 14, 26, 0.92), rgba(5, 9, 18, 0.92));
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.terminal__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.terminal__dot--r {
  background: rgba(239, 59, 82, 0.75);
}
.terminal__dot--y {
  background: rgba(251, 191, 36, 0.75);
}
.terminal__dot--g {
  background: rgba(52, 211, 153, 0.75);
}
.terminal__title {
  margin-left: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.terminal__body {
  padding: 16px 18px;
  line-height: 1.95;
  min-height: 168px;
}
.terminal__line {
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal__prompt {
  color: var(--cyan);
}
.terminal__key {
  color: #a99cff;
}
.terminal__val {
  color: #86efac;
}
.terminal__dim {
  color: var(--text-faint);
}
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* ── 滚动跑马灯 ───────────────────────────────────────────────────────── */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.6);
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
  width: max-content;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker__item b {
  color: var(--cyan);
}
.ticker__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--cyan);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── 数据驾驶舱 ───────────────────────────────────────────────────────── */
.viz {
  position: relative;
}
.viz-panel {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(11, 18, 34, 0.82), rgba(6, 10, 20, 0.78));
  backdrop-filter: blur(14px);
  padding: 26px 26px 22px;
  overflow: hidden;
}
.viz-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 255, 0.7), transparent);
}
.viz-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.viz-panel__title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.viz-panel__title i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: rotate(45deg);
  flex: none;
}
.viz-panel__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 5px;
}
.viz-panel__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 5px;
  color: #86efac;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  white-space: nowrap;
  flex: none;
}

.viz-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.viz-layout > .span-3 {
  grid-column: span 3;
}
.viz-layout > .span-4 {
  grid-column: span 4;
}
.viz-layout > .span-6 {
  grid-column: span 6;
}
.viz-layout > .span-8 {
  grid-column: span 8;
}
.viz-layout > .span-12 {
  grid-column: span 12;
}

/* 仪表盘卡片 */
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gauge-card {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(11, 18, 34, 0.8), rgba(6, 10, 20, 0.7));
  padding: 20px 18px 18px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.gauge-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(53, 214, 255, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gauge-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.gauge-card:hover::after {
  opacity: 1;
}
.gauge-card__ring {
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
}
.gauge-card__title {
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 600;
}
.gauge-card__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 4px;
}

/* 图表容器 */
.chart-box {
  width: 100%;
}
.chart-box svg {
  display: block;
  overflow: visible;
}
.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.chart-legend--stack {
  flex-direction: column;
  gap: 10px;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.chart-legend__item {
  font-size: 12.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chart-legend__item i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.chart-legend__item b {
  color: var(--text);
  font-family: var(--font-mono);
  margin-left: auto;
  padding-left: 16px;
}
.chart-legend--stack .chart-legend__item {
  width: 100%;
}

.split-viz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.radar-box {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* 指标小卡（雷达旁） */
.kpi-list {
  display: grid;
  gap: 10px;
}
.kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.24s var(--ease);
}
.kpi:hover {
  border-color: var(--line-2);
  background: rgba(53, 214, 255, 0.045);
}
.kpi__label {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
}
.kpi__value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.kpi__spark {
  width: 76px;
  flex: none;
  opacity: 0.9;
}
.kpi__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  flex: none;
}
.kpi__delta.is-up {
  color: #86efac;
  background: rgba(52, 211, 153, 0.12);
}
.kpi__delta.is-down {
  color: #ffb3bd;
  background: rgba(239, 59, 82, 0.12);
}

/* 霓虹分隔 */
.neon-hr {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 255, 0.55), rgba(139, 123, 255, 0.4), transparent);
}

/* 六边形图标（服务模块用） */
.hex-icon {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  color: var(--cyan);
}
.hex-icon svg.hex-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hex-icon > svg:last-child {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .viz-layout > .span-3,
  .viz-layout > .span-4 {
    grid-column: span 6;
  }
  .viz-layout > .span-6,
  .viz-layout > .span-8 {
    grid-column: span 12;
  }
  .gauge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .viz-layout > .span-3,
  .viz-layout > .span-4,
  .viz-layout > .span-6,
  .viz-layout > .span-8 {
    grid-column: span 12;
  }
  .gauge-grid {
    grid-template-columns: 1fr;
  }
  .split-viz {
    grid-template-columns: 1fr;
  }
  .viz-panel {
    padding: 20px 16px 18px;
  }
  .terminal__body {
    font-size: 11.5px;
  }
}
