/* ========================================
   学力引擎 - 暗色科技风主题
   所有子页面共享
   ======================================== */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1524;
  --bg-card: #141b2d;
  --bg-hover: #1a2338;
  --border: #1e293b;
  --border-light: #334155;
  --accent: #3b82f6;
  --accent-dim: #1e3a5f;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

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

/* 导航栏毛玻璃 */
.nav-blur {
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--border);
}

/* 细线分隔 */
.hairline { border-color: var(--border); }

/* 卡片 */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tech-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* 输入框 */
.tech-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.tech-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.tech-input::placeholder { color: var(--text-muted); }

/* 按钮 */
.btn-primary {
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s ease;
  cursor: pointer;
}
.btn-outline:hover { background: var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--border-light); color: var(--text-primary); }

/* 网格背景 */
.grid-bg {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 状态点 */
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* 数字字体 */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* 淡入动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* 徽章/标签 */
.tech-badge {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid;
}

/* 表格 */
.tech-table {
  width: 100%;
  border-collapse: collapse;
}
.tech-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.tech-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.tech-table tr:hover td { color: var(--text-primary); }

/* Logo图标 */
.tech-logo {
  width: 32px; height: 32px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.05);
}
.tech-logo svg { width: 16px; height: 16px; color: #60a5fa; }

/* 进度条 */
.tech-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.tech-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 文字颜色辅助类 */
.text-primary-c { color: var(--text-primary); }
.text-secondary-c { color: var(--text-secondary); }
.text-muted-c { color: var(--text-muted); }
.text-accent-c { color: var(--accent); }
.bg-card-c { background: var(--bg-card); }
.bg-secondary-c { background: var(--bg-secondary); }
.border-c { border-color: var(--border); }
