/* ========== 洪武2.0 现代主题 ========== */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface2: #f8f9fa;
  --border: #e8eaed;
  --text: #1a1a2e;
  --text2: #5f6368;
  --muted: #9aa0a6;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08);
  --radius: 12px;
  --radius-sm: 8px;
}

body.theme-modern {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

.theme-modern .header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.theme-modern .header h1 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.theme-modern .header .user-info { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }

/* Nav */
.theme-modern .nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  box-shadow: var(--shadow);
  position: sticky; top: 56px; z-index: 99;
}
.theme-modern .nav-item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.theme-modern .nav-item:hover { color: var(--primary); }
.theme-modern .nav-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Cards */
.theme-modern .card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.theme-modern .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stats */
.theme-modern .stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
}
.theme-modern .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.theme-modern .stat-value { font-size: 28px; font-weight: 700; }
.theme-modern .stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* Tables */
.theme-modern table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.theme-modern th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.theme-modern td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.theme-modern tr:hover td { background: var(--surface2); }

/* Buttons */
.theme-modern .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.theme-modern .btn:hover { background: var(--surface2); }
.theme-modern .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.theme-modern .btn-primary:hover { background: var(--primary-hover); }
.theme-modern .btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.theme-modern .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.theme-modern .btn-sm { padding: 4px 10px; font-size: 12px; }
.theme-modern .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Forms */
.theme-modern input, .theme-modern select, .theme-modern textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
}
.theme-modern input:focus, .theme-modern select:focus, .theme-modern textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.theme-modern .form-group { margin-bottom: 12px; }
.theme-modern .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 4px; }

/* Modals */
.theme-modern .modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.4); z-index: 1000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.theme-modern .modal.active { display: flex; }
.theme-modern .modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 85vh; overflow-y: auto;
  width: 90%; max-width: 520px;
}
.theme-modern .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.theme-modern .modal-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.theme-modern .modal-close { font-size: 20px; cursor: pointer; color: var(--muted); border: none; background: none; }
.theme-modern .modal-body { padding: 20px; }
.theme-modern .modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* Status badges */
.theme-modern .status {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 500;
}
.theme-modern .status-pending { background: #fef3c7; color: #92400e; }
.theme-modern .status-confirmed { background: #dbeafe; color: #1e40af; }
.theme-modern .status-rejected { background: #fee2e2; color: #991b1b; }
.theme-modern .status-cancelled { background: #f3f4f6; color: #6b7280; }
.theme-modern .status-verified { background: #d1fae5; color: #065f46; }

/* Theme toggle button */
.theme-toggle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.theme-toggle-btn:hover { background: var(--surface2); }

/* Page sections */
.theme-modern .page-section { padding: 20px 24px; }

/* Toast */
.theme-modern .toast {
  position: fixed; top: 72px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
  .theme-modern .header { padding: 0 16px; }
  .theme-modern .nav { padding: 0 12px; gap: 0; }
  .theme-modern .nav-item { padding: 10px 14px; font-size: 13px; }
  .theme-modern .page-section { padding: 12px; }
  .theme-modern .stat-card { padding: 14px; }
  .theme-modern .stat-value { font-size: 22px; }
}
