/* ========================================
   心理测评系统 — CyberMind 科技感主题
   ======================================== */

:root {
  /* 暗色基底 */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);

  /* 霓虹色 */
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #34d399;
  --accent-orange: #fb923c;
  --accent-red: #f87171;

  /* 文字 */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* 边框 */
  --border-color: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(34, 211, 238, 0.25);

  /* 尺寸 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 动画 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ 基础重置 ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(59,130,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 70%, rgba(168,85,247,0.06) 0%, transparent 70%),
    radial-gradient(circle 300px at 50% 50%, rgba(34,211,238,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============ 导航栏 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 24px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.nav-brand i {
  -webkit-text-fill-color: initial;
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 450;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.92rem;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--border-glow);
}

.nav-auth { display: flex; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-primary); }

/* ============ 按钮 ============ */
.btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  box-shadow: 0 2px 12px rgba(59,130,246,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--border-glow);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--accent-green));
  color: white;
  box-shadow: 0 2px 12px rgba(52,211,153,0.2);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52,211,153,0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, var(--accent-red));
  color: white;
}
.btn-danger:hover { transform: translateY(-2px); }

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============ 首页 Hero ============ */
.hero {
  padding: 5rem 0 3rem;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #e2e8f0 0%, var(--accent-cyan) 40%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-graphic {
  position: relative;
  width: 280px;
  height: 280px;
}

.hero-graphic-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic-inner .fa-brain {
  font-size: 5rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 20px rgba(34,211,238,0.5));
  animation: floatBrain 4s ease-in-out infinite;
  z-index: 2;
}

.hero-graphic .orbit {
  position: absolute;
  inset: 0;
  animation: spinOrbit 12s linear infinite;
}

.hero-graphic .orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-cyan);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle)));
  box-shadow: 0 0 12px rgba(34,211,238,0.08);
  animation: orbitPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--angle) / 360deg * 3s);
}

.hero-graphic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes orbitPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============ 通用 Section ============ */
.section { padding: 4rem 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============ 测评卡片网格 ============ */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============ 分类分组布局 ============ */
.category-section {
  margin-bottom: 2.5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.category-header i {
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--accent-cyan);
}

.category-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.category-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.assessment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.assessment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.2);
  box-shadow: 0 8px 32px rgba(59,130,246,0.15), 0 0 40px rgba(34,211,238,0.05);
  background: var(--bg-card-hover);
}

.assessment-card:hover .assessment-card-body p {
  -webkit-line-clamp: unset;
}

.assessment-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(168,85,247,0.15));
  position: relative;
  overflow: hidden;
}

.assessment-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.assessment-card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.assessment-card-header .card-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.assessment-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.assessment-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assessment-card-body .assessment-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.meta-item i { color: var(--accent-cyan); width: 14px; text-align: center; }

.assessment-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* ============ 测评详情页 ============ */
#assessmentDetail .btn-outline {
  margin-bottom: 1.5rem;
}

.assessment-header { margin-bottom: 2rem; }
.assessment-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }

.assessment-header .assessment-meta {
  display: flex;
  gap: 1.5rem;
}

.assessment-description {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.assessment-actions { text-align: center; margin-top: 2rem; }

/* ============ 测试页面 ============ */
.test-header {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.test-progress { flex: 1; }

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(34,211,238,0.3);
}

.progress-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.test-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.question-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.question-card h3 .q-number {
  color: var(--accent-cyan);
  margin-right: 6px;
}

.question-options { display: flex; flex-direction: column; gap: 0.75rem; }

.option-item {
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.02);
}

.option-item:hover {
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.04);
}

.option-item.selected {
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.08);
  box-shadow: 0 0 16px var(--border-glow);
}

.option-radio {
  width: 20px; height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-item.selected .option-radio {
  border-color: var(--accent-cyan);
}

.option-radio::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.option-item.selected .option-radio::after { opacity: 1; }

.option-text { flex: 1; font-size: 0.95rem; color: var(--text-secondary); }

.test-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.missing-hint {
  width: 100%;
  text-align: center;
  color: #f39c12;
  font-size: 0.9rem;
  padding: 0.5rem;
  background: rgba(243, 156, 18, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

/* ============ 结果页面 ============ */
.result-header { text-align: center; margin-bottom: 2.5rem; }
.result-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }

.result-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(12px);
}

.result-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
}

.score-display {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(168,85,247,0.2));
  border: 2px solid rgba(34,211,238,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  flex-shrink: 0;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-cyan), var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.score-circle span { font-size: 2.2rem; font-weight: 700; position: relative; }
.score-circle small { font-size: 0.8rem; opacity: 0.7; position: relative; }

.score-details { flex: 1; min-width: 200px; }

.report-content {
  line-height: 1.8;
  color: var(--text-secondary);
}

.recommendations { display: flex; flex-direction: column; gap: 0.75rem; }

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.12);
  border-radius: var(--radius-md);
}
.recommendation-item i { color: var(--accent-green); margin-top: 0.2rem; }

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* ============ 结果增强样式 ============ */
.dimension-bar, .holland-bar { margin: 10px 0; }
.dim-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.dim-bar-track {
  position: relative;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 11px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.6s ease;
}
.dim-result {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dim-type {
  margin: 12px 0 8px;
  padding: 10px 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* severity display */
.severity-display { margin: 14px 0; }
.severity-indicator {
  height: 22px;
  border-radius: 11px;
  transition: width 0.5s ease;
  margin-bottom: 6px;
}
.severity-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.severity-scale {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-mbti { background: rgba(59,130,246,0.15); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.2); }
.badge-holland { background: rgba(168,85,247,0.15); color: var(--accent-purple); border: 1px solid rgba(168,85,247,0.2); }
.badge-severe { background: rgba(248,113,113,0.15); color: var(--accent-red); border: 1px solid rgba(248,113,113,0.2); }
.badge-moderate { background: rgba(251,146,60,0.15); color: var(--accent-orange); border: 1px solid rgba(251,146,60,0.2); }
.badge-mild { background: rgba(52,211,153,0.15); color: var(--accent-green); border: 1px solid rgba(52,211,153,0.2); }

/* 建议列表 */
.rec-list { list-style: none; padding: 0; margin: 0; }
.rec-list li {
  padding: 8px 12px 8px 28px;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.rec-list li:last-child { border-bottom: none; }
.rec-list li::before {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 4px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
}
.rec-urgent {
  background: rgba(248,113,113,0.06);
  border-radius: 6px;
}
.rec-urgent::before { color: var(--accent-red) !important; }

.report-text { line-height: 1.8; color: var(--text-secondary); }
.report-time { color: var(--text-muted); font-size: 0.82rem; margin-top: 10px; }

/* ============ 记录页面 ============ */
.records-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.records-tabs .tab-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
  font-family: inherit;
}

.records-tabs .tab-btn:hover { color: var(--text-primary); }
.records-tabs .tab-btn.active {
  color: var(--accent-cyan);
  font-weight: 500;
}
.records-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px 1px 0 0;
  box-shadow: 0 0 8px var(--border-glow);
}

.records-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 130px;
}
.filter-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.filter-group select,
.filter-group input {
  padding: 0.45rem 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.filter-group select option { background: var(--bg-primary); color: var(--text-primary); }
.filter-group input[type="date"] { color-scheme: dark; }

.records-list { display: flex; flex-direction: column; gap: 0.65rem; }

.record-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.record-item:hover {
  border-color: rgba(34,211,238,0.15);
  background: var(--bg-card-hover);
  box-shadow: 0 2px 16px rgba(59,130,246,0.06);
}

.record-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}

.record-item-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.record-item-title h4 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-primary); }

.record-type-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.15);
  font-weight: 500;
}

.record-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.record-item-body { margin-bottom: 0.5rem; }
.record-item-body p {
  margin: 0 0 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.record-item-body .result-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.record-item-body .result-meta .meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.record-item-footer { display: flex; gap: 0.5rem; justify-content: flex-end; }

.record-username {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.record-username i { margin-right: 4px; }

.history-more {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 10px;
}

/* ============ 加载状态 ============ */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.loading i { font-size: 1.8rem; margin-bottom: 0.75rem; }

/* ============ 页脚 ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.footer-section h3 i {
  color: var(--accent-cyan);
  margin-right: 0.4rem;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.4rem; }
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.88rem;
}
.footer-section a:hover { color: var(--accent-cyan); }
.footer-section i { margin-right: 0.4rem; color: var(--text-muted); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============ 模态框 ============ */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(34,211,238,0.04);
  animation: modalSlideUp 0.25s ease;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 { font-size: 1.2rem; color: var(--text-primary); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0 4px;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 450;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--border-glow);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-switch a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: var(--  transition: var(--transition);
}
.form-switch a:hover { color: var(--accent-pink); }

.format-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.format-options .btn {
  flex: 1;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
}
.format-options .btn i { font-size: 1.5rem; }

/* ============ 动画 ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px var(--border-glow); }
  50% { box-shadow: 0 0 20px var(--border-glow), 0 0 40px rgba(34,211,238,0.1); }
}

.btn-primary { animation: pulseGlow 3s ease-in-out infinite; }

/* ============ 消息提示 ============ */
.message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.message.show { transform: translateX(0); }
.message-success { border-left: 3px solid var(--accent-green); }
.message-error { border-left: 3px solid var(--accent-red); }
.message-info { border-left: 3px solid var(--accent-blue); }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 2rem; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { max-width: 100%; }

  .section-title { font-size: 1.6rem; }

  .test-header { flex-direction: column; gap: 0.75rem; }
  .test-progress { width: 100%; margin-right: 0; }
  .test-navigation { flex-direction: column; gap: 0.75rem; }
  .result-actions { flex-direction: column; }
  .score-display { flex-direction: column; text-align: center; align-items: center; }
  .assessment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .btn-lg { padding: 0.6rem 1.5rem; font-size: 0.95rem; }
  .container { padding: 0 16px; }
}

/* ============ ICP备案 ============ */
.footer-icp {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}
.footer-icp a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-icp a:hover {
  color: var(--accent-cyan);
}
.footer-contact {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-contact span {
  display: inline-block;
}
.footer-divider {
  margin: 0 0.6rem;
  opacity: 0.4;
}
