/* ==========================================================================
   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;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   浅色主题
   ------------------------------------------------------------
   默认（无 data-theme 或 data-theme="dark"）保持原有深空风格；
   加上 data-theme="light" 时整体切换。图表通过 CSS 变量自动跟随。
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* 粒子网络用的 RGB 分量，方便叠加透明度 */
  --particle-rgb: 53, 214, 255;
  --particle-rgb-2: 139, 123, 255;
  --ink-rgb: 160, 232, 255;
}

html[data-theme='light'] {
  --bg-0: #f4f7fc;
  --bg-1: #ffffff;
  --bg-2: #eef2f9;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(248, 250, 253, 0.94);
  --line: rgba(28, 58, 102, 0.13);
  --line-2: rgba(28, 58, 102, 0.24);
  --text: #0d1725;
  --text-dim: #4a5c76;
  --text-faint: #7b8ca4;

  --cyan: #0a7ea4;
  --cyan-deep: #0a7ea4;
  --violet: #6147d6;
  --red: #cf2540;
  --ok: #12805c;
  --warn: #a86a00;

  --glow-cyan: 0 0 20px rgba(10, 126, 164, 0.18);
  --glow-red: 0 0 20px rgba(207, 37, 64, 0.16);

  --particle-rgb: 10, 126, 164;
  --particle-rgb-2: 97, 71, 214;
  --ink-rgb: 12, 60, 90;
}

html[data-theme='light'] body {
  background: var(--bg-0);
}

html[data-theme='light'] body::before {
  background-image: linear-gradient(rgba(28, 58, 102, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 58, 102, 0.07) 1px, transparent 1px);
}

html[data-theme='light'] .orbs .orb {
  opacity: 0.32;
}
html[data-theme='light'] .orb--cyan {
  background: radial-gradient(circle, rgba(10, 126, 164, 0.22), transparent 68%);
}
html[data-theme='light'] .orb--violet {
  background: radial-gradient(circle, rgba(97, 71, 214, 0.16), transparent 68%);
}
html[data-theme='light'] .orb--red {
  background: radial-gradient(circle, rgba(207, 37, 64, 0.12), transparent 68%);
}

html[data-theme='light'] .scanlines {
  opacity: 0.35;
  background: repeating-linear-gradient(
    180deg,
    rgba(28, 58, 102, 0.03) 0px,
    rgba(28, 58, 102, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}
html[data-theme='light'] .scanbeam {
  background: linear-gradient(180deg, transparent, rgba(10, 126, 164, 0.05), transparent);
}
html[data-theme='light'] .hexbg {
  opacity: 0.6;
  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='%230a7ea4' stroke-opacity='0.16' 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");
}

html[data-theme='light'] .topbar {
  background: linear-gradient(90deg, rgba(207, 37, 64, 0.08), rgba(10, 126, 164, 0.08));
}
html[data-theme='light'] .topbar__tag {
  background: rgba(207, 37, 64, 0.1);
  border-color: rgba(207, 37, 64, 0.28);
  color: #a51e35;
}
html[data-theme='light'] .topbar__text {
  color: var(--text-dim);
}

html[data-theme='light'] .nav {
  background: rgba(244, 247, 252, 0.82);
}
html[data-theme='light'] .nav__links a {
  color: var(--text-dim);
}
html[data-theme='light'] .nav__links a:hover {
  color: var(--text);
  background: rgba(10, 126, 164, 0.08);
}
html[data-theme='light'] .nav__links a[aria-current='page'] {
  color: var(--text);
  background: rgba(10, 126, 164, 0.12);
  box-shadow: inset 0 0 0 1px rgba(10, 126, 164, 0.3);
}
html[data-theme='light'] .nav__toggle {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
html[data-theme='light'] .brand__mark {
  background: linear-gradient(145deg, rgba(10, 126, 164, 0.12), rgba(207, 37, 64, 0.1));
  border-color: var(--line-2);
}
html[data-theme='light'] .brand__text strong {
  color: var(--text);
}
html[data-theme='light'] .brand__text span {
  color: var(--text-faint);
}

html[data-theme='light'] .hero__kicker {
  background: rgba(10, 126, 164, 0.07);
  border-color: rgba(10, 126, 164, 0.3);
  color: #0a7ea4;
}
html[data-theme='light'] .hero__badge-inner {
  background: radial-gradient(circle at 50% 40%, rgba(10, 126, 164, 0.1), transparent 62%);
}
html[data-theme='light'] .hero__badge-inner img {
  filter: drop-shadow(0 10px 30px rgba(10, 126, 164, 0.22));
}
html[data-theme='light'] .hero__ring {
  border-color: rgba(10, 126, 164, 0.3);
}
html[data-theme='light'] .hero__ring--2 {
  border-color: rgba(207, 37, 64, 0.22);
}
html[data-theme='light'] .hero__ring--3 {
  border-color: rgba(97, 71, 214, 0.22);
}

html[data-theme='light'] .grad-text {
  background: linear-gradient(100deg, #0d1725 10%, #0a7ea4 55%, #6147d6 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme='light'] .motto span {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text-dim);
}
html[data-theme='light'] .motto {
  border-top-color: var(--line);
}

html[data-theme='light'] .btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-2);
}
html[data-theme='light'] .btn--ghost:hover {
  color: var(--text);
  background: rgba(10, 126, 164, 0.07);
  border-color: rgba(10, 126, 164, 0.45);
}
html[data-theme='light'] .btn--primary {
  color: #ffffff;
  background: linear-gradient(120deg, #0a7ea4, #17a3c9);
  box-shadow: 0 6px 20px rgba(10, 126, 164, 0.24);
}

html[data-theme='light'] .stat,
html[data-theme='light'] .card,
html[data-theme='light'] .notice,
html[data-theme='light'] .member,
html[data-theme='light'] .info-card,
html[data-theme='light'] .file-card,
html[data-theme='light'] .viz-panel,
html[data-theme='light'] .gauge-card,
html[data-theme='light'] .faq-item,
html[data-theme='light'] .table-wrap,
html[data-theme='light'] .strip,
html[data-theme='light'] .chart-legend,
html[data-theme='light'] .terminal {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(16, 30, 54, 0.04);
}
html[data-theme='light'] .viz-panel {
  background: linear-gradient(165deg, #ffffff, #fbfcfe);
}
html[data-theme='light'] .gauge-card {
  background: linear-gradient(170deg, #ffffff, #fafcfe);
}
html[data-theme='light'] .gauge-card::after {
  background: radial-gradient(circle at 50% 0%, rgba(10, 126, 164, 0.07), transparent 62%);
}
html[data-theme='light'] .stat__num,
html[data-theme='light'] .kpi__value,
html[data-theme='light'] .strip b,
html[data-theme='light'] .lab-bignum {
  color: var(--text);
}
html[data-theme='light'] .card:hover,
html[data-theme='light'] .stat:hover,
html[data-theme='light'] .member:hover,
html[data-theme='light'] .info-card:hover {
  box-shadow: 0 12px 30px rgba(16, 30, 54, 0.1);
}
html[data-theme='light'] .notice:hover {
  background: #f8fbfe;
}
html[data-theme='light'] .card__features {
  border-top-color: var(--line);
}

html[data-theme='light'] .chart-legend {
  border-top-color: var(--line);
}
html[data-theme='light'] .chart-legend--stack {
  border-top: none;
}

html[data-theme='light'] .kpi {
  background: #fbfcfe;
  border-color: var(--line);
}
html[data-theme='light'] .kpi:hover {
  background: rgba(10, 126, 164, 0.05);
  border-color: var(--line-2);
}
html[data-theme='light'] .kpi__delta.is-up {
  color: #0f6b4d;
  background: rgba(18, 128, 92, 0.12);
}
html[data-theme='light'] .kpi__delta.is-down {
  color: #a51e35;
  background: rgba(207, 37, 64, 0.1);
}

html[data-theme='light'] .field input,
html[data-theme='light'] .field textarea,
html[data-theme='light'] .field select,
html[data-theme='light'] .lab-input,
html[data-theme='light'] .code-input input {
  background: #ffffff;
  border-color: var(--line-2);
  color: var(--text);
}
html[data-theme='light'] .field input::placeholder,
html[data-theme='light'] .field textarea::placeholder,
html[data-theme='light'] .lab-input::placeholder {
  color: #9aa9bd;
}
html[data-theme='light'] .field input:focus,
html[data-theme='light'] .field textarea:focus,
html[data-theme='light'] .lab-input:focus {
  background: #ffffff;
  border-color: rgba(10, 126, 164, 0.6);
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.12);
}

html[data-theme='light'] .chip {
  background: #fff;
  border-color: var(--line);
  color: var(--text-dim);
}
html[data-theme='light'] .chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
html[data-theme='light'] .chip.is-active {
  color: #fff;
  background: linear-gradient(120deg, #0a7ea4, #17a3c9);
  border-color: transparent;
}

html[data-theme='light'] .unlock-banner {
  background: linear-gradient(100deg, rgba(10, 126, 164, 0.07), rgba(97, 71, 214, 0.04));
  border-color: rgba(10, 126, 164, 0.28);
}
html[data-theme='light'] .unlock-banner.is-locked {
  background: linear-gradient(100deg, rgba(207, 37, 64, 0.07), rgba(168, 106, 0, 0.04));
  border-color: rgba(207, 37, 64, 0.28);
}
html[data-theme='light'] .unlock-banner__icon {
  background: rgba(10, 126, 164, 0.1);
  border-color: rgba(10, 126, 164, 0.28);
  color: #0a7ea4;
}
html[data-theme='light'] .unlock-banner.is-locked .unlock-banner__icon {
  background: rgba(207, 37, 64, 0.09);
  border-color: rgba(207, 37, 64, 0.3);
  color: #cf2540;
}

html[data-theme='light'] .file-card__ext {
  background: rgba(10, 126, 164, 0.08);
  border-color: rgba(10, 126, 164, 0.24);
  color: #0a7ea4;
}
html[data-theme='light'] .file-card__ext::after {
  background: linear-gradient(225deg, #fff 50%, rgba(10, 126, 164, 0.45) 50%);
}
html[data-theme='light'] .file-card.is-locked .file-card__ext {
  background: rgba(207, 37, 64, 0.08);
  border-color: rgba(207, 37, 64, 0.26);
  color: #cf2540;
}
html[data-theme='light'] .file-card.is-locked .file-card__ext::after {
  background: linear-gradient(225deg, #fff 50%, rgba(207, 37, 64, 0.45) 50%);
}

html[data-theme='light'] .note {
  background: rgba(10, 126, 164, 0.05);
  border-color: rgba(10, 126, 164, 0.22);
}
html[data-theme='light'] .note--red {
  background: rgba(207, 37, 64, 0.05);
  border-color: rgba(207, 37, 64, 0.24);
}
html[data-theme='light'] .note__icon {
  color: #0a7ea4;
}
html[data-theme='light'] .note--red .note__icon {
  color: #cf2540;
}

html[data-theme='light'] .terminal {
  background: #fff;
}
html[data-theme='light'] .terminal__bar {
  background: #f6f8fc;
}
html[data-theme='light'] .terminal__dot {
  background: #d5dbe5;
}
html[data-theme='light'] .terminal__prompt {
  color: #0a7ea4;
}
html[data-theme='light'] .terminal__key {
  color: #6147d6;
}
html[data-theme='light'] .terminal__val {
  color: #12805c;
}
html[data-theme='light'] .caret {
  background: #0a7ea4;
}

html[data-theme='light'] .ticker {
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme='light'] .ticker__item b {
  color: #0a7ea4;
}

html[data-theme='light'] .modal__backdrop {
  background: rgba(20, 32, 52, 0.42);
}
html[data-theme='light'] .modal__panel {
  background: linear-gradient(170deg, #ffffff, #f7f9fc);
  border-color: var(--line-2);
  box-shadow: 0 24px 70px rgba(16, 30, 54, 0.24);
}
html[data-theme='light'] .modal__close {
  background: #f2f5f9;
  border-color: var(--line);
  color: var(--text-dim);
}
html[data-theme='light'] .qr-box {
  background: #f8fafc;
  border-color: var(--line-2);
}
html[data-theme='light'] .step__n {
  background: rgba(10, 126, 164, 0.1);
  border-color: rgba(10, 126, 164, 0.28);
  color: #0a7ea4;
}

html[data-theme='light'] th {
  background: #f6f8fc;
}
html[data-theme='light'] tbody tr:hover {
  background: rgba(10, 126, 164, 0.04);
}

html[data-theme='light'] .empty {
  background: #fbfcfe;
  border-color: var(--line-2);
}
html[data-theme='light'] .skeleton {
  background: linear-gradient(100deg, #eef1f6 20%, #f7f9fc 42%, #eef1f6 62%);
  background-size: 220% 100%;
}

html[data-theme='light'] .footer {
  background: linear-gradient(180deg, transparent, rgba(244, 247, 252, 0.95));
}
html[data-theme='light'] .footer__bottom {
  border-top-color: var(--line);
}
html[data-theme='light'] .footer__badges span {
  background: #fff;
  border-color: var(--line);
}

html[data-theme='light'] .tag {
  background: #f6f8fc;
  color: var(--text-dim);
}
html[data-theme='light'] .tag--notice {
  color: #0a6a87;
  background: rgba(10, 126, 164, 0.08);
}
html[data-theme='light'] .tag--activity {
  color: #5340b8;
  background: rgba(97, 71, 214, 0.08);
}
html[data-theme='light'] .tag--honor {
  color: #a51e35;
  background: rgba(207, 37, 64, 0.08);
}
html[data-theme='light'] .tag--study {
  color: #0f6b4d;
  background: rgba(18, 128, 92, 0.08);
}
html[data-theme='light'] .tag--locked {
  color: #a51e35;
  background: rgba(207, 37, 64, 0.09);
}

html[data-theme='light'] .hud > .hud__c {
  border-color: rgba(10, 126, 164, 0.5);
}
html[data-theme='light'] .viz-panel::before {
  background: linear-gradient(90deg, transparent, rgba(10, 126, 164, 0.5), transparent);
}
html[data-theme='light'] .viz-panel__badge {
  color: #0f6b4d;
  background: rgba(18, 128, 92, 0.1);
  border-color: rgba(18, 128, 92, 0.28);
}

html[data-theme='light'] ::-webkit-scrollbar-track {
  background: #eef1f6;
}
html[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: rgba(28, 58, 102, 0.2);
  border-color: #eef1f6;
}
html[data-theme='light'] ::selection {
  background: rgba(10, 126, 164, 0.22);
}

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: rgba(53, 214, 255, 0.45);
  background: rgba(53, 214, 255, 0.08);
}
.theme-toggle [data-theme-icon] {
  font-size: 15px;
  line-height: 1;
}
html[data-theme='light'] .theme-toggle {
  background: #fff;
  border-color: var(--line-2);
}
html[data-theme='light'] .theme-toggle:hover {
  border-color: rgba(10, 126, 164, 0.45);
  background: rgba(10, 126, 164, 0.07);
}
@media (max-width: 1100px) {
  .theme-toggle [data-theme-label] {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   教室工具箱
   ══════════════════════════════════════════════════════════════════════════ */
.lab-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.lab-grouphead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 14px;
  flex-wrap: wrap;
}
.lab-grouphead h3 {
  margin: 0;
  font-size: 17px;
}
.lab-grouphead__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.lab-dot--violet {
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}
.lab-dot--red {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.lab-dot--green {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.lab-dot--amber {
  background: var(--warn);
  box-shadow: 0 0 10px var(--warn);
}
.lab-dot--blue {
  background: #4a9eff;
  box-shadow: 0 0 10px #4a9eff;
}
.lab-grouphead__desc {
  font-size: 13px;
  color: var(--text-faint);
  flex: 1;
  min-width: 200px;
}
.lab-grouphead__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.lab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 16px;
  text-align: left;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.24s var(--ease);
  overflow: hidden;
}
.lab-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0.75;
}
.lab-card--violet::before {
  background: var(--violet);
}
.lab-card--red::before {
  background: var(--red);
}
.lab-card--green::before {
  background: var(--ok);
}
.lab-card--amber::before {
  background: var(--warn);
}
.lab-card--blue::before {
  background: #4a9eff;
}
.lab-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
html[data-theme='light'] .lab-card {
  background: #fff;
}
html[data-theme='light'] .lab-card:hover {
  box-shadow: 0 12px 28px rgba(16, 30, 54, 0.12);
}
.lab-card__name {
  font-size: 15px;
  font-weight: 600;
}
.lab-card__desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
  min-height: 40px;
}
.lab-card__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.lab-card__tags i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.lab-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.24s var(--ease);
}
.lab-card:hover .lab-card__arrow {
  opacity: 1;
  transform: none;
}

/* ── 工作区弹层 ───────────────────────────────────────────────────────── */
.lab-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 24px 16px;
}
.lab-modal.is-open {
  display: block;
}
.lab-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.22s var(--ease);
}
.lab-ws__panel {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, #0c1424, #080e1c);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  animation: riseIn 0.3s var(--ease);
}
html[data-theme='light'] .lab-ws__panel {
  background: linear-gradient(170deg, #ffffff, #f7f9fc);
  box-shadow: 0 24px 70px rgba(16, 30, 54, 0.24);
}
.lab-ws__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.lab-ws__title {
  margin: 6px 0 4px;
  font-size: 20px;
}
.lab-ws__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.lab-ws__cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--cyan);
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.28);
}
.lab-ws__cat--violet {
  color: #a99cff;
  background: rgba(139, 123, 255, 0.1);
  border-color: rgba(139, 123, 255, 0.3);
}
.lab-ws__cat--red {
  color: #ff8f9e;
  background: rgba(239, 59, 82, 0.1);
  border-color: rgba(239, 59, 82, 0.3);
}
.lab-ws__cat--green {
  color: #86efac;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}
.lab-ws__cat--amber {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}
.lab-ws__close {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.lab-ws__close:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.lab-host {
  padding: 22px 26px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 220px;
}

/* ── 工具箱内部控件 ───────────────────────────────────────────────────── */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.lab-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}
.lab-grid .lab-field {
  margin-bottom: 0;
}
.lab-field__label {
  font-size: 13px;
  color: var(--text-dim);
}
.lab-field__hint {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
}
.lab-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 22, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s var(--ease);
}
.lab-textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 90px;
}
.lab-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
}
.lab-input:focus {
  border-color: rgba(53, 214, 255, 0.6);
  background: rgba(9, 16, 30, 0.9);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.12);
}
.lab-chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.lab-chk input {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
}
.lab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0;
}
.lab-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lab-btn {
  padding: 9px 17px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.lab-btn--primary {
  background: linear-gradient(120deg, var(--cyan), #63e3ff);
  color: #04121a;
}
.lab-btn--accent {
  background: linear-gradient(120deg, var(--violet), #a99cff);
  color: #fff;
}
.lab-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text-dim);
}
.lab-btn--ghost:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.08);
}
.lab-btn:hover {
  transform: translateY(-1px);
}
html[data-theme='light'] .lab-btn--ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text-dim);
}
html[data-theme='light'] .lab-btn--ghost:hover {
  background: rgba(10, 126, 164, 0.06);
  color: var(--text);
}
.lab-range__wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-range {
  flex: 1;
  accent-color: var(--cyan);
}
.lab-range__val {
  min-width: 34px;
  text-align: right;
  color: var(--cyan);
}

.lab-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.7;
  background: rgba(53, 214, 255, 0.06);
  border: 1px solid rgba(53, 214, 255, 0.22);
  color: var(--text-dim);
  margin-bottom: 14px;
}
.lab-note--warn {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.28);
}
.lab-note__dot {
  color: var(--cyan);
  flex: none;
}
.lab-note--warn .lab-note__dot {
  color: var(--warn);
}

.lab-drop {
  border: 2px dashed var(--line-2);
  border-radius: var(--r);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: rgba(255, 255, 255, 0.015);
}
.lab-drop:hover,
.lab-drop.hit {
  border-color: rgba(53, 214, 255, 0.55);
  background: rgba(53, 214, 255, 0.05);
}
.lab-drop.has-file {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.05);
}
.lab-drop b {
  display: block;
  font-size: 14.5px;
  margin-bottom: 6px;
}
.lab-drop__hint {
  font-size: 12.5px;
  color: var(--text-faint);
  word-break: break-all;
}

.lab-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.lab-outbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lab-outbox__head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.lab-out {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(6, 11, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  max-height: 420px;
  overflow: auto;
  color: var(--text);
  margin: 0;
}
html[data-theme='light'] .lab-out {
  background: #f8fafc;
}
.lab-out > .lab-out {
  background: none;
  border: none;
  padding: 0;
}
.lab-statline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-left: auto;
}
.lab-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 16px 0 8px;
}
.lab-sub.lab-big {
  font-size: 18px;
  color: var(--text);
}
.lab-center {
  display: flex;
  justify-content: center;
}

.lab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.lab-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.lab-stat__k {
  font-size: 11.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-stat__v {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
html[data-theme='light'] .lab-stat {
  background: #fbfcfe;
}

.lab-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.lab-list__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.lab-list__row:last-child {
  border-bottom: none;
}
.lab-list__row:hover {
  background: rgba(53, 214, 255, 0.04);
}
.lab-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.lab-list__size {
  color: var(--text-faint);
  flex: none;
}
.lab-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  flex: none;
  text-transform: uppercase;
}
.lab-badge--image {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.32);
}
.lab-badge--media {
  color: #a99cff;
  border-color: rgba(139, 123, 255, 0.32);
}
.lab-badge--xml {
  color: #7fe6ff;
  border-color: rgba(53, 214, 255, 0.32);
}
.lab-badge--A {
  color: #86efac;
}
.lab-badge--B {
  color: #7fe6ff;
}
.lab-badge--C {
  color: #fde68a;
}
.lab-badge--D {
  color: #ffb3bd;
}
.lab-empty {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}
.lab-empty--big {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 56px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.lab-empty--big b {
  font-size: 15px;
  color: var(--text-dim);
}

.lab-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}
.lab-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.2s linear;
}

.lab-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 7px;
  margin-bottom: 14px;
  max-height: 300px;
  overflow: auto;
}
.lab-result {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  min-width: 0;
}
.lab-result__thumb {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
  background: var(--line);
}
.lab-result__thumb--none {
  display: block;
}
.lab-result__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-result__size {
  color: var(--text-faint);
  flex: none;
}
.lab-errors {
  font-size: 12px;
  color: #ffb3bd;
  margin-bottom: 12px;
  line-height: 1.7;
}

.lab-preview {
  max-width: 100%;
  max-height: 480px;
  border-radius: 9px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  object-fit: contain;
  background: #fff;
}

.lab-bignum {
  font-family: var(--font-mono);
  font-size: clamp(46px, 9vw, 104px);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 18px 0 6px;
  word-break: break-all;
  transition: color 0.3s;
}
.lab-bignum.is-warn {
  color: var(--red);
}
.lab-bigsub {
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.lab-bigqa {
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.6;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin: 14px 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-theme='light'] .lab-bigqa {
  background: #fbfcfe;
}

.lab-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  max-height: 180px;
  overflow: auto;
}
.lab-chip {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(53, 214, 255, 0.3);
  background: rgba(53, 214, 255, 0.08);
  color: var(--text);
}
.lab-chip--dim {
  color: var(--text-faint);
  border-color: var(--line);
  background: none;
}

.lab-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.lab-group {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.lab-group__head {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(53, 214, 255, 0.08);
  border-bottom: 1px solid var(--line);
}
.lab-group__body {
  padding: 11px 12px;
  font-size: 13.5px;
  line-height: 1.9;
}

.lab-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.lab-score {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}
html[data-theme='light'] .lab-score {
  background: #fbfcfe;
}
.lab-score__name {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.lab-score__val {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
}
.lab-score__val.is-pos {
  color: #86efac;
}
.lab-score__val.is-neg {
  color: #ffb3bd;
}
html[data-theme='light'] .lab-score__val {
  color: var(--text);
}
.lab-score__btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.lab-score__btns .lab-btn {
  padding: 6px 11px;
  font-size: 13px;
}

.lab-canvas {
  max-width: 100%;
  height: auto;
}

.lab-seatmap {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.lab-seatmap__front {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  padding: 8px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  margin-bottom: 10px;
}
.lab-seatmap__row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.lab-seatmap__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  width: 34px;
  flex: none;
}
.lab-seat {
  flex: 1 1 0;
  min-width: 62px;
  padding: 8px 4px;
  text-align: center;
  font-size: 12.5px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-seat.is-empty {
  color: var(--text-faint);
  border-style: dashed;
  background: none;
}
html[data-theme='light'] .lab-seat {
  background: #fbfcfe;
}

.lab-printpage {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 14px;
  max-width: 794px;
}
.lab-printpage svg {
  display: block;
  width: 100%;
  height: auto;
}
.lab-printpaper {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}
html[data-theme='light'] .lab-printpaper {
  background: #eef1f6;
}
.lab-swatch {
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
}
.lab-swatches {
  display: flex;
  gap: 6px;
}
.lab-swatch__chip {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.lab-hist {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lab-hist__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.lab-hist__label {
  width: 102px;
  flex: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.lab-hist__barwrap {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  overflow: hidden;
}
.lab-hist__bar {
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #04121a;
  transition: width 0.4s var(--ease);
}
.lab-hist__bar.is-warn {
  background: linear-gradient(90deg, var(--red), #ff8f9e);
  color: #fff;
}
.lab-hist__pct {
  width: 42px;
  text-align: right;
  flex: none;
  color: var(--text-faint);
  font-size: 11px;
}

.lab-tablewrap {
  overflow: auto;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 12px;
}
.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.lab-table th,
.lab-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lab-table th {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  z-index: 1;
}
.lab-table-more {
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.lab-diff-add {
  color: #86efac;
  background: rgba(52, 211, 153, 0.1);
}
.lab-diff-del {
  color: #ffb3bd;
  background: rgba(239, 59, 82, 0.1);
}
.lab-diff-same {
  color: var(--text-faint);
}
.lab-diff-add,
.lab-diff-del,
.lab-diff-same {
  display: block;
  padding: 0 4px;
  border-radius: 3px;
}
.lab-md-preview {
  background: rgba(6, 11, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
  font-size: 13.5px;
  line-height: 1.8;
}
html[data-theme='light'] .lab-md-preview {
  background: #fff;
}
.lab-md-preview h1,
.lab-md-preview h2,
.lab-md-preview h3 {
  margin: 14px 0 8px;
}
.lab-md-preview ul {
  padding-left: 22px;
}
.lab-md-preview blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--line-2);
  color: var(--text-dim);
}
.lab-md-preview code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(53, 214, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.lab-md-preview pre.lab-code {
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 8px;
  overflow: auto;
}
html[data-theme='light'] .lab-md-preview pre.lab-code {
  background: #f2f5f9;
}

.lab-toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}
.lab-toast {
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  color: #fff;
  background: rgba(12, 20, 36, 0.95);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: riseIn 0.24s var(--ease);
  max-width: 320px;
}
.lab-toast--warn {
  border-color: rgba(251, 191, 36, 0.45);
}
.lab-toast--err {
  border-color: rgba(239, 59, 82, 0.5);
}
.lab-toast.is-out {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.28s var(--ease);
}
html[data-theme='light'] .lab-toast {
  background: #fff;
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: 0 12px 30px rgba(16, 30, 54, 0.18);
}

@media (max-width: 900px) {
  .lab-two {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .lab-host {
    padding: 16px;
  }
  .lab-ws__head {
    padding: 16px;
  }
  .lab-modal {
    padding: 10px;
  }
  .lab-ws__panel {
    max-height: calc(100vh - 20px);
  }
}
