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

/* ---------- Design Tokens ---------- */
:root {
  /* Primary Palette — #2F6BFF */
  --primary: #2F6BFF;
  --primary-light: #5B8FFF;
  --primary-lighter: #A8C4FF;
  --primary-dark: #1D5AE0;
  --primary-darker: #1A4DBF;
  --primary-bg: #EBF1FF;
  --primary-bg-subtle: #F5F8FF;

  /* 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(47, 107, 255, 0.15);
  --shadow-glow-lg: 0 0 40px rgba(47, 107, 255, 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;
  background-color: #fff; }
.profile-field-label { font-size: 14px; color: var(--text-secondary); width: 80px; flex-shrink: 0;
  background-color: #fff; }
.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;
  background-color: #fff; }
.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 {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

.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: 96px auto 24px;
  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;
  background-color: #fff;
}

.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 {
    top: 8px;
    padding: 0 12px;
  }
  .data-header {
    top: 8px;
    padding: 0 12px;
  }
  .data-header .nav-links,
  .page-header-bar .nav-links {
    display: none;
  }
  .data-header .menu-toggle,
  .page-header-bar .menu-toggle {
    display: flex;
  }
}



/* ==================== 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;
  background-color: #fff;
  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;
  background-color: #fff;
}

.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;
  background-color: #fff;
}

.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;
  background-color: #fff;
}

.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 {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

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


/* ---------- Nav Links (navbar style) ---------- */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.nav-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

/* mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: #1e40af; border-radius: 2px; transition: all 0.3s; }

.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;
  background-color: #fff;
}

.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: 420px;
  margin: 0;
}

.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;
  margin-top: 80px;
}

.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(47, 107, 255, 0.08) 0%, rgba(47, 107, 255, 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;
  background-color: #fff;
  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;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .home-header {
    top: 8px;
    padding: 0 12px;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .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;
  background-color: #fff;
  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 {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.data-header-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

.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: 80px auto 0;
  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;
  background-color: #fff;
}

.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;
  background-color: #fff;
}

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

.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;
  }
}



/* 信息价管理页面 */
.info-price-main {
  max-width: 100% !important;
  padding: 24px 32px;
}

.price-filter-bar {
  margin-bottom: 16px;
  padding: 12px 0;
}


/* 后台管理表格筛选栏 */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* 后台信息价表格撑满 */
.admin-main .el-table {
  width: 100%;
}


/* 后台管理表格强制撑满 */
.table-content .el-card__body {
  width: 100%;
}

.table-content .el-table {
  width: 100% !important;
}

/* ===== Dashboard Enhanced ===== */
.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
}

.stat-sub-up {
  color: #10b981;
  font-weight: 600;
}

.stat-card-user .stat-icon {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #3b82f6;
}

.stat-card-news .stat-icon {
  background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
  color: #10b981;
}

.stat-card-atlas .stat-icon {
  background: linear-gradient(135deg, #faf5ff, #e9d5ff);
  color: #8b5cf6;
}

.stat-card-price .stat-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

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

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

.chart-card .el-card__header {
  border-bottom: 1px solid var(--border-light) !important;
  padding: 16px 20px !important;
}

.chart-card .el-card__body {
  padding: 12px 16px 20px !important;
}

.chart-box {
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

/* Todo Card */
.todo-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-light) !important;
  transition: var(--transition);
}

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

.todo-card .el-card__header {
  border-bottom: 1px solid var(--border-light) !important;
  padding: 16px 20px !important;
}

.todo-card .el-card__body {
  padding: 8px 20px 20px !important;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.todo-item:hover {
  background: var(--bg-secondary);
}

.todo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #fff;
}

.todo-icon-warn {
  background: #fef3c7;
  color: #d97706;
}

.todo-icon-info {
  background: #dbeafe;
  color: #2563eb;
}

.todo-icon-primary {
  background: #e0e7ff;
  color: #4f46e5;
}

.todo-text {
  flex: 1;
  min-width: 0;
}

.todo-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.todo-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 2px 0 0 0;
}

.todo-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
  background-color: #fff;
}

/* ---------- Global btn-primary (login button) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: #fff;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover::before {
  animation: shimmer 0.6s forwards;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* LandingPage CSS */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --gold: #f59e0b;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 30%, #f0fdfa 60%, #fffbeb 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* Animated Background Orbs - Light Mode */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%);
  top: -100px; left: -80px;
  animation: orbDrift1 18s ease-in-out infinite;
}
.bg-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
  top: 30%; right: -80px;
  animation: orbDrift2 22s ease-in-out infinite;
}
.bg-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
  bottom: 5%; left: 25%;
  animation: orbDrift3 25s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px,50px) scale(1.1); }
  66% { transform: translate(30px,100px) scale(0.9); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px,70px) scale(1.12); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-40px,-30px) scale(1.08); }
  66% { transform: translate(30px,-60px) scale(0.92); }
}

.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
}

/* Navbar - Frosted Glass Capsule (ref: web_preview_index) */
.navbar {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 1000;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  position: relative; overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.btn-primary:hover::before { animation: shimmer 0.6s forwards; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: #1e40af; border-radius: 2px; transition: all 0.3s; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; z-index: 1;
}
.hero-content { text-align: center; max-width: 760px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  margin-bottom: 32px; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  animation: fadeInDown 0.8s ease;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: 56px; font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -0.03em;
  color: var(--text);
  animation: fadeInUp 1s ease 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero p {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 40px; animation: fadeInUp 1s ease 0.2s both;
}
.hero-search {
  position: relative; max-width: 560px; margin: 0 auto;
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-search input {
  width: 100%; height: 60px; padding: 0 64px 0 26px;
  border-radius: 100px; border: 1px solid var(--glass-border);
  background: var(--glass-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text); font-size: 15px; outline: none;
  transition: all 0.3s;
  box-shadow: var(--glass-shadow);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search input:focus {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 8px 40px rgba(99, 102, 241, 0.12);
}
.hero-search-btn {
  position: absolute; right: 6px; top: 6px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  border: none; cursor: pointer;
}
.hero-search-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5); }

/* Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 56px;
  margin-top: 56px; animation: fadeInUp 1s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.hero-stat-label {
  font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 500;
}

/* Floating shapes */
.hero-shape {
  position: absolute; pointer-events: none; opacity: 0.3;
  transition: transform 0.3s ease-out;
}
.hero-shape-1 {
  top: 15%; left: 8%; width: 50px; height: 50px;
  border: 2px solid rgba(129, 140, 248, 0.5); border-radius: 12px;
  animation: floatRotate 8s ease-in-out infinite;
}
.hero-shape-2 {
  top: 25%; right: 10%; width: 30px; height: 30px;
  border: 2px solid rgba(34, 211, 238, 0.5); border-radius: 50%;
  animation: floatBounce 6s ease-in-out infinite;
}
.hero-shape-3 {
  bottom: 20%; left: 15%; width: 40px; height: 40px;
  border: 2px solid rgba(251, 191, 36, 0.4); transform: rotate(45deg);
  animation: floatRotate 10s ease-in-out infinite reverse;
}
.hero-shape-4 {
  bottom: 30%; right: 12%; width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid rgba(129, 140, 248, 0.25);
  animation: floatBounce 7s ease-in-out infinite;
}
@keyframes floatRotate {
  0%,100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-25px); }
}
@keyframes floatBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-35px); }
}

/* Featured Tools Preview */
.featured-section {
  padding: 40px 24px 80px; position: relative; z-index: 1;
}
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured-header {
  text-align: center; margin-bottom: 40px;
}
.featured-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.featured-title {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px; color: var(--text);
}
.featured-subtitle {
  font-size: 15px; color: var(--text-secondary);
}
.featured-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.featured-card {
  position: relative; padding: 28px 22px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer; overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.featured-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
  opacity: 0; transition: opacity 0.4s; border-radius: 16px;
}
.featured-card::after {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: 16px; opacity: 0; z-index: -1; transition: opacity 0.4s;
}
.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.7);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12);
}
.featured-card:hover::before { opacity: 1; }
.featured-card:hover::after { opacity: 0.4; }
.featured-icon {
  position: relative; width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: all 0.4s;
}
.featured-card:hover .featured-icon {
  transform: scale(1.15) rotate(-6deg);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.featured-icon svg {
  width: 24px; height: 24px;
  stroke: var(--primary); fill: none; stroke-width: 2;
  transition: stroke 0.3s;
}
.featured-card:hover .featured-icon svg { stroke: white; }
.featured-card h3 {
  position: relative; font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text);
}
.featured-card p {
  position: relative; font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* CTA */
.cta-section {
  padding: 40px 24px 100px; position: relative; z-index: 1;
  text-align: center;
}
.cta-buttons {
  display: flex; justify-content: center; gap: 16px;
}
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
  transition: all 0.3s;
}
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(99, 102, 241, 0.4);
}
.btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 15px; font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--glass-shadow);
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
  padding: 48px 24px 36px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  position: relative; z-index: 1; text-align: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 14px;
}
.footer-brand .logo-icon { width: 34px; height: 34px; }
.footer-brand span { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.footer-links {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 18px;
}
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-meta { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.footer-meta a { color: var(--text-muted); transition: color 0.2s; }
.footer-meta a:hover { color: var(--primary); }
.footer-meta .sep { margin: 0 8px; opacity: 0.4; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .navbar { top: 8px; padding: 0 12px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 26px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-title { font-size: 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }
  .hero-search input { height: 52px; font-size: 13px; padding: 0 56px 0 20px; }
  .hero-search-btn { width: 40px; height: 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }
  .featured-card { padding: 20px 16px; }
  .featured-icon { width: 40px; height: 40px; }
  .featured-title { font-size: 20px; }
  .btn-cta-primary, .btn-cta-secondary { padding: 12px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Home Hero / Search Section ===== */
.home-hero-section {
  padding: 120px 20px 80px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #f0fdfa 100%);
}
.home-hero-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.home-hero-spacer {
  height: 56px;
}
.home-search-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.home-search-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.home-search-tab:hover {
  background: rgba(255,255,255,0.9);
  color: #3b82f6;
}
.home-search-tab.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.home-search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.home-search-input {
  width: 100%;
  height: 56px;
  padding: 0 64px 0 26px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1e293b;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(99,102,241,0.08);
}
.home-search-input::placeholder { color: #94a3b8; }
.home-search-input:focus {
  background: rgba(255,255,255,0.8);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.08), 0 8px 40px rgba(59,130,246,0.12);
}
.home-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.home-search-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(59,130,246,0.5);
}
.home-search-btn svg {
  width: 20px;
  height: 20px;
}
.home-search-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.home-search-tag {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: #64748b;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s;
}
.home-search-tag:hover {
  background: rgba(255,255,255,0.9);
  color: #3b82f6;
  border-color: rgba(59,130,246,0.2);
}
.home-search-tag.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59,130,246,0.25);
}
@media (max-width: 768px) {
  .home-hero-section { padding: 80px 16px 48px; }
      .home-search-tab { padding: 6px 14px; font-size: 13px; }
  .home-search-input { height: 50px; font-size: 14px; padding: 0 54px 0 18px; }
  .home-search-btn { width: 38px; height: 38px; right: 4px; top: 4px; }
  .home-search-tags { gap: 6px; margin-top: 20px; }
  .home-search-tag { padding: 4px 10px; font-size: 12px; }
}

/* ==================== P0 UPGRADE STYLES ==================== */

/* ---------- Global AppNav ---------- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.app-nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}
.app-nav-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.app-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.app-nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.app-nav-link:hover {
  color: #2F6BFF;
  background: rgba(47,107,255,0.06);
}
.app-nav-link.active {
  color: #2F6BFF;
  background: rgba(47,107,255,0.1);
  font-weight: 600;
}
.app-nav-center {
  flex: 0 1 280px;
}
.app-nav-search .el-input__wrapper {
  border-radius: 10px;
}
.app-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.app-nav-avatar {
  cursor: pointer;
  border: 2px solid #e2e8f0;
}
.app-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  gap: 5px;
}
.app-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s;
}
.app-nav-hamburger span.is-open {
  transform: rotate(45deg);
  position: relative;
}
.app-nav-hamburger span.is-open::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transform: rotate(-90deg);
}
.app-nav-mobile-search,
.app-nav-mobile-user {
  display: none;
}
.app-nav-overlay {
  display: none;
}
.btn-primary-sm {
  padding: 6px 16px !important;
  font-size: 13px !important;
}

/* ---------- Resources Page ---------- */
.resources-page {
  min-height: 100vh;
  background: #f1f5f9;
}
.resources-main {
  padding: 24px 0 60px;
}
.resources-hero {
  text-align: center;
  padding: 40px 0 32px;
}
.resources-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.resources-hero p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 24px;
}
.resources-search-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.resources-search-input .el-input__wrapper {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ---------- Hot Calculators ---------- */
.hot-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hot-calc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid #f1f5f9;
}
.hot-calc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,107,255,0.1);
  border-color: rgba(47,107,255,0.15);
}
.hot-calc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-calc-info {
  flex: 1;
}
.hot-calc-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}
.hot-calc-info p {
  font-size: 13px;
  color: #94a3b8;
}
.hot-calc-arrow {
  color: #cbd5e1;
}

/* ---------- News Compact List ---------- */
.news-list-compact {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
.news-item-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f8fafc;
}
.news-item-compact:last-child {
  border-bottom: none;
}
.news-item-compact:hover {
  background: #f8fafc;
}
.news-item-title {
  flex: 1;
  font-size: 14px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item-compact:hover .news-item-title {
  color: #2F6BFF;
}
.news-item-date {
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ---------- Resources Entry Card ---------- */
.resources-entry-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(47,107,255,0.1);
}
.resources-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47,107,255,0.12);
}
.resources-entry-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2F6BFF, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resources-entry-info {
  flex: 1;
}
.resources-entry-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.resources-entry-info p {
  font-size: 14px;
  color: #64748b;
}
.resources-entry-arrow {
  flex-shrink: 0;
}

/* ---------- RMB Converter ---------- */
.rmb-card {
  border-radius: 14px !important;
}
.rmb-converter {
  padding: 8px 0;
}
.rmb-input-wrap {
  margin-bottom: 24px;
}
.rmb-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.rmb-input .el-input__wrapper {
  border-radius: 12px;
  padding: 4px 16px;
}
.rmb-result-wrap {
  margin-bottom: 20px;
}
.rmb-result {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  letter-spacing: 1px;
  min-height: 64px;
  display: flex;
  align-items: center;
  word-break: break-all;
  line-height: 1.5;
}
.rmb-result.is-empty {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 16px;
}
.rmb-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.rmb-example-label {
  font-size: 13px;
  color: #94a3b8;
  margin-right: 4px;
}

/* ---------- Login Page V2 ---------- */
.login-page-v2 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 20px;
}
.login-container-v2 {
  width: 100%;
  max-width: 420px;
}
.login-card-v2 {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 4px 40px rgba(47,107,255,0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.login-card-header-v2 {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-v2 {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(47,107,255,0.15);
}
.login-logo-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-card-header-v2 h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.login-subtitle-v2 {
  font-size: 14px;
  color: #94a3b8;
}
.login-tabs-v2 {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}
.login-tab-v2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-tab-v2:hover:not(.disabled):not(.active) {
  color: #334155;
}
.login-tab-v2.active {
  background: #fff;
  color: #2F6BFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-weight: 600;
}
.login-tab-v2.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}
.login-form-v2 .el-form-item {
  margin-bottom: 18px;
}
.login-form-v2 .el-input__wrapper {
  border-radius: 12px;
  padding: 4px 14px;
}
.login-btn-v2 {
  width: 100%;
  height: 48px;
  border-radius: 12px !important;
  font-size: 16px;
  font-weight: 600;
  background: #2F6BFF !important;
  border-color: #2F6BFF !important;
}
.login-btn-v2:hover {
  background: #1d5ae0 !important;
}
.sms-code-row-v2 {
  display: flex;
  gap: 10px;
  width: 100%;
}
.sms-btn-v2 {
  flex-shrink: 0;
  width: 130px;
  border-radius: 12px !important;
}
.login-wechat-placeholder {
  text-align: center;
  padding: 48px 0;
  color: #94a3b8;
}
.login-wechat-placeholder p {
  margin-top: 12px;
  font-size: 14px;
}
.login-footer-v2 {
  text-align: center;
  margin-top: 20px;
}
.login-back-home {
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}
.login-back-home:hover {
  color: #2F6BFF;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
  /* AppNav Mobile */
  .app-nav-inner {
    padding: 0 16px;
    height: 56px;
  }
  .app-nav-title {
    font-size: 16px;
  }
  .app-nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 20px;
    gap: 4px;
    z-index: 1001;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    margin: 0;
    overflow-y: auto;
  }
  .app-nav-links.is-open {
    display: flex;
    right: 0;
  }
  .app-nav-center {
    display: none;
  }
  .app-nav-right {
    display: none;
  }
  .app-nav-hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1002;
  }
  .app-nav-mobile-search {
    display: block;
    margin: 16px 0;
  }
  .app-nav-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
  }
  .app-nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
  .app-nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .app-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Shortcuts Grid - 2 columns */
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .shortcut-card {
    padding: 16px 12px !important;
  }
  .shortcut-name {
    font-size: 14px !important;
  }
  .shortcut-desc {
    font-size: 12px !important;
  }

  /* Data Services - 1 column */
  .data-services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hot Calculators - 2 columns */
  .hot-calc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .hot-calc-card {
    padding: 14px !important;
    gap: 10px !important;
  }
  .hot-calc-icon {
    width: 40px !important;
    height: 40px !important;
  }
  .hot-calc-info h4 {
    font-size: 13px !important;
  }
  .hot-calc-info p {
    font-size: 11px !important;
  }

  /* News list - 1 column */
  .news-list-compact {
    border-radius: 12px !important;
  }
  .news-item-compact {
    padding: 14px 16px !important;
    flex-wrap: wrap;
  }
  .news-item-title {
    font-size: 13px !important;
    width: 100%;
  }
  .news-item-date {
    font-size: 12px !important;
  }

  /* Resources entry card */
  .resources-entry-card {
    padding: 20px !important;
    gap: 14px !important;
  }
  .resources-entry-icon {
    width: 48px !important;
    height: 48px !important;
  }
  .resources-entry-info h3 {
    font-size: 16px !important;
  }
  .resources-entry-info p {
    font-size: 13px !important;
  }

  /* Resources page */
  .resources-hero h1 {
    font-size: 24px !important;
  }
  .resources-hero p {
    font-size: 14px !important;
  }
  .resources-grid {
    grid-template-columns: 1fr !important;
  }
  .category-block {
    padding: 16px !important;
  }

  /* Footer center */
  .home-footer {
    text-align: center;
  }
  .footer-beian {
    flex-direction: column;
    gap: 6px;
  }
  .beian-divider {
    display: none;
  }

  /* Login page mobile */
  .login-card-v2 {
    padding: 32px 24px 24px !important;
    border-radius: 16px !important;
  }
  .login-card-header-v2 h1 {
    font-size: 20px !important;
  }
  .login-tab-v2 {
    font-size: 12px !important;
    padding: 10px 4px !important;
  }
  .login-tab-v2 .el-icon {
    display: none;
  }

  /* RMB converter mobile */
  .rmb-result {
    font-size: 18px !important;
    padding: 16px !important;
  }

  /* Converter layout mobile */
  .converter-layout {
    flex-direction: column !important;
  }
  .converter-categories {
    width: 100% !important;
  }
  .converter-categories .el-menu {
    display: flex !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
  }
  .converter-categories .el-menu-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Data pages */
  .data-main {
    padding: 16px !important;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* Section inner padding */
  .section-inner {
    padding: 0 16px !important;
  }
}

/* ================================================================
   HOMEPAGE V2 — 精致化设计模板
   设计语言：#2F6BFF 主色 · 现代卡片 · 柔和阴影 · 统一圆角
   ================================================================ */

/* ---------- AppNav 精致化 ---------- */
.app-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(47, 107, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 4px 20px rgba(47, 107, 255, 0.04);
}
.app-nav-inner {
  max-width: 1200px;
  height: 68px;
  padding: 0 32px;
}
.app-nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.15);
}
.app-nav-title {
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(135deg, #2F6BFF, #1D5AE0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-nav-links {
  gap: 2px;
}
.app-nav-link {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 10px;
  position: relative;
}
.app-nav-link.active {
  color: #2F6BFF;
  background: rgba(47, 107, 255, 0.08);
  font-weight: 600;
}
.app-nav-search .el-input__wrapper {
  border-radius: 12px;
  background: #f5f8ff;
  box-shadow: 0 0 0 1.5px #e8eef8 !important;
  height: 42px;
  transition: all 0.25s ease;
}
.app-nav-search .el-input__wrapper:hover {
  background: #fff;
  box-shadow: 0 0 0 1.5px #c8d8ff !important;
}
.app-nav-search .el-input__wrapper.is-focus {
  background: #fff;
  box-shadow: 0 0 0 2px #2F6BFF, 0 0 0 6px rgba(47, 107, 255, 0.1) !important;
}
.app-nav-admin-btn {
  font-weight: 500;
  color: #475569;
  border-radius: 10px;
  transition: all 0.2s;
}
.app-nav-admin-btn:hover {
  color: #2F6BFF;
  background: rgba(47, 107, 255, 0.06);
}

/* ---------- Hero 区域 ---------- */
.home-hero {
  position: relative;
  padding: 64px 32px 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 107, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #f5f8ff 0%, #f1f5f9 100%);
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(47, 107, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 1;
}
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(47, 107, 255, 0.08);
  color: #2F6BFF;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(47, 107, 255, 0.12);
}
.home-hero-badge .el-icon {
  font-size: 14px;
}
.home-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.home-hero h1 .text-gradient {
  background: linear-gradient(135deg, #2F6BFF 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero-subtitle {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-btn-primary {
  padding: 12px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2F6BFF, #1D5AE0) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.3);
  transition: all 0.25s ease !important;
  height: auto !important;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.4);
}
.hero-btn-secondary {
  padding: 12px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #2F6BFF !important;
  border: 1.5px solid rgba(47, 107, 255, 0.2) !important;
  transition: all 0.25s ease !important;
  height: auto !important;
}
.hero-btn-secondary:hover {
  border-color: #2F6BFF !important;
  background: rgba(47, 107, 255, 0.04) !important;
  transform: translateY(-2px);
}
.home-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #2F6BFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- 首页主体间距 ---------- */
.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.home-page {
  background: #f1f5f9;
}

/* ---------- 快捷入口 ---------- */
.shortcuts-section {
  margin-top: -28px;
  padding: 0 0 40px;
  position: relative;
  z-index: 2;
  background: transparent;
}
.shortcuts-section::before {
  display: none;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shortcut-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.shortcut-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2F6BFF, #0ea5e9);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 16px 16px 0 0;
}
.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(47, 107, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(47, 107, 255, 0.15);
}
.shortcut-card:hover::after {
  opacity: 1;
}
.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(47, 107, 255, 0.08), rgba(47, 107, 255, 0.14));
  color: #2F6BFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.shortcut-card:hover .shortcut-icon {
  background: linear-gradient(135deg, #2F6BFF, #1D5AE0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.3);
  transform: scale(1.08);
}
.shortcut-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.shortcut-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ---------- Section 标题 ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title-bar {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2F6BFF, #1D5AE0);
}
.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin-left: 4px;
  font-weight: 400;
}
.section-more {
  font-size: 14px;
  color: #2F6BFF;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover {
  gap: 8px;
}

/* ---------- 分类区块 ---------- */
.resources-section {
  padding: 8px 0 40px;
}
.category-block {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}
.category-block:hover {
  box-shadow: none;
}
.category-header {
  display: none;
}

/* ---------- 数据服务 ---------- */
.data-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.data-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.data-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2F6BFF, #0ea5e9);
  opacity: 0;
  transition: opacity 0.3s;
}
.data-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(47, 107, 255, 0.1);
  border-color: rgba(47, 107, 255, 0.12);
}
.data-service-card:hover::before {
  opacity: 1;
}
.data-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.data-service-info {
  margin-left: 0;
}
.data-service-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}
.data-service-info p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}
.data-service-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #cbd5e1;
  transition: all 0.25s;
}
.data-service-card:hover .data-service-arrow {
  color: #2F6BFF;
  transform: translateX(4px);
}

/* ---------- 热门计算器 ---------- */
.hot-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hot-calc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}
.hot-calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.hot-calc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.1);
  border-color: rgba(47, 107, 255, 0.15);
}
.hot-calc-card:hover::before {
  opacity: 1;
}
.hot-calc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-calc-info {
  flex: 1;
  min-width: 0;
}
.hot-calc-info h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3px;
}
.hot-calc-info p {
  font-size: 13px;
  color: #94a3b8;
}
.hot-calc-arrow {
  color: #cbd5e1;
  transition: all 0.25s;
  flex-shrink: 0;
}
.hot-calc-card:hover .hot-calc-arrow {
  color: #2F6BFF;
  transform: translateX(4px);
}

/* ---------- 最新资讯 ---------- */
.news-list-compact {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.news-item-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f8fafc;
}
.news-item-compact:last-child {
  border-bottom: none;
}
.news-item-compact:hover {
  background: #f8faff;
}
.news-item-compact:hover .news-item-title {
  color: #2F6BFF;
}
.news-item-title {
  flex: 1;
  font-size: 14.5px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
  font-weight: 500;
}
.news-item-date {
  font-size: 13px;
  color: #cbd5e1;
  flex-shrink: 0;
  font-weight: 500;
}

/* ---------- 资源导航入口 ---------- */
.resources-entry-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #2F6BFF 0%, #1D5AE0 60%, #0ea5e9 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(47, 107, 255, 0.25);
}
.resources-entry-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.resources-entry-card::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.resources-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(47, 107, 255, 0.35);
}
.resources-entry-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.resources-entry-info {
  flex: 1;
  z-index: 1;
}
.resources-entry-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.resources-entry-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.resources-entry-arrow {
  color: #fff !important;
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.3s;
}
.resources-entry-card:hover .resources-entry-arrow {
  transform: translateX(6px);
}

/* ---------- Footer ---------- */
.home-footer {
  background: #fff;
  border-top: 1px solid #eef2f7;
  padding: 32px 0;
  margin-top: 16px;
}
.home-footer p {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- 动画覆盖 ---------- */
.shortcut-card,
.category-block {
  animation: none !important;
  opacity: 1 !important;
}

/* ================================================================
   HOMEPAGE V2 — 响应式
   ================================================================ */
@media (max-width: 1024px) {
  .data-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .app-nav-inner {
    height: 56px;
    padding: 0 16px;
  }
  .app-nav-title {
    font-size: 17px;
  }
  .app-nav-logo img {
    height: 34px;
    width: 34px;
    border-radius: 8px;
  }
  .home-hero {
    padding: 40px 20px 36px;
  }
  .home-hero h1 {
    font-size: 26px;
  }
  .home-hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .home-hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    padding: 12px 24px !important;
  }
  .home-hero-stats {
    gap: 24px;
  }
  .hero-stat-num {
    font-size: 22px;
  }
  .home-main {
    padding: 0 16px;
  }
  .shortcuts-section {
    margin-top: -20px;
    padding-bottom: 28px;
  }
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .shortcut-card {
    padding: 18px 14px 16px;
    border-radius: 14px;
  }
  .shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .shortcut-name {
    font-size: 14px;
  }
  .shortcut-desc {
    font-size: 11.5px;
  }
  .resources-section {
    padding: 4px 0 28px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title-bar {
    height: 18px;
  }
  .data-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .data-service-card {
    padding: 18px;
    border-radius: 14px;
  }
  .data-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .data-service-info h4 {
    font-size: 14px;
  }
  .data-service-info p {
    font-size: 12px;
  }
  .data-service-arrow {
    top: 18px;
    right: 18px;
  }
  .hot-calc-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hot-calc-card {
    padding: 16px 18px;
  }
  .hot-calc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .news-item-compact {
    padding: 14px 18px;
  }
  .news-item-title {
    font-size: 13.5px;
  }
  .resources-entry-card {
    padding: 22px 20px !important;
    gap: 16px !important;
    border-radius: 16px;
  }
  .resources-entry-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px;
  }
  .resources-entry-info h3 {
    font-size: 17px !important;
  }
  .resources-entry-info p {
    font-size: 13px !important;
  }
  .home-footer {
    padding: 24px 0;
  }
}
@media (max-width: 480px) {
  .home-hero h1 {
    font-size: 22px;
  }
  .home-hero-stats {
    gap: 16px;
  }
  .hero-stat-num {
    font-size: 20px;
  }
  .hero-stat-label {
    font-size: 12px;
  }
  .data-services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 空状态 ---------- */
.news-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #cbd5e1;
}
.news-empty-state p {
  margin-top: 8px;
  font-size: 14px;
}
