/* ============================================================
   汇测科研平台 - 全新统一设计系统 v2.0
   设计语言：现代商务 · 深邃科技 · 玻璃拟态
   ============================================================ */

/* ==================== CSS 变量 ==================== */
:root {
  --primary: #0f3460;
  --primary-dark: #081e3a;
  --primary-light: #1a5fa8;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg-body: #eef2f7;
  --bg-gradient: linear-gradient(135deg, #0f3460 0%, #162447 50%, #1a1a2e 100%);
  --sidebar-w: 250px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 52, 96, 0.12);
  --shadow-lg: 0 12px 48px rgba(15, 52, 96, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: #1e293b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,52,96,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,52,96,0.35); }

/* ==================== 玻璃拟态通用卡片 ==================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==================== 侧边栏（桌面端） ==================== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f3460 0%, #162447 100%);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 侧边栏顶部光效 */
.sidebar::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(233,69,96,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-brand {
  padding: 28px 20px 22px;
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.sidebar-brand span { color: var(--accent); }

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.nav-section {
  padding: 12px 20px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-item {
  padding: 11px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding-left: 24px;
}
.nav-item.active {
  background: rgba(233,69,96,0.18);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
  padding-left: 24px;
}
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .badge { margin-left: auto; }

/* ==================== 主内容区 ==================== */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 顶部栏 ==================== */
.topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,52,96,0.08);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ==================== 手机端顶部栏 ==================== */
.m-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: linear-gradient(135deg, #0f3460, #162447);
  color: #fff;
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.m-topbar .m-brand { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.5px; }
.m-topbar .m-brand span { color: var(--accent); }
.m-menu-btn {
  background: none; border: none; color: #fff;
  font-size: 1.7rem; padding: 4px 8px; cursor: pointer; line-height: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
}

/* ==================== 页面通用卡片 ==================== */
.page-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s;
}
.page-card:hover { box-shadow: var(--shadow-lg); }

/* ==================== 统计卡片 ==================== */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label { color: #64748b; font-size: 0.82rem; margin-top: 4px; font-weight: 500; }
.stat-card .stat-icon { font-size: 2.2rem; opacity: 0.15; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

/* 统计卡片渐变上边框配色 */
.stat-card.blue::before { background: linear-gradient(90deg, var(--info), #60a5fa); }
.stat-card.green::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.red::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.orange::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }

/* ==================== 状态徽章 ==================== */
.badge-待处理 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; font-weight: 600;
  border: 1px solid #fcd34d;
}
.badge-待审核 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; font-weight: 600;
}
.badge-已完成, .badge-正常, .badge-已通过 {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46; font-weight: 600;
  border: 1px solid #6ee7b7;
}
.badge-处理中, .badge-进行中 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af; font-weight: 600;
}
.badge-已拒绝, .badge-拒绝, .badge-冻结 {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b; font-weight: 600;
}
.badge-待确认 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #6b21a8; font-weight: 600; }

/* 通用 badge */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}

/* ==================== 表格 ==================== */
.table {
  font-size: 0.88rem;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  background: linear-gradient(135deg, var(--primary), #1a4a8a);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 13px 16px;
  letter-spacing: 0.3px;
}
.table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fafc; }
.table tbody tr:nth-child(even) td { background: #fafbfd; }
.table tbody tr:nth-child(even):hover td { background: #f1f5f9; }

/* ==================== 按钮 ==================== */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
}
.btn-primary:hover { background: linear-gradient(135deg, #1a4a8a, var(--primary-light)); }

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  border: none;
  color: #fff;
}
.btn-success:hover { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }

.btn-danger, .btn-outline-danger {
  border: none;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline-secondary {
  border: 1.5px solid #e2e8f0;
  color: #64748b;
}
.btn-outline-secondary:hover { background: #f1f5f9; }

.btn-outline-success { border: 1.5px solid var(--success); color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: #fff; }

.btn-outline-danger { border: 1.5px solid var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { font-size: 0.78rem; padding: 5px 12px; }
.btn-lg { font-size: 1rem; padding: 12px 24px; border-radius: var(--radius-sm); }

/* 金额样式 */
.money {
  font-weight: 700;
  color: var(--accent);
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
}

/* ==================== 表单美化 ==================== */
.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
  outline: none;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

/* 输入框前置图标 */
.input-group-text {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  color: var(--primary);
  font-weight: 600;
}

/* ==================== 警告提示 ==================== */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.88rem;
  padding: 12px 16px;
}
.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}
.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}
.alert-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}
.alert-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

/* ==================== 模态框美化 ==================== */
.modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), #1a4a8a);
  color: #fff;
  border: none;
  padding: 18px 24px;
}
.modal-header .btn-close { filter: invert(1); }
.modal-title { font-weight: 700; font-size: 1rem; }

/* ==================== 服务商端通用 ==================== */
.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

/* 服务商顶部栏 */
.topbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,52,96,0.06);
  display: flex;
  align-items: center;
}
.topbar-back {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.topbar-back:hover { color: var(--accent); }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--primary); flex: 1; text-align: center; }

/* 统计块 */
.stat-block {
  background: linear-gradient(135deg, var(--primary), #1a4a8a);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  color: #fff;
}
.stat-block.accent { background: linear-gradient(135deg, var(--accent), #c23152); }
.stat-block .stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat-block .stat-label { font-size: 0.72rem; opacity: 0.8; margin-top: 4px; }

/* 操作卡片 */
.btn-action {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.04);
}
.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,52,96,0.15);
  color: var(--primary);
  text-decoration: none;
}
.btn-action .action-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(15,52,96,0.08), rgba(233,69,96,0.08));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}
.btn-action .action-title { font-size: 0.92rem; font-weight: 700; }
.btn-action .action-desc { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }

/* 区块标题 */
.section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 表单卡片 */
.mb-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

/* 发票样式提示 */
.alert-info-custom {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #1e40af;
}

/* 发票/合同列表样式 */
.invoice-list-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  transition: all 0.2s;
}
.invoice-list-card:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-lg);
}
.invoice-list-card.orange { border-left-color: var(--warning); }
.invoice-list-card.green { border-left-color: var(--success); }
.invoice-list-card.red { border-left-color: var(--danger); }
.invoice-list-card.blue { border-left-color: var(--info); }

/* 金额大字 */
.amount-lg {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
}
.amount-lg span { font-size: 0.72rem; color: #94a3b8; font-weight: 400; }

/* ==================== 登录页专属 ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(233,69,96,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 44px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), #1a4a8a);
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15,52,96,0.3);
}
.login-brand-logo i { font-size: 28px; color: #fff; }
.login-brand h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}
.login-brand h1 span { color: var(--accent); }
.login-brand p { color: #94a3b8; font-size: 0.82rem; margin: 0; }

.login-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.login-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.7;
}
.login-input-wrap .form-control {
  padding-left: 44px;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 0.95rem;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #1a4a8a);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.btn-login:hover {
  background: linear-gradient(135deg, #1a4a8a, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,52,96,0.35);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 0.78rem;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.login-footer a:hover { color: var(--accent); }

/* ==================== 入驻页 ==================== */
.portal-page {
  min-height: 100vh;
  background: var(--bg-gradient);
  padding: 20px 12px 40px;
  position: relative;
  overflow: hidden;
}
.portal-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.portal-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(233,69,96,0.25) 0%, transparent 70%);
}
.portal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), #c23152);
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(233,69,96,0.35);
  font-size: 32px;
  color: #fff;
}
.portal-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.portal-hero h1 span { color: var(--accent); }
.portal-hero p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }

.portal-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 560px;
  margin: 0 auto;
}

/* 价值主张 */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.value-prop {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.value-prop-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 1.2rem;
}
.value-prop h6 { font-size: 0.82rem; font-weight: 700; margin: 0 0 3px; }
.value-prop p { font-size: 0.68rem; color: #64748b; margin: 0; }

/* ==================== 列表页空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.5rem;
  color: #94a3b8;
}
.empty-state h5 { font-size: 1rem; font-weight: 700; color: #64748b; margin: 0 0 6px; }
.empty-state p { font-size: 0.85rem; color: #94a3b8; margin: 0 0 20px; }

/* ==================== 通知条 ==================== */
.notify-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-weight: 500;
}
.notify-bar.success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.notify-bar.warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}
.notify-bar.info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ==================== 渐变文字 ==================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  /* 隐藏桌面侧边栏 */
  .sidebar { transform: translateX(-100%); z-index: 300; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: none; }
  .sidebar-overlay.open { display: block; }
  .m-topbar { display: flex !important; }

  .main-content {
    margin-left: 0 !important;
    padding-top: 58px;
  }

  .topbar { padding: 12px 14px; }
  .page-card { padding: 16px 14px; border-radius: 12px; }
  .page-container { padding: 12px 12px 24px; }
  .login-card { padding: 32px 24px; border-radius: 20px; }
  .stat-block { padding: 14px 12px; }
  .stat-block .stat-num { font-size: 1.3rem; }

  .value-props { grid-template-columns: 1fr; }
  .table-responsive-sm { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stat-card { padding: 18px 16px; }
  .stat-card .stat-num { font-size: 1.6rem; }

  .portal-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .login-page { padding: 16px; }
  .login-card { padding: 28px 20px; }
}
