/* ==============================================================================
   Fit 2 Learn (适学通) - 现代化专业控制台样式规范 (Enterprise CMS Admin)
   ============================================================================== */

:root {
  --primary-navy: #0f2c40;
  --primary-navy-dark: #0a1e2c;
  --accent-teal: #0d9488;
  --accent-teal-hover: #0f766e;
  --accent-teal-light: #f0fdfa;
  --accent-gold: #f59e0b;
  
  --sidebar-bg: #0f172a;
  --sidebar-card: #1e293b;
  --sidebar-hover: #1e293b;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;

  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #cbd5e1;
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================================================================
   1. 独立全屏登录界面 (未登录状态)
   ============================================================================== */
.login-view-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 10%, #17425f 0%, #0a1a26 60%, #050d14 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.login-view-wrapper::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 42px 36px;
  position: relative;
  z-index: 10;
  animation: cardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.login-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e5980 100%);
  color: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 8px 16px -4px rgba(15, 44, 64, 0.3);
}

.login-brand-logo svg {
  width: 28px;
  height: 28px;
}

.login-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-input-group {
  margin-bottom: 20px;
}

.login-input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.login-input-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.login-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0f766e 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #115e59 0%, #042f2e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.login-demo-hint {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-footer-copy {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==============================================================================
   2. 主工作台界面架构 (已登录状态)
   ============================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* 侧边导航栏 */
.admin-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #115e59 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.sidebar-title-group h1 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-title-group span {
  font-size: 0.75rem;
  color: var(--sidebar-text);
}

.sidebar-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  padding: 12px 12px 6px 12px;
}

.sidebar-nav-list {
  list-style: none;
  margin-bottom: 14px;
}

.sidebar-nav-item {
  margin-bottom: 3px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.sidebar-nav-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: #64748b;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-link:hover svg {
  color: #cbd5e1;
}

.sidebar-nav-item.active .sidebar-nav-link {
  color: #fff;
  background: rgba(13, 148, 136, 0.16);
  font-weight: 600;
}

.sidebar-nav-item.active .sidebar-nav-link svg {
  color: var(--accent-teal);
}

.sidebar-nav-item.active .sidebar-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  background: var(--accent-teal);
  border-radius: 0 4px 4px 0;
}

/* 侧边栏底部用户信息 */
.sidebar-user-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 0.74rem;
  color: var(--accent-teal);
}

.sidebar-logout-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.sidebar-logout-btn svg {
  width: 18px;
  height: 18px;
}

/* ==============================================================================
   3. 主工作区与顶部导航栏
   ============================================================================== */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-main);
}

.admin-topbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.breadcrumb-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.breadcrumb-root {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-root svg {
  width: 16px;
  height: 16px;
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.8rem;
}

.breadcrumb-current {
  font-weight: 700;
  color: var(--text-main);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.system-status-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.topbar-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.topbar-link-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.topbar-link-btn svg {
  width: 14px;
  height: 14px;
}

/* 主内容容器 */
.admin-content-area {
  flex: 1;
  padding: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ==============================================================================
   4. 统计卡片与指标
   ============================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--card-hover-border);
}

.metric-header {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-box svg {
  width: 26px;
  height: 26px;
}

.metric-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.metric-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.metric-icon-emerald {
  background: #ecfdf5;
  color: #059669;
}

/* ==============================================================================
   5. 面板与内容编辑卡片 (CMS Cards)
   ============================================================================== */
.admin-panel {
  display: none;
  animation: panelSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-panel.active {
  display: block;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 面板头部 */
.panel-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.panel-banner-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.panel-banner-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.panel-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 专业 CMS 内容卡片 (去除了以前简陋的灰底嵌套) */
.section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.section-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.section-card-header {
  padding: 16px 24px;
  background: #fafbfc;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card-icon svg {
  width: 17px;
  height: 17px;
}

.section-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.section-card-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.section-card-body {
  padding: 24px;
}

/* ==============================================================================
   6. 表单控件与优雅栅格
   ============================================================================== */
.form-field {
  margin-bottom: 20px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.field-label-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
}

.field-input, .field-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
}

.field-input:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.field-textarea {
  min-height: 85px;
  resize: vertical;
  line-height: 1.6;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-hint svg {
  width: 13px;
  height: 13px;
}

/* 栅格排版 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

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

/* ==============================================================================
   7. 现代化图片上传组件
   ============================================================================== */
.uploader-box-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.uploader-box-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-sm);
}

.uploader-preview-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.uploader-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.uploader-thumbnail.rounded {
  border-radius: 50%;
}

.uploader-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploader-info-side {
  flex: 1;
}

.uploader-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.uploader-format-badge {
  font-size: 0.74rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.uploader-action-side {
  flex-shrink: 0;
}

.upload-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.upload-trigger-btn:hover {
  background: #f8fafc;
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.upload-trigger-btn svg {
  width: 16px;
  height: 16px;
}

.upload-status-indicator {
  font-size: 0.76rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   8. 按钮与操作栏
   ============================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0f766e 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #115e59 0%, #042f2e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--card-hover-border);
  color: var(--text-main);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.panel-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--card-border);
}

/* ==============================================================================
   9. 专业留资数据表格
   ============================================================================== */
.table-card-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.pro-table thead th {
  background: #f8fafc;
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.pro-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.pro-table tbody tr {
  transition: background-color 0.15s ease;
}

.pro-table tbody tr:hover {
  background: #f8fafc;
}

.pro-table tbody tr:last-child td {
  border-bottom: none;
}

.customer-name {
  font-weight: 700;
  color: var(--text-main);
}

.customer-contact-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending {
  background: var(--warning-bg);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-contacted {
  background: var(--info-bg);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-done {
  background: var(--success-bg);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dropdown {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.status-dropdown:focus {
  outline: none;
  border-color: var(--accent-teal);
}

/* ==============================================================================
   10. 浮动 Toast 弹窗通知
   ============================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pro-toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--accent-teal);
}

.pro-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.pro-toast-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.pro-toast.error {
  border-left-color: var(--danger);
}

.pro-toast.error .pro-toast-icon {
  color: var(--danger);
}

/* ==============================================================================
   11. 响应式布局适配
   ============================================================================== */
@media (max-width: 1200px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-content-area {
    padding: 20px 16px;
  }
  .admin-topbar {
    padding: 0 16px;
  }
  .panel-banner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
