/* =====================================================
   KW俱乐部 管理后台样式 - 赛博朋克霓虹黑金风格
   ===================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #05050f;
  color: #e0e0ff;
  font-size: 14px;
  min-height: 100vh;
}

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a0a25 0%, #05050f 70%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 138, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.login-box {
  width: 420px;
  max-width: 90vw;
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 20px;
  padding: 50px 40px 40px;
  position: relative;
  box-shadow: 0 0 60px rgba(184, 138, 255, 0.15);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-kw {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #fff 0%, #b88aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(184, 138, 255, 0.5));
  line-height: 1;
  margin-bottom: 12px;
}

.login-title {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 11px;
  color: #666680;
  letter-spacing: 4px;
}

.login-form {
  position: relative;
  z-index: 2;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #a0a0c0;
}

.login-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  background: #0a0a20;
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.login-form .form-group input:focus {
  border-color: #b88aff;
  box-shadow: 0 0 15px rgba(184, 138, 255, 0.2);
}

.btn-block {
  width: 100%;
  padding: 13px !important;
  font-size: 15px !important;
  margin-top: 10px;
}

.login-tip {
  text-align: center;
  font-size: 12px;
  color: #666680;
  margin-top: 16px;
}

.login-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 20px;
  overflow: hidden;
}

.neon-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #b88aff, transparent);
  opacity: 0.4;
}

.neon-line.line1 {
  top: 0; left: 10%; right: 10%;
  height: 2px;
  animation: neonPulse 3s ease-in-out infinite;
}

.neon-line.line2 {
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  animation: neonPulse 3s ease-in-out infinite 1.5s;
}

@keyframes neonPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.neon-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #b88aff;
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
}

.neon-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.neon-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.neon-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.neon-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

/* ========== 主应用布局 ========== */
.app {
  display: flex;
  min-height: 100vh;
}

/* ========== 侧边栏 ========== */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #0a0a20 0%, #05050f 100%);
  border-right: 1px solid rgba(184, 138, 255, 0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo-wrap {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(184, 138, 255, 0.1);
}

.logo-kw {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff 0%, #b88aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(184, 138, 255, 0.5);
  filter: drop-shadow(0 0 10px rgba(184, 138, 255, 0.4));
  line-height: 1;
}

.logo-sub {
  font-size: 13px;
  color: #8888aa;
  margin-top: 6px;
  letter-spacing: 4px;
}

.nav-menu {
  flex: 1;
  padding: 15px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: #a0a0c0;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(184, 138, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(184, 138, 255, 0.2) 0%, transparent 100%);
  color: #fff;
  border-left-color: #b88aff;
  box-shadow: inset 0 0 20px rgba(184, 138, 255, 0.05);
}

.nav-icon {
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.nav-text {
  font-size: 14px;
}

.sidebar-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(184, 138, 255, 0.1);
}

.admin-logout {
  font-size: 13px;
  color: #ff6b9d;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 6px 0;
}

.admin-logout:hover {
  color: #ff8fb3;
}

.version {
  font-size: 12px;
  color: #666680;
}

/* ========== 主内容 ========== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 60px;
  background: linear-gradient(90deg, #0a0a20 0%, #05050f 100%);
  border-bottom: 1px solid rgba(184, 138, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a1a5a 0%, #1a0f3a 100%);
  border: 1px solid rgba(184, 138, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.admin-name {
  font-size: 14px;
  color: #e0e0ff;
}

.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.page { display: none; }
.page.active { display: block; }

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

.stat-card {
  position: relative;
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b88aff, transparent);
  opacity: 0.6;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-icon.total {
  background: linear-gradient(135deg, rgba(184, 138, 255, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(184, 138, 255, 0.4);
}
.stat-icon.revenue {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.stat-icon.order {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(184, 138, 255, 0.1) 100%);
  border: 1px solid rgba(255, 107, 157, 0.4);
}
.stat-icon.points {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2) 0%, rgba(184, 138, 255, 0.1) 100%);
  border: 1px solid rgba(0, 200, 255, 0.4);
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #8888aa;
}

/* ========== Dashboard Row ========== */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(184, 138, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.panel-more {
  font-size: 13px;
  color: #b88aff;
  cursor: pointer;
}

.panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.panel-body {
  padding: 20px;
}

/* ========== 等级分布 ========== */
.level-dist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-dist-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ld-name {
  width: 100px;
  font-size: 13px;
  color: #a0a0c0;
  flex-shrink: 0;
}

.ld-bar {
  flex: 1;
  height: 12px;
  background: #1a1a3a;
  border-radius: 6px;
  overflow: hidden;
}

.ld-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s;
}

.ld-count {
  width: 50px;
  text-align: right;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

/* ========== 最新订单 ========== */
.recent-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 138, 255, 0.08);
}

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

.ro-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ro-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a1a5a 0%, #1a0f3a 100%);
  border: 1px solid rgba(184, 138, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ro-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ro-title {
  font-size: 13px;
  color: #fff;
}

.ro-time {
  font-size: 11px;
  color: #666680;
}

.ro-amount {
  font-size: 14px;
  font-weight: 600;
  color: #ffd700;
}

/* ========== 数据表格 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: #b88aff;
  background: rgba(184, 138, 255, 0.06);
  border-bottom: 1px solid rgba(184, 138, 255, 0.15);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 138, 255, 0.06);
  color: #d0d0f0;
}

.data-table tbody tr:hover {
  background: rgba(184, 138, 255, 0.04);
}

.empty-row {
  text-align: center !important;
  color: #666680 !important;
  padding: 40px !important;
}

.level-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.level-tag.v0 { background: rgba(100, 100, 120, 0.2); color: #a0a0c0; border: 1px solid #666680; }
.level-tag.v1 { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; border: 1px solid #c0c0c0; }
.level-tag.v2 { background: rgba(184, 138, 255, 0.15); color: #b88aff; border: 1px solid #b88aff; }
.level-tag.v5 { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid #ffd700; }

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-tag.success {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid #00c878;
}

.status-tag.cancel {
  background: rgba(255, 107, 157, 0.15);
  color: #ff6b9d;
  border: 1px solid #ff6b9d;
}

.status-tag.pending {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid #ffd700;
}

/* ========== 按钮 ========== */
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #b88aff 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(184, 138, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(184, 138, 255, 0.5);
  transform: translateY(-1px);
}

.btn-default {
  background: #1a1a3a;
  color: #a0a0c0;
  border: 1px solid rgba(184, 138, 255, 0.2);
}

.btn-default:hover {
  background: #25254a;
  color: #fff;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-edit {
  background: rgba(184, 138, 255, 0.15);
  color: #b88aff;
  border: 1px solid rgba(184, 138, 255, 0.3);
}

.btn-danger {
  background: rgba(255, 107, 157, 0.15);
  color: #ff6b9d;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.btn-small {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-purple {
  background: rgba(184, 138, 255, 0.15);
  color: #b88aff;
  border: 1px solid rgba(184, 138, 255, 0.3);
}

.btn-purple:hover {
  background: rgba(184, 138, 255, 0.25);
}

.btn-gray {
  background: rgba(102, 102, 128, 0.2);
  color: #a0a0c0;
  border: 1px solid rgba(102, 102, 128, 0.4);
}

.btn-green {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid rgba(0, 200, 120, 0.3);
}

.status-tag.status-green {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid #00c878;
}

.status-tag.status-gray {
  background: rgba(102, 102, 128, 0.2);
  color: #a0a0c0;
  border: 1px solid #666680;
}

.text-gold {
  color: #ffd700;
  font-weight: 600;
}

.stat-gold {
  color: #ffd700 !important;
}

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

.commission-stats .stat-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.commission-stats .stat-label {
  font-size: 13px;
  color: #8888aa;
}

.commission-stats .stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, rgba(21, 21, 48, 0.95) 0%, rgba(10, 10, 32, 0.95) 100%);
  border: 1px solid rgba(184, 138, 255, 0.4);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(184, 138, 255, 0.3);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 表单提示 */
.form-tip {
  font-size: 12px;
  color: #666680;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(184, 138, 255, 0.08);
  border-radius: 6px;
  border-left: 3px solid #b88aff;
}

/* ========== 输入框 ========== */
.search-input, .filter-select, input[type="text"], input[type="number"], select {
  padding: 8px 14px;
  background: #1a1a3a;
  border: 1px solid rgba(184, 138, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
}

.search-input:focus, .filter-select:focus, input:focus, select:focus {
  border-color: #b88aff;
  box-shadow: 0 0 10px rgba(184, 138, 255, 0.2);
}

.search-input::placeholder {
  color: #666680;
}

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

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

.modal {
  width: 440px;
  max-width: 90vw;
  max-height: 90vh;
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(184, 138, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-lg {
  width: 600px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(184, 138, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.modal-close {
  font-size: 24px;
  color: #8888aa;
  cursor: pointer;
  line-height: 1;
}

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

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

.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #a0a0c0;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 9px 14px;
  background: #1a1a3a;
  border: 1px solid rgba(184, 138, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: #b88aff;
  box-shadow: 0 0 10px rgba(184, 138, 255, 0.2);
}

.form-group input[readonly] {
  background: #151530;
  color: #8888aa;
}

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

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

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #d0d0f0;
  margin-bottom: 0 !important;
}

.check-label input[type="checkbox"] {
  width: auto !important;
  cursor: pointer;
  accent-color: #b88aff;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(184, 138, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* ========== 等级配置卡片 ========== */
.level-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.level-config-card {
  background: linear-gradient(145deg, #1a1a3a 0%, #0f0f2a 100%);
  border: 1px solid rgba(184, 138, 255, 0.2);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: all 0.3s;
}

.level-config-card:hover {
  border-color: rgba(184, 138, 255, 0.4);
  transform: translateY(-2px);
}

.level-config-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

.level-config-card.v0::before { background: linear-gradient(90deg, #666680, #8888aa); }
.level-config-card.v1::before { background: linear-gradient(90deg, #c0c0c0, #e8e8e8); box-shadow: 0 0 10px rgba(192,192,192,0.3); }
.level-config-card.v2::before { background: linear-gradient(90deg, #8b5cf6, #b88aff); box-shadow: 0 0 10px rgba(184,138,255,0.4); }
.level-config-card.v5::before { background: linear-gradient(90deg, #ffd700, #ffed4a); box-shadow: 0 0 10px rgba(255,215,0,0.4); }

.lcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 138, 255, 0.1);
}

.lcc-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.lcc-code {
  font-size: 11px;
  color: #666680;
  padding: 2px 8px;
  background: rgba(184, 138, 255, 0.1);
  border-radius: 6px;
}

.lcc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.lcc-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.lcc-label {
  color: #8888aa;
}

.lcc-value {
  color: #fff;
  font-weight: 500;
}

.lcc-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.lcc-benefit {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(0, 200, 120, 0.1);
  color: #00c878;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 120, 0.2);
}

.lcc-footer {
  display: flex;
  justify-content: flex-end;
}

/* ========== 服务图片上传组件 ========== */
.service-image-upload {
  position: relative;
}

.upload-placeholder {
  width: 100%;
  height: 120px;
  background: #1a1a3a;
  border: 1px dashed rgba(184, 138, 255, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-placeholder:hover {
  border-color: #b88aff;
  background: rgba(184, 138, 255, 0.05);
}

.upload-icon {
  font-size: 28px;
  color: #b88aff;
  line-height: 1;
  margin-bottom: 6px;
}

.upload-text {
  font-size: 13px;
  color: #a0a0c0;
  margin-bottom: 2px;
}

.upload-tip {
  font-size: 11px;
  color: #666680;
}

.upload-preview {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 255, 0.3);
}

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

.preview-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-preview:hover .preview-actions {
  opacity: 1;
}

.preview-delete {
  padding: 5px 16px;
  background: rgba(255, 107, 157, 0.3);
  border: 1px solid #ff6b9d;
  border-radius: 6px;
  color: #ff6b9d;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.preview-delete:hover {
  background: rgba(255, 107, 157, 0.5);
  color: #fff;
}

/* 列表缩略图 */
.service-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(184, 138, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.service-thumb:hover {
  border-color: #b88aff;
  box-shadow: 0 0 8px rgba(184, 138, 255, 0.3);
  transform: scale(1.05);
}

/* 大图预览遮罩 */
.image-preview-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.image-preview-mask.show {
  display: flex;
}

.image-preview-mask img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(184, 138, 255, 0.3);
}

/* 响应式 */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-row { grid-template-columns: 1fr; }
}

/* ========== 成本利润管理 ========== */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.finance-card {
  background: linear-gradient(145deg, #1a1a3a 0%, #0f0f2a 100%);
  border: 1px solid rgba(184, 138, 255, 0.2);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.finance-card:hover {
  border-color: rgba(184, 138, 255, 0.4);
  transform: translateY(-2px);
}

.finance-card .fc-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.finance-card.income .fc-icon {
  background: rgba(0, 200, 120, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.3);
}

.finance-card.cost .fc-icon {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.finance-card.profit .fc-icon {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.finance-card.year .fc-icon {
  background: rgba(184, 138, 255, 0.15);
  border: 1px solid rgba(184, 138, 255, 0.3);
}

.finance-card .fc-info {
  flex: 1;
  min-width: 0;
}

.finance-card .fc-label {
  font-size: 13px;
  color: #8888aa;
  margin-bottom: 6px;
}

.finance-card .fc-value {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.finance-card .fc-value-sm {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.finance-card.income .fc-value {
  color: #00c878;
}

.finance-card.cost .fc-value {
  color: #ff6b6b;
}

.finance-card.profit.profit-positive .fc-value {
  color: #00c878;
}

.finance-card.profit.profit-negative .fc-value {
  color: #ff6b6b;
}

.finance-card.year select {
  width: 100%;
  padding: 4px 8px;
  background: #0a0a20;
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* 月度趋势柱状图 */
.monthly-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(184, 138, 255, 0.15);
}

.month-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.month-bar-group {
  width: 100%;
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
}

.month-bar {
  width: 12px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  min-height: 2px;
}

.month-bar:hover {
  opacity: 0.8;
}

.month-bar.income-bar {
  background: linear-gradient(180deg, #00c878 0%, #00a860 100%);
  box-shadow: 0 0 10px rgba(0, 200, 120, 0.3);
}

.month-bar.cost-bar {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee5253 100%);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.month-bar-label {
  font-size: 11px;
  color: #666680;
}

.month-bar-profit {
  font-size: 10px;
  font-weight: 600;
  color: #8888aa;
}

.month-bar-profit.positive { color: #00c878; }
.month-bar-profit.negative { color: #ff6b6b; }

/* 财务合计栏 */
.finance-total-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  background: rgba(184, 138, 255, 0.05);
  border: 1px solid rgba(184, 138, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #a0a0c0;
}

.finance-total-bar .ft-income { color: #00c878; font-weight: 600; }
.finance-total-bar .ft-cost { color: #ff6b6b; font-weight: 600; }
.finance-total-bar .ft-profit { color: #ffd700; font-weight: 600; }

/* 财务类型标签 */
.finance-type-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.finance-type-tag.income {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid rgba(0, 200, 120, 0.3);
}

.finance-type-tag.cost {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* 员工提成占比总和校验 */
.commission-rate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(184, 138, 255, 0.05);
  border: 1px solid rgba(184, 138, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
}

.crs-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #a0a0c0;
}

.crs-value {
  font-size: 20px;
  font-weight: bold;
  margin-left: 4px;
}

.crs-value.ok {
  color: #00c878;
}

.crs-value.warn {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.crs-tip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
}

.crs-tip.ok {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid rgba(0, 200, 120, 0.3);
}

.crs-tip.warn {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (max-width: 1200px) {
  .finance-summary { grid-template-columns: repeat(2, 1fr); }
  .commission-rate-summary { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ========== 核销管理页面 ========== */
.verify-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 20px;
}

.verify-header {
  text-align: center;
  margin-bottom: 40px;
}

.verify-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, #b88aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(184, 138, 255, 0.5));
  margin-bottom: 8px;
}

.verify-subtitle {
  font-size: 14px;
  color: #666680;
  letter-spacing: 3px;
}

.verify-input-box {
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 40px rgba(184, 138, 255, 0.1);
}

.verify-input-box input {
  width: 100%;
  padding: 16px 20px;
  background: #0a0a20;
  border: 2px solid rgba(184, 138, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 12px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.verify-input-box input:focus {
  border-color: #b88aff;
  box-shadow: 0 0 20px rgba(184, 138, 255, 0.3);
  outline: none;
}

.verify-input-box input::placeholder {
  color: #333350;
  letter-spacing: normal;
  font-weight: normal;
}

.verify-input-box .btn-large {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}

.verify-result {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: linear-gradient(145deg, #151530 0%, #0a0a20 100%);
  border: 1px solid rgba(184, 138, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(184, 138, 255, 0.15);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(184, 138, 255, 0.08);
  border-bottom: 1px solid rgba(184, 138, 255, 0.15);
}

.result-order-no {
  font-size: 14px;
  color: #a0a0c0;
}

.result-order-no span {
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}

.result-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.result-status.pending {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.result-status.completed {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid rgba(0, 200, 120, 0.3);
}

.result-info {
  padding: 20px 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 138, 255, 0.08);
}

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

.info-label {
  font-size: 13px;
  color: #666680;
}

.info-value {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.verify-code-text {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffd700 !important;
  letter-spacing: 4px;
}

.result-items {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.item-name {
  font-size: 14px;
  color: #e0e0ff;
}

.item-info {
  font-size: 14px;
  color: #666680;
}

.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 215, 0, 0.05);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.total-label {
  font-size: 14px;
  color: #a0a0c0;
}

.total-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-actions {
  padding: 24px;
}

.result-actions .btn-danger {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}

.verify-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666680;
}

.verify-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.verify-empty .empty-text {
  font-size: 16px;
}
