/* =========================================================
   山海网络安全社团 · 视觉系统
   ========================================================= */

:root {
  --bg: #04070d;
  --bg-soft: #070d18;
  --surface: rgba(11, 19, 33, 0.72);
  --surface-solid: #0b1321;
  --surface-2: #0e1930;
  --line: rgba(125, 190, 255, 0.13);
  --line-soft: rgba(125, 190, 255, 0.06);
  --neon: #00ff9d;
  --neon-dim: rgba(0, 255, 157, 0.14);
  --cyan: #2be2ff;
  --violet: #8b5cf6;
  --danger: #ff5d73;
  --warn: #ffb020;
  --text: #e9f4ff;
  --muted: #8ba2ba;
  --dim: #5b6f88;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Chakra Petch", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(0, 255, 157, 0.075), transparent 65%),
    radial-gradient(900px 520px at -8% 18%, rgba(43, 226, 255, 0.06), transparent 62%),
    radial-gradient(760px 520px at 55% 108%, rgba(139, 92, 246, 0.055), transparent 65%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 190, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 190, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

::selection { background: rgba(0, 255, 157, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05090f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.35), rgba(43, 226, 255, 0.25));
  border-radius: 10px;
  border: 2px solid #05090f;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* 线性图标统一描边（symbol 内容通过继承生效） */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   通用布局
   ========================================================= */

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}

.section-title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.section-desc {
  max-width: 660px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.section-head { margin-bottom: 46px; }

.grid { display: grid; gap: 20px; }

/* 滚动出现动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

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

/* =========================================================
   顶部导航
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #03110b;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-name .accent { color: var(--neon); }

.brand-sub {
  font: 500 9.5px/1.4 var(--font-mono);
  letter-spacing: 0.24em;
  color: var(--dim);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); background: rgba(125, 190, 255, 0.06); }

.nav a.active { color: var(--neon); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.current-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 30, 0.6);
}

.current-user .avatar { width: 26px; height: 26px; font-size: 12px; }

.current-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.current-user-name { font-size: 12.5px; font-weight: 600; }
.current-user-role { font: 500 9.5px/1.3 var(--font-mono); color: var(--dim); letter-spacing: 0.08em; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 18, 30, 0.6);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   按钮 / 徽章
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #02120a;
  background: linear-gradient(120deg, var(--neon), #38ffc4 55%, var(--cyan));
  box-shadow: 0 8px 26px rgba(0, 255, 157, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 255, 157, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(10, 18, 30, 0.5);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 255, 157, 0.45);
  background: rgba(0, 255, 157, 0.07);
  color: var(--neon);
}

.btn-danger {
  border-color: rgba(255, 93, 115, 0.35);
  background: rgba(255, 93, 115, 0.1);
  color: #ff8b9c;
}
.btn-danger:hover { background: rgba(255, 93, 115, 0.2); border-color: var(--danger); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-sm svg { width: 15px; height: 15px; }

.btn-block { width: 100%; }

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none;
}

.btn.is-success {
  color: var(--neon);
  border-color: rgba(0, 255, 157, 0.4);
  background: rgba(0, 255, 157, 0.1);
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 11px/1.5 var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--neon { color: var(--neon); background: rgba(0, 255, 157, 0.09); border-color: rgba(0, 255, 157, 0.28); }
.badge--cyan { color: var(--cyan); background: rgba(43, 226, 255, 0.09); border-color: rgba(43, 226, 255, 0.26); }
.badge--violet { color: #b79cff; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.badge--warn { color: var(--warn); background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.28); }
.badge--danger { color: #ff8b9c; background: rgba(255, 93, 115, 0.1); border-color: rgba(255, 93, 115, 0.28); }
.badge--dim { color: var(--muted); background: rgba(125, 190, 255, 0.06); border-color: var(--line); }

.badge-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* =========================================================
   面板 / 表单
   ========================================================= */

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(18, 30, 50, 0.62), rgba(7, 13, 23, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.panel--glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.3), transparent 40%, transparent 65%, rgba(43, 226, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 9, 17, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

.field input::placeholder { color: var(--dim); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
  background: rgba(4, 12, 18, 0.9);
}

.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 93, 115, 0.1); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =========================================================
   头像
   ========================================================= */

.avatar {
  --h: 160;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #eafff6;
  background:
    radial-gradient(circle at 30% 25%, hsla(var(--h), 90%, 68%, 0.9), transparent 60%),
    linear-gradient(135deg, hsl(var(--h), 68%, 42%), hsl(calc(var(--h) + 38), 72%, 32%));
  border: 1px solid hsla(var(--h), 90%, 70%, 0.35);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
}

.avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.avatar--lg { width: 52px; height: 52px; font-size: 18px; }

/* =========================================================
   首页 · Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 96px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.06);
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--neon);
  animation: fadeUp 0.8s 0.05s both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  animation: fadeUp 0.9s 0.12s both;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--neon) 5%, #5cffd0 35%, var(--cyan) 68%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 157, 0.18));
}

.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  animation: fadeUp 0.9s 0.2s both;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: fadeUp 0.9s 0.28s both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  animation: fadeUp 0.9s 0.36s both;
}

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--neon);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stat .num small { font-size: 14px; color: var(--muted); margin-left: 3px; }

.hero-stat .label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Hero 终端窗口 */
.hero-visual {
  position: relative;
  animation: fadeUp 1s 0.3s both;
  perspective: 1200px;
}

.terminal {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(125, 190, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(12, 21, 36, 0.96), rgba(5, 10, 18, 0.98));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(0, 255, 157, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.terminal:hover { transform: rotateY(0) rotateX(0) translateY(-4px); }

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-title {
  margin-left: 10px;
  font: 500 11.5px/1 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.08em;
}

.term-body {
  padding: 22px 22px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.05;
  min-height: 330px;
}

.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line .p1 { color: var(--neon); }
.term-line .p2 { color: var(--cyan); }
.term-line .p3 { color: var(--violet); }
.term-line .path { color: var(--muted); }
.term-line .cmd { color: var(--text); }
.term-line .out { color: var(--dim); }
.term-line .ok { color: var(--neon); }
.term-line .warn { color: var(--warn); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--neon);
  animation: blink 1.1s steps(2) infinite;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

@keyframes blink { 50% { opacity: 0; } }

.chip-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 15, 27, 0.88);
  backdrop-filter: blur(12px);
  font: 600 11.5px/1 var(--font-mono);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  animation: floaty 6s ease-in-out infinite;
}

.chip-float svg { width: 14px; height: 14px; color: var(--neon); }
.chip-float--1 { top: -18px; left: -26px; animation-delay: 0s; }
.chip-float--2 { top: 34%; right: -30px; animation-delay: -2s; }
.chip-float--2 svg { color: var(--cyan); }
.chip-float--3 { bottom: -20px; left: 16%; animation-delay: -4s; }
.chip-float--3 svg { color: var(--violet); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   首页 · 关于
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  line-height: 2.05;
  margin-top: 16px;
  font-size: 15px;
}

.about-copy strong { color: var(--text); }

.quote {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 2px solid var(--neon);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.07), transparent);
  color: #c7ddf0;
  font-size: 14.5px;
  line-height: 1.95;
}

.quote span {
  display: block;
  margin-top: 8px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--neon);
}

.info-card { padding: 8px 26px; }

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.info-row:last-child { border-bottom: none; }

.info-key {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.info-key svg { width: 15px; height: 15px; color: var(--neon); opacity: 0.8; }

.info-val { font-size: 14px; font-weight: 500; color: var(--text); text-align: right; }
.info-val small { display: block; font: 400 10.5px/1.5 var(--font-mono); color: var(--dim); letter-spacing: 0.06em; }

/* =========================================================
   首页 · 方向卡片
   ========================================================= */

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dir-card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(16, 27, 46, 0.65), rgba(7, 12, 22, 0.72));
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.dir-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.dir-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 157, 0.32);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 157, 0.05);
}

.dir-card:hover::before { opacity: 1; }

.dir-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--dim);
}

.dir-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  background: linear-gradient(140deg, rgba(0, 255, 157, 0.13), rgba(43, 226, 255, 0.05));
  color: var(--neon);
  margin-bottom: 20px;
}

.dir-icon svg { width: 22px; height: 22px; }

.dir-card h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }

.dir-card p { margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

.dir-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

.dir-tag {
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font: 500 10.5px/1.6 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* =========================================================
   首页 · 活动
   ========================================================= */

.activity-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.activity-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.act-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(15, 26, 44, 0.6), rgba(6, 11, 20, 0.7));
  transition: border-color 0.25s, transform 0.25s;
}

.act-card:hover { border-color: rgba(43, 226, 255, 0.3); transform: translateY(-4px); }

.act-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.act-card h3 { margin-top: 14px; font-size: 16.5px; font-weight: 700; }
.act-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

.timeline {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(15, 26, 44, 0.6), rgba(6, 11, 20, 0.7));
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 24px;
}

.timeline-title svg { width: 16px; height: 16px; }

.tl-item {
  position: relative;
  padding: 0 0 24px 26px;
  border-left: 1px solid rgba(125, 190, 255, 0.12);
}

.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.65);
}

.tl-time { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; color: var(--dim); }
.tl-item h4 { margin-top: 5px; font-size: 14.5px; font-weight: 600; }
.tl-item p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* =========================================================
   首页 · 荣誉
   ========================================================= */

.honor-list {
  display: grid;
  gap: 12px;
}

.honor-row {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 18, 32, 0.45);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.honor-row:hover {
  border-color: rgba(0, 255, 157, 0.3);
  background: rgba(0, 255, 157, 0.035);
  transform: translateX(5px);
}

.honor-year { font: 600 13px/1 var(--font-mono); color: var(--neon); letter-spacing: 0.08em; }
.honor-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
}
.honor-sub { font: 400 11.5px/1.6 var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.honor-team { font: 400 11.5px/1.5 var(--font-mono); color: var(--dim); letter-spacing: 0.05em; white-space: nowrap; }

/* =========================================================
   首页 · CTA
   ========================================================= */

.cta {
  position: relative;
  overflow: hidden;
  padding: 66px 40px;
  border: 1px solid rgba(0, 255, 157, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% -20%, rgba(0, 255, 157, 0.16), transparent 70%),
    linear-gradient(170deg, rgba(13, 25, 42, 0.9), rgba(5, 10, 18, 0.95));
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(125, 190, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 190, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent);
  pointer-events: none;
}

.cta > * { position: relative; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p { max-width: 560px; margin: 16px auto 0; color: var(--muted); line-height: 1.95; }

.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.cta-mono {
  margin-top: 26px;
  font: 500 11px/1.6 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.14em;
}

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(3, 7, 12, 0.9));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 54px 0 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  max-width: 280px;
}

.footer-col h4 {
  font: 600 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a, .footer-col span {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover { color: var(--neon); }
.footer-col svg { width: 14px; height: 14px; opacity: 0.7; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line-soft);
  font: 400 11.5px/1.6 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

.footer-bottom .dot { color: var(--neon); margin: 0 6px; }

/* =========================================================
   通用页面头
   ========================================================= */

.page-head {
  position: relative;
  padding: 62px 0 42px;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 460px;
  background: radial-gradient(ellipse, rgba(0, 255, 157, 0.09), transparent 65%);
  pointer-events: none;
}

.page-head-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 14px 0 10px;
}

.page-head p { max-width: 620px; color: var(--muted); font-size: 14.5px; line-height: 1.9; }

.page-head-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   统计卡
   ========================================================= */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(16, 27, 46, 0.6), rgba(6, 11, 20, 0.68));
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.stat-card:hover { border-color: rgba(0, 255, 157, 0.28); transform: translateY(-3px); }

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.stat-label svg { width: 14px; height: 14px; color: var(--neon); opacity: 0.8; }

.stat-value {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.stat-sub { margin-top: 9px; font-size: 12px; color: var(--dim); }

.stat-sub .up { color: var(--neon); }

/* =========================================================
   工具栏
   ========================================================= */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 9, 17, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input::placeholder { color: var(--dim); }

.search-box input:focus {
  outline: none;
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.08);
}

.select-wrap select {
  padding: 10px 34px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: rgba(4, 9, 17, 0.65);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-wrap select:focus { outline: none; border-color: rgba(0, 255, 157, 0.45); }

.toolbar .spacer { flex: 1; }

.result-info {
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-left: 4px;
}

.result-info b { color: var(--neon); font-weight: 600; }

/* =========================================================
   数据表格
   ========================================================= */

.table-wrap {
  overflow-x: auto;
  padding: 4px 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table thead th {
  padding: 16px 20px;
  text-align: left;
  font: 600 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(0, 255, 157, 0.028); }
.data-table tbody tr:last-child td { border-bottom: none; }

.member-cell { display: flex; align-items: center; gap: 12px; min-width: 150px; }

.member-meta { display: flex; flex-direction: column; line-height: 1.35; }
.member-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.member-name .you {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.3);
  color: var(--neon);
  font: 600 9px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
}
.member-direction { font: 400 11px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.03em; }

.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--neon); border-color: rgba(0, 255, 157, 0.4); background: rgba(0, 255, 157, 0.07); }
.icon-btn--danger:hover { color: var(--danger); border-color: rgba(255, 93, 115, 0.45); background: rgba(255, 93, 115, 0.08); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--dim);
}

.empty-state svg { width: 40px; height: 40px; margin: 0 auto 14px; opacity: 0.5; }
.empty-state p { font-size: 13.5px; }
.empty-state .btn { margin-top: 18px; }

/* =========================================================
   课程模块
   ========================================================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 30, 0.5);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover { color: var(--text); border-color: rgba(125, 190, 255, 0.3); }

.tab.active {
  color: #02120a;
  border-color: transparent;
  background: linear-gradient(120deg, var(--neon), var(--cyan));
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 255, 157, 0.22);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(16, 27, 46, 0.62), rgba(6, 11, 20, 0.72));
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.course-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.course-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 157, 0.22);
  background: linear-gradient(140deg, rgba(0, 255, 157, 0.14), rgba(43, 226, 255, 0.05));
  color: var(--neon);
}

.course-icon svg { width: 22px; height: 22px; }

.course-icon[data-accent="cyan"] {
  border-color: rgba(43, 226, 255, 0.24);
  background: linear-gradient(140deg, rgba(43, 226, 255, 0.14), rgba(43, 226, 255, 0.04));
  color: var(--cyan);
}

.course-icon[data-accent="violet"] {
  border-color: rgba(139, 92, 246, 0.26);
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.04));
  color: #b79cff;
}

.course-icon[data-accent="warn"] {
  border-color: rgba(255, 176, 32, 0.24);
  background: linear-gradient(140deg, rgba(255, 176, 32, 0.14), rgba(255, 176, 32, 0.04));
  color: var(--warn);
}

.course-levels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.course-card h3 { margin-top: 18px; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }

.course-category {
  margin-top: 6px;
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.13em;
  color: var(--dim);
  text-transform: uppercase;
}

.course-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  font: 500 11px/1.4 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 13px; height: 13px; opacity: 0.8; }

.progress {
  height: 6px;
  border-radius: 6px;
  background: rgba(125, 190, 255, 0.1);
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.45);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 500 10.5px/1.4 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

.progress-meta .pct { color: var(--neon); }

.course-actions { margin-top: 18px; }

.course-actions .btn { width: 100%; }

/* 课程详情弹窗 */
.course-modal-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.course-modal-head .course-icon { flex-shrink: 0; }
.course-modal-head h3 { font-size: 19px; font-weight: 700; line-height: 1.4; }
.course-modal-head .course-category { margin-top: 5px; }
.course-modal-desc { margin: 18px 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

.chapter-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }

.chapter-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(8, 14, 25, 0.55);
  transition: border-color 0.2s, background 0.2s;
}

.chapter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.chapter-item:hover { border-color: rgba(0, 255, 157, 0.25); background: rgba(0, 255, 157, 0.04); }

.chapter-item.done { border-color: rgba(0, 255, 157, 0.22); background: rgba(0, 255, 157, 0.05); }

.chapter-item.is-next { border-color: rgba(43, 226, 255, 0.34); background: rgba(43, 226, 255, 0.06); }

.chapter-item.is-next .chapter-title { color: var(--cyan); }

.chapter-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 190, 255, 0.3);
  border-radius: 6px;
  color: transparent;
  transition: all 0.2s;
}

.chapter-check svg { width: 12px; height: 12px; }

.chapter-item.done .chapter-check {
  border-color: var(--neon);
  background: var(--neon);
  color: #03110b;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
}

.chapter-idx { font: 500 10.5px/1 var(--font-mono); color: var(--dim); width: 22px; letter-spacing: 0.04em; }

.chapter-title { font-size: 13px; color: var(--text); flex: 1; min-width: 0; }
.chapter-item.done .chapter-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139, 162, 186, 0.5); }

.chapter-next {
  flex-shrink: 0;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(43, 226, 255, 0.32);
  border-radius: 999px;
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(43, 226, 255, 0.08);
}

.chapter-points {
  margin: 10px 0 0 44px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chapter-points li {
  position: relative;
  padding-left: 13px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.chapter-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.5);
}

.chapter-item.done .chapter-points li { color: var(--dim); }

.chapter-resource {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0 44px;
  padding: 5px 10px;
  border: 1px solid rgba(43, 226, 255, 0.22);
  border-radius: 999px;
  background: rgba(43, 226, 255, 0.06);
  font-size: 11.5px;
  color: var(--cyan);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.chapter-resource:hover {
  border-color: rgba(43, 226, 255, 0.42);
  background: rgba(43, 226, 255, 0.12);
}

.chapter-resource svg { width: 12px; height: 12px; }

.chapter-next-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.chapter-next-action .btn { max-width: 100%; }
.chapter-next-action .btn svg { flex-shrink: 0; }

.sync-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--dim);
}

.sync-hint svg { width: 12px; height: 12px; }

@media (max-width: 560px) {
  .chapter-points,
  .chapter-resource { margin-left: 0; }
}

.chapter-progress { margin-top: 18px; }

/* =========================================================
   签到模块
   ========================================================= */

.checkin-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}

.checkin-col { display: flex; flex-direction: column; gap: 20px; }

.today-card {
  position: relative;
  padding: 28px 30px;
  overflow: hidden;
}

.today-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.14), transparent 68%);
  pointer-events: none;
}

.today-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.today-date {
  font: 500 11.5px/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.today-title { margin-top: 10px; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.today-title .hl { color: var(--neon); }
.today-sub { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

.checkin-btn {
  min-width: 180px;
  padding: 16px 26px;
  font-size: 15px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
}

.checkin-btn.is-success {
  color: var(--neon);
  border-color: rgba(0, 255, 157, 0.4);
  background: rgba(0, 255, 157, 0.09);
  box-shadow: inset 0 0 30px rgba(0, 255, 157, 0.06);
  cursor: default;
}

.checkin-btn.is-success[disabled] { opacity: 1; cursor: default; }

.checkin-btn.is-success::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.25), transparent 60%);
  animation: successFlash 0.9s ease-out forwards;
}

@keyframes successFlash {
  from { opacity: 1; transform: scale(0.6); }
  to { opacity: 0; transform: scale(1.6); }
}

.today-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.metric { text-align: left; }
.metric .m-val { font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.metric .m-val small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.metric .m-label { margin-top: 6px; font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.metric .m-label svg { width: 12px; height: 12px; }
.metric--neon .m-val { color: var(--neon); }
.metric--cyan .m-val { color: var(--cyan); }
.metric--violet .m-val { color: #b79cff; }

.week-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-soft);
}

.week-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }

.week-bar .bar {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: rgba(125, 190, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.week-bar .bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: linear-gradient(180deg, var(--neon), rgba(0, 255, 157, 0.35));
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.week-bar.on .bar::after { height: 100%; }
.week-bar.on .bar { border-color: rgba(0, 255, 157, 0.35); box-shadow: 0 0 14px rgba(0, 255, 157, 0.12); }
.week-bar.today .bar { outline: 1px solid rgba(0, 255, 157, 0.5); outline-offset: 2px; }
.week-bar .d { font: 500 10px/1 var(--font-mono); color: var(--dim); letter-spacing: 0.04em; }
.week-bar.today .d { color: var(--neon); }

/* 日历 */
.calendar-card { padding: 22px 24px 24px; }

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-month {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.calendar-month small { font: 500 10.5px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.14em; }

.cal-nav { display: flex; gap: 8px; }

.calendar-week, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-week span {
  padding: 6px 0;
  text-align: center;
  font: 600 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 500 12.5px/1 var(--font-mono);
  color: var(--muted);
  background: rgba(125, 190, 255, 0.03);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cal-day.is-other { opacity: 0.28; }
.cal-day.is-future { opacity: 0.35; }
.cal-day.is-checked {
  color: #03110b;
  background: linear-gradient(135deg, var(--neon), #45ffc8);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 255, 157, 0.25);
}

.cal-day.is-checked::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(3, 17, 11, 0.55);
}

.cal-day.is-today { border-color: var(--neon); box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.3), inset 0 0 10px rgba(0, 255, 157, 0.08); color: var(--text); }
.cal-day.is-today.is-checked { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--neon); }

.calendar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  font: 500 11px/1.5 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.04em;
}

.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .lg-checked { background: linear-gradient(135deg, var(--neon), #45ffc8); }
.legend .lg-today { border: 1px solid var(--neon); background: transparent; }
.legend .lg-none { background: rgba(125, 190, 255, 0.08); border: 1px solid var(--line-soft); }

/* 排行榜 */
.rank-card { padding: 24px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-head h3 svg { width: 16px; height: 16px; color: var(--neon); }
.card-head .hint { font: 500 10.5px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.08em; }

.rank-list { display: flex; flex-direction: column; gap: 6px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.rank-row:hover { background: rgba(125, 190, 255, 0.04); }

.rank-row.is-me { border-color: rgba(0, 255, 157, 0.24); background: rgba(0, 255, 157, 0.045); }

.rank-no {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  font: 700 12px/1 var(--font-mono);
  color: var(--dim);
}

.rank-row:nth-child(1) .rank-no { color: #ffd45e; }
.rank-row:nth-child(2) .rank-no { color: #c8d6e5; }
.rank-row:nth-child(3) .rank-no { color: #e59a5c; }

.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rank-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rank-name .you { font: 600 9px/1.5 var(--font-mono); color: var(--neon); }
.rank-dept { font: 400 10.5px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.04em; }
.rank-days { font: 600 12.5px/1 var(--font-mono); color: var(--muted); }
.rank-days small { font-size: 9.5px; color: var(--dim); font-weight: 400; margin-left: 2px; }

/* 打卡记录 */
.records-card { padding: 24px; }

.record-list { display: flex; flex-direction: column; max-height: 330px; overflow-y: auto; }

.record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line-soft);
}

.record-row:last-child { border-bottom: none; }

.record-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(0, 255, 157, 0.24);
  background: rgba(0, 255, 157, 0.08);
  color: var(--neon);
}

.record-icon svg { width: 14px; height: 14px; }

.record-main { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.record-date { font-size: 12.5px; font-weight: 500; }
.record-week { font: 400 10.5px/1.4 var(--font-mono); color: var(--dim); }
.record-time { font: 500 11px/1.4 var(--font-mono); color: var(--muted); letter-spacing: 0.04em; }

/* =========================================================
   弹窗
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, #0c1626, #060c16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 255, 157, 0.05);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.is-open .modal { transform: none; }

.modal--wide { width: min(640px, 100%); }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-head p { margin-top: 5px; font-size: 12px; color: var(--dim); font-family: var(--font-mono); letter-spacing: 0.05em; }

.modal-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.modal-close svg { width: 15px; height: 15px; }
.modal-close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }

.modal-body { padding: 24px 26px; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line-soft);
}

.confirm-body { padding: 26px; }
.confirm-body p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.confirm-body p strong { color: var(--text); }

.confirm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 26px 24px; }

/* =========================================================
   Toast
   ========================================================= */

.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 250px;
  max-width: 340px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--neon);
  border-radius: 11px;
  background: rgba(9, 16, 28, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: auto;
}

.toast.is-out { animation: toastOut 0.3s forwards; }

.toast svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--neon); }

.toast--info { border-left-color: var(--cyan); }
.toast--info svg { color: var(--cyan); }
.toast--warn { border-left-color: var(--warn); }
.toast--warn svg { color: var(--warn); }
.toast--error { border-left-color: var(--danger); }
.toast--error svg { color: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 58px; }
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 560px; }
  .terminal { transform: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .checkin-layout { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 89;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px 4vw 20px;
    background: rgba(4, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav a { padding: 12px 14px; font-size: 14.5px; }
  .nav a.active::after { left: 14px; right: auto; width: 3px; height: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right { margin-left: auto; gap: 10px; }
  .current-user-meta { display: none; }
  .current-user { padding: 4px; border-radius: 50%; }
  .header-inner { gap: 16px; }
  .section { padding: 70px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px 20px; }
  .stat-value { font-size: 27px; }
  .honor-row { grid-template-columns: 72px 1fr auto; gap: 14px; }
  .honor-team { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 38px 0 72px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 25px; }
  .chip-float { display: none; }
  .term-body { min-height: 280px; padding: 18px; font-size: 11.5px; }
  .dir-grid { grid-template-columns: 1fr; }
  .activity-main { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .page-head { padding: 42px 0 30px; }
  .toolbar { padding: 12px; gap: 10px; }
  .toolbar .spacer { display: none; }
  .toolbar .btn { width: 100%; }
  .today-card { padding: 22px; }
  .today-head { flex-direction: column; }
  .checkin-btn { width: 100%; }
  .today-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric .m-val { font-size: 20px; }
  .cta { padding: 46px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .toast-stack { left: 16px; right: 16px; top: calc(var(--header-h) + 10px); }
  .toast { min-width: 0; max-width: none; width: 100%; }
  .modal-overlay { padding: 14px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }

  /* 表格转卡片 */
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 13px;
    margin-bottom: 12px;
    padding: 6px 0;
    background: rgba(10, 18, 32, 0.4);
  }
  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 18px;
    border-bottom: 1px dashed var(--line-soft);
    text-align: right;
  }
  .data-table tbody tr td:last-child { border-bottom: none; }
  .data-table tbody td::before {
    content: attr(data-label);
    font: 600 10.5px/1.4 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    flex-shrink: 0;
  }
  .data-table tbody td[data-label="成员"] { justify-content: flex-start; text-align: left; }
  .data-table tbody td[data-label="成员"]::before { display: none; }
  .data-table tbody td[data-label="操作"] { justify-content: flex-end; }
  .data-table tbody td[data-label="操作"]::before { display: none; }
  .row-actions { justify-content: flex-end; }
}

/* =========================================================
   登录页 / 账号状态
   ========================================================= */

.user-slot { display: flex; align-items: center; }

.logout-btn {
  width: 28px;
  height: 28px;
  margin-left: 2px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.logout-btn svg { width: 14px; height: 14px; }
.logout-btn:hover { color: var(--danger); background: rgba(255, 93, 115, 0.12); }

.login-link { padding: 8px 16px; }

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -140px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.1), transparent 65%);
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -220px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 226, 255, 0.07), transparent 66%);
  pointer-events: none;
}

.auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.auth-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 30px 0 70px;
}

.auth-side { max-width: 560px; }

.auth-title {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.auth-title .grad {
  background: linear-gradient(100deg, var(--neon) 5%, #5cffd0 40%, var(--cyan) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 157, 0.16));
}

.auth-desc {
  max-width: 500px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(10, 18, 32, 0.42);
  transition: border-color 0.25s, background 0.25s;
}

.auth-points li:hover { border-color: rgba(0, 255, 157, 0.24); background: rgba(0, 255, 157, 0.035); }

.ap-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  background: rgba(0, 255, 157, 0.08);
  color: var(--neon);
}

.ap-icon svg { width: 16px; height: 16px; }

.auth-points strong { display: block; font-size: 13.5px; font-weight: 600; }
.auth-points p { margin-top: 2px; color: var(--dim); font-size: 12px; line-height: 1.65; }

.auth-mono {
  margin-top: 26px;
  font: 500 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.auth-panel {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 32px;
}

.auth-panel-head h2 { margin-top: 15px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.auth-panel-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.06);
  color: var(--neon);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
}

.auth-error {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 93, 115, 0.32);
  border-radius: 10px;
  background: rgba(255, 93, 115, 0.08);
  color: #ff8b9c;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-error.is-visible { display: flex; }
.auth-error svg { width: 15px; height: 15px; flex-shrink: 0; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.auth-submit { margin-top: 4px; padding: 13px 20px; }

.auth-demo {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-soft);
}

.auth-demo-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.auth-demo-title svg { width: 14px; height: 14px; color: var(--neon); }

.demo-account {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(8, 14, 25, 0.5);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.demo-account:hover { border-color: rgba(0, 255, 157, 0.3); background: rgba(0, 255, 157, 0.05); }

.demo-who { display: flex; align-items: center; gap: 10px; }
.demo-who strong { display: block; font-size: 12.5px; font-weight: 600; }
.demo-who small { display: block; font: 400 10px/1.5 var(--font-mono); color: var(--dim); }
.demo-cred { font: 500 10.5px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.02em; }

.auth-note { margin-top: 12px; color: var(--dim); font-size: 11.5px; line-height: 1.75; }

.auth-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 255, 157, 0.09);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
}

.auth-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line-soft);
  font: 400 11px/1.6 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.05em;
}

.auth-footer .dot { color: var(--neon); margin: 0 6px; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; gap: 38px; padding: 20px 0 60px; }
  .auth-panel { max-width: 520px; justify-self: start; }
  .auth-points { display: none; }
  .auth-mono { display: none; }
}

@media (max-width: 880px) {
  .current-user { padding: 3px 6px 3px 3px; border-radius: 999px; }
  .nav-right { gap: 8px; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 24px 20px; }
  .auth-title { font-size: 36px; }
  .auth-topbar { padding: 16px 0; }
  .auth-topbar .brand-sub { display: none; }
  .demo-cred { display: none; }
  .auth-footer { justify-content: center; text-align: center; }
}

/* ---------- 登录/注册切换 ---------- */
.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim, #8b9bb4);
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--neon, #00ff9d);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.auth-switch-btn:hover { text-decoration: underline; }

.auth-switch-link {
  color: var(--neon, #00ff9d);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.auth-switch-link:hover { text-decoration: underline; }

/* ---------- 多选部门 ---------- */
.dept-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft, rgba(255,255,255,.1));
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s;
}

.dept-check:hover { border-color: rgba(0, 255, 157, .3); }

.dept-check input { accent-color: var(--neon, #00ff9d); cursor: pointer; }

.dept-check:has(input:checked) {
  border-color: rgba(0, 255, 157, .45);
  background: rgba(0, 255, 157, .08);
}

.dept-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.auth-form select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: inherit;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
.auth-form select:focus { border-color: var(--neon, #00ff9d); }

/* =========================================================
   荣誉展示 · 证书展示
   ========================================================= */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.honor-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.72), rgba(7, 13, 24, 0.6));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.honor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 32, 0.32);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.honor-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.honor-cert-wrap {
  position: relative;
  padding: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 176, 32, 0.08), transparent 72%);
}

.honor-zoom {
  position: absolute;
  inset: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 4px;
  background: rgba(4, 7, 13, 0.52);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(1.5px);
}

.honor-zoom svg { width: 14px; height: 14px; }
.honor-card:hover .honor-zoom { opacity: 1; }

/* 证书版面 */
.cert-sheet {
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  padding: 1.8cqw;
  border-radius: 5px;
  background: linear-gradient(135deg, #d9bf7c 0%, #b8934a 16%, #e8d29a 42%, #c8a75c 62%, #b8934a 84%, #dcc17e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 26px rgba(0, 0, 0, 0.38);
}

.cert-sheet-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5cqw 6.5cqw 4cqw;
  border: 1px solid rgba(184, 148, 74, 0.55);
  background:
    repeating-linear-gradient(45deg, rgba(196, 160, 78, 0.05) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(196, 160, 78, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #fefdf8, #fbf7ea);
  overflow: hidden;
}

.cert-ornament {
  position: absolute;
  width: 11cqw;
  height: 11cqw;
  border: 0.55cqw solid rgba(184, 148, 74, 0.42);
  pointer-events: none;
}

.cert-ornament::before {
  content: '❦';
  position: absolute;
  font-size: 5.2cqw;
  line-height: 1;
  color: rgba(184, 148, 74, 0.5);
}

.cert-ornament--tl { top: 1.6cqw; left: 1.6cqw; border-right: none; border-bottom: none; border-radius: 9cqw 0 0 0; }
.cert-ornament--tl::before { top: 0.9cqw; left: 0.9cqw; }
.cert-ornament--tr { top: 1.6cqw; right: 1.6cqw; border-left: none; border-bottom: none; border-radius: 0 9cqw 0 0; }
.cert-ornament--tr::before { top: 0.9cqw; right: 0.9cqw; transform: scaleX(-1); }
.cert-ornament--bl { bottom: 1.6cqw; left: 1.6cqw; border-right: none; border-top: none; border-radius: 0 0 0 9cqw; }
.cert-ornament--bl::before { bottom: 0.9cqw; left: 0.9cqw; transform: scaleY(-1); }
.cert-ornament--br { bottom: 1.6cqw; right: 1.6cqw; border-left: none; border-top: none; border-radius: 0 0 9cqw 0; }
.cert-ornament--br::before { bottom: 0.9cqw; right: 0.9cqw; transform: scale(-1); }

.cert-title {
  margin-top: 1.2cqw;
  font-family: var(--font-body);
  font-size: 8.2cqw;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  line-height: 1.15;
  color: #b8934a;
  text-shadow: 0 0.15cqw 0 rgba(255, 255, 255, 0.65);
}

.cert-divider {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  width: 42%;
  margin: 1.2cqw 0 3.2cqw;
  color: #b8934a;
}

.cert-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 148, 74, 0.65), transparent); }
.cert-divider i { font-style: normal; font-size: 2.8cqw; line-height: 1; }

.cert-name {
  width: 100%;
  padding-left: 4%;
  text-align: left;
  font-size: 3.3cqw;
  color: #3c3323;
  letter-spacing: 0.04em;
}

.cert-name b {
  display: inline-block;
  margin-right: 0.6cqw;
  padding-bottom: 0.3cqw;
  border-bottom: 1px solid #8a6f33;
  font-weight: 700;
}

.cert-text {
  width: 100%;
  margin: 3.2cqw 0 0;
  padding: 0 2%;
  font-size: 2.75cqw;
  line-height: 2.15;
  color: #3c3323;
  text-align: justify;
  letter-spacing: 0.02em;
}

.cert-text strong {
  margin-left: 0.5cqw;
  color: #c01f1f;
  font-size: 3.6cqw;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cert-text--tail { margin-top: 4.4cqw; }

.cert-bottom {
  width: 100%;
  margin-top: auto;
  padding: 0 3% 1.2cqw 42%;
  text-align: right;
  font-size: 2.35cqw;
  line-height: 1.9;
  color: #3c3323;
}

.cert-issuer { font-weight: 600; }
.cert-date { font-family: var(--font-mono); }

.cert-seal {
  position: absolute;
  right: 9cqw;
  bottom: 8.5cqw;
  width: 14.5cqw;
  height: 14.5cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3cqw;
  border: 0.5cqw solid rgba(200, 32, 32, 0.72);
  border-radius: 50%;
  color: rgba(200, 32, 32, 0.85);
  transform: rotate(-9deg);
  opacity: 0.88;
}

.cert-seal::before {
  content: '';
  position: absolute;
  inset: 0.9cqw;
  border: 0.18cqw solid rgba(200, 32, 32, 0.5);
  border-radius: 50%;
}

.cert-seal-star { font-size: 3.4cqw; line-height: 1; }
.cert-seal-text { font-size: 1.5cqw; line-height: 1.25; text-align: center; letter-spacing: 0.04em; }

.cert-watermark {
  position: absolute;
  right: 5cqw;
  bottom: 1.6cqw;
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  font-size: 1.9cqw;
  color: rgba(90, 90, 90, 0.55);
  letter-spacing: 0.03em;
}

.cert-watermark svg { width: 2.6cqw; height: 2.6cqw; }

/* 卡片信息 */
.honor-card-meta { padding: 15px 18px 18px; border-top: 1px solid var(--line-soft); }

.honor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.honor-card-date { font: 500 11px/1 var(--font-mono); color: var(--dim); letter-spacing: 0.04em; }
.honor-card-meta h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.honor-card-meta p { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.honor-card-issuer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font: 500 10.5px/1.4 var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.03em;
}

.honor-card-issuer svg { width: 12px; height: 12px; color: var(--warn); }

.honor-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
}

.honor-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* 证书弹窗 */
.modal--honor { width: min(880px, 100%); }
.honor-modal-stage { padding: 4px 0 18px; }
.honor-modal-stage .cert-sheet { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }

.honor-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.honor-meta-row { display: flex; flex-direction: column; gap: 3px; }
.honor-meta-row span { font: 500 10.5px/1.4 var(--font-mono); color: var(--dim); letter-spacing: 0.05em; }
.honor-meta-row b { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text); }
.honor-meta-row b.is-award { color: var(--warn); }

.honor-modal-foot { align-items: center; justify-content: space-between; }
.honor-counter { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.08em; }
.honor-modal-foot .btn svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .honor-grid { grid-template-columns: 1fr; }
  .honor-modal-meta { grid-template-columns: 1fr; }
  .cert-name { font-size: 3.6cqw; }
  .cert-text { font-size: 3cqw; }
  .cert-bottom { font-size: 2.6cqw; }
}

.honor-meta-row b.is-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* NISP 证书版面 */
.cert-sheet--nisp {
  padding: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(80, 140, 200, 0.25), 0 10px 26px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.nisp-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4.2cqw 6.5cqw 4cqw;
  background:
    repeating-linear-gradient(112deg, rgba(96, 160, 220, 0.05) 0 1px, transparent 1px 10px),
    radial-gradient(ellipse at 100% 20%, rgba(86, 158, 224, 0.18), transparent 52%),
    radial-gradient(ellipse at 100% 85%, rgba(86, 158, 224, 0.12), transparent 58%),
    linear-gradient(160deg, #ffffff, #f7fbff);
  overflow: hidden;
}

.nisp-top { display: flex; align-items: center; gap: 1.8cqw; }

.nisp-logo {
  width: 8.2cqw;
  height: 8.2cqw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4a9bdd, #0b4f9e 65%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.1cqw;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.22);
}

.nisp-brand { display: flex; flex-direction: column; gap: 0.5cqw; }
.nisp-brand b { font-size: 3.1cqw; color: #0b4f9e; letter-spacing: 0.02em; line-height: 1.2; }
.nisp-brand small { font-size: 1.65cqw; color: #4a6b8a; letter-spacing: 0.02em; }

.nisp-rule {
  width: 31%;
  height: 0.5cqw;
  margin: 2.6cqw 0 3.4cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, #0b4f9e, #5aa6dd 70%, transparent);
}

.nisp-fields {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  width: 62%;
}

.nisp-field { display: flex; align-items: baseline; gap: 2cqw; font-size: 2.9cqw; color: #1b2b3a; }
.nisp-field span { flex: 0 0 22%; color: #2c3e50; letter-spacing: 0.18em; }
.nisp-field span::after { content: '：'; }
.nisp-field b { font-weight: 500; letter-spacing: 0.03em; }

.nisp-mark {
  position: absolute;
  top: 16cqw;
  right: 6cqw;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 27cqw;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(116, 164, 208, 0.22);
  pointer-events: none;
}

.nisp-mark::before {
  content: '';
  position: absolute;
  inset: -6cqw;
  border: 0.6cqw solid rgba(116, 164, 208, 0.16);
  border-radius: 50%;
}

.nisp-split {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  width: 100%;
  margin: 2.4cqw 0 2.2cqw;
  color: #2f6fae;
}

.nisp-split span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(47, 111, 174, 0.5), transparent); }
.nisp-split i { font-style: normal; font-size: 2.6cqw; }

.nisp-copy { position: relative; z-index: 2; width: 66%; }
.nisp-copy h4 { margin: 0; font-size: 3.2cqw; font-weight: 700; letter-spacing: 0.02em; color: #0b4f9e; }
.nisp-copy small { display: block; margin-top: 0.5cqw; font-size: 1.6cqw; color: #4a6b8a; }
.nisp-copy p { margin: 1.6cqw 0 0; font-size: 1.85cqw; line-height: 1.8; color: #33475b; text-align: justify; }

.nisp-sign {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 16cqw 1cqw 0;
  align-self: flex-end;
  font-size: 2.15cqw;
  color: #22384c;
  letter-spacing: 0.03em;
}

.nisp-watermark {
  position: absolute;
  right: 4.5cqw;
  bottom: 1.6cqw;
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  font-size: 1.75cqw;
  color: rgba(80, 90, 100, 0.55);
}

.nisp-watermark svg { width: 2.4cqw; height: 2.4cqw; }

.honor-card-meta h3.is-multi { font-size: 13.5px; letter-spacing: 0; }
.chapter-row[aria-disabled="true"] { cursor: default; }

/* 金砖大赛证书版面 */
.cert-sheet--brics {
  padding: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 200, 0.4), 0 10px 26px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.brics-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3.2cqw 4.6cqw 4.2cqw;
  background:
    radial-gradient(circle at 6% 3%, rgba(244, 180, 120, 0.16), transparent 20%),
    radial-gradient(circle at 94% 4%, rgba(120, 200, 230, 0.18), transparent 22%),
    radial-gradient(circle at 98% 52%, rgba(160, 210, 230, 0.15), transparent 24%),
    #fff;
  overflow: hidden;
}

.brics-logos { display: flex; align-items: center; justify-content: center; gap: 13cqw; height: 6.4cqw; }

.brics-logo--biz { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brics-logo--biz b { font-family: var(--font-display); font-size: 2.3cqw; color: #e07b23; letter-spacing: 0.07em; }
.brics-logo--biz small { margin-top: 0.35cqw; font-size: 0.82cqw; color: #5b6a78; letter-spacing: 0.09em; }

.brics-logo--emblem {
  width: 5.6cqw;
  height: 5.6cqw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#28a7c9, #38b48a, #f2c14e, #e86a5a, #28a7c9);
}

.brics-logo--emblem i {
  width: 3.7cqw;
  height: 3.7cqw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1c8fb0;
  font-style: normal;
  font-size: 2cqw;
}

.brics-logo--knot {
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 50%;
  border: 0.35cqw solid #1f6fae;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f6fae;
  font-size: 2.6cqw;
}

.brics-rule {
  height: 0.3cqw;
  margin: 1.2cqw 0 1.6cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, #e8a02c, #6cbf5a 28%, #38b6d9 52%, #7b5bd6 76%, #e05f4f);
}

.brics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2cqw; }

.brics-en-title {
  font-family: var(--font-display);
  font-size: 4.2cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #17529b;
}

.brics-en-title em { font-style: normal; color: #66b6d9; }

.brics-cn-title {
  margin-top: 0.7cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #17529b;
}

.brics-certno {
  padding-top: 1.9cqw;
  font-size: 1.28cqw;
  line-height: 1.75;
  color: #222;
  white-space: nowrap;
}

.brics-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  margin-top: 1.2cqw;
  color: #17529b;
}

.brics-year { font-family: var(--font-display); font-size: 4.1cqw; font-weight: 700; line-height: 1; }
.brics-event-title { font-size: 2.4cqw; font-weight: 700; letter-spacing: 0.02em; }

.brics-event-en {
  margin-top: 0.45cqw;
  text-align: center;
  font-size: 1.02cqw;
  letter-spacing: 0.01em;
  color: #333;
}

.brics-certify { margin-top: 1.5cqw; text-align: center; font-size: 1.45cqw; color: #333; }

.brics-line { text-align: center; font-size: 1.55cqw; line-height: 2; color: #111; }
.brics-line u { text-decoration: none; border-bottom: 1px solid rgba(20, 20, 20, 0.65); padding: 0 0.45cqw; }
.brics-paren { font-size: 1.4cqw; }

.brics-dash { margin: 1cqw 3.5cqw 1.1cqw; border-top: 1px dashed #8fa3b5; }

.brics-cn .brics-line { font-size: 1.55cqw; line-height: 1.95; }
.brics-cn .brics-line b { font-size: 1.95cqw; letter-spacing: 0.06em; color: #c0392b; }

.brics-tail { margin-top: 0.7cqw; text-align: center; font-size: 1.5cqw; letter-spacing: 0.12em; color: #222; }

.brics-wm {
  position: absolute;
  left: 9cqw;
  top: 54%;
  font-family: var(--font-display);
  font-size: 9.5cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(40, 60, 80, 0.055);
  pointer-events: none;
}

.brics-seals { position: absolute; right: 7cqw; bottom: 5.5cqw; display: flex; align-items: center; }

.brics-seal {
  width: 9.4cqw;
  height: 9.4cqw;
  border-radius: 50%;
  border: 0.42cqw solid rgba(190, 40, 40, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8cqw;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: rgba(190, 40, 40, 0.85);
  transform: rotate(-14deg);
}

.brics-seal--alt { margin-left: -2.2cqw; transform: rotate(10deg); }
.brics-seal-star { font-size: 2cqw; line-height: 1; margin-bottom: 0.2cqw; }

.brics-watermark {
  position: absolute;
  right: 8cqw;
  bottom: 1.4cqw;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  font-size: 1.5cqw;
  color: rgba(80, 90, 100, 0.55);
}

.brics-watermark svg { width: 2.1cqw; height: 2.1cqw; }

.brics-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.1cqw;
  background: linear-gradient(90deg, #e05f4f, #e8a02c, #f0cf4a, #5cb85c, #3b9bd8, #7b5bd6);
}

/* =========================================================
   邀请码模块
   ========================================================= */
.field-req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(0, 255, 157, 0.32);
  background: rgba(0, 255, 157, 0.1);
  color: var(--neon);
  font: 600 10px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
}

.field-hint {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

.invite-input {
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}

.invite-hero {
  padding: 26px 28px;
  margin-bottom: 18px;
}

.invite-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.invite-hero-label svg { width: 18px; height: 18px; color: var(--neon); }

.invite-code-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 22px;
}

.invite-code {
  padding: 4px 0;
  color: var(--neon);
  font: 600 clamp(26px, 4vw, 40px)/1.2 var(--font-mono);
  letter-spacing: 0.18em;
  text-shadow: 0 0 26px rgba(0, 255, 157, 0.3);
}

.invite-code--sm {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.invite-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.invite-meta span {
  display: block;
  color: var(--dim);
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.invite-meta b {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.invite-info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.invite-info h3,
.invite-beta h3,
.invite-table-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}

.invite-info h3 svg,
.invite-beta h3 svg,
.invite-table-head h3 svg {
  width: 17px;
  height: 17px;
  color: var(--neon);
}

.invite-info ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

.invite-info li::marker { color: var(--neon); }

.invite-beta p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.invite-beta .invite-code-line { margin: 14px 0 0; }

.invite-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 16px;
}

@media (max-width: 900px) {
  .invite-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .invite-hero { padding: 20px 18px; }
  .invite-code { font-size: 24px; letter-spacing: 0.12em; }
  .invite-code-line { gap: 12px; }
}

/* =========================================================
   首页底部滚动方向指示
   ========================================================= */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  transform: translateX(-50%);
  text-decoration: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  inset: 18px 0 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 157, 0.12), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  pointer-events: none;
}

.scroll-cue-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(0, 255, 157, 0.5);
  border-radius: 12px;
  background: rgba(5, 9, 15, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.14), inset 0 0 10px rgba(0, 255, 157, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.scroll-cue-mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.8);
  animation: cue-wheel 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.scroll-cue-mouse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(0, 255, 157, 0.22);
  border-radius: 20px;
  animation: cue-ring 2.6s ease-out infinite;
}

.scroll-cue-text {
  color: var(--dim);
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  transition: color 0.25s;
}

.scroll-cue-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -3px;
}

.scroll-cue-arrows svg {
  width: 15px;
  height: 15px;
  color: var(--neon);
  opacity: 0.3;
  animation: cue-arrow 1.9s ease-in-out infinite;
}

.scroll-cue-arrows svg + svg {
  margin-top: -8px;
  animation-delay: 0.16s;
}

.scroll-cue:hover .scroll-cue-text { color: var(--neon); }
.scroll-cue:hover .scroll-cue-mouse {
  border-color: var(--neon);
  box-shadow: 0 0 26px rgba(0, 255, 157, 0.28), inset 0 0 12px rgba(0, 255, 157, 0.12);
}

@keyframes cue-wheel {
  0% { opacity: 0; transform: translateY(0); }
  22% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes cue-ring {
  0% { opacity: 0.55; transform: scale(0.9); }
  60% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes cue-arrow {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-mouse::before,
  .scroll-cue-mouse::after,
  .scroll-cue-arrows svg { animation: none; }
  .scroll-cue-mouse::before { top: 9px; opacity: 0.9; }
  .scroll-cue-mouse::after { opacity: 0; }
}

@media (max-width: 560px) {
  .scroll-cue { bottom: max(12px, env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .scroll-cue-text { display: none; }
}
