* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

.admin-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

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

.sidebar .logo svg {
  flex-shrink: 0;
}

.sidebar .logo h1 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.sidebar .menu {
  padding: 16px 0;
}

.sidebar .menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  color: rgba(255,255,255,0.7);
  gap: 12px;
}

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

.sidebar .menu-item.active {
  background: rgba(255,102,0,0.2);
  color: #ff6200;
  border-left: 3px solid #ff6200;
}

.sidebar .menu-item svg {
  flex-shrink: 0;
}

/* 一级菜单分组 */
.sidebar .menu-item.menu-group {
  justify-content: flex-start;
  position: relative;
}

.sidebar .menu-item.menu-group .menu-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}

.sidebar .menu-item.menu-group.open .menu-arrow {
  transform: rotate(180deg);
}

.sidebar .menu-item.menu-group.open {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left: 3px solid transparent;
}

.sidebar .menu-submenu {
  list-style: none;
  background: rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar .menu-submenu.open {
  max-height: 500px;
}

.sidebar .menu-submenu ul {
  list-style: none;
  padding: 4px 0;
}

.sidebar .submenu-item {
  padding: 10px 20px 10px 48px;
  font-size: 13px;
  position: relative;
}

.sidebar .submenu-item::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%);
}

.sidebar .submenu-item.active::before {
  background: #ff6200;
}

.sidebar .submenu-item.active {
  background: rgba(255,102,0,0.2);
  color: #ff6200;
  border-left: 3px solid #ff6200;
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar h2 {
  font-size: 20px;
  font-weight: 600;
}

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

.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: #e0e0e0;
}

.content-wrapper {
  padding: 24px;
  flex: 1;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h3 {
  font-size: 18px;
  font-weight: 600;
}

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

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.stat-card-secondary {
  background: linear-gradient(135deg, #fff7f0, #fff);
  border: 1px solid #ffe2cc;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.revenue { background: linear-gradient(135deg, #ff6200, #ff8533); }
.stat-icon.orders { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.stat-icon.activities { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.stat-icon.schools { background: linear-gradient(135deg, #9C27B0, #AB47BC); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
}

.stat-label {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* 图表区 */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 36px;
  color: #1a1a2e;
}

.chart-placeholder {
  padding: 20px 0;
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 0 20px;
  border-bottom: 2px solid #eee;
}

.bar {
  width: 60px;
  background: linear-gradient(180deg, #ff6200, #ff8533);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: all 0.3s;
  min-height: 20px;
}

.bar.bar-activity {
  background: linear-gradient(180deg, #ff6200, #ff8533);
}

.bar.bar-route {
  background: linear-gradient(180deg, #4CAF50, #66BB6A);
}

.bar:hover {
  opacity: 0.8;
}

.bar small {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.legend-activity {
  background: linear-gradient(180deg, #ff6200, #ff8533);
}

.legend-dot.legend-route {
  background: linear-gradient(180deg, #4CAF50, #66BB6A);
}

.bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 200px;
  position: relative;
  flex: 1;
}

.bar-group .bar {
  width: 22px;
}

.bar-group .bar small {
  font-size: 10px;
}

.chart-labels {
  display: flex;
  justify-content: space-around;
  padding: 12px 20px;
  font-size: 12px;
  color: #888;
}

.chart-labels span {
  width: 48px;
  text-align: center;
}

.week-range {
  font-size: 12px;
  font-weight: normal;
  color: #888;
}

.activity-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

.rank-num {
  width: 24px;
  height: 24px;
  background: #ff6200;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.rank-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.rank-value {
  font-size: 14px;
  font-weight: 600;
  color: #ff6200;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: #ff6200;
}

.search-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
}

.search-bar input[type="date"] {
  width: 150px;
}

.search-bar select {
  min-width: 120px;
}

.search-btn {
  padding: 10px 24px;
  background: #ff6200;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #e55a00;
}

/* 按钮 */
.btn-add,
.btn-export,
.btn-edit,
.btn-delete,
.btn-detail,
.btn-refund,
.btn-qrcode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-add,
.btn-export {
  background: #ff6200;
  color: #fff;
}

.btn-add:hover,
.btn-export:hover {
  background: #e55a00;
}

.btn-edit {
  background: #E3F2FD;
  color: #1976D2;
}

.btn-edit:hover {
  background: #BBDEFB;
}

.btn-delete {
  background: #FFEBEE;
  color: #C62828;
}

.btn-delete:hover {
  background: #FFCDD2;
}

.btn-detail {
  background: #E8F5E9;
  color: #388E3C;
}

.btn-detail:hover {
  background: #C8E6C9;
}

.btn-refund {
  background: #FFF3E0;
  color: #E65100;
}

.btn-refund:hover {
  background: #FFE0B2;
}

.btn-qrcode {
  background: #F3E5F5;
  color: #7B1FA2;
}

.btn-qrcode:hover {
  background: #E1BEE7;
}

.activity-card.ended .btn-qrcode {
  background: #E0E0E0;
  color: #9E9E9E;
  cursor: not-allowed;
  pointer-events: none;
}

/* 数据表格 */
.data-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 13px;
  color: #666;
}

.data-table td {
  font-size: 14px;
  color: #333;
}

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

.data-table tr:hover td {
  background: #fafafa;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.active,
.status-badge.paid {
  background: #E8F5E9;
  color: #388E3C;
}

.status-badge.pending {
  background: #FFF3E0;
  color: #E65100;
}

.status-badge.disabled {
  background: #ECEFF1;
  color: #607D8B;
}

.status-badge.refunded {
  background: #FCE4EC;
  color: #C2185B;
}

.status-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-tag.active {
  background: #E8F5E9;
  color: #388E3C;
}

.status-tag.ended {
  background: #ECEFF1;
  color: #607D8B;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination button:hover {
  border-color: #ff6200;
  color: #ff6200;
}

.pagination button.active {
  background: #ff6200;
  color: #fff;
  border-color: #ff6200;
}

/* 活动卡片 */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.activity-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.activity-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
}

.activity-body {
  padding: 16px;
}

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

.activity-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.activity-body > p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.activity-meta span:last-child {
  color: #ff6200;
  font-weight: 600;
}

.activity-actions {
  display: flex;
  gap: 8px;
}

/* 统计概览 */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.overview-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.overview-label {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.overview-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.overview-change {
  display: inline-block;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 10px;
}

.overview-change.positive {
  background: #E8F5E9;
  color: #388E3C;
}

.overview-change.negative {
  background: #FFEBEE;
  color: #C62828;
}

/* 图表行 */
.chart-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-card.full {
  grid-column: 1 / -1;
}

.pie-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
  margin: 0 auto 20px;
}

.pie-slice {
  position: absolute;
  width: 100%;
  height: 100%;
}

.pie-slice.wechat {
  background: conic-gradient(#4CAF50 0%, #4CAF50 100%, #f0f0f0 100%);
}

.pie-legend {
  text-align: center;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-dot.wechat {
  background: #4CAF50;
}

.type-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 80px;
  font-size: 13px;
  color: #666;
}

.bar-fill {
  flex: 1;
  height: 24px;
  background: linear-gradient(90deg, #ff6200, #ff8533);
  border-radius: 4px;
  max-width: 200px;
}

.bar-value {
  font-size: 13px;
  font-weight: 600;
  color: #ff6200;
  width: 40px;
}

/* 弹窗 */
.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;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  animation: modalIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal.modal-sm {
  max-width: 400px;
}

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

.modal-header {
  flex-shrink: 0;
}

.modal-footer {
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #eee;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ff6200;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.btn-cancel {
  padding: 10px 24px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-cancel:hover {
  background: #e0e0e0;
}

/* 订单详情审核操作按钮 */
.btn-approve,
.btn-primary {
  padding: 10px 28px;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
  transition: all 0.25s ease;
}

.btn-approve:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #43A047, #388E3C);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
  transform: translateY(-1px);
}

.btn-approve:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-reject {
  padding: 10px 24px;
  background: #ffffff;
  color: #f44336;
  border: 1px solid #f44336;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-reject:hover {
  background: #f44336;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.25);
}

#order-detail-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.btn-submit {
  padding: 10px 24px;
  background: #ff6200;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #e55a00;
}

/* 订单详情 */
.order-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.detail-row label {
  width: 100px;
  color: #888;
  font-size: 14px;
}

.detail-row span {
  flex: 1;
  color: #333;
  font-size: 14px;
}

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

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .stats-grid,
  .activity-grid,
  .stats-overview {
    grid-template-columns: 1fr;
  }
}
/* 图片上传 */
.upload-tip {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.cover-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cover-preview {
  position: relative;
  width: 200px;
  height: 133px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px dashed #ddd;
}

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

.cover-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-upload-btn {
  position: relative;
  width: 200px;
  height: 133px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.cover-upload-btn:hover {
  border-color: #4a90e2;
}

.cover-upload-btn input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cover-upload-btn span {
  color: #999;
  font-size: 14px;
}

/* 报名详情弹窗样式 */
.signup-activity-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.signup-activity-info h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 16px;
}

.signup-activity-info .info-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}

.signup-activity-info .info-row span {
  display: flex;
  align-items: center;
}

.signup-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.signup-empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

.signup-table {
  width: 100%;
  font-size: 13px;
}

.signup-table th {
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 1;
}

.signup-table td {
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signup-table tr:hover {
  background: #fafafa;
}

/* 超大弹窗 */
.modal-xl {
  max-width: 90vw;
  width: 90vw;
  max-height: 90vh;
}

/* 报名详情按钮 */
.btn-detail {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-detail:hover {
  background: #45a049;
}

/* 报名详情检索栏 */
.signup-search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.signup-search-bar input,
.signup-search-bar select {
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 13px;
  min-width: 110px;
  background: #fff;
  transition: all 0.2s ease;
}

.signup-search-bar input:focus,
.signup-search-bar select:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
  outline: none;
}

.signup-search-bar input::placeholder {
  color: #aaa;
}

.signup-search-bar .btn-submit {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.signup-search-bar .btn-submit:hover {
  background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.signup-search-bar .btn-cancel {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signup-search-bar .btn-cancel:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
/* 用户详情弹窗 */
.user-info-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  font-size: 14px;
}

.user-info-bar span {
  color: #333;
}

/* 退款规则样式 */
.refund-rules-container {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refund-rule-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.refund-rule-header {
  display: none;
}

.refund-rule-title {
  font-weight: 600;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  min-width: 50px;
}

.refund-rule-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.refund-rule-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.refund-rule-row .form-group.inline-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.refund-rule-row .form-group.inline-group label {
  font-size: 12px;
  color: #666;
  margin: 0;
  white-space: nowrap;
}

.refund-rule-row .form-group.inline-group input {
  padding: 4px 6px;
  font-size: 12px;
  height: 26px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rule-start-time,
.rule-end-time {
  width: 150px;
}

.row-separator {
  color: #999;
  font-size: 12px;
}

.refund-deduct-type {
  display: flex;
  gap: 12px;
}

/* ===== 自定义下拉多选（路线分类） ===== */
.multi-select {
  position: relative;
  width: 100%;
  font-size: 14px;
}

.multi-select-display {
  position: relative;
  min-height: 42px;
  padding: 7px 36px 7px 12px;
  border: 1.5px solid #c8c8c8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.multi-select-display:hover {
  border-color: #4CAF50;
}

.multi-select.open .multi-select-display {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.multi-select-placeholder {
  color: #aaa;
  font-size: 14px;
}

.multi-select-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.multi-select-tag-remove {
  margin-left: 6px;
  cursor: pointer;
  color: #1b5e20;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.multi-select-tag-remove:hover {
  opacity: 1;
}

.multi-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: transform 0.2s, color 0.2s;
}

.multi-select.open .multi-select-arrow {
  color: #4CAF50;
  transform: translateY(-50%) rotate(180deg);
}

.multi-select-panel {
  display: none;
  position: absolute;
  top: calc(100% - 1.5px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid #4CAF50;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.multi-select.open .multi-select-panel {
  display: block;
}

.multi-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  font-size: 12px;
  color: #666;
  position: sticky;
  top: 0;
  z-index: 1;
}

.multi-select-toolbar-actions {
  display: flex;
  gap: 12px;
}

.multi-select-toolbar-btn {
  cursor: pointer;
  color: #4CAF50;
  font-weight: 500;
  user-select: none;
  transition: color 0.15s;
}

.multi-select-toolbar-btn:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}

.multi-select-option:last-child {
  border-bottom: none;
}

.multi-select-option:hover {
  background: #f5f5f5;
}

.multi-select-option.selected {
  background: #e8f5e9;
  color: #1b5e20;
  font-weight: 500;
}

.multi-select-option input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #4CAF50;
}

.multi-select-empty {
  padding: 14px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.multi-select-panel::-webkit-scrollbar {
  width: 6px;
}

.multi-select-panel::-webkit-scrollbar-track {
  background: transparent;
}

.multi-select-panel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.multi-select-panel::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.refund-deduct-type label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
  color: #333;
  cursor: pointer;
}

.refund-deduct-type input[type="radio"] {
  margin: 0;
}

.rule-deduct-value {
  width: 60px !important;
  padding: 4px 6px !important;
  font-size: 12px !important;
  height: 26px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.rule-deduct-label {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.flex-auto {
  flex: auto !important;
}

.rule-remark {
  flex: auto !important;
  width: 200px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  height: 26px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.refund-rule-remove {
  background: #fff;
  color: #f44336;
  border: 1px solid #f44336;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  height: 26px;
  line-height: 1;
}

.refund-rule-remove:hover {
  background: #f44336;
  color: #fff;
}

.btn-add-rule {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-add-rule:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 活动弹窗固定定位样式 */
.modal-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: 90vh;
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-fixed .modal-header {
  flex-shrink: 0;
  background: #fff;
}

.modal-fixed .modal-footer {
  flex-shrink: 0;
  background: #fff;
}

.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* 富文本编辑器样式 */
#route-detail-editor {
  min-height: 420px;
  z-index: 1;
}

/* wangEditor v4 工具栏和下拉菜单 z-index */
.w-e-toolbar {
  z-index: 1100 !important;
  position: relative;
}

.w-e-text-container {
  z-index: 1000 !important;
  min-height: 360px !important;
}

.w-e-menu {
  z-index: 1101 !important;
}

.w-e-drop-list {
  z-index: 1102 !important;
}

.w-e-panel-container {
  z-index: 1103 !important;
}

/* Switch 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 24px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider {
  background-color: #4CAF50;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ====== 分销员操作下拉菜单 ====== */
.dist-actions {
  white-space: nowrap;
}

.dist-menu-wrapper {
  display: inline-block;
  position: relative;
}

.dist-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 120px;
  padding: 4px 0;
  margin-top: 4px;
}

/* 分销员表格覆盖 overflow，让下拉菜单不被裁剪 */
#distributors-page .data-table {
  overflow: visible;
}

#distributors-page .data-table td {
  overflow: visible;
}

.dist-menu-item {
  padding: 10px 20px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.dist-menu-item:hover {
  background: #f0f7f0;
  color: #4CAF50;
}

.dist-menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dist-menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* 分销弹窗表格 */
.dist-table-wrap {
  overflow-x: auto;
  margin: -24px;
  padding: 24px;
}

.dist-table-wrap .data-table {
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  min-width: 780px;
}