body {
  background: #fff !important;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #f7fafd 0%, #e9f0ff 100%);
  font-family: 'Segoe UI', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #222f3e;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  border: 1.5px solid #e3eaf6;
}

.admin-container {
  width: 100vw !important;
  margin: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
}

.main-bg-wave {
  position: fixed;
  left: 0; bottom: 0; width: 100vw; height: 180px;
  z-index: 0;
  pointer-events: none;
}
.main-bg-wave2 {
  position: fixed;
  left: 0; bottom: 0; width: 100vw; height: 120px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.main-bg-circle {
  position: fixed;
  right: -100px; top: -100px;
  width: 260px; height: 260px;
  background: radial-gradient(circle at 60% 40%, #00c6fb 0%, #fff 80%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.7;
  filter: blur(2px);
  box-shadow: 0 0 80px 20px #1976d2aa;
}
.main-bg-ring {
  position: fixed;
  right: 60px; top: 40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 6px solid #00c6fb;
  border-top: 6px solid #fff;
  border-bottom: 6px solid #1976d2;
  opacity: 0.5;
  z-index: 1;
  animation: spin 8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== 顶部导航栏 ========== */
nav {
  background: #fff;
  padding: 0 0 0 0;
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px #e0e7ef;
  position: relative;
  z-index: 2;
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-left: 38px;
  margin-right: 38px;
  gap: 18px;
  position: relative;
}
.nav-logo-img {
  width: 56px; height: 56px; border-radius: 50%; background: #e3f2fd;
  box-shadow: 0 2px 12px #1976d222;
  object-fit: cover;
  border: 3px solid #00c6fb;
  position: relative;
  top: 2px;
}
.nav-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 10px;
  font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
  background: linear-gradient(90deg, #1976d2 0%, #00c6fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 4px 16px #1976d244, 0 2px 0 #fff8;
  margin: 0;
  line-height: 1.2;
  display: block;
}
.nav-subtitle {
  font-size: 14px;
  color: #1976d2;
  letter-spacing: 2px;
  margin-left: 6px;
  font-weight: 500;
  opacity: 0.7;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav button {
  background: none;
  border: none;
  color: #1976d2;
  font-size: 18px;
  margin-right: 32px;
  padding: 12px 28px 8px 28px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
  position: relative;
  outline: none;
}
nav button.active, nav button:hover {
  background: #f3f7fd;
  color: #1976d2;
}
nav button.active::after, nav button:hover::after {
  content: '';
  display: block;
  position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg,#1976d2,#00c6fb);
  box-shadow: 0 2px 8px #1976d244;
}

/* ========== 主体与卡片 ========== */
.brand-slogan {
  margin-top: 32px;
  font-size: 22px;
  color: #1976d2;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.85;
  text-shadow: 0 2px 8px #00c6fb33;
  font-family: 'Montserrat', 'PingFang SC', Arial, sans-serif;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 64px 0;
  min-height: 80vh;
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 60px auto 36px auto;
  border-radius: 18px;
  padding: 48px 60px 44px 60px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 40px #1a237e22, 0 0 0 2px #00c6fb22;
  padding: 48px 54px 38px 54px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 36px auto;
  border: 1.5px solid rgba(30, 136, 229, 0.10);
  position: relative;
  overflow: visible;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.card::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; top: 10px; bottom: 10px;
  border-radius: 24px;
  border: 2px solid #00c6fb22;
  pointer-events: none;
  z-index: 0;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(34,51,77,0.16), 0 2px 8px rgba(45,140,240,0.07);
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 32px;
  color: #1976d2;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 2px 8px #00c6fb22;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== 表单美化 ========== */
form .form-row, .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
form label, .form-row label {
  flex: 0 0 120px;
  color: #1976d2;
  font-size: 16px;
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
form input, form select, .form-row input, .form-row select {
  flex: 1;
  padding: 12px 14px;
  font-size: 17px;
  border: 1.5px solid #dbeafe;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 12px #1976d211;
  margin-left: 8px;
}
form input:focus, form select:focus, .form-row input:focus, .form-row select:focus {
  border: 1.5px solid #00c6fb;
  background: #fff;
  box-shadow: 0 0 0 2px #00c6fb55;
}

/* ========== 按钮 ========== */
.action-btn, .modal-btn, .login-btn, .query-bar button, .card button, .export-btn {
  font-size: 17px;
  padding: 12px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  font-weight: 600;
  background: linear-gradient(90deg,#1976d2 60%,#00c6fb 100%);
  color: #fff;
  box-shadow: 0 4px 24px #1976d2aa;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
}
.action-btn:hover, .modal-btn:hover, .login-btn:hover, .query-bar button:hover, .card button:hover, .export-btn:hover {
  background: linear-gradient(90deg,#1565c0 60%,#42a5f5 100%);
  box-shadow: 0 8px 32px #1976d2cc;
  transform: translateY(-2px) scale(1.03);
}
.action-btn.delete {
  background: linear-gradient(90deg, #d32f2f 60%, #f44336 100%);
  box-shadow: 0 4px 24px #f44336aa;
}
.action-btn.delete:hover {
  background: linear-gradient(90deg, #c62828 60%, #e53935 100%);
  box-shadow: 0 8px 32px #f44336cc;
}

/* ========== 查询栏 ========== */
.query-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.query-bar input[type="text"],
.query-bar input[type="date"] {
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #dbeafe;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 500;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #1976d211;
  line-height: 40px;
  vertical-align: middle;
  margin: 0;
  outline: none;
}
.query-bar input:focus {
  border: 1.5px solid #00c6fb;
  background: #fff;
  box-shadow: 0 0 0 2px #00c6fb33;
}
.query-bar button, .export-btn {
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 28px;
  background: linear-gradient(90deg,#1976d2 60%,#00c6fb 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px #1976d288;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.query-bar button:hover, .export-btn:hover {
  background: linear-gradient(90deg,#1565c0 60%,#42a5f5 100%);
  box-shadow: 0 4px 16px #1976d2cc;
  transform: translateY(-2px) scale(1.03);
}
.query-bar span {
  font-size: 16px;
  font-weight: 500;
  color: #2a3442;
  line-height: 40px;
  vertical-align: middle;
}

/* ========== 悬浮帮助按钮 ========== */
.help-float-btn {
  position: fixed;
  right: 32px;
  bottom: 36px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg,#1976d2 60%,#00c6fb 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px #1976d2aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 99;
  border: none;
  transition: box-shadow 0.18s, transform 0.18s;
}
.help-float-btn:hover {
  box-shadow: 0 8px 32px #1976d2cc;
  transform: scale(1.08);
}

/* ========== 智能提示下拉 ========== */
.suggestions {
  position: absolute;
  left: 0; right: 0; top: 36px;
  background: #fff;
  border: 1.5px solid #90caf9;
  border-radius: 10px;
  box-shadow: 0 4px 24px #1976d244;
  z-index: 10000;
  max-height: 220px;
  overflow-y: auto;
  font-size: 16px;
  display: none;
}
.suggestions div {
  padding: 10px 16px;
  cursor: pointer;
  color: #1976d2;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.suggestions div:hover {
  background: #e3f2fd;
  color: #1565c0;
}

/* ========== 美化筛选行 ========== */
.filter-row {
  background: #f3f7fd;
}
.filter-row th {
  padding: 2px 6px;
}
.filter-input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  padding: 3px 6px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  background: #f8fafc;
  color: #1976d2;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 26px;
}
.filter-input:focus {
  border: 1.5px solid #409eff;
  background: #fff;
  box-shadow: 0 0 0 2px #e3f0ff;
}
.filter-row select.filter-input {
  height: 28px;
  padding-right: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc url('data:image/svg+xml;utf8,<svg fill="%231976d2" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 8px center/12px 12px;
}
#payment-table th, #payment-table td {
  text-align: center;
  vertical-align: middle;
}

/* ========== 成功提示 ========== */
.success-message {
  color: #52c41a;
  text-align: center;
  margin-top: 18px;
  font-size: 16px;
  min-height: 22px;
}

/* ========== 响应式支持 ========== */
@media (max-width: 900px) {
  .card { padding: 24px 6px; }
  .nav-logo { margin-left: 8px; margin-right: 8px; }
  .nav-title { font-size: 22px; letter-spacing: 4px; }
}
@media (max-width: 700px) {
  main {
    max-width: 100vw;
    margin: 0;
    padding: 12px 2vw 24px 2vw;
    box-shadow: none;
    border-radius: 0;
  }
  .card {
    padding: 16px 4vw 18px 4vw;
    margin-bottom: 18px;
  }
  nav button { padding: 8px 8px; font-size: 14px; }
  .form-row label { width: 80px; font-size: 14px; }
  .form-row input, .form-row select { font-size: 14px; }
  table th, table td { font-size: 13px; padding: 8px 4px; }
}
@media (max-width: 600px) {
  .card { padding: 12px 2px; }
  .section-title { font-size: 18px; }
  .nav-title { font-size: 16px; letter-spacing: 2px; }
  nav { height: 60px; }
  .nav-logo-img { width: 36px; height: 36px; }
}

/* ========== 其它原有样式保留 ========== */
h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 28px;
  border-left: 8px solid #53c0f8;
  padding-left: 18px;
  letter-spacing: 1px;
  background: linear-gradient(90deg,#1976d2,#53c0f8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color is not standard, but -webkit-text-fill-color above is supported */
}

.form-group { margin-bottom: 18px; }
.form-group label { display: inline-block; width: 100px; color: #555; }
.form-group input, .form-group select { padding: 7px 10px; width: 220px; border-radius: 4px; border: 1px solid #ccc; }
button[type=submit], .view-fail-detail-btn, #logs-next-btn, #logs-prev-btn {
  background: linear-gradient(90deg,#1976d2 60%,#00c6fb 100%);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  min-width: 120px;
  cursor: pointer;
  box-shadow: 0 2px 8px #1976d288;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button[type=submit]:hover, .view-fail-detail-btn:hover, #logs-next-btn:hover, #logs-prev-btn:hover {
  background: linear-gradient(90deg,#1565c0 60%,#42a5f5 100%);
  box-shadow: 0 4px 16px #1976d2cc;
  transform: translateY(-2px) scale(1.03);
}
#driver-suggestions { background: #fff; border: 1px solid #ccc; max-height: 120px; overflow-y: auto; position: absolute; z-index: 10; width: 220px; display: none; }
#driver-suggestions div { padding: 7px 10px; cursor: pointer; }
#driver-suggestions div:hover { background: #e6f7ff; }

/* 表格美化 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(45,140,240,0.04);
}
table th, table td {
  border: 1px solid #e8e8e8;
  padding: 12px 8px;
  text-align: center;
  font-size: 15px;
}
table th {
  background: #f0f6ff;
  color: #2d8cf0;
  font-weight: 700;
  font-size: 16px;
}
table tr:nth-child(even) { background: #f9fbff; }
table tr:hover { background: #e6f7ff; }

.edit-select { width: 120px; }
.delete-btn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.delete-btn:hover { background: #d9363e; }
.save-btn {
  background: #52c41a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.save-btn:hover { background: #389e0d; }

#import-log-table {
  max-height: 220px;
  min-height: 80px;
  overflow-y: auto;
  margin-bottom: 16px;
}
#import-log-table table {
  width: 100%;
  border-collapse: collapse;
}
#import-log-table th, #import-log-table td {
  padding: 8px 6px;
  font-size: 15px;
}
#import-section.card,
#import-log-section.card {
  max-width: 700px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 32px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

.modal-btn.save, .modal-btn.cancel {
  font-size: 17px;
  padding: 10px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg,#1976d2 60%,#00c6fb 100%);
  color: #fff;
  box-shadow: 0 2px 12px #1976d288;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
}
.modal-btn.save:hover, .modal-btn.cancel:hover {
  background: linear-gradient(90deg,#1565c0 60%,#42a5f5 100%);
  box-shadow: 0 4px 16px #1976d2cc;
  transform: translateY(-2px) scale(1.03);
}

/* ========== 置顶按钮样式 ========== */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 36px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1976d2 60%, #00c6fb 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 24px #1976d2aa;
  transition: box-shadow 0.18s, transform 0.18s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 32px #1976d2cc;
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top::before {
  content: '↑';
  font-weight: bold;
  font-size: 28px;
  line-height: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .back-to-top::before {
    font-size: 24px;
  }
}
