﻿/* ========================================
   大车行客服端 - 现代化UI设计
   主色调：深蓝色 #1e3a8a
   辅助色：浅蓝色 #3b82f6
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1f2937;
  background: #f3f4f6;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   顶部导航栏
   ======================================== */
.top-nav {
  height: 56px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}
.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.top-nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  backdrop-filter: blur(10px);
}
.top-nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.top-nav-user .user-name {
  opacity: 0.95;
  font-weight: 500;
}
.top-nav-user .logout-link {
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.1);
}
.top-nav-user .logout-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ========================================
   主布局
   ======================================== */
.app-container {
  padding-top: 56px;
  min-height: 100vh;
  box-sizing: border-box;
  width: 100%;
}

/* ========================================
   左侧菜单
   ======================================== */
.sidebar {
  width: 200px;
  background: #fff;
  color: #374151;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  z-index: 50;
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}
.sidebar-menu {
  flex: 1;
  padding: 12px 12px;
}
.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  transition: all 0.2s ease;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 500;
}
.menu-item:hover {
  background: #f3f4f6;
  color: #1e3a8a;
  transform: translateX(2px);
}
.menu-item.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}
.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
  margin-left: 200px;
  background: #f3f4f6;
  min-height: calc(100vh - 56px);
  padding: 0;
  width: calc(100% - 200px);
  box-sizing: border-box;
  display: block;
}

/* ========================================
   标签页
   ======================================== */
.tabs-bar {
  background: #fff;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  padding-top: 12px;
}
.tab-item {
  padding: 12px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 15px;
  color: #6b7280;
  transition: all 0.2s;
  margin-bottom: -1px;
  font-weight: 500;
}
.tab-item:hover {
  color: #1e3a8a;
}
.tab-item.active {
  background: transparent;
  color: #1e3a8a;
  font-weight: 700;
  border-bottom-color: #1e3a8a;
  position: relative;
}
.tab-item.active::after {
  display: none;
}

/* ========================================
   页面内容
   ======================================== */
.page-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.page {
  display: none;
  width: 100% !important;
  box-sizing: border-box !important;
}
.page.active {
  display: block !important;
  padding: 24px;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* 页面标题 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.3px;
}

/* ========================================
   搜索筛选区
   ======================================== */
.filter-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
}
.filter-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 180px;
  transition: all 0.2s;
  background: #fafafa;
}
.filter-input:focus {
  border-color: #1e3a8a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.filter-input::placeholder {
  color: #9ca3af;
}
.filter-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fafafa;
  min-width: 140px;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-select:focus {
  border-color: #1e3a8a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.filter-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}
.filter-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}
.filter-btn:active {
  transform: translateY(0);
}
.filter-btn-outline {
  padding: 8px 20px;
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.filter-btn-outline:hover {
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}
.filter-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ========================================
   状态筛选标签
   ======================================== */
.status-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.status-tab {
  padding: 8px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.2s;
  border-radius: 8px;
  font-weight: 500;
}
.status-tab:first-child { border-radius: 8px; }
.status-tab:last-child { border-radius: 8px; }
.status-tab + .status-tab { border-left: none; }
.status-tab:hover {
  color: #1e3a8a;
  background: #f3f4f6;
}
.status-tab.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

/* ========================================
   操作栏
   ======================================== */
.action-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.action-bar .selected-info {
  color: #6b7280;
  font-size: 14px;
  margin-left: 12px;
}

/* ========================================
   表格容器
   ======================================== */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
}
.table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 12px;
}
.table-scroll::-webkit-scrollbar {
  height: 10px;
}
.table-scroll::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 5px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 5px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}
.data-table th {
  background: #f9fafb;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}
.data-table tbody tr {
  transition: all 0.15s ease;
}
.data-table tbody tr:hover {
  background: #f9fafb;
}
.data-table tbody tr.pending-row {
  background: #fffbeb;
}
.data-table tbody tr.pending-row:hover {
  background: #fef3c7;
}

/* 操作列固定在最右侧 */
.data-table th:last-child,
.data-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 10;
  box-shadow: -4px 0 8px -4px rgba(0,0,0,0.1);
}
.data-table th:last-child {
  background: #f9fafb;
}
.data-table tbody tr:hover td:last-child {
  background: #f9fafb;
}
.data-table tbody tr.pending-row td:last-child {
  background: #fffbeb;
}
.data-table tbody tr.pending-row:hover td:last-child {
  background: #fef3c7;
}

/* ========================================
   车牌号标签
   ======================================== */
.plate-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Microsoft YaHei", monospace;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}
.plate-tag.green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #fff;
}
.plate-tag.blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff;
}

/* ========================================
   业务类型标签
   ======================================== */
.biz-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.biz-new {
  background: #dbeafe;
  color: #1e40af;
}
.biz-transfer {
  background: #fef3c7;
  color: #92400e;
}
.biz-renew {
  background: #d1fae5;
  color: #065f46;
}
.biz-device {
  background: #ede9fe;
  color: #5b21b6;
}
.biz-owner {
  background: #fce7f3;
  color: #9d174d;
}

/* ========================================
   状态标签
   ======================================== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.tag-green {
  background: #d1fae5;
  color: #065f46;
}
.tag-red {
  background: #fee2e2;
  color: #991b1b;
}
.tag-gray {
  background: #f3f4f6;
  color: #4b5563;
}
.tag-blue {
  background: #dbeafe;
  color: #1e40af;
}
.tag-orange {
  background: #fef3c7;
  color: #92400e;
}

/* ========================================
   操作链接按钮
   ======================================== */
.action-link {
  color: #1e3a8a;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  transition: all 0.2s;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
}
.action-link:hover {
  color: #1e40af;
  background: #eff6ff;
  text-decoration: underline;
}

/* ========================================
   按钮样式
   ======================================== */
.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}
.btn-primary-sm {
  padding: 7px 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}
.btn-primary-sm:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}
.btn-default {
  padding: 10px 24px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-default:hover {
  color: #1e3a8a;
  border-color: #1e3a8a;
  background: #f9fafb;
}
.btn-outline-sm {
  padding: 7px 16px;
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-outline-sm:hover {
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

/* ========================================
   详情卡片
   ======================================== */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
}
.detail-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.edit-mode.detail-grid, .edit-mode .detail-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 24px;
}
.detail-item {
  display: flex;
  font-size: 14px;
  padding: 6px 0;
}
.edit-mode .detail-item {
  display: block;
  padding: 8px 0;
}
.edit-mode .detail-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}
.edit-mode .detail-item input, .edit-mode .detail-item select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fafafa;
  transition: all 0.2s;
}
.edit-mode .detail-item input:focus, .edit-mode .detail-item select:focus {
  outline: none;
  border-color: #1e3a8a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.detail-item .label {
  color: #6b7280;
  min-width: 100px;
  font-weight: 500;
}
.detail-item .value {
  color: #1f2937;
  font-weight: 500;
  flex: 1;
}

/* ========================================
   登录页面
   ======================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f5f7fa;
  position: relative;
}

/* 背景装饰圆圈 */
.login-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.login-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.login-circle-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}
.login-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}
.login-circle-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* 登录容器 */
.login-container {
  display: flex;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  width: 900px;
  max-width: 95%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左侧品牌区 */
.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
  padding: 50px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}
.login-brand-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.login-brand-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.login-brand-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 40px;
  letter-spacing: 1px;
}
.login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0.95;
}
.login-feature-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧表单区 */
.login-form-wrapper {
  flex: 1;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form-header {
  margin-bottom: 35px;
}
.login-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.login-form-header p {
  font-size: 14px;
  color: #6b7280;
}

/* 表单 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #9ca3af;
  z-index: 1;
}
.login-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  background: #f9fafb;
  color: #1f2937;
}
.login-input:focus {
  border-color: #1e3a8a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.login-input::placeholder {
  color: #9ca3af;
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
  letter-spacing: 4px;
  margin-top: 10px;
}
.login-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.45);
}
.login-btn:active {
  transform: translateY(0);
}

/* 底部 */
.login-footer {
  margin-top: 30px;
  text-align: center;
}
.login-tip {
  font-size: 13px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
}

/* 响应式 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 95%;
  }
  .login-brand {
    padding: 30px;
    text-align: center;
  }
  .login-brand-title {
    font-size: 32px;
  }
  .login-brand-features {
    display: none;
  }
  .login-form-wrapper {
    padding: 35px 25px;
  }
}


/* ========================================
   弹窗/模态框
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

/* ========================================
   Toast提示
   ======================================== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.toast.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 通知权限提示条 */
.notification-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1999;
  animation: slideDown 0.3s ease;
}
.notification-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
  max-width: 600px;
}
.notification-banner-icon {
  font-size: 24px;
}
.notification-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}
.notification-banner-btn {
  background: #fff;
  color: #1e3a8a;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.notification-banner-btn:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}
.notification-banner-close {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.notification-banner-close:hover {
  background: rgba(255,255,255,0.3);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========================================
   分页
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 16px 0;
}
.pagination button {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  font-weight: 500;
}
.pagination button:hover:not(:disabled) {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #f9fafb;
}
.pagination button.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border-color: #1e3a8a;
  font-weight: 600;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-info {
  color: #6b7280;
  font-size: 14px;
  margin: 0 12px;
}

/* ========================================
   筛选栏
   ======================================== */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.filter-tab {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}
.filter-tab:hover {
  color: #1e3a8a;
  background: #f3f4f6;
}
.filter-tab.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.filter-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filter-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  min-width: 140px;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-select:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.search-input {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 240px;
  transition: all 0.2s;
  background: #fff;
}
.search-input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.search-input::placeholder {
  color: #9ca3af;
}

/* ========================================
   工作台标签
   ======================================== */
.workbench-tab {
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: #6b7280;
  font-size: 15px;
  transition: all 0.2s;
}
.workbench-tab.active {
  color: #1e3a8a;
  border-bottom-color: #1e3a8a;
}
.workbench-tab:hover {
  color: #1e3a8a;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1200px) {
  .sidebar { width: 180px; }
  .main-content { margin-left: 180px; width: calc(100% - 180px); }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; width: 100%; }
  .page.active { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .edit-mode.detail-grid, .edit-mode .detail-grid { grid-template-columns: 1fr; }
}


/* ========== 登录页面简洁样式 ========== */
.login-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
  width: 400px;
  max-width: 90%;
  text-align: center;
}

.login-logo {
  font-size: 28px;
  font-weight: 600;
  color: #333c59;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 14px;
  color: #8c8c8c;
  margin-bottom: 32px;
}

.login-form {
  text-align: left;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s;
  outline: none;
}

.login-input:focus {
  border-color: #333c59;
  box-shadow: 0 0 0 2px rgba(51, 60, 89, 0.1);
}

.login-input::placeholder {
  color: #bfbfbf;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #333c59;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 4px;
}

.login-btn:hover {
  background: #2a3249;
}

.login-btn:active {
  background: #1f2638;
}

.login-tip {
  margin-top: 20px;
  font-size: 12px;
  color: #bfbfbf;
}


/* ========== 系统设置页面样式 ========== */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.settings-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  border-radius: 6px 6px 0 0;
  user-select: none;
}

.settings-tab:hover {
  color: #333c59;
  background: #f9fafb;
}

.settings-tab.active {
  color: #333c59;
  font-weight: 600;
  border-bottom-color: #333c59;
  background: #fff;
}

/* 表单网格 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-item label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.form-item input,
.form-item select,
.form-item textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  background: #fff;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: #333c59;
  box-shadow: 0 0 0 3px rgba(51, 60, 89, 0.1);
}

.form-item input::placeholder,
.form-item textarea::placeholder {
  color: #9ca3af;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* 配置说明 */
.config-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f9ff;
  border: 1px solid #bae7ff;
  border-radius: 6px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.6;
}

.config-tip p {
  margin: 4px 0;
}

.config-tip strong {
  color: #0c4a6e;
}

/* 设备型号列表 */
.device-list-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.device-list-item input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

/* 代理管理表格 */
.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.settings-table th {
  background: #f9fafb;
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.settings-table td {
  padding: 12px;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

.settings-table tr:hover {
  background: #f9fafb;
}

/* 弹窗 */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.settings-modal.show {
  display: flex;
}

.settings-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.settings-modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 20px;
}


/* ========== 图片查看器样式 ========== */
/* 图片查看器（可拖动窗口） */
.photo-viewer-window {
  position: absolute;
  z-index: 10000;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-width: 400px;
  min-height: 300px;
}

.photo-viewer-titlebar {
  background: linear-gradient(135deg, #333c59 0%, #4a5478 100%);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.photo-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-viewer-zoom-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.photo-viewer-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.photo-viewer-zoom-level {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 45px;
  text-align: center;
}

.photo-viewer-title {
  font-size: 14px;
  font-weight: 600;
}

.photo-viewer-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.photo-viewer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.photo-viewer-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
  background: #f5f5f5;
}

.photo-viewer-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 480px;
  overflow: auto;
  position: relative;
}

.photo-viewer-image-area img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-viewer-info-bar {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  color: #666;
  font-size: 13px;
}

.photo-viewer-prev-btn,
.photo-viewer-next-btn {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #333;
  font-size: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.photo-viewer-prev-btn:hover,
.photo-viewer-next-btn:hover {
  background: #333c59;
  color: #fff;
  border-color: #333c59;
}

.photo-viewer-prev-btn:disabled,
.photo-viewer-next-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 照片网格样式优化 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
  background: #f9fafb;
}

.photo-item:hover {
  border-color: #333c59;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item .photo-type-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 12px;
  padding: 20px 8px 6px;
  text-align: center;
}


/* ========== 设备型号搜索筛选下拉框 ========== */
.device-search-wrapper {
  position: relative;
  width: 100%;
}

.device-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.device-search-input:focus {
  border-color: #333c59;
  box-shadow: 0 0 0 2px rgba(51, 60, 89, 0.1);
}

.device-search-input::placeholder {
  color: #bfbfbf;
}

.device-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

.device-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.device-dropdown-item:last-child {
  border-bottom: none;
}

.device-dropdown-item:hover {
  background: #f5f7fa;
  color: #333c59;
}

.device-dropdown-item.active {
  background: #e8f0fe;
  color: #333c59;
}

.device-no-result {
  padding: 12px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* 滚动条样式 */
.device-dropdown::-webkit-scrollbar {
  width: 6px;
}

.device-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.device-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.device-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
