/* ============================================
   退役军人创业服务平台 — 全局样式
   主题：海军蓝 + 金色 + 军绿
   ============================================ */

:root {
  /* 主色调 */
  --navy-950: #0A1628;
  --navy-900: #0F1F3D;
  --navy-800: #162D50;
  --navy-700: #1B3A5C;
  --navy-600: #254A74;
  --navy-500: #2E5C8A;
  --navy-400: #4A7AB5;
  --navy-300: #7BA3CC;
  --navy-200: #A8C4DE;
  --navy-100: #D4E2F0;
  --navy-50: #EEF3F9;

  /* 金色点缀 */
  --gold-600: #8B6914;
  --gold-500: #A67C00;
  --gold-400: #C5A55A;
  --gold-300: #D4BC7A;
  --gold-200: #E3D3A0;
  --gold-100: #F0E8C8;
  --gold-50: #F9F5E8;

  /* 军绿 */
  --green-700: #1A3A1A;
  --green-600: #2D5A27;
  --green-500: #3D7A35;
  --green-400: #5A9A4F;
  --green-300: #8DC285;
  --green-100: #D9EFD5;

  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* 语义色 */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 字体 */
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

/* ============================================
   全局重置
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy-700); }

/* ============================================
   登录页 (全屏)
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(197,165,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,165,90,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 420px;
  padding: 48px 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

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

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15,31,61,0.3);
}

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

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(46,92,138,0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(27,58,92,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,92,0.4);
}

.btn-block { width: 100%; }

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy-600);
  color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(197,165,90,0.3);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197,165,90,0.4);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-success {
  background: var(--green-500);
  color: var(--white);
}

.login-error {
  background: #FEF2F2;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  border-left: 3px solid var(--danger);
}

/* 验证码 */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input {
  flex: 1;
}

.captcha-img {
  height: 46px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.captcha-img:hover {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(46,92,138,0.1);
}

/* ============================================
   管理后台布局
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 260px;
  background: var(--navy-950);
  color: var(--white);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.sidebar-brand-text span {
  font-size: 11px;
  color: var(--navy-300);
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--navy-300);
  padding: 8px 12px 6px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--navy-200);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-item.active {
  background: rgba(197,165,90,0.15);
  color: var(--gold-300);
  font-weight: 600;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold-500);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--navy-300);
}

.sidebar-logout {
  background: none;
  border: none;
  color: var(--navy-300);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}

/* 顶部栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
}

.page-breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.page-breadcrumb span {
  color: var(--gold-500);
}

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

/* ============================================
   统计卡片
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.stat-card.navy::after { background: var(--navy-700); }
.stat-card.gold::after { background: var(--gold-400); }
.stat-card.green::after { background: var(--green-500); }
.stat-card.info::after { background: var(--info); }

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stat-card-icon.navy { background: rgba(27,58,92,0.1); color: var(--navy-700); }
.stat-card-icon.gold { background: rgba(197,165,90,0.1); color: var(--gold-500); }
.stat-card-icon.green { background: rgba(45,90,39,0.1); color: var(--green-600); }
.stat-card-icon.info { background: rgba(59,130,246,0.1); color: var(--info); }

.stat-card-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.stat-card-change.up { color: var(--green-500); }
.stat-card-change.down { color: var(--danger); }

/* ============================================
   图表区域
   ============================================ */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   表格/列表样式
   ============================================ */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.table-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

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

.search-box {
  position: relative;
}

.search-box input {
  width: 280px;
  height: 38px;
  padding: 0 16px 0 40px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(46,92,138,0.1);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.filter-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:focus {
  border-color: var(--navy-400);
}

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

thead th {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--navy-50);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-navy { background: rgba(27,58,92,0.1); color: var(--navy-700); }
.badge-gold { background: rgba(197,165,90,0.1); color: var(--gold-500); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--danger); }

.table-pagination {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pagination-info {
  font-size: 13px;
  color: var(--gray-500);
}

.pagination-btns {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover { background: var(--gray-100); }
.pagination-btn.active {
  background: var(--navy-700);
  color: var(--white);
  border-color: var(--navy-700);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-lg { max-width: 1000px; }

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  color: var(--gray-500);
}

.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   表单布局
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title svg {
  color: var(--gold-500);
}

textarea.form-input {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
  min-height: 80px;
}

/* ============================================
   详情页
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.detail-card-header {
  padding: 18px 24px;
  background: var(--navy-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
}

.detail-card-body {
  padding: 20px 24px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.detail-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.detail-value {
  flex: 1;
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

.detail-value.empty {
  color: var(--gray-400);
  font-style: italic;
}

/* 附件样式 */
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.attachment-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.attachment-preview {
  height: 160px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview .file-icon {
  font-size: 48px;
  color: var(--gray-400);
}

.attachment-info {
  padding: 10px 12px;
}

.attachment-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.attachment-meta {
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attachment-delete {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.attachment-delete:hover {
  background: rgba(239,68,68,0.1);
}

/* 上传区域 */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.upload-zone:hover {
  border-color: var(--navy-400);
  background: var(--navy-50);
}

.upload-zone svg {
  color: var(--gray-400);
  margin-bottom: 12px;
}

.upload-zone-text {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.upload-zone-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}

/* ============================================
   加载/空状态
   ============================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 15px;
  font-weight: 500;
}

/* ============================================
   Toast 通知
   ============================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast-success { background: var(--success); color: var(--white); }
.toast-error { background: var(--danger); color: var(--white); }
.toast-info { background: var(--info); color: var(--white); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 0; display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .table-header { flex-direction: column; }
  .search-box input { width: 100%; }
  .login-container { width: 90%; padding: 32px 24px; }
  tbody td { padding: 12px 12px; font-size: 13px; }
  thead th { padding: 10px 12px; font-size: 11px; }
}

/* ============================================
   工具类
   ============================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.cursor-pointer { cursor: pointer; }
.hidden { display: none !important; }
.w-full { width: 100%; }
