@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-deep: #1e293b;
  --bg-page: #f1f5f9;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text-strong: #0f172a;
  --text-main: #334155;
  --text-sub: #64748b;
  --text-light: #94a3b8;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-3: #3b82f6;
  --blue-soft: #eff6ff;
  --green: #059669;
  --green-soft: #f0fdf4;
  --orange: #d97706;
  --orange-soft: #fff7ed;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --yellow: #fbbf24;
  --purple-soft: #f5f3ff;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.08);
  --hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  --hero-gradient-2: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 50%, #1e3a5f 0%, var(--bg-dark) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hint {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  z-index: 2;
}

.phone {
  width: 390px;
  height: 844px;
  flex-shrink: 0;
  background: var(--bg-page);
  border-radius: 44px;
  box-shadow:
    0 0 0 8px #1e293b,
    0 0 0 10px #334155,
    0 50px 120px rgba(0, 0, 0, 0.7),
    0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-flat {
  background: #ffffff;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #1e293b;
  border-radius: 0 0 20px 20px;
  z-index: 20;
}

.status-bar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 0;
  z-index: 10;
}

.status-bar .time {
  font-size: 15px;
  font-weight: 700;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.scroll-body::-webkit-scrollbar {
  display: none;
}

.hero {
  flex-shrink: 0;
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 66px 20px 28px;
}

.hero-home {
  border-radius: 0 0 32px 32px;
  padding-bottom: 72px;
}

.hero-profile {
  background: var(--hero-gradient-2);
  position: relative;
  overflow: hidden;
}

.hero-profile::before,
.hero-profile::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.hero-profile::before {
  width: 140px;
  height: 140px;
  top: -30px;
  right: -30px;
}

.hero-profile::after {
  width: 80px;
  height: 80px;
  top: 20px;
  right: 20px;
}

.hero-result {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 60%, #3b82f6 100%);
  padding-bottom: 16px;
}

.hero-login {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 4px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.app-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.app-logo-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.legal-copy {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: center;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
}

.avatar,
.avatar-sm,
.avatar-lg {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.avatar-lg {
  width: 68px;
  height: 68px;
  font-size: 24px;
  background: linear-gradient(135deg, var(--yellow), #f59e0b);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.card-heavy {
  box-shadow: var(--shadow-card);
}

.section-card {
  margin: 14px 16px 0;
  padding: 16px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-strong);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
}

.text-link {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.chip-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.chip-green {
  background: var(--green-soft);
  color: #15803d;
}

.chip-orange {
  background: var(--orange-soft);
  color: #c2410c;
}

.chip-slate {
  background: #f1f5f9;
  color: #475569;
}

.chip-white {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

.secondary-button {
  background: #f1f5f9;
  color: var(--text-sub);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.danger-button {
  background: #ffffff;
  color: var(--red);
  border: 1.5px solid #fee2e2;
}

.full-button {
  width: 100%;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.notice-warning {
  background: var(--orange-soft);
  border-color: #fed7aa;
  color: #c2410c;
}

.notice-success {
  background: var(--green-soft);
  border-color: #bbf7d0;
  color: #15803d;
}

.notice-error {
  background: var(--red-soft);
  border-color: #fecaca;
  color: #b91c1c;
}

.stats-grid-3,
.stats-grid-4 {
  display: grid;
  gap: 10px;
  margin: 14px 16px 0;
}

.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
}

.stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 500;
}

.menu-list {
  margin: 0 16px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.menu-row,
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f8fafc;
}

.menu-row:last-child,
.list-row:last-child {
  border-bottom: none;
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tab-bar {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 8px 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.tab-item.active {
  color: var(--blue);
}

.tab-icon {
  width: 24px;
  height: 24px;
}

.progress-track {
  height: 3px;
  background: var(--line);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-3));
  border-radius: 0 2px 2px 0;
}

.option-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.option-card.correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

.option-card.wrong {
  border-color: #f87171;
  background: #fef2f2;
}

.option-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.option-badge.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.option-badge.correct {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.option-badge.wrong {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.question-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.question-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.question-dots span.done {
  background: var(--green);
}

.question-dots span.current {
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3);
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.silver {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.bronze {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.medal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.medal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.medal-disc {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.medal-disc.locked {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
}

.medal-note {
  font-size: 10px;
  color: #475569;
  font-weight: 600;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}

.timeline-item.highlight {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
}

.empty-state {
  margin: 14px 16px 0;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-emoji {
  font-size: 32px;
  margin-bottom: 10px;
}

.form-card {
  margin: -28px 16px 0;
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.form-card-relaxed {
  margin: 16px 16px 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}

.text-input,
.text-select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}

.text-input::placeholder {
  color: #cbd5e1;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.divider {
  height: 1px;
  background: var(--line-soft);
}

.score-ring-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.score-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 12px;
}

.score-meta > div {
  text-align: center;
}

.score-meta > div:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.leaderboard-row.top-1 {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}

.leaderboard-row.top-2 {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-color: var(--line);
}

.leaderboard-row.mine {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #93c5fd;
}

.admin-body {
  background: #dbe4f0;
}

.admin-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(180deg, #eaf1fb 0%, #dbe4f0 100%);
}

.admin-shell {
  min-height: calc(100vh - 48px);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.admin-login-shell {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
}

.admin-login-hero {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #ffffff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-login-card {
  background: #ffffff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
}

.admin-sidebar {
  background: linear-gradient(180deg, #10213e 0%, #13284a 100%);
  color: #ffffff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  scrollbar-width: none;
}

.admin-sidebar::-webkit-scrollbar {
  display: none;
}

.admin-brand {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-brand h1 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 12px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(29, 78, 216, 0.35));
  color: #ffffff;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px 16px;
}

.admin-search {
  min-width: 320px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--text-sub);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-content {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.admin-hero-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #dbeafe 100%);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-strong);
  margin: 0;
}

.admin-subtitle {
  margin: 6px 0 0;
  color: var(--text-sub);
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.metric-title {
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
}

.metric-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-strong);
  margin-top: 10px;
}

.metric-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
}

.admin-grid-2,
.admin-grid-3 {
  display: grid;
  gap: 18px;
}

.admin-grid-2 {
  grid-template-columns: 1.3fr 1fr;
}

.admin-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

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

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--text-light);
  font-size: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  color: var(--blue);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-green {
  background: var(--green-soft);
  color: #15803d;
}

.badge-orange {
  background: var(--orange-soft);
  color: #c2410c;
}

.badge-red {
  background: var(--red-soft);
  color: #b91c1c;
}

.badge-slate {
  background: #f8fafc;
  color: var(--text-sub);
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.data-table th {
  color: var(--text-sub);
  font-weight: 700;
  background: #f8fafc;
}

.data-table td {
  color: var(--text-main);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 220px;
  margin-top: 18px;
}

.chart-bar {
  flex: 1;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #60a5fa 0%, #1d4ed8 100%);
  position: relative;
  min-height: 36px;
}

.chart-bar span {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-light);
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-light);
}

.detail-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 8px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 16px;
  align-items: center;
}

.prototype-index {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 30%), var(--bg-dark);
  color: #ffffff;
  padding: 40px 24px 60px;
}

.prototype-index-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.prototype-header {
  margin-bottom: 28px;
}

.prototype-title {
  font-size: 34px;
  font-weight: 900;
  margin: 0;
}

.prototype-desc {
  max-width: 820px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-top: 10px;
}

.prototype-group {
  margin-top: 26px;
}

.prototype-group h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prototype-link {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.prototype-link strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.prototype-link span {
  display: block;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .admin-shell {
    grid-template-columns: 220px 1fr;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid-2,
  .admin-grid-3,
  .prototype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-login-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-page {
    padding: 14px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    min-width: 0;
    width: 100%;
  }

  .admin-metrics,
  .admin-grid-2,
  .admin-grid-3,
  .prototype-grid {
    grid-template-columns: 1fr;
  }

  .log-item {
    grid-template-columns: 1fr;
  }
}
