/* ========================================
   建工万能助手 - 视觉升级样式
   主题色: #3b82f6 (蓝色系)
   设计风格: 现代·简洁·大气
   参考: Ant Design Pro / Vercel Dashboard
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Primary Palette */
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-lighter: #93c5fd;
  --primary-dark: #2563eb;
  --primary-darker: #1d4ed8;
  --primary-bg: #eff6ff;
  --primary-bg-subtle: #f8faff;

  /* Neutral Palette */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Surface */
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --bg-page: #f1f5f9;
  --bg-subtle: #f8fafc;

  /* Border */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
  --shadow-glow-lg: 0 0 40px rgba(59, 130, 246, 0.2);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --transition: all var(--duration-normal) var(--ease);
  --transition-fast: all var(--duration-fast) var(--ease);
  --transition-slow: all var(--duration-slow) var(--ease);
}

/* ---------- Global Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

#app {
  height: 100%;
}

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

/* ==================== LOGIN PAGE ==================== */

/* Login tabs */
.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.login-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  font-weight: 600;
}
.login-tab:hover {
  color: #3b82f6;
}

/* SMS code row */
.sms-code-row {
  display: flex;
  align-items: center;
  width: 100%;
}


.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c1e3e 0%, #1e3a6e 30%, #2563eb 70%, #3b82f6 100%);
  z-index: 0;
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(96, 165, 250, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: particleFloat linear infinite;
  will-change: transform;
}

.particle:nth-child(odd) {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.particle:nth-child(3n) {
  background: rgba(147, 197, 253, 0.1);
  border-radius: 20%;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(80vh) rotate(36deg) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 24px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: loginCardEnter 0.7s var(--ease) forwards;
  opacity: 0;
}

@keyframes loginCardEnter {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 8px 16px rgba(59, 130, 246, 0.25),
    0 0 0 4px rgba(59, 130, 246, 0.08);
  animation: logoPulse 3s ease-in-out infinite;
}

.login-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25), 0 0 0 4px rgba(59, 130, 246, 0.08); }
  50% { box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35), 0 0 0 8px rgba(59, 130, 246, 0.06); }
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.login-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}

.login-header-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

.login-form {
  margin-bottom: 28px;
}

.login-form .el-form-item {
  margin-bottom: 20px;
}

.login-form .el-input__wrapper {
  border-radius: var(--radius-md);
  padding: 6px 16px;
  height: 48px;
  box-shadow: 0 0 0 1.5px var(--border);
  transition: var(--transition);
  background: var(--surface);
}

.login-form .el-input__wrapper:hover {
  box-shadow: 0 0 0 1.5px var(--primary-lighter);
}

.login-form .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-form .el-input__inner {
  font-size: 15px;
  letter-spacing: 0.5px;
}

.login-btn {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
}

.login-tip {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.8;
}

/* Login Mode Switch */
.login-mode-switch { display: flex; gap: 8px; margin-bottom: 20px; justify-content: center; }
.mode-btn { flex: 1; padding: 10px 0; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #6b7280; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.mode-btn.active { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.mode-btn:hover:not(.active) { border-color: #d1d5db; color: #374151; }

/* ========== Profile Page ========== */
.profile-page { min-height: 100vh; background: var(--bg-page); }
.profile-header { background: #fff; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }
.profile-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.profile-back-btn { color: var(--text-secondary); font-size: 14px; }
.profile-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; }
.profile-main { max-width: 680px; margin: 0 auto; padding: 24px 20px 40px; }
.profile-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.profile-user-card { text-align: center; padding: 32px 20px; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-avatar { border: 3px solid #e5e7eb; }
.profile-nickname { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 8px 0 4px; }
.profile-role-tag { margin-top: 4px; }
.profile-section-title { font-size: 16px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.profile-field { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.profile-field:last-child { border-bottom: none; }
.profile-field-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.profile-field-label { font-size: 14px; color: var(--text-secondary); width: 80px; flex-shrink: 0; }
.profile-field-value { font-size: 14px; color: var(--text-primary); flex: 1; text-align: right; }
.profile-stats { display: flex; justify-content: space-around; text-align: center; padding: 8px 0; }
.profile-stat-item { flex: 1; }
.profile-stat-num { font-size: 24px; font-weight: 700; color: #3b82f6; margin-bottom: 4px; }
.profile-stat-label { font-size: 13px; color: var(--text-secondary); }
.profile-actions { margin-top: 24px; }
.profile-edit-btn { width: 100%; margin-bottom: 12px; }
.profile-logout-btn { width: 100%; }

/* ========== Points Page ========== */
.points-page { min-height: 100vh; background: var(--bg-page); }
.sign-calendar { display: flex; justify-content: space-around; margin-top: 16px; }
.sign-day { text-align: center; }
.sign-day-circle { width: 44px; height: 44px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-secondary); margin: 0 auto 6px; }
.sign-day.signed .sign-day-circle { background: #3b82f6; color: #fff; }
.sign-day-points { font-size: 12px; color: #f59e0b; font-weight: 600; }
.level-list { margin-top: 12px; }
.level-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.level-item:last-child { border-bottom: none; }
.level-badge { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-right: 12px; flex-shrink: 0; }
.level-item.active .level-badge { background: #3b82f6; color: #fff; }
.level-info { flex: 1; }
.level-title { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.level-points { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Points Records */.points-records { margin-top: 12px; }.record-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }.record-item:last-child { border-bottom: none; }.record-info { flex: 1; }.record-desc { font-size: 14px; color: var(--text-primary); }.record-date { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }.record-points { font-size: 16px; font-weight: 600; color: #22c55e; }.record-points.negative { color: #ef4444; }
/* ==================== PROFILE DESKTOP PAGE ==================== */
.profile-desktop-page {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}

.page-header-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header-inner .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-inner .back-btn {
  font-size: 18px;
  padding: 8px;
}

.page-header-inner .page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.page-main-container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  flex: 1;
}

/* Sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-avatar {
  text-align: center;
}

.sidebar-avatar .avatar-large {
  border: 3px solid var(--primary-bg);
}

.sidebar-nickname {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 4px;
}

.sidebar-phone {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-stat {
  text-align: center;
}

.sidebar-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-stat .stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.sidebar-edit-btn {
  width: 100%;
  margin-bottom: 8px;
}

.sidebar-logout-btn {
  width: 100%;
}

.sidebar-links .sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-links .sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-links .sidebar-link:hover {
  color: var(--primary);
}

.sidebar-links .sidebar-link span {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-links .link-arrow {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Content Area */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-table {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f8fafc;
}

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

.info-label {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.info-value {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.edit-form {
  max-width: 500px;
}

.form-unit {
  margin-left: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
  .page-main-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .page-header-bar {
    padding: 0 16px;
  }
}



/* ==================== POINTS PAGE (Desktop) ==================== */
.points-desktop-page {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 48px;
}

/* Points Hero Card */
.points-hero-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.points-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.points-hero-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.points-hero-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.level-badge-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.level-badge-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.level-badge-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.points-hero-meta {
  flex: 1;
}

.points-hero-num {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.points-hero-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.progress-section {
  position: relative;
  z-index: 1;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.progress-percent {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.max-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.max-level-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

/* Sign Week Grid */
.sign-week-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sign-day-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.sign-day-item.signed {
  background: #dcfce7;
}

.sign-day-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
}

.sign-day-item.signed .sign-day-badge {
  background: #ffffff;
  border-color: #22c55e;
}

.sign-day-num {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.sign-day-label {
  font-size: 12px;
  color: #64748b;
}

.sign-day-points {
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}

.sign-day-points.signed {
  color: #22c55e;
}

.sign-btn-main {
  width: 100%;
}

/* Level List Desktop */
.level-list-desktop {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.level-item-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.level-item-desktop.active {
  background: #f8fafc;
}

.level-item-desktop.current {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.level-badge-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.level-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.level-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.level-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.level-points {
  font-size: 13px;
  color: #94a3b8;
}

.level-status {
  width: 60px;
  text-align: right;
}

.level-status-icon {
  font-size: 18px;
  color: #22c55e;
  font-weight: 700;
}

.level-status-current {
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  background: #eef2ff;
  padding: 2px 10px;
  border-radius: 6px;
}

/* Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.rule-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.rule-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.rule-points {
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
  margin-top: 4px;
}

/* Records */
.cursor-pointer {
  cursor: pointer;
}

.records-arrow {
  transition: transform 0.3s ease;
}

.records-arrow.rotated {
  transform: rotate(180deg);
}

.records-list {
  margin-top: 12px;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.record-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

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

.record-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.record-time {
  font-size: 12px;
  color: #94a3b8;
}

.record-points {
  font-size: 18px;
  font-weight: 700;
}

.record-points.positive {
  color: #22c55e;
}

.record-points.negative {
  color: #ef4444;
}

.records-empty {
  text-align: center;
  padding: 40px 0;
}

.empty-text {
  font-size: 14px;
  color: #94a3b8;
}

.records-more, .records-end {
  text-align: center;
  padding: 16px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .sign-week-grid {
    gap: 6px;
  }
  .sign-day-item {
    padding: 8px 2px;
  }
  .sign-day-badge {
    width: 32px;
    height: 32px;
  }
}


/* ==================== HOME PAGE ==================== */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

/* ---------- Header / Navbar ---------- */
.home-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}

.header-logo-icon img,
.brand-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.header-center {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}

.header-search .el-input__wrapper {
  border-radius: var(--radius-full) !important;
  background: var(--bg-subtle);
  box-shadow: 0 0 0 1.5px var(--border) !important;
  height: 40px;
  padding: 4px 20px;
  transition: var(--transition);
}

.header-search .el-input__wrapper:hover {
  box-shadow: 0 0 0 1.5px var(--primary-lighter) !important;
  background: var(--surface);
}

.header-search .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-glow) !important;
  background: var(--surface);
}

.header-search .el-input__inner {
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-admin-btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.header-avatar {
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  transition: var(--transition);
}

.header-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* ---------- Shortcuts Section ---------- */
.shortcuts-section {
  background: linear-gradient(180deg, var(--primary-bg-subtle) 0%, var(--bg-page) 100%);
  padding: 32px 0;
  position: relative;
}

.shortcuts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.shortcut-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.shortcut-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.shortcut-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary-lighter);
}

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

.shortcut-card:active {
  transform: translateY(-2px);
}

.shortcut-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--primary);
  transition: var(--transition);
  position: relative;
}

.shortcut-card:hover .shortcut-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.shortcut-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.shortcut-desc {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ---------- Resources Section ---------- */
.resources-section {
  padding: 16px 0 48px;
}

.category-block {
  margin-bottom: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.category-block:hover {
  box-shadow: var(--shadow-sm);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--primary);
  flex-shrink: 0;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.category-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.category-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

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

.resource-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.resource-card:hover {
  background: var(--surface);
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

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

.resource-card:hover .resource-arrow {
  color: var(--primary);
  transform: translate(3px, -3px);
}

.resource-info {
  flex: 1;
  min-width: 0;
  position: relative;
}

.resource-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.resource-info p {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.resource-arrow {
  color: #cbd5e1;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
}

/* ---------- Footer ---------- */
.home-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}

.home-footer p {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ==================== ADMIN PAGE ==================== */
.admin-page {
  height: 100vh;
}

.admin-aside {
  background: linear-gradient(180deg, #0a1628 0%, #0f1f38 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
}

.admin-logo {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  letter-spacing: -0.01em;
  position: relative;
}

.admin-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.admin-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  background: #ffffff;
}

.admin-logo-icon img,
.brand-logo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-aside .el-menu {
  border-right: none;
  flex: 1;
  padding: 8px;
}

.admin-aside .el-menu-item {
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  height: 44px;
  line-height: 44px;
  transition: var(--transition-fast);
  position: relative;
}

.admin-aside .el-menu-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.admin-aside .el-menu-item.is-active {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--primary-light) !important;
}

.admin-aside .el-menu-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.admin-aside-bottom {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-aside-bottom .el-button {
  justify-content: flex-start;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  height: 38px;
}

.admin-aside-bottom .el-button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  box-shadow: var(--shadow-xs);
}

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

.admin-main {
  background: var(--bg-page);
  padding: 28px 32px;
  overflow-y: auto;
}

/* Stat Cards */
.dashboard-content .el-row {
  margin: 0 -4px;
}

.dashboard-content .el-col {
  padding: 0 4px;
}

.stat-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-light) !important;
  transition: var(--transition);
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .el-card__body {
  padding: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: inherit;
  opacity: 0.15;
  filter: blur(8px);
}

.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-weight: 500;
}

/* Quick Actions */
.dashboard-content > .el-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-light) !important;
}

.dashboard-content > .el-card .el-card__header {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
}

.quick-action-btn {
  width: 100%;
  height: 88px;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-secondary);
}

.quick-action-btn:hover {
  border-color: var(--primary-lighter) !important;
  color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

/* Table Styles */
.table-content .el-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-light) !important;
  overflow: hidden;
}

.table-content .el-card .el-card__header {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
  background: var(--bg-subtle);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header span {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.table-content .el-table {
  --el-table-border-color: var(--border-light);
}

.table-content .el-table th.el-table__cell {
  background: var(--bg-subtle) !important;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.table-content .el-table .el-table__row:hover > td {
  background: var(--primary-bg-subtle) !important;
}

.no-access {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
}

/* ==================== Element Plus Overrides ==================== */
.el-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: none !important;
  transition: var(--transition);
}

.el-card:hover {
  box-shadow: var(--shadow-sm) !important;
}

.el-button--primary {
  --el-button-bg-color: var(--primary);
  --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-dark);
  --el-button-hover-border-color: var(--primary-dark);
  --el-button-active-bg-color: var(--primary-darker);
  --el-button-active-border-color: var(--primary-darker);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.el-button--primary:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.el-button {
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.el-tag {
  border-radius: var(--radius-xs);
}

.el-dialog {
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
}

.el-dialog__header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px !important;
  margin-right: 0 !important;
}

.el-dialog__body {
  padding: 24px !important;
}

.el-dialog__footer {
  border-top: 1px solid var(--border-light);
  padding: 16px 24px !important;
}

.el-breadcrumb {
  font-weight: 500;
}

.el-empty__description p {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.category-block {
  animation: fadeInUp 0.5s var(--ease) forwards;
  opacity: 0;
}

.category-block:nth-child(1) { animation-delay: 0.05s; }
.category-block:nth-child(2) { animation-delay: 0.1s; }
.category-block:nth-child(3) { animation-delay: 0.15s; }
.category-block:nth-child(4) { animation-delay: 0.2s; }
.category-block:nth-child(5) { animation-delay: 0.25s; }
.category-block:nth-child(6) { animation-delay: 0.3s; }
.category-block:nth-child(7) { animation-delay: 0.35s; }

.shortcut-card {
  animation: fadeInUp 0.4s var(--ease) forwards;
  opacity: 0;
}

.shortcut-card:nth-child(1) { animation-delay: 0.05s; }
.shortcut-card:nth-child(2) { animation-delay: 0.1s; }
.shortcut-card:nth-child(3) { animation-delay: 0.15s; }
.shortcut-card:nth-child(4) { animation-delay: 0.2s; }
.shortcut-card:nth-child(5) { animation-delay: 0.25s; }
.shortcut-card:nth-child(6) { animation-delay: 0.3s; }

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1400px) {
  .header-inner,
  .section-inner {
    padding: 0 24px;
  }
  .admin-main {
    padding: 24px;
  }
}

@media (max-width: 1200px) {
  .shortcuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-block {
    padding: 24px;
  }
}

@media (max-width: 992px) {
  .header-inner {
    gap: 16px;
  }
  .admin-aside {
    width: 200px !important;
  }
  .dashboard-content .el-col {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .shortcuts-section {
    padding: 24px 0;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .header-center {
    display: none;
  }
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }
  .section-inner {
    padding: 0 16px;
  }
  .login-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
  }
  .login-header h1 {
    font-size: 24px;
  }
  .login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .category-block {
    padding: 20px;
    margin-bottom: 28px;
  }
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .category-count {
    align-self: flex-start;
  }
  .admin-aside {
    width: 64px !important;
  }
  .admin-logo span,
  .admin-aside .el-menu-item span,
  .admin-aside-bottom .el-button span {
    display: none;
  }
  .admin-logo {
    height: 56px;
  }
  .admin-aside .el-menu-item {
    padding: 0 !important;
    text-align: center;
    display: flex;
    justify-content: center;
  }
  .admin-main {
    padding: 16px;
  }
  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .home-footer {
    padding: 20px 0;
  }
  .shortcut-card {
    padding: 18px 12px 16px;
  }
  .shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .login-container {
    padding: 16px;
  }
  .login-card {
    padding: 28px 20px;
  }
  .login-btn {
    height: 46px;
    font-size: 15px;
  }
  .resource-card {
    padding: 14px 16px;
  }
}

/* ==================== Print Styles ==================== */
@media print {
  .home-header,
  .shortcuts-section,
  .home-footer {
    display: none;
  }
}

/* ==================== 国旗国徽标识 ==================== */
/* 登录页品牌logo */
.login-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 底部标识 */
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-brand-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.footer-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 备案信息 */
.footer-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.footer-beian a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.footer-beian a:hover {
  color: var(--primary);
}

.beian-divider {
  color: #cbd5e1;
}

.beian-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* 响应式 */
@media (max-width: 768px) {
  .footer-beian {
    flex-direction: column;
    gap: 6px;
  }
  .beian-divider {
    display: none;
  }
}
  .login-logo {
    width: 96px;
    height: 96px;
  }
  .footer-badge-img {
    height: 18px;
  }
}

/* ==================== 资源卡片图标 ==================== */
.resource-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.resource-badge img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* favicon专用样式 */
.resource-badge:has(img):not(:has(.resource-letter)) {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* fallback logo（无favicon时） */
.resource-badge.resource-fallback img {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 50%;
}

.resource-letter {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* 文字图标蓝色系渐变背景（仅文字badge有背景色，图片badge不需要） */
.resource-badge:has(.resource-letter) {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* 响应式：小屏缩小图标 */
@media (max-width: 768px) {
  .resource-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .resource-letter {
    font-size: 14px;
  }
}

/* ========================================
   数据服务页面通用样式
   ======================================== */

/* 数据服务卡片 - 首页 */
.data-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-service-card {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.data-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.data-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-service-info {
  flex: 1;
  margin-left: 16px;
}

.data-service-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.data-service-info p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

.data-service-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: transform 0.2s;
}

.data-service-card:hover .data-service-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

@media (max-width: 768px) {
  .data-services-grid {
    grid-template-columns: 1fr;
  }
}

/* 数据页通用布局 */
.data-page {
  min-height: 100vh;
  background: var(--bg-page);
}

.data-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
}

.data-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn {
  color: var(--text-secondary) !important;
  font-size: 14px;
}

.back-btn:hover {
  color: var(--primary) !important;
}

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

/* 筛选栏 */
.filter-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* 分页 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding: 16px 0;
}

/* 加载卡片 */
.loading-card {
  border: none;
}

/* 图集表格 */
.atlas-table .el-table__row {
  cursor: pointer;
}

.atlas-table .el-table__row:hover td {
  background: var(--primary-bg-subtle) !important;
}

/* 价格表格 */
.price-table .el-table__row {
  cursor: pointer;
}

.price-table .el-table__row:hover td {
  background: var(--primary-bg-subtle) !important;
}

/* 详情面包屑 */
.detail-breadcrumb {
  margin-bottom: 16px;
}

/* 资讯卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.06);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* 资讯详情 */
.news-detail-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.news-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* 图集详情 */
.atlas-detail .el-descriptions {
  margin-top: 8px;
}

/* 管理后台分页 */
.admin-main .pagination-wrap {
  margin-top: 16px;
  padding: 8px 0;
}

/* ==================== 单位换算 ==================== */
.converter-layout {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.converter-categories {
  width: 200px;
  flex-shrink: 0;
}

.converter-categories .el-menu {
  border-right: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.converter-categories .el-menu-item {
  height: 48px;
  line-height: 48px;
  margin: 4px 8px;
  border-radius: 8px;
}

.converter-categories .el-menu-item.is-active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.converter-panel {
  flex: 1;
  min-width: 0;
}

.converter-card {
  border-radius: var(--radius-lg);
}

.converter-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.converter-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.converter-col {
  flex: 1;
  min-width: 0;
}

.converter-col.narrow {
  flex: 0 0 auto;
}

.converter-col label {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  font-weight: 500;
}

.converter-num-input {
  --el-input-height: 52px;
}

.converter-num-input .el-input__inner {
  font-size: 20px;
  font-weight: 600;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
}

.converter-num-input.result .el-input__inner {
  color: var(--primary);
  background: var(--primary-bg-subtle);
}

.converter-swap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.converter-table-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.converter-table-wrap h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

/* 资源管理后台样式 */
.resource-admin-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}

.resource-cat-block {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.resource-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.resource-cat-header .cat-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  flex: 1;
}

.resource-items {
  padding: 8px 0;
}

.resource-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

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

.resource-item-row:hover {
  background: var(--surface-hover);
}

.item-favicon-mini {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.resource-item-row .item-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  width: 200px;
  flex-shrink: 0;
}

.resource-item-row .item-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 768px) {
  .resource-item-row .item-name {
    width: 120px;
  }
  .resource-item-row .item-desc {
    display: none;
  }
}

