﻿/* ======================================== */
/*   爪爪星球 Admin Panel - Complete Stylesheet */
/*   Pet Services Admin Panel                 */
/* ======================================== */

/* ========== 0. Utility Classes ========== */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}


/* ========== 1. CSS Reset + Variables ========== */
:root {
  --primary: #FF8C42;
  --primary-hover: #e67a35;
  --primary-light: rgba(255, 140, 66, 0.1);
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --indigo: #6366F1;
  --pink: #EC4899;
  --blue: #3B82F6;
  --yellow: #EAB308;

  --bg-main: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-sidebar: #1E293B;
  --bg-sidebar-hover: #334155;
  --bg-sidebar-active: rgba(255, 140, 66, 0.15);

  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-white: #FFFFFF;
  --text-sidebar: #CBD5E1;
  --text-sidebar-active: #FFFFFF;

  --border-color: #E2E8F0;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --sidebar-width: 240px;
  --topbar-height: 60px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;

  --transition: all 0.2s ease;
}



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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  transition: var(--transition);
  width: 100%;
  background: var(--bg-white);
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

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



/* ========== 2. Login Page ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #475569 100%);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 32px 32px 0;
}

.login-header h1 {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.login-form {
  padding: 24px 32px 32px;
}

.login-form .form-row {
  margin-bottom: 16px;
}

.login-form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.login-form .form-row input {
  height: 42px;
}

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.captcha-row .form-row {
  flex: 1;
  margin-bottom: 0;
}

.captcha-row .captcha-img {
  width: 120px;
  height: 42px;
  border-radius: var(--border-radius);
  cursor: pointer;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.login-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.login-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}



/* ========== 3. Main Layout ========== */
.main-page {
  display: flex;
  min-height: 100vh;
}

/* ========== 4. Sidebar ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  color: var(--text-sidebar);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header .logo {
  font-size: 28px;
  line-height: 1;
}

.sidebar-header span {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-header h2 {
  color: var(--text-white);
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header p {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: 2px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 2px 8px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-sidebar);
  font-size: var(--font-size-base);
  position: relative;
  user-select: none;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
  font-weight: 600;
}

.nav-item .icon,
.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.nav-item .nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .badge {
  background: var(--danger);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}



/* ========== 5. Main Content ========== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== 6. Top Bar ========== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.breadcrumb span {
  color: var(--text-primary);
  font-weight: 500;
}

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

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.logout-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: var(--danger);
  color: var(--text-white);
  border-color: var(--danger);
}



/* ========== 7. Content Area ========== */
.content {
  padding: 24px;
  flex: 1;
  overflow-x: hidden;
  background: var(--bg-main);
  min-height: 100vh;
}

.page {
  display: none !important;
  width: 100%;
}

.page.active {
  display: block !important;
  width: 100%;
}

.list-view {
  display: block;
}

.list-view.hidden {
  display: none !important;
}

.detail-view {
  display: none;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-view.active {
  display: block;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition);
}

.detail-header .back-btn:hover {
  background: var(--bg-main);
  border-color: var(--text-muted);
}

.detail-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.detail-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.detail-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  width: 120px;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.detail-value {
  flex: 1;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.detail-value img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}
.detail-value img:hover {
  transform: scale(1.05);
}

.detail-value[style*="flex-wrap"] img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

/* 图片预览弹层 */
.img-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.img-preview-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.img-preview-toolbar {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.img-preview-toolbar button {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.img-preview-toolbar button:hover {
  background: rgba(255,255,255,0.3);
}
.img-preview-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 4px 12px;
}
.img-preview-close:hover {
  opacity: 0.7;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.detail-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.detail-items-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.detail-items-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-base);
}

.detail-items-table tr:last-child td {
  border-bottom: none;
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ========== 8. Page Description ========== */
.page-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.6;
}

/* ========== 9. Page Actions ========== */
.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ========== 10. Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--text-muted);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--danger);
  color: var(--text-white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16A34A;
  color: var(--text-white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-success:hover {
  background: #15803D;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}



/* ========== 11. Flash Product Picker ========== */
.flash-selected-area {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.flash-selected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.flash-selected-list {
  max-height: 200px;
  overflow-y: auto;
}

.flash-selected-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-color);
}

.flash-selected-item:last-child {
  border-bottom: none;
}

.flash-selected-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.flash-selected-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

/* ========== 12. Hint Text ========== */
.hint {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: 4px;
}

.static-hint {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: 4px;
  font-style: italic;
}



/* ========== 13. Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-left: 3px solid var(--primary);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

.stat-icon.green {
  background: rgba(34, 197, 94, 0.1);
}

.stat-icon.orange {
  background: rgba(255, 140, 66, 0.1);
}

.stat-icon.pink {
  background: rgba(236, 72, 153, 0.1);
}

.stat-icon.yellow {
  background: rgba(234, 179, 8, 0.1);
}

.stat-icon.indigo {
  background: rgba(99, 102, 241, 0.1);
}

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

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.stat-change {
  font-size: var(--font-size-xs);
  margin-top: 4px;
  font-weight: 500;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--danger);
}



/* ========== 14. Charts ========== */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ========== 15. Recent Orders ========== */
.recent-orders {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.recent-orders h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}



/* ========== 16. Status Distribution ========== */
.status-dist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.status-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-dist-num {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.status-dist-bar {
  height: 6px;
  background: var(--bg-main);
  border-radius: 3px;
  overflow: hidden;
}

.status-dist-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.5s ease;
}

.status-dist-fill.blue { background: var(--info); }
.status-dist-fill.green { background: var(--success); }
.status-dist-fill.yellow { background: var(--warning); }
.status-dist-fill.red { background: var(--danger); }
.status-dist-fill.pink { background: var(--pink); }

.status-dist-empty {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: 20px;
}



/* ========== 17. Tables ========== */
table {
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  vertical-align: middle;
}

.table-wrapper {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  display: block;
}

.data-table {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  width: 100%;
}

.data-table {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.data-table table {
  width: 100%;
}

.data-table th {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table td,
.data-table th {
  white-space: nowrap;
}

.data-table td.wrap {
  white-space: normal;
  word-break: break-all;
  max-width: 250px;
}

/* 所有管理页面表格统一宽度 */
#categories .data-table,
#orders .data-table,
#refunds .data-table,
#reviews .data-table,
#merchants .data-table,
#membership .data-table,
#coupons .data-table,
#flashsale .data-table,
#places .data-table,
#notices .data-table,
#financedetail .data-table {
  width: 100%;
  table-layout: auto;
}

#orders .data-table table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
#orders .data-table th,
#orders .data-table td {
  border: 1px solid #e8ecf1;
  padding: 10px 12px;
}
#orders .data-table th {
  background: var(--bg-main);
  font-weight: 600;
}
#orders .data-table td:nth-child(1),
#orders .data-table th:nth-child(1) { width: 32px; text-align: center; }
#orders .data-table td:nth-child(2),
#orders .data-table th:nth-child(2) { width: 13%; }
#orders .data-table td:nth-child(3),
#orders .data-table th:nth-child(3) { width: 10%; }
#orders .data-table td:nth-child(4),
#orders .data-table th:nth-child(4) { width: 30%; white-space: normal; word-break: break-all; }
#orders .data-table td:nth-child(5),
#orders .data-table th:nth-child(5) { width: 7%; text-align: right; }
#orders .data-table td:nth-child(6),
#orders .data-table th:nth-child(6) { width: 7%; text-align: center; }
#orders .data-table td:nth-child(7),
#orders .data-table th:nth-child(7) { width: 7%; text-align: center; }
#orders .data-table td:nth-child(8),
#orders .data-table th:nth-child(8) { width: 14%; }
#orders .data-table td:nth-child(9),
#orders .data-table th:nth-child(9) { width: 12%; }

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

.data-table tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.data-table tbody tr:hover td {
  background: rgba(255, 140, 66, 0.05);
}

/* 开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #22c55e; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }



/* ========== 18. Status Badges ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.pending_review {
  background: rgba(234, 179, 8, 0.1);
  color: #B45309;
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
}

.status-badge.in_progress {
  background: rgba(59, 130, 246, 0.1);
  color: #1D4ED8;
}

.status-badge.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.status-badge.paid {
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
}

.status-badge.pending_payment {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.status-badge.pending {
  background: rgba(234, 179, 8, 0.1);
  color: #B45309;
}

.status-badge.tuesday {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

.status-badge.refunded {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.status-badge.shipped {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.status-badge.role-merchant {
  background: rgba(234, 88, 12, 0.1);
  color: #C2410C;
}
.status-badge.role-caregiver {
  background: rgba(168, 85, 247, 0.1);
  color: #7C3AED;
}
.status-badge.role-courier {
  background: rgba(14, 165, 233, 0.1);
  color: #0284C7;
}



/* ========== 19. Type Badges ========== */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
}

.type-badge.type-mall {
  background: rgba(236, 72, 153, 0.1);
  color: #BE185D;
}

.type-badge.type-service {
  background: rgba(59, 130, 246, 0.1);
  color: #1D4ED8;
}

.type-badge.type-member {
  background: rgba(234, 179, 8, 0.1);
  color: #B45309;
}

.type-badge.type-payment {
  background: rgba(99, 102, 241, 0.1);
  color: #4338CA;
}

/* ========== 20. Order Sub Text ========== */
.order-sub {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}



/* ========== 21. Action Buttons ========== */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.action-btn.approve {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.action-btn.approve:hover {
  background: var(--success);
  color: var(--text-white);
}

.action-btn.reject {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.action-btn.reject:hover {
  background: var(--danger);
  color: var(--text-white);
}

.action-btn.view {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.action-btn.view:hover {
  background: var(--info);
  color: var(--text-white);
}

.action-btn.edit {
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary);
}

.action-btn.edit:hover {
  background: var(--primary);
  color: var(--text-white);
}

.action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.action-btn.delete:hover {
  background: var(--danger);
  color: var(--text-white);
}

/* 订单操作下拉菜单 */
.order-action-dropdown {
  position: relative;
  display: inline-block;
}
.order-action-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.order-action-dropdown .dropdown-toggle:hover {
  border-color: #4A90E2;
  color: #4A90E2;
  background: #f0f7ff;
}
.order-action-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  min-width: 120px;
  padding: 4px 0;
}
.order-action-dropdown.open .dropdown-menu {
  display: block;
}
.order-action-dropdown .dropdown-menu button {
  display: block;
  width: 100%;
  padding: 6px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}
.order-action-dropdown .dropdown-menu button:hover {
  background: #f3f4f6;
}
.order-action-dropdown .dropdown-menu button.btn-approve { color: #22c55e; }
.order-action-dropdown .dropdown-menu button.btn-reject { color: #ef4444; }
.order-action-dropdown .dropdown-menu button.btn-edit { color: #4A90E2; }
.order-action-dropdown .dropdown-menu button.btn-cancel { color: #999; }


/* ========== 22. Settings Section ========== */
.settings-section {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.settings-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}



/* ========== 23. Form Rows ========== */
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

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

.form-row label {
  width: 140px;
  flex-shrink: 0;
  padding-top: 8px;
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  text-align: right;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  min-width: 0;
}



/* ========== 24. Checkbox Rows ========== */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.checkbox-label:hover {
  border-color: var(--primary);
}

.checkbox-label:has(input:checked) {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.review-form-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.review-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-form-row input,
.review-form-row textarea {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}

.review-form-row textarea {
  resize: vertical;
  min-height: 50px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.inline-check label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
}



/* ========== 25. Feed Zone Table ========== */
.feed-zone-table {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.feed-zone-table table {
  width: 100%;
}

.feed-zone-table th {
  background: var(--bg-main);
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.feed-zone-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.feed-zone-table tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}



/* ========== 26. Switch Toggle ========== */
.switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.switch-label:hover {
  background: #e8ecf1;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #CBD5E1;
  border-radius: 24px;
  transition: var(--transition);
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}



/* ========== 27. Home Service List ========== */
.home-service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-service-item {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.home-service-item:hover {
  box-shadow: var(--shadow-md);
}

.home-service-idx {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  flex-shrink: 0;
}

.home-service-fields {
  flex: 1;
  min-width: 0;
}

.home-service-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.home-service-row:last-child {
  margin-bottom: 0;
}

.home-service-row label {
  width: 80px;
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.home-service-row input,
.home-service-row select {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 4px 10px;
  font-size: var(--font-size-sm);
}



/* ========== 28. Modal ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.2s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-secondary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  color: var(--text-white);
}

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 32px;
  animation: modalFadeIn 0.2s ease;
}

.modal-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Image Upload Area */
.image-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-main);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-upload-area:hover {
  border-color: var(--primary);
  background: #f0f5ff;
}

.image-upload-preview {
  max-width: 100%;
  max-height: 150px;
  border-radius: 6px;
  object-fit: contain;
}

.image-upload-placeholder {
  color: var(--text-secondary);
}

.image-upload-placeholder p {
  margin: 4px 0 0;
}

.detail-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.detail-images-grid .detail-img-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-images-grid .detail-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-images-grid .detail-img-item .remove-detail-img {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Detail items list (mixed image + text) */
.detail-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px 0;
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FAFAFA;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 8px;
  transition: box-shadow 0.2s;
}
.detail-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.detail-item.dragging { opacity: 0.4; }
.detail-item-handle {
  cursor: grab;
  color: #BBB;
  font-size: 16px;
  padding: 4px 2px;
  user-select: none;
  flex-shrink: 0;
}
.detail-item-handle:active { cursor: grabbing; }
.detail-item-body { flex: 1; min-width: 0; }
.detail-item-body img.detail-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.detail-text-input {
  width: 100%;
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
  resize: vertical;
  min-height: 48px;
  font-family: inherit;
  box-sizing: border-box;
}
.detail-text-input:focus { border-color: #FF8C42; outline: none; }
.detail-item-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.detail-item-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #DDD;
  background: #FFF;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
.detail-item-btn:hover { background: #F0F0F0; border-color: #BBB; }
.detail-item-btn-del { color: #FF4757; }
.detail-item-btn-del:hover { background: #FFF0F0; border-color: #FF4757; }


/* ========== 29. Image Defaults ========== */
img {
  max-width: 48px;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.data-table img {
  max-width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.thumb-sm {
  max-width: 32px;
  height: 32px;
}

.thumb-md {
  max-width: 48px;
  height: 48px;
}

.thumb-lg {
  max-width: 80px;
  height: 80px;
}



/* ========== 30. Site Decoration ========== */
.upload-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px dashed var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.upload-preview:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

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

.upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.upload-empty .upload-icon {
  font-size: 24px;
}

.upload-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.upload-actions button {
  font-size: var(--font-size-xs);
  padding: 4px 10px;
}

.upload-tip {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 8px;
}



/* ========== 31. Banner / Quick / Tabbar Lists ========== */
.banner-list,
.quick-list,
.tabbar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-item,
.quick-item,
.tabbar-item {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.banner-item:hover,
.quick-item:hover,
.tabbar-item:hover {
  box-shadow: var(--shadow-md);
}

.banner-fields,
.quick-fields,
.tabbar-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-fields .field-row,
.quick-fields .field-row,
.tabbar-fields .field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-fields .field-row label,
.quick-fields .field-row label,
.tabbar-fields .field-row label {
  width: 80px;
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
}

.banner-fields .field-row input,
.banner-fields .field-row select,
.quick-fields .field-row input,
.quick-fields .field-row select,
.tabbar-fields .field-row input,
.tabbar-fields .field-row select {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 4px 10px;
  font-size: var(--font-size-sm);
}

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-move-up,
.btn-move-down,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.btn-move-up {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.btn-move-up:hover {
  background: var(--info);
  color: var(--text-white);
}

.btn-move-down {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary);
}

.btn-move-down:hover {
  background: var(--text-secondary);
  color: var(--text-white);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.btn-delete:hover {
  background: var(--danger);
  color: var(--text-white);
}

/* ============ Member Badges ============ */
.member-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.member-badge.member-month {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #FFD700;
  border: 1px solid #FFD700;
}

.member-badge.member-season {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #FFD700;
  border: 1px solid #FFD700;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.member-badge.member-year {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #FFD700;
  border: 1px solid #FFD700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.member-badge.member-life {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #FFD700;
  border: 1px solid #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  position: relative;
}

/* ============ User Detail Cards ============ */
.detail-pets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-pet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  min-width: 200px;
}

.detail-pet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-pet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-pet-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-pet-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.detail-address-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.detail-address-item:last-child {
  border-bottom: none;
}

.default-tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.detail-order-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-order-item:last-child {
  border-bottom: none;
}

.detail-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}

.detail-order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.store-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  transition: all 0.3s;
}

.store-toggle-bar.closed {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #f87171;
}

.store-toggle-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.store-toggle-icon {
  font-size: 24px;
}

.store-toggle-status {
  font-size: 18px;
  font-weight: 700;
}

.store-toggle-bar:not(.closed) .store-toggle-status {
  color: #16a34a;
}

.store-toggle-bar.closed .store-toggle-status {
  color: #dc2626;
}

.store-toggle-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.store-toggle-bar:not(.closed) .store-toggle-btn {
  background: #dc2626;
  color: #fff;
}

.store-toggle-bar:not(.closed) .store-toggle-btn:hover {
  background: #b91c1c;
}

.store-toggle-bar.closed .store-toggle-btn {
  background: #16a34a;
  color: #fff;
}

.store-toggle-bar.closed .store-toggle-btn:hover {
  background: #15803d;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.realtime-clock {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: fit-content;
}

.clock-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.clock-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.store-toggle-duration {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.7);
  color: var(--text-secondary);
}

.store-toggle-bar:not(.closed) .store-toggle-duration {
  color: #16a34a;
  background: rgba(22,163,74,0.1);
}

.store-toggle-bar.closed .store-toggle-duration {
  color: #dc2626;
  background: rgba(220,38,38,0.1);
}

.finance-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-group select,
.filter-group input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.summary-card.service { border-left: 4px solid #4FACFE; }
.summary-card.mall { border-left: 4px solid #FF8C42; }
.summary-card.member { border-left: 4px solid #A26BFF; }

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.order-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.order-tab {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.order-tab:hover {
  color: var(--text-primary);
}

.order-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.order-tab b {
  font-size: 12px;
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.order-tab.active b {
  background: rgba(79,172,254,0.15);
  color: var(--primary);
}

/* ========== 32. Booking Service Sections ========== */
.booking-service {
  border-left: 4px solid transparent;
  padding: 16px !important;
  margin-bottom: 20px !important;
  border-radius: 8px;
}

.booking-service-header {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  color: #fff;
}

.booking-service h3 {
  border-bottom-color: rgba(0,0,0,0.08) !important;
}

.booking-service.feed {
  border-left-color: #5AB8A0;
  background: #f0faf5;
}

.booking-service.feed .booking-service-header {
  background: #5AB8A0;
}

.booking-service.walk {
  border-left-color: #3B82F6;
  background: #eff6ff;
}

.booking-service.walk .booking-service-header {
  background: #3B82F6;
}

.booking-service.bath {
  border-left-color: #EC4899;
  background: #fdf2f8;
}

.booking-service.bath .booking-service-header {
  background: #EC4899;
}

.booking-service.stay {
  border-left-color: #8B5CF6;
  background: #f5f3ff;
}

.booking-service.stay .booking-service-header {
  background: #8B5CF6;
}

.booking-service .feed-zone-table {
  background: rgba(255,255,255,0.7);
}

.booking-service .form-row input,
.booking-service .form-row select,
.booking-service .form-row textarea {
  background: #fff;
}

.booking-service .hint {
  color: var(--text-secondary);
}

/* ========== 医院评价管理样式 ========== */
.reviews-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.reviews-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.reviews-icon {
  font-size: 18px;
}

.reviews-section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reviews-filter-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
}

.reviews-filter-select:hover {
  border-color: var(--primary);
}

.btn-add-review {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-review:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-add-review span {
  font-size: 16px;
  font-weight: bold;
}

/* 添加评价表单 */
.add-review-form {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.add-review-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-icon {
  font-size: 16px;
}

.add-review-form-body {
  padding: 16px;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: var(--transition);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.field-textarea {
  resize: vertical;
  min-height: 80px;
}

.rating-select {
  position: relative;
}

.add-review-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.btn-cancel {
  padding: 8px 16px;
  background: var(--bg-main);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel:hover {
  background: var(--border-color);
}

.btn-confirm {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-confirm:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 评价列表容器 */
.reviews-list-container {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-white);
}

.reviews-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* 评价卡片样式 */
.review-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item:hover {
  background: var(--bg-main);
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.review-user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.review-status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.review-status-badge.status-pending {
  background: #FEF3C7;
  color: #D97706;
}

.review-status-badge.status-approved {
  background: #D1FAE5;
  color: #059669;
}

.review-status-badge.status-rejected {
  background: #FEE2E2;
  color: #DC2626;
}

.review-rating {
  margin-bottom: 6px;
}

.review-star {
  font-size: 14px;
  color: #FCD34D;
}

.review-star.empty {
  color: #E5E7EB;
}

.review-content {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.review-actions {
  display: flex;
  gap: 6px;
}

.review-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.review-btn-approve {
  background: #D1FAE5;
  color: #059669;
}

.review-btn-approve:hover {
  background: #A7F3D0;
}

.review-btn-reject {
  background: #FEE2E2;
  color: #DC2626;
}

.review-btn-reject:hover {
  background: #FECACA;
}

.review-btn-delete {
  background: var(--bg-main);
  color: var(--text-muted);
}

.review-btn-delete:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.review-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-tag-item {
  transition: all .15s ease;
}
.user-tag-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
}
.user-tag-item.active {
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
#editUserBtn {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.ban-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #E5E7EB;
  background: #FAFAFA;
  cursor: pointer;
  transition: all .2s ease;
}
.ban-toggle-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ban-toggle-card.ban-active {
  border-color: #FECACA;
  background: #FFFBFB;
}
.ban-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ban-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ban-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ban-toggle-title {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
}
.ban-toggle-desc {
  font-size: 11px;
  color: #9CA3AF;
}
.ban-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.ban-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ban-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1D5DB;
  transition: .3s;
  border-radius: 24px;
}
.ban-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.ban-switch input:checked + .ban-switch-slider {
  background-color: #DC2626;
}
.ban-switch input:checked + .ban-switch-slider:before {
  transform: translateX(18px);
}

/* ========== Pricing Detail Page Styles ========== */

.pricing-section {
  margin-bottom: 28px;
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.pricing-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F1F5F9;
}

.pricing-section-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  border-radius: 12px;
  flex-shrink: 0;
}

.pricing-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
}

.pricing-section-sub {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 2px;
}

/* Pricing Card */
.pricing-card {
  margin-bottom: 16px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card:last-child {
  margin-bottom: 0;
}

.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
}

.pricing-card-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.pricing-card-title {
  font-size: 16px;
  font-weight: 700;
}

.pricing-card-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 1px;
}

.pricing-card-body {
  padding: 16px 20px;
}

/* Pricing Table */
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pricing-table thead th {
  background: #F8FAFC;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
  font-size: 12px;
}

.pricing-table tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #F1F5F9;
  color: #64748B;
}

.pricing-table tbody tr:hover {
  background: #FFF7ED;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.td-zone {
  font-weight: 600;
  color: #1E293B !important;
  white-space: nowrap;
}

.td-price {
  font-weight: 700;
  color: #FF8C42 !important;
  font-size: 14px;
}

/* Notes */
.pricing-notes {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.note-orange { background: #FFF7ED; color: #EA580C; }
.note-blue { background: #EFF6FF; color: #2563EB; }
.note-green { background: #F0FDF4; color: #16A34A; }
.note-red { background: #FEF2F2; color: #DC2626; }
.note-purple { background: #FAF5FF; color: #9333EA; }
.note-pink { background: #FDF2F8; color: #DB2777; }
.note-gray { background: #F8FAFC; color: #64748B; }

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-grid-item {
  text-align: center;
  padding: 14px 10px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.grid-item-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.grid-item-label {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
}

.grid-item-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

.grid-item-value {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  margin-top: 6px;
}

/* Furnish Box */
.furnish-box {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #E2E8F0;
}

.furnish-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #E2E8F0;
}

.furnish-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  color: #64748B;
}

/* Commission Flow */
.commission-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.commission-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.commission-step-badge {
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.commission-step-content {
  flex: 1;
}

.commission-step-title {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
}

.commission-step-rate {
  font-size: 18px;
  font-weight: 800;
  color: #FF8C42;
  margin: 2px 0;
}

.commission-step-rate strong {
  font-size: 22px;
}

.commission-step-desc {
  font-size: 12px;
  color: #94A3B8;
}

.commission-arrow {
  font-size: 12px;
  color: #94A3B8;
  padding: 8px 0;
  text-align: center;
}

/* Commission Flat */
.commission-flat {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
  border-radius: 12px;
  border: 2px dashed #EC4899;
}

.commission-flat-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #EC4899;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.commission-flat-rate {
  font-size: 42px;
  font-weight: 800;
  color: #DB2777;
  line-height: 1.1;
}

.commission-flat-desc {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 6px;
}

/* Holiday Commission */
.holiday-commission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.holiday-commission-box {
  text-align: center;
  padding: 20px;
  background: #FEF2F2;
  border-radius: 12px;
  border: 1px solid #FECACA;
}

.holiday-commission-label {
  font-size: 13px;
  font-weight: 600;
  color: #991B1B;
  margin-bottom: 6px;
}

.holiday-commission-rate {
  font-size: 36px;
  font-weight: 800;
  color: #DC2626;
}

.holiday-commission-desc {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 4px;
}

/* Weather Grid */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.weather-item {
  text-align: center;
  padding: 16px 10px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.weather-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.weather-label {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.weather-label small {
  font-weight: 400;
  color: #94A3B8;
}

.weather-value {
  font-size: 14px;
  font-weight: 700;
  color: #3B82F6;
  margin-top: 8px;
}

/* Delivery Flow */
.delivery-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  position: relative;
}

.delivery-step-range {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  min-width: 90px;
  white-space: nowrap;
}

.delivery-step-fee {
  font-size: 14px;
  font-weight: 700;
  color: #22C55E;
}

.delivery-step-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  opacity: 0.6;
}

/* Delivery Example */
.delivery-example {
  background: #F0FDF4;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #BBF7D0;
}

.delivery-example-title {
  font-size: 13px;
  font-weight: 700;
  color: #16A34A;
  margin-bottom: 8px;
}

.delivery-example-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  color: #475569;
}

.delivery-example-row strong {
  color: #16A34A;
}

/* Member Grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.member-item {
  text-align: center;
  padding: 16px 8px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s;
}

.member-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.member-level {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 4px;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}

.member-growth {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

.member-discount {
  font-size: 16px;
  font-weight: 800;
  color: #FF8C42;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-section { padding: 16px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
  .holiday-commission { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-table { font-size: 12px; }
  .pricing-table thead th, .pricing-table tbody td { padding: 8px 10px; }
}

/* ========== Surcharge Toggle Cards ========== */
.surcharge-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}
.surcharge-card.active {
  background: #F0FDF4;
  border-color: #86EFAC;
  box-shadow: 0 0 0 1px #22C55E;
}
.surcharge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.surcharge-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.surcharge-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.surcharge-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D1D5DB;
  transition: .3s;
  border-radius: 22px;
}
.surcharge-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.surcharge-toggle input:checked + .surcharge-slider {
  background: #22C55E;
}
.surcharge-toggle input:checked + .surcharge-slider:before {
  transform: translateX(18px);
}
.surcharge-info {
  flex: 1;
}
.surcharge-label {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
}
.surcharge-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}
.surcharge-amount-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
  padding-left: 50px;
}
.surcharge-amount-row input {
  padding: 4px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.surcharge-card.active .surcharge-amount-row input {
  border-color: #86EFAC;
  background: #fff;
}

/* ========== Spec Rows ========== */
.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}
.spec-row .spec-name-input {
  flex: 1;
  min-width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
}
.spec-row .spec-price-input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.spec-row .spec-member-price-input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  border-color: #FF8C42;
}
}
.spec-row .spec-img-upload {
  display: flex;
  align-items: center;
  gap: 4px;
}
.spec-row .spec-img-preview {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.spec-row .spec-img-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  background: #fff;
}
.spec-row .spec-img-placeholder:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.spec-row .spec-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #FEE2E2;
  color: #EF4444;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spec-row .spec-remove-btn:hover {
  background: #FECACA;
}
