/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f9fc;
  min-height: 100vh;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 工具类 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 链接样式 */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: none;
}

/* 按钮 */
.btn-primary, .btn-secondary, .btn-danger, .btn-small {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
  color: #34495e;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2073a1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #bdc3c7, #a9afb3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b, #a33025);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 表单元素 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e1e5eb;
  border-radius: 4px;
  font-size: 14px;
  color: #34495e;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
}

.form-row {
  display: flex;
  margin: 0 -10px;
}

.form-row .form-group {
  flex: 1;
  margin: 0 10px;
}

.form-submit {
  margin-top: 30px;
  text-align: center;
}

/* 消息提示 */
.error-message,
.success-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

.error-message {
  background-color: #fdecea;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.success-message {
  background-color: #edfbf6;
  border-left: 4px solid #2ecc71;
  color: #27ae60;
}

/* 登录页面 */
.login-page, .register-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.login-box, .register-box {
  width: 100%;
  max-width: 420px;
  padding: 35px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.site-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.login-box h2, .register-box h2 {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 30px;
  font-weight: 400;
}

.form-links {
  margin-top: 25px;
  font-size: 14px;
  color: #95a5a6;
}

/* 主框架 - 用户仪表盘和管理后台 */
.dashboard {
  min-height: 100vh;
  background-color: #f7f9fc;
}

.main-header {
  background: linear-gradient(to right, #3498db, #2c3e50);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-header .site-title {
  color: #fff;
  margin: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-content {
  padding: 30px 15px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #e1e5eb;
  padding-bottom: 15px;
}

.dashboard-header h2 {
  font-size: 24px;
  color: #2c3e50;
  margin: 0;
}

.action-links {
  display: flex;
  gap: 10px;
}

/* 卡片和统计 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-title {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-card .stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  opacity: 0.1;
  color: #3498db;
}

/* 内容卡片 */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid #e1e5eb;
}

.card-header h3 {
  font-size: 18px;
  margin: 0;
  color: #2c3e50;
}

.card-body {
  padding: 20px;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e1e5eb;
}

.data-table th {
  background-color: #f7f9fc;
  font-weight: 600;
  color: #34495e;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background-color: #f7f9fc;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.page-link {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: 4px;
  color: #3498db;
  background-color: #fff;
  border: 1px solid #e1e5eb;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
}

.page-link.current {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
  cursor: default;
}

/* 查询表单 */
.query-form-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  padding: 20px;
}

.query-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-tabs {
  display: flex;
  border-bottom: 1px solid #e1e5eb;
  margin-bottom: 20px;
}

.form-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  color: #7f8c8d;
}

.form-tab.active {
  border-color: #3498db;
  color: #3498db;
}

.form-tab:hover {
  color: #3498db;
}

.query-result {
  margin-top: 30px;
}

/* 查询结果 */
.result-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.result-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e1e5eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.result-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  font-size: 16px;
}

.result-content {
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.result-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.result-placeholder {
  text-align: center;
  padding: 40px 0;
  color: #95a5a6;
}

.result-data {
  word-break: break-word;
}

.result-data pre {
  background-color: #f7f9fc;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #34495e;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #95a5a6;
  cursor: pointer;
}

.close:hover {
  color: #34495e;
}

/* 用户详情页美化样式 */
.user-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

/* 防止样式泄漏，限制样式作用范围 */
.admin-dashboard .user-profile-card, 
.admin-dashboard .user-stats-card {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: linear-gradient(to bottom, #ffffff, #f9fafc);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 0; /* 重置可能的外边距 */
}

/* 内容面板样式调整，使其与其他元素一致 */
.admin-dashboard .content-panel {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: #fff;
  margin-bottom: 25px;
  padding: 0; /* 重置内边距，避免双重内边距 */
}

.admin-dashboard .panel-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f9fafc;
}

.admin-dashboard .panel-header h3 {
  margin: 0;
  font-size: 16px;
  color: #2c3e50;
}

/* 表格响应式修复 */
.admin-dashboard .table-responsive {
  overflow-x: auto;
  padding: 0 15px;
  max-height: none; /* 移除最大高度限制 */
}

/* 修复用户详情和统计卡片在小屏幕上的问题 */
@media (max-width: 992px) {
  .user-detail-container {
    grid-template-columns: 1fr;
  }
  
  .admin-dashboard .user-profile-card,
  .admin-dashboard .user-stats-card {
    width: 100%;
  }
}

/* 修复卡片内部元素可能的变形问题 */
.profile-body {
  padding: 20px 25px;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(0, 0, 0, 0.02);
}

/* 确保数据表格正确显示 */
.admin-dashboard .data-table {
  margin: 15px 0;
  width: 100%;
}

/* 修复无记录提示可能的位置问题 */
.admin-dashboard .no-records {
  margin: 15px;
  padding: 20px;
}

/* 确保按钮样式不受干扰 */
.admin-dashboard .btn-primary,
.admin-dashboard .btn-small {
  display: inline-block;
  text-decoration: none;
}

/* 用户头像样式增强 */
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  border: 3px solid white;
}

/* 用户ID徽章样式 */
.user-id-badge {
  background-color: rgba(0,0,0,0.1);
  color: #555;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  top: 15px;
  right: 15px;
}

/* 用户资料卡片头部 */
.profile-header {
  padding: 25px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 美化用户名和邮箱 */
.profile-body h3 {
  margin: 0 0 5px 0;
  font-size: 22px;
  color: #2c3e50;
}

.user-email {
  color: #7f8c8d;
  font-size: 14px;
  margin: 0 0 15px 0;
}

/* 用户元数据项样式 */
.user-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 12px;
  color: #95a5a6;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  color: #34495e;
  font-weight: 500;
}

/* 余额显示增强 */
.balance-display {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.balance-value {
  font-size: 24px;
  font-weight: 600;
  color: #27ae60;
}

/* 修复用户统计卡片布局 */
.user-stats-card {
  padding: 15px 0;
}

.user-stats-card h3 {
  margin: 0 0 15px 0;
  padding: 0 20px;
  font-size: 18px;
  color: #2c3e50;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 5px 20px 20px;
}

.stat-item {
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
}

.stat-item:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: #3498db;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.3;
}

.action-buttons {
  padding: 5px 20px 15px;
  text-align: center;
}

.action-buttons .btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f5f7fa;
  color: #2c3e50;
  border: 1px solid #e1e5eb;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.action-buttons .btn-secondary:hover {
  background-color: #ecf0f1;
  border-color: #bdc3c7;
  color: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 统一金额和数值显示样式 */
.stat-value[data-type="currency"] {
  color: #27ae60;
}

.stat-value[data-type="number"] {
  color: #3498db;
}

.stat-value[data-type="average"] {
  color: #9b59b6;
}

.stat-value[data-type="days"] {
  color: #f39c12;
}

/* 表格美化 */
.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
  margin-top: 10px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background-color: #f5f7fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #34495e;
  border-bottom: 2px solid #e1e5eb;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e1e5eb;
  color: #444;
}

.data-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

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

/* 空记录提示美化 */
.no-records {
  padding: 30px;
  text-align: center;
  color: #95a5a6;
  font-style: italic;
  background-color: rgba(0,0,0,0.02);
  border-radius: 8px;
  margin: 15px 0;
}

/* 添加响应式布局 */
@media (max-width: 992px) {
  .user-detail-container {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 充值按钮美化 */
.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2573a7);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

/* 模态框美化 */
.modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: none;
  padding: 30px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  font-size: 28px;
  transition: all 0.2s ease;
}

.close:hover {
  color: #e74c3c;
  transform: rotate(90deg);
}

.form-group input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
  }
  
  .main-nav {
    margin-top: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .action-links {
    margin-top: 15px;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    margin: 0 0 20px 0;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fadeIn {
  animation: fadeIn 0.3s ease;
}

/* 仪表盘增强 */
.dashboard-enhanced {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf4 100%);
  min-height: 100vh;
}

.dashboard-enhanced .main-header {
  background: linear-gradient(90deg, #3498db, #2c3e50);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.dashboard-enhanced .site-title {
  background: -webkit-linear-gradient(#fff, #e4eaf4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.dashboard-enhanced .main-nav ul {
  display: flex;
  list-style: none;
}

.dashboard-enhanced .main-nav li a {
  color: #f0f3f6;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-enhanced .main-nav li a:hover,
.dashboard-enhanced .main-nav li a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dashboard-enhanced .main-nav li a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.dashboard-enhanced .main-nav li a:hover:before,
.dashboard-enhanced .main-nav li a.active:before {
  width: 80%;
}

.dashboard-enhanced .main-content {
  padding: 30px 0;
}

.dashboard-enhanced .user-welcome {
  background: linear-gradient(135deg, #fff, #f5f7fa);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3498db;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-enhanced .welcome-text h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.dashboard-enhanced .welcome-text p {
  color: #7f8c8d;
  margin-bottom: 0;
}

.dashboard-enhanced .account-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.dashboard-enhanced .dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  margin-bottom: 30px;
}

.dashboard-enhanced .query-panel,
.dashboard-enhanced .result-panel {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-enhanced .query-panel:hover,
.dashboard-enhanced .result-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-enhanced .panel-header {
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-enhanced .panel-header h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0;
}

.dashboard-enhanced .panel-actions {
  display: flex;
  gap: 10px;
}

.dashboard-enhanced .query-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 14px;
}

.dashboard-enhanced .query-form .input-group {
  position: relative;
  margin-bottom: 20px;
}

.dashboard-enhanced .query-form .input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f7f9fc;
}

.dashboard-enhanced .query-form .input-group input:focus {
  border-color: #3498db;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dashboard-enhanced .query-form .input-group input:hover {
  border-color: #bdc3c7;
}

.dashboard-enhanced .query-submit {
  text-align: center;
  margin-top: 25px;
}

.dashboard-enhanced .query-submit button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.dashboard-enhanced .query-submit button:hover {
  background: linear-gradient(135deg, #2980b9, #1a6ca5);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}

.dashboard-enhanced .result-content {
  background-color: #f7f9fc;
  border-radius: 8px;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.dashboard-enhanced .result-content.collapsed {
  max-height: 100px;
  overflow: hidden;
}

.dashboard-enhanced .result-data {
  font-family: 'Fira Code', 'Courier New', monospace;
  line-height: 1.6;
}

.dashboard-enhanced .result-data pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.dashboard-enhanced .toggle-result-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #e1e5eb;
  border-radius: 4px;
  color: #7f8c8d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-enhanced .toggle-result-btn:hover {
  background: #f0f2f5;
  color: #34495e;
}

.dashboard-enhanced .interface-select {
  margin-bottom: 25px;
}

.dashboard-enhanced .interface-select select {
  padding: 12px 15px;
  border-radius: 6px;
  width: 100%;
  border: 1px solid #e1e5eb;
  background-color: #f7f9fc;
  font-size: 14px;
  color: #34495e;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0L6 6L12 0" fill="none" stroke="%23999" stroke-width="1.5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 30px;
}

.dashboard-enhanced .interface-select select:focus {
  border-color: #3498db;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

@media (max-width: 992px) {
  .dashboard-enhanced .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

/* 管理员仪表盘增强样式 */
.admin-dashboard .admin-welcome {
  background: linear-gradient(135deg, #fff, #f5f7fa);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #2c3e50;
}

.admin-dashboard .welcome-text h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.admin-dashboard .welcome-text p {
  color: #7f8c8d;
  margin-bottom: 0;
}

.admin-dashboard .stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-bottom: 30px;
}

.admin-dashboard .stats-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-dashboard .stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.admin-dashboard .stats-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.admin-dashboard .stats-card.primary:before {
  background: linear-gradient(to bottom, #3498db, #2980b9);
}

.admin-dashboard .stats-card.success:before {
  background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.admin-dashboard .stats-card.warning:before {
  background: linear-gradient(to bottom, #f39c12, #e67e22);
}

.admin-dashboard .stats-card.info:before {
  background: linear-gradient(to bottom, #9b59b6, #8e44ad);
}

.admin-dashboard .stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.05);
}

.admin-dashboard .stats-card.primary .stats-icon {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.admin-dashboard .stats-card.success .stats-icon {
  color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
}

.admin-dashboard .stats-card.warning .stats-icon {
  color: #f39c12;
  background-color: rgba(243, 156, 18, 0.1);
}

.admin-dashboard .stats-card.info .stats-icon {
  color: #9b59b6;
  background-color: rgba(155, 89, 182, 0.1);
}

.admin-dashboard .stats-data {
  flex: 1;
}

.admin-dashboard .stats-data h3 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 600;
}

.admin-dashboard .stats-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 5px 0;
}

.admin-dashboard .stats-increase {
  font-size: 12px;
  color: #27ae60;
}

.admin-dashboard .charts-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 20px;
  margin-bottom: 30px;
}

.admin-dashboard .chart-panel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.admin-dashboard .chart-container {
  height: 300px;
  position: relative;
}

.admin-dashboard .recent-queries-panel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}

.admin-dashboard .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 15px;
}

.admin-dashboard .panel-header h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0;
}

.admin-dashboard .refresh-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f7f9fc;
  border-radius: 4px;
  font-size: 14px;
  color: #7f8c8d;
  transition: all 0.3s ease;
}

.admin-dashboard .refresh-btn:hover {
  background-color: #ecf0f1;
  color: #34495e;
}

.admin-dashboard .refresh-btn:before {
  content: '↻';
  margin-right: 5px;
  font-weight: bold;
}

.admin-dashboard .data-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-dashboard .data-table th,
.admin-dashboard .data-table td {
  padding: 12px 15px;
  text-align: left;
}

.admin-dashboard .data-table th {
  background-color: #f7f9fc;
  font-weight: 600;
  color: #34495e;
  position: sticky;
  top: 0;
}

.admin-dashboard .data-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.3s ease;
}

.admin-dashboard .data-table tbody tr:hover {
  background-color: #f5f7fa;
}

.admin-dashboard .status-paid {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
}

.admin-dashboard .status-unpaid {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
}

.admin-dashboard .table-responsive {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

/* SVG 图标替代 */
.icon-users, .icon-search, .icon-money, .icon-rate {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.icon-users:before {
  content: '👥';
}

.icon-search:before {
  content: '🔍';
}

.icon-money:before {
  content: '💰';
}

.icon-rate:before {
  content: '📊';
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .admin-dashboard .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-dashboard .charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-dashboard .stats-panel {
    grid-template-columns: 1fr;
  }
}

/* 接口价格页美化 */
.price-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input-container::before {
  position: absolute;
  left: 10px;
  font-size: 14px;
  color: #3498db;
  font-weight: 500;
}

.price-input {
  padding: 8px 10px 8px 25px;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  width: 120px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.price-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: #fff;
}

.price-input:hover {
  border-color: #bdc3c7;
}

/* 表格自定义样式 */
.interface-price-table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.interface-price-table td {
  transition: all 0.3s ease;
}

.interface-price-table tr:nth-child(odd) {
  background-color: rgba(245, 247, 250, 0.5);
}

/* 价格表格保存按钮容器 */
.price-submit-container {
  margin-top: 25px;
  text-align: right;
  padding-right: 10px;
}

.price-submit-container .btn-primary {
  padding: 10px 20px;
  font-size: 15px;
}

.price-submit-container .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 十天内免费查询提示 */
.free-query-tip {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(to right, #e6f7ff, #f0f9ff);
  border-left: 4px solid #1890ff;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.free-query-tip:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 144, 255, 0.1);
}

.tip-icon {
  font-size: 24px;
  margin-right: 15px;
  margin-top: 10px;
}

.tip-content h3 {
  margin: 0 0 8px 0;
  color: #0050b3;
  font-size: 17px;
}

.tip-content p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .free-query-tip {
    flex-direction: column;
  }
  
  .tip-icon {
    margin-bottom: 10px;
  }
}

/* 系统设置页输入框美化 */
.settings-input {
  padding: 8px 12px;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  width: 100%;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.settings-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: #fff;
}

.settings-input:hover {
  border-color: #bdc3c7;
}

/* 设置表格样式增强 */
.settings-table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.settings-table td {
  transition: all 0.3s ease;
  vertical-align: middle;
}

.settings-table tr:nth-child(odd) {
  background-color: rgba(245, 247, 250, 0.5);
}

.settings-table th:first-child {
  width: 20%;
}

.settings-table th:nth-child(2) {
  width: 50%;
}

.settings-table th:last-child {
  width: 30%;
}

/* 设置保存按钮容器 */
.settings-submit-container {
  margin-top: 25px;
  text-align: right;
  padding-right: 10px;
}

.settings-submit-container .btn-primary {
  padding: 10px 20px;
  font-size: 15px;
}

.settings-submit-container .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 设置信息提示样式 */
.settings-info {
  margin: 20px 10px 15px;
  padding: 10px 15px;
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

.info-text {
  font-size: 14px;
  color: #34495e;
  margin: 0;
  display: flex;
  align-items: center;
}

.info-icon {
  margin-right: 8px;
  font-style: normal;
}

/* 用户登录页面 - 现代科技风格 */
.user-login-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2d3748;
}

.user-login-container {
  display: flex;
  width: 100%;
  max-width: 1280px;
  min-height: 640px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* 登录表单区域 */
.user-login-content {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.user-login-form-wrapper {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.user-login-header {
  margin-bottom: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(45deg, #4f46e5, #7e22ce);
  border-radius: 12px;
  margin-right: 12px;
  color: white;
}

.user-login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  letter-spacing: -0.5px;
}

.user-login-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #718096;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.login-error {
  display: flex;
  align-items: center;
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  color: #e53e3e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.login-error svg {
  margin-right: 8px;
  flex-shrink: 0;
  stroke: #e53e3e;
}

.user-login-form {
  display: flex;
  flex-direction: column;
}

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

.form-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.forgot-link {
  font-size: 14px;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-container svg {
  position: absolute;
  left: 16px;
  color: #a0aec0;
  pointer-events: none;
}

.user-login-form input[type="text"],
.user-login-form input[type="password"] {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  line-height: 1.5;
  color: #2d3748;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.user-login-form input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.user-login-form input::placeholder {
  color: #cbd5e0;
}

.form-options {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-indicator {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  transition: all 0.2s;
  background-color: #fff;
}

.remember-me:hover .checkbox-indicator {
  border-color: #a0aec0;
}

.remember-me input:checked + .checkbox-indicator {
  background-color: #6366f1;
  border-color: #6366f1;
}

.remember-me input:checked + .checkbox-indicator:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-me span {
  font-size: 14px;
  color: #4a5568;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(45deg, #4f46e5, #7e22ce);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.login-button svg {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.login-button:hover {
  background: linear-gradient(45deg, #4338ca, #6d28d9);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.login-button:hover svg {
  transform: translateX(3px);
}

.login-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-footer p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.login-footer a {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.admin-link {
  font-size: 13px;
  color: #a0aec0 !important;
}

.admin-link:hover {
  color: #718096 !important;
}

/* 视觉区域 */
.user-login-visual {
  width: 55%;
  background: linear-gradient(135deg, #4338ca, #6d28d9, #7e22ce);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.visual-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  padding: 0 30px;
}

.visual-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.visual-content > p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-right: 16px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.feature-text p {
  font-size: 14px;
  opacity: 0.75;
  margin: 0;
}

.visual-footer {
  margin-top: 60px;
  font-size: 14px;
  opacity: 0.7;
}

/* 装饰元素 */
.decoration-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
}

.circle-3 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  opacity: 0.05;
}

.circle-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 10%;
  opacity: 0.1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  animation: float 10s infinite ease-in-out;
}

.particle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle-2 {
  top: 30%;
  right: 30%;
  animation-delay: 2s;
}

.particle-3 {
  bottom: 30%;
  left: 40%;
  animation-delay: 4s;
}

.particle-4 {
  bottom: 40%;
  right: 15%;
  animation-delay: 6s;
}

.particle-5 {
  top: 70%;
  left: 30%;
  animation-delay: 8s;
}

.line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
}

.line-1 {
  width: 1px;
  height: 100%;
  left: 25%;
  top: 0;
}

.line-2 {
  width: 100%;
  height: 1px;
  top: 65%;
  left: 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(10px);
  }
  50% {
    transform: translateY(8px) translateX(-8px);
  }
  75% {
    transform: translateY(12px) translateX(5px);
  }
}

/* 响应式适配 */
@media (max-width: 992px) {
  .user-login-container {
    flex-direction: column-reverse;
    max-width: 95%;
    min-height: auto;
  }
  
  .user-login-content,
  .user-login-visual {
    width: 100%;
  }
  
  .user-login-content {
    padding: 40px 30px;
  }
  
  .user-login-visual {
    padding: 60px 30px;
    min-height: 300px;
  }
  
  .visual-content {
    text-align: center;
    padding: 0;
  }
  
  .feature-item {
    justify-content: center;
  }
  
  .feature-list {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .user-login-container {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
  
  .user-login-content {
    padding: 30px 20px;
  }
  
  .user-login-visual {
    padding: 40px 20px;
  }
  
  .visual-content h2 {
    font-size: 24px;
  }
  
  .feature-item {
    align-items: center;
  }
  
  .feature-text {
    text-align: left;
  }
}

/* 全新管理员登录页面样式 */
.admin-login-new {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f8fafc;
  display: flex;
  color: #334155;
}

.admin-login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧品牌区域 */
.admin-login-side {
  display: flex;
  flex-direction: column;
  width: 40%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.admin-login-side::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  top: -300px;
  left: -300px;
}

.admin-login-side::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
  bottom: -200px;
  right: -200px;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-right: 12px;
  color: #60a5fa;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.side-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.side-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 400px;
}

.side-footer {
  margin-top: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.side-footer p {
  margin: 4px 0;
  font-size: 14px;
}

.side-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.side-footer a:hover {
  color: white;
  text-decoration: underline;
}

/* 右侧登录表单区域 */
.admin-login-main {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-container {
  max-width: 400px;
  width: 100%;
}

.login-form-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-desc {
  color: #64748b;
  font-size: 16px;
  margin: 0 0 32px 0;
}

.admin-error-message {
  display: flex;
  align-items: center;
  background-color: #fee2e2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #b91c1c;
}

.admin-error-message svg {
  flex-shrink: 0;
  margin-right: 12px;
  stroke: #b91c1c;
}

.login-form {
  display: flex;
  flex-direction: column;
}

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

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.login-form input::placeholder {
  color: #cbd5e0;
}

.form-actions {
  margin-top: 8px;
}

.btn-login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-submit svg {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-login-submit:hover {
  background-color: #1d4ed8;
}

.btn-login-submit:hover svg {
  transform: translateX(3px);
}

.btn-login-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* 响应式适配 */
@media (max-width: 992px) {
  .admin-login-wrapper {
    flex-direction: column;
  }
  
  .admin-login-side,
  .admin-login-main {
    width: 100%;
  }
  
  .admin-login-side {
    padding: 32px;
    min-height: 300px;
  }
  
  .admin-login-brand {
    margin-bottom: 40px;
  }
  
  .side-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .admin-login-side {
    padding: 24px;
    min-height: 250px;
  }
  
  .admin-login-main {
    padding: 24px;
  }
  
  .side-content h2 {
    font-size: 24px;
  }
  
  .brand-name {
    font-size: 18px;
  }
  
  .login-form-container h1 {
    font-size: 24px;
  }
  
  .login-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* 查询详情卡片样式 */
.query-detail-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.query-detail-card .card-header {
  background: #f8f8f8;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.query-detail-card .card-header h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

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

.detail-section {
  margin-bottom: 25px;
}

.detail-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

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

.detail-table th, 
.detail-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.detail-table th {
  width: 150px;
  color: #666;
  background: #f9f9f9;
}

.json-result {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 4px;
  overflow: auto;
  max-height: 400px;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 13px;
  color: #333;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.btn-secondary {
  background: #e8e8e8;
  color: #333;
}

.btn-secondary:hover {
  background: #d8d8d8;
}

.copy-btn {
  background: none;
  border: none;
  color: #2196F3;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  text-decoration: underline;
}

/* 黑名单按钮样式 */
.mark-blacklist-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 5px;
    margin-left: 10px;
    border-radius: 3px;
    transition: all 0.2s;
}

.mark-blacklist-btn:hover {
    background-color: #fee2e2;
    text-decoration: underline;
}

.mark-blacklist-btn.blacklisted {
    background-color: #e74c3c;
    color: white;
    cursor: not-allowed;
}

/* 侧边栏与主内容区域布局调整 */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

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

.nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #b8c7ce;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-item.active a {
    background-color: #3498db;
    color: #fff;
}

.nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-balance {
    margin-bottom: 15px;
}

.balance-label {
    font-size: 13px;
    color: #b8c7ce;
}

.balance-value {
    font-size: 20px;
    font-weight: 600;
    color: #2ecc71;
}

.logout-btn-sidebar {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn-sidebar:hover {
    background-color: rgba(231, 76, 60, 0.3);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-header {
    background-color: #fff;
    border-bottom: 1px solid #e1e5eb;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
}

.content-header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
    color: #7f8c8d;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
}

.content-container {
    flex: 1;
    padding: 25px;
    overflow: auto;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    
    .sidebar-header,
    .sidebar-footer,
    .nav-item span {
        display: none;
    }
    
    .nav-icon {
        margin-right: 0;
        font-size: 20px;
    }
    
    .nav-item a {
        justify-content: center;
        padding: 15px 0;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .content-header {
        padding: 15px;
    }
    
    .content-container {
        padding: 15px;
    }
}

/* 页面头部样式统一 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 查询结果样式增强 */
.query-success {
    background: #f8fffe;
    border: 1px solid #d0f0e8;
    border-radius: 6px;
    padding: 15px;
}

.success-status {
    margin-bottom: 10px;
    color: #27ae60;
    font-weight: 500;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.free-query-tip {
    margin-top: 30px;
}

/* 近期查询项样式 */
.recent-item-actions {
    margin-top: 10px;
}

.fee-status {
    font-size: 12px;
    margin-left: 5px;
    color: #95a5a6;
}

/* 最近查询记录样式增强 */
.recent-queries {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    margin-top: 30px;
    margin-bottom: 30px;
}

.recent-queries h3 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    font-size: 18px;
}

.recent-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.recent-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.recent-item:hover {
    background-color: #f9f9f9;
}

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

.recent-item-time {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 5px;
}

.recent-item-interface {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 5px;
}

.recent-item-params {
    color: #34495e;
    word-break: break-all;
    margin-bottom: 10px;
}

.no-records {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}