* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b4190 100%);
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 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: 260px;
  --header-height: 64px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== 页面基础 ==================== */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ==================== 首页 ==================== */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.home-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-area {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.logo-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  animation: float 3s ease-in-out infinite;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.app-title {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.app-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 6px;
}

/* 首页大按钮 */
.home-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 20px 70px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.home-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.home-btn:active {
  transform: translateY(-1px);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.btn-icon {
  font-size: 24px;
}

/* 通用按钮样式 */
.primary-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.primary-btn:active {
  transform: translateY(0);
}

.cancel-btn {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #e2e8f0;
}

/* ==================== 弹窗 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--danger);
}

/* ==================== 认证表单 ==================== */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-light);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* 记住密码样式 */
.remember-group {
  margin-bottom: 10px;
}

.remember-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--primary);
  cursor: pointer;
}

.remember-label span {
  user-select: none;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.switch-form {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
}

.switch-form a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.switch-form a:hover {
  text-decoration: underline;
}

/* ==================== 主界面布局 - 电脑端 ==================== */
#main-page {
  display: none;
}

#main-page.active {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  background: var(--gradient);
  color: white;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.user-role {
  font-size: 13px;
  opacity: 0.8;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-family: inherit;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-item.active {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border-right: 3px solid var(--primary);
  font-weight: 500;
}

.nav-item-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.logout-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-btn:hover {
  background: var(--danger);
  color: white;
}

/* 主内容区 */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== 卡片和列表 ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
}

.card-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.badge-pending { background: #fef3c7; color: #d97706; }
.badge-assigned { background: #dbeafe; color: #2563eb; }
.badge-working { background: #ede9fe; color: #7c3aed; }
.badge-completed { background: #d1fae5; color: #059669; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }

.card-content {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-meta {
  font-size: 13px;
  color: var(--text-light);
}

.card-actions {
  display: flex;
  gap: 10px;
}

/* 按钮 */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #e53e3e;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #38a169;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==================== 客服/用户列表 ==================== */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-avatar {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-qq {
  font-size: 14px;
  color: var(--text-light);
}

.service-action {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 用户管理列表 */
.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  gap: 16px;
}

.user-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.user-item-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.user-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.user-item-info p {
  font-size: 13px;
  color: var(--text-light);
}

.user-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.role-select {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.role-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ==================== 下单表单 ==================== */
.new-order-form {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.new-order-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text);
}

/* ==================== 订单详情 ==================== */
.order-detail-item {
  display: flex;
  margin-bottom: 12px;
}

.order-detail-label {
  width: 80px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

.order-detail-value {
  flex: 1;
  color: var(--text-light);
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 72px;
  margin-bottom: 20px;
}

.empty-state-text {
  font-size: 16px;
}

/* ==================== Toast提示 ==================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
  max-width: 400px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ==================== 确认对话框 ==================== */
.confirm-modal {
  z-index: 3000 !important;
}

.confirm-modal .modal-content {
  max-width: 400px;
  text-align: center;
  padding: 40px;
}

.confirm-content .confirm-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.confirm-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.confirm-content p {
  color: var(--text-light);
  margin-bottom: 28px;
}

.confirm-buttons {
  display: flex;
  gap: 16px;
}

.confirm-buttons button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.confirm-buttons .cancel-btn {
  background: var(--bg);
  color: var(--text);
}

.confirm-buttons .confirm-btn {
  background: var(--gradient);
  color: white;
}

/* ==================== 加载状态 ==================== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 派单选择弹窗 ==================== */
.worker-select-modal .modal-content {
  max-width: 480px;
}

.worker-list {
  max-height: 400px;
  overflow-y: auto;
}

.worker-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.worker-option:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.worker-option.selected {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

/* ==================== 聊天界面 - 电脑端优化 ==================== */
.chat-modal {
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.chat-modal .modal-content {
  max-width: 700px;
  width: 100%;
  height: 80vh;
  max-height: 750px;
  min-height: 500px;
  border-radius: 20px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: chatSlideIn 0.3s ease;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
}

.chat-header {
  background: var(--gradient);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.chat-back {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.chat-back:hover {
  background: rgba(255,255,255,0.25);
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.chat-user-avatar {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
}

.chat-user-details {
  display: flex;
  flex-direction: column;
}

.chat-user-name {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.chat-user-status {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-user-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #48bb78;
  border-radius: 50%;
  display: inline-block;
}

.chat-qq-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}

.chat-qq-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.message-item {
  display: flex;
  gap: 14px;
  max-width: 70%;
  animation: msgFadeIn 0.2s ease;
}

@keyframes msgFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-item.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-item.received {
  align-self: flex-start;
}

.message-avatar {
  width: 42px;
  height: 42px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-item.sent .message-content {
  align-items: flex-end;
}

.message-bubble {
  background: white;
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  word-break: break-word;
  max-width: 400px;
}

.message-item.sent .message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.message-item.received .message-bubble {
  border-bottom-left-radius: 6px;
}

.message-image {
  max-width: 280px;
  max-height: 280px;
  border-radius: 16px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.message-image:hover {
  transform: scale(1.02);
}

.message-time {
  font-size: 11px;
  color: var(--text-light);
  padding: 0 4px;
}

.chat-input-area {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  background: white;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  align-items: center;
}

.chat-image-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-image-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.chat-input-area input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 26px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* 聊天输入框增强 */
.chat-input-area input {
  background: #f8fafc;
}

.chat-input-area input:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 聊天用户列表 */
.chat-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.chat-user-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-user-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chat-user-item .avatar {
  width: 54px;
  height: 54px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  font-weight: 600;
  position: relative;
  flex-shrink: 0;
}

.chat-user-item .unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  padding: 0 6px;
}

.chat-user-item .info {
  flex: 1;
  min-width: 0;
}

.chat-user-item .name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.chat-user-item .last-msg {
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-item .time {
  font-size: 13px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* 图片预览 */
#image-preview-modal {
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  padding: 20px;
  z-index: 2000;
}

#image-preview-modal.active {
  display: flex;
}

#image-preview-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  cursor: default;
}

/* ==================== 聊天订单卡片 ==================== */
.chat-order-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  padding: 18px;
  min-width: 260px;
  max-width: 300px;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.chat-order-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.chat-order-icon {
  font-size: 20px;
}

.chat-order-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.chat-order-no {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.8;
  font-family: monospace;
}

.chat-order-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-order-price {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.chat-order-tip {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 14px;
}

.chat-order-actions {
  display: flex;
  gap: 10px;
}

.chat-order-pay-btn {
  flex: 1;
  background: white;
  color: #667eea;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-order-pay-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chat-order-detail-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-order-detail-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 聊天订单卡片状态 */
.chat-order-status {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
}

.chat-order-status[data-status="pending"] {
  background: #fef3c7;
  color: #92400e;
}

.chat-order-status[data-status="available"] {
  background: #c6f6d5;
  color: #276749;
}

.chat-order-status[data-status="working"] {
  background: #bee3f8;
  color: #2b6cb0;
}

.chat-order-status[data-status="completed"] {
  background: #c3dafe;
  color: #434190;
}

.chat-order-status[data-status="cancelled"],
.chat-order-status[data-status="expired"] {
  background: #fed7d7;
  color: #c53030;
}

.chat-order-card.cancelled,
.chat-order-card.expired {
  background: linear-gradient(135deg, #a0aec0, #718096);
  opacity: 0.85;
}

.chat-order-card.completed {
  background: linear-gradient(135deg, #667eea, #434190);
}

/* ==================== 订单详情弹窗 ==================== */
.order-detail-content {
  max-width: 480px;
}

#order-detail-content {
  padding: 10px 0;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-row.full {
  flex-direction: column;
  gap: 8px;
}

.order-detail-row .label {
  color: var(--text-light);
  font-size: 14px;
  min-width: 80px;
}

.order-detail-row .value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
  flex: 1;
}

.order-detail-row.full .value {
  text-align: left;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.order-detail-row .value.price {
  font-size: 18px;
  color: var(--primary);
}

.order-detail-row .value.status {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.order-detail-row .value.pending {
  color: var(--warning);
}

/* ==================== 手机端导航(隐藏侧边栏) ==================== */
.mobile-header {
  display: none;
}

.tab-nav {
  display: none;
}

/* ==================== 响应式 - 手机端 ==================== */
@media (max-width: 768px) {
  /* 隐藏侧边栏 */
  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
  }

  /* 显示手机端头部 */
  .mobile-header {
    display: flex;
    background: var(--gradient);
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-header .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .mobile-header .user-name {
    color: white;
    font-weight: 600;
    font-size: 15px;
  }

  .mobile-header .user-role {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
  }

  .mobile-header .logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    width: auto;
  }

  .mobile-header .logout-btn:hover {
    background: rgba(255,255,255,0.3);
  }

  /* 隐藏桌面端头部 */
  .main-header {
    display: none;
  }

  /* 显示底部标签导航 */
  .tab-nav {
    display: flex;
    background: white;
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-item {
    flex: 1;
    min-width: 70px;
    padding: 14px 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    border-top: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
  }

  .tab-item .tab-icon {
    font-size: 20px;
    pointer-events: none;
  }

  .tab-item span {
    pointer-events: none;
  }

  .tab-item:active {
    opacity: 0.7;
  }

  .tab-item.active {
    color: var(--primary);
    border-top-color: var(--primary);
  }

  /* 内容区调整 */
  .main-content {
    padding: 16px;
    padding-bottom: 80px;
  }

  /* 卡片布局调整 */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .users-list {
    grid-template-columns: 1fr;
  }

  .chat-user-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 订单表格手机端适配 - 卡片样式 */
  .order-table {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .order-table-header {
    display: none !important;
  }

  .order-table-row {
    display: block !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    border: none !important;
  }

  .order-table-row > span {
    display: block !important;
  }

  .order-table-row .col-id {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .order-table-row .col-type {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
  }

  .order-table-row .col-title {
    display: none !important;
  }

  .order-table-row .col-worker {
    font-size: 14px !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
  }

  .order-table-row .col-worker::before {
    content: '👤 接单员: ' !important;
  }

  .order-table-row .col-worker.pending {
    color: var(--warning) !important;
  }

  .order-table-row .col-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-bottom: 10px !important;
  }

  .order-table-row .col-price::before {
    content: '💰 ' !important;
  }

  .order-table-row .col-price::after {
    content: ' 馒头' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-light) !important;
  }

  .order-table-row .col-status {
    display: inline-block !important;
    margin-bottom: 12px !important;
  }

  .order-table-row .col-action {
    display: flex !important;
    gap: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border) !important;
    margin-top: 4px !important;
  }

  .order-table-row .col-action .action-btn {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 10px !important;
  }

  .user-item {
    flex-direction: column;
    align-items: stretch;
  }

  .user-item-right {
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  /* 首页调整 */
  .app-title {
    font-size: 28px;
  }

  .app-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .home-btn {
    padding: 16px 50px;
    font-size: 17px;
  }

  /* 聊天全屏 - 手机端 */
  .chat-modal {
    padding: 0;
  }

  .chat-modal .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    animation: none;
  }

  .chat-header {
    border-radius: 0;
    padding: 14px 16px;
  }

  .chat-back {
    padding: 8px 12px;
  }

  .chat-user-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .chat-user-name {
    font-size: 16px;
  }

  .chat-messages {
    padding: 16px;
  }

  .message-item {
    max-width: 85%;
  }

  .message-bubble {
    max-width: 100%;
    padding: 12px 16px;
  }

  .chat-input-area {
    padding: 12px 16px;
    gap: 10px;
  }

  .chat-image-btn {
    width: 44px;
    height: 44px;
  }

  .chat-send-btn {
    padding: 12px 24px;
  }

  /* 弹窗调整 */
  .modal-content {
    padding: 28px 20px;
    border-radius: 20px;
    margin: 16px;
  }

  .auth-form h2 {
    font-size: 24px;
  }

  /* Toast */
  .toast {
    bottom: 100px;
  }
}

/* ==================== 大屏优化 ==================== */
@media (min-width: 1400px) {
  .main-content {
    padding: 40px 48px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==================== 派单弹窗 ==================== */
.dispatch-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 通用表单输入框样式 */
.form-input,
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.form-input:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder,
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a0aec0;
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.radio-item:has(input:checked) {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary);
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.radio-item span {
  font-weight: 500;
}

.form-tip {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 4px solid #f59e0b;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* 聊天派单按钮 */
.chat-dispatch-btn {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-dispatch-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* ==================== 钱包页面 ==================== */
.wallet-page {
  max-width: 600px;
  margin: 0 auto;
}

.wallet-card {
  background: var(--gradient);
  color: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.wallet-balance-display .label {
  display: block;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.wallet-balance-display .amount {
  display: block;
  font-size: 42px;
  font-weight: 700;
}

.wallet-actions-inline {
  margin-top: 20px;
}

.wallet-action-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-action-btn:hover {
  background: rgba(255,255,255,0.3);
}

.wallet-qrcode-card, .transactions-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.wallet-qrcode-card h4, .transactions-card h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
}

.qrcode-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.no-qr, .no-data {
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.small-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.transaction-list {
  max-height: 300px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item .trans-info {
  flex: 1;
}

.transaction-item .trans-type {
  display: block;
  font-weight: 500;
}

.transaction-item .trans-desc {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

.transaction-item .trans-amount {
  font-weight: 600;
  margin-right: 10px;
}

.transaction-item.income .trans-amount {
  color: #48bb78;
}

.transaction-item.expense .trans-amount {
  color: #e53e3e;
}

.transaction-item .trans-time {
  font-size: 12px;
  color: var(--text-light);
}

/* ==================== 订单表格列表 ==================== */
.order-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.order-table-header {
  display: grid;
  grid-template-columns: 70px 80px 90px 70px 70px 100px;
  padding: 14px 16px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 13px;
  gap: 8px;
}

.order-table-row {
  display: grid;
  grid-template-columns: 70px 80px 90px 70px 70px 100px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
  gap: 8px;
  transition: background 0.2s;
}

.order-table-row:hover {
  background: rgba(102, 126, 234, 0.05);
}

.order-table-row:last-child {
  border-bottom: none;
}

.order-table-row .col-id {
  font-family: monospace;
  color: var(--text-light);
}

.order-table-row .col-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.order-table-row .col-worker.pending {
  color: var(--warning);
  font-style: italic;
}

.order-table-row .col-price {
  font-weight: 600;
  color: var(--primary);
}

.order-table-row .col-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 10px;
  text-align: center;
}

.order-table-row .status-pending {
  background: #fff3cd;
  color: #92400e;
}

.order-table-row .status-available {
  background: #c6f6d5;
  color: #276749;
}

.order-table-row .status-working {
  background: #bee3f8;
  color: #2b6cb0;
}

.order-table-row .status-completed {
  background: #c3dafe;
  color: #434190;
}

.order-table-row .status-cancelled {
  background: #fed7d7;
  color: #c53030;
}

.order-table-row .col-action {
  display: flex;
  gap: 6px;
}

.action-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  opacity: 0.9;
}

.action-btn.danger {
  background: var(--danger);
}

.action-btn.primary {
  background: var(--primary);
}

.action-btn.pay {
  background: var(--success);
}

/* ==================== 订单卡片 ==================== */
.orders-list {
  display: grid;
  gap: 16px;
}

.order-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.order-card .order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-card .order-no {
  font-family: monospace;
  color: var(--text-light);
  font-size: 13px;
}

.order-card .order-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.order-card .status-pending {
  background: linear-gradient(135deg, #fff3cd, #fef3c7);
  color: #92400e;
}

.order-card .status-available {
  background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
  color: #276749;
}

.order-card .status-assigned,
.order-card .status-working {
  background: linear-gradient(135deg, #bee3f8, #90cdf4);
  color: #2b6cb0;
}

.order-card .status-completed {
  background: linear-gradient(135deg, #c3dafe, #a3bffa);
  color: #434190;
}

.order-card .status-cancelled {
  background: linear-gradient(135deg, #fed7d7, #feb2b2);
  color: #c53030;
}

.order-card .order-customer,
.order-card .order-worker {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.order-card .order-source {
  font-size: 13px;
  color: var(--primary);
}

.order-card .order-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-card .order-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.order-card .order-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.order-card .order-time {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.order-card .order-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ==================== 管理区域 ==================== */
.admin-section {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.admin-section h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
}

.add-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.add-form .form-input {
  flex: 1;
  min-width: 150px;
}

.type-list {
  display: grid;
  gap: 10px;
}

.type-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 10px;
}

.type-item .type-name {
  font-weight: 500;
  flex: 1;
}

.type-item .type-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-right: 15px;
}

.settings-form {
  max-width: 450px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.settings-form .form-row {
  margin-bottom: 20px;
}

.settings-form .form-row:last-of-type {
  margin-bottom: 24px;
}

.settings-form .primary-btn {
  width: 100%;
  padding: 14px 28px;
  font-size: 16px;
}

/* 提现列表 */
.withdrawals-list {
  display: grid;
  gap: 16px;
}

.withdrawal-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}

.withdrawal-item.approved {
  border-left: 4px solid #48bb78;
}

.withdrawal-item.rejected {
  border-left: 4px solid #e53e3e;
}

.withdrawal-item.pending {
  border-left: 4px solid #ecc94b;
}

.withdrawal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.withdrawal-info .user-name {
  font-weight: 600;
}

.withdrawal-info .amount, .withdrawal-info .actual {
  font-size: 14px;
}

.withdrawal-info .fees, .withdrawal-info .time {
  font-size: 12px;
  color: var(--text-light);
}

.withdrawal-qr img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.withdrawal-status {
  display: flex;
  gap: 8px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.approved {
  background: #c6f6d5;
  color: #276749;
}

.status-badge.rejected {
  background: #fed7d7;
  color: #c53030;
}

.danger-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.danger-btn:hover {
  background: #c53030;
}

.danger-btn.small, .primary-btn.small, .cancel-btn.small {
  padding: 6px 14px;
  font-size: 13px;
}

/* 提现弹窗 */
.withdraw-info {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.withdraw-info p {
  margin: 10px 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(102, 126, 234, 0.2);
}

.withdraw-info p:last-child {
  border-bottom: none;
}

.withdraw-info p strong {
  color: var(--primary);
  font-size: 16px;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* 手机端适配 */
@media (max-width: 768px) {
  .dispatch-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .form-row.two-cols {
    grid-template-columns: 1fr;
  }
  
  .withdrawal-item {
    grid-template-columns: 1fr;
  }
  
  .withdrawal-qr {
    order: -1;
  }
}

/* ==================== 激活码管理 ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h3 {
  margin: 0;
}

.code-filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.codes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s;
}

.code-item:hover {
  box-shadow: var(--shadow);
}

.code-item.used {
  background: #f9fafb;
  opacity: 0.8;
}

.code-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.code-text {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.code-value {
  font-weight: 600;
  color: var(--success);
}

.code-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.code-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.code-status.unused {
  background: #c6f6d5;
  color: #276749;
}

.code-status.used {
  background: #fed7d7;
  color: #c53030;
}

.code-user, .code-time {
  color: var(--text-light);
}

/* ==================== 激活码兑换弹窗 ==================== */
.redeem-input-area {
  margin-bottom: 16px;
}

.redeem-input-area textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  resize: vertical;
}

.redeem-tip {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ==================== 消息悬浮提示 ==================== */
.message-notification {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 300px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 2500;
  animation: slideInRight 0.3s ease;
  cursor: pointer;
  border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.message-notification.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notification-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.notification-sender {
  font-weight: 600;
  color: var(--text);
}

.notification-body {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .message-notification {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 80px;
  }
  
  .code-filter-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .code-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==================== 接单大厅 ==================== */
.available-orders-header {
  margin-bottom: 16px;
}

.available-orders-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
}

.order-count {
  background: var(--gradient);
  color: white;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.available-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.available-order-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.available-order-card:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.aoc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aoc-id {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.aoc-type {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.aoc-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.aoc-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.aoc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.aoc-price {
  font-size: 14px;
  color: var(--success);
}

.aoc-price strong {
  font-size: 18px;
}

.aoc-time {
  font-size: 12px;
  color: var(--text-light);
}

.aoc-accept-btn {
  width: 100%;
  padding: 10px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.aoc-accept-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.aoc-accept-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .available-orders-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .available-order-card {
    padding: 14px;
  }
  
  .aoc-title {
    font-size: 14px;
  }
  
  .aoc-price strong {
    font-size: 16px;
  }
}

/* ==================== 钱包余额网格 ==================== */
.wallet-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.balance-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.balance-item.main {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.2);
}

.balance-label {
  font-size: 12px;
  opacity: 0.9;
}

.balance-value {
  font-size: 20px;
  font-weight: 700;
}

.balance-item.main .balance-value {
  font-size: 28px;
}

.balance-item.pending {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
}

.balance-item.withdrawing {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(3, 169, 244, 0.3));
}

@media (max-width: 768px) {
  .wallet-balance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .balance-item {
    padding: 12px;
  }
  
  .balance-item.main .balance-value {
    font-size: 24px;
  }
  
  .balance-value {
    font-size: 16px;
  }
}

/* ==================== 我的任务卡片 ==================== */
.tasks-section {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--text);
}

.task-count {
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.task-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card.in-progress {
  border-left: 4px solid var(--primary);
}

.task-card.completed {
  border-left: 4px solid var(--success);
  opacity: 0.85;
}

.task-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-id {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.task-status {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.task-status.in-progress {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.task-status.completed {
  background: var(--success);
  color: white;
}

.task-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.task-type {
  font-size: 12px;
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.task-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.task-price {
  font-size: 14px;
  color: var(--success);
}

.task-price strong {
  font-size: 18px;
}

.task-time {
  font-size: 12px;
  color: var(--text-light);
}

.task-actions {
  display: flex;
  gap: 10px;
}

.task-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.task-btn.detail {
  background: #f0f0f0;
  color: var(--text);
}

.task-btn.detail:hover {
  background: #e0e0e0;
}

.task-btn.complete {
  background: var(--gradient);
  color: white;
}

.task-btn.complete:hover {
  opacity: 0.9;
}

/* 任务详情弹窗 */
.task-detail-content {
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
}

.task-detail-body {
  padding: 16px 0;
}

.detail-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 13px;
  color: var(--text-light);
  min-width: 70px;
}

.detail-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}

.detail-value.price {
  color: var(--success);
  font-weight: 700;
}

.detail-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
}

.account-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.account-value {
  font-family: monospace;
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.copy-btn {
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  opacity: 0.85;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.secondary-btn {
  padding: 10px 20px;
  background: #f0f0f0;
  color: var(--text);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: #e0e0e0;
}

/* 订单管理头部 */
.order-manage-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-end;
}

.required {
  color: var(--danger);
}

/* 客户来源标签 */
.source-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.source-badge.website {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  color: var(--primary);
}

.source-badge.qq {
  background: linear-gradient(135deg, rgba(18, 183, 245, 0.15), rgba(0, 168, 255, 0.15));
  color: #12b7f5;
}

.source-badge.wechat {
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.15), rgba(9, 187, 7, 0.15));
  color: #07c160;
}

.customer-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #12b7f5, #00a8ff);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 消息发送者名称 */
.message-sender-name {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}

.message-item.sent .message-sender-name {
  text-align: right;
}

/* 接单通知卡片 */
.chat-accepted-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px;
  min-width: 220px;
  max-width: 280px;
}

.accepted-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.accepted-icon {
  font-size: 18px;
}

.accepted-label {
  font-weight: 600;
  color: #059669;
  font-size: 14px;
}

.accepted-order {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  padding: 6px 8px;
  background: white;
  border-radius: 6px;
}

.accepted-worker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}

.worker-icon {
  font-size: 16px;
}

.accepted-contact-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.accepted-contact-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 客户联系客服页面 */
.service-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  max-height: 600px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.service-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gradient);
  color: white;
}

.service-header-actions {
  margin-left: auto;
}

.switch-service-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.switch-service-btn:hover {
  background: rgba(255,255,255,0.3);
}

.username-tag {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
}

/* 订单卡片消息样式 */
.order-card-msg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  max-width: 280px;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.order-card-header {
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  font-weight: 600;
  font-size: 13px;
}

.order-card-body {
  padding: 12px 14px;
}

.order-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}

.order-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
}

.order-card-footer {
  padding: 10px 14px;
  background: rgba(0,0,0,0.1);
  text-align: center;
}

.order-card-btn {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: inline-block;
  transition: background 0.2s;
}

.order-card-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 新版订单卡片样式 */
.order-card-msg-v2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  overflow: hidden;
  min-width: 240px;
  max-width: 300px;
  color: white;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.order-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  font-size: 13px;
}

.order-card-top .order-icon {
  font-weight: 600;
}

.order-card-top .order-no {
  opacity: 0.8;
}

.order-card-top .order-status-tag {
  margin-left: auto;
  background: rgba(255,255,255,0.25);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.order-card-main {
  padding: 16px;
}

.order-card-main .order-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.order-card-main .order-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.order-card-main .coin-icon {
  font-size: 18px;
}

.order-card-main .order-price {
  font-size: 28px;
  font-weight: 700;
  color: #ffd700;
}

.order-card-main .price-unit {
  font-size: 14px;
  opacity: 0.9;
}

.order-card-main .order-tip {
  font-size: 11px;
  opacity: 0.75;
}

.order-card-btns {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.15);
}

.order-card-btns button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.order-card-btns .pay-btn {
  background: white;
  color: #667eea;
}

.order-card-btns .pay-btn:hover {
  background: #f0f0f0;
}

.order-card-btns .detail-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.order-card-btns .detail-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 订单状态标签颜色 */
.order-status-tag.status-pending {
  background: #ffa500;
}

.order-status-tag.status-available {
  background: #4dabf7;
}

.order-status-tag.status-processing {
  background: #667eea;
}

.order-status-tag.status-completed {
  background: #40c057;
}

.order-status-tag.status-cancelled {
  background: #adb5bd;
}

/* 订单已接单卡片 */
.order-accepted-card {
  background: linear-gradient(135deg, #40c057 0%, #2f9e44 100%);
  border-radius: 16px;
  overflow: hidden;
  min-width: 220px;
  max-width: 280px;
  color: white;
  box-shadow: 0 8px 24px rgba(64, 192, 87, 0.35);
}

.accepted-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  font-weight: 600;
}

.accepted-icon {
  font-size: 18px;
}

.accepted-title {
  font-size: 15px;
}

.accepted-body {
  padding: 14px 16px;
}

.accepted-order-info {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.accepted-worker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.worker-icon {
  font-size: 16px;
}

.worker-name {
  font-weight: 600;
  color: #ffd700;
}

.accepted-footer {
  padding: 12px 16px;
  background: rgba(0,0,0,0.15);
}

.contact-worker-btn {
  width: 100%;
  padding: 10px 0;
  background: white;
  color: #40c057;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-worker-btn:hover {
  background: #f0f0f0;
}

/* 订单详情弹窗 */
.order-detail-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  margin: 50px auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gradient);
  color: white;
}

.order-detail-header h3 {
  margin: 0;
  font-size: 18px;
}

.order-detail-header .close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.order-detail-body {
  padding: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: #666;
  font-size: 14px;
}

.detail-row .value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.detail-row .value.price {
  color: #ff6b6b;
  font-size: 18px;
  font-weight: 700;
}

.detail-row .value.status-pending {
  color: #ffa500;
}

.detail-row .value.status-available {
  color: #4dabf7;
}

.detail-row .value.status-processing {
  color: #667eea;
}

.detail-row .value.status-completed {
  color: #40c057;
}

.detail-row .value.status-cancelled {
  color: #adb5bd;
}

.order-detail-footer {
  padding: 16px 20px;
  background: #f8f9fa;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.service-chat-avatar {
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-chat-avatar.has-service {
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
}

.service-chat-title {
  font-weight: 600;
  font-size: 16px;
}

.service-chat-subtitle {
  font-size: 12px;
  opacity: 0.8;
}

.service-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}

.service-welcome {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.welcome-tip {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.service-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.service-msg.sent {
  flex-direction: row-reverse;
}

.service-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.service-msg.received .service-msg-avatar {
  background: var(--primary);
}

.service-msg-content {
  max-width: 70%;
}

.service-msg-name {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.service-msg.sent .service-msg-name {
  text-align: right;
}

.role-tag {
  background: var(--primary);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 4px;
}

.service-msg-bubble {
  padding: 10px 14px;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.service-msg.sent .service-msg-bubble {
  background: var(--primary);
  color: white;
}

.service-msg-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.service-msg.sent .service-msg-time {
  text-align: right;
}

.service-chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: white;
}

.service-chat-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
}

.service-chat-input .send-btn {
  padding: 12px 24px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
}

.service-chat-input .img-upload-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
}

.service-chat-input .img-upload-btn:hover {
  background: #e0e0e0;
}

.service-msg-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
}

/* 客服消息分类标签 */
.service-msg-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.service-msg-tabs .tab-btn {
  padding: 8px 16px;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.service-msg-tabs .tab-btn.active {
  background: var(--gradient);
  color: white;
}

.service-msg-tabs .badge {
  background: var(--danger);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 6px;
}

.service-msg-tabs .badge.mine {
  background: var(--primary);
}

.service-msg-tabs .badge.other {
  background: #999;
}

.service-tab-content {
  display: none;
}

.service-tab-content.active {
  display: block;
}

.empty-tip {
  text-align: center;
  color: var(--text-light);
  padding: 30px;
}

.service-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.service-chat-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-chat-item .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
}

.service-chat-item .info {
  flex: 1;
  min-width: 0;
}

.service-chat-item .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.service-chat-item .name small {
  color: #888;
  font-weight: normal;
}

.service-chat-item .last-msg {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-chat-item .actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.service-chat-item .time {
  font-size: 11px;
  color: #999;
}

.claim-btn {
  padding: 6px 12px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.claim-btn:hover {
  opacity: 0.9;
}

.claimed-by {
  font-size: 11px;
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.worker-chat-item {
  padding: 14px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.worker-chat-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.worker-chat-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-name, .customer-name {
  font-weight: 500;
}

.chat-arrow {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .tasks-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .task-card {
    padding: 14px;
  }
  
  .task-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .task-detail-content {
    max-height: 90vh;
  }
  
  .detail-row {
    flex-wrap: wrap;
  }
  
  .account-value {
    width: 100%;
    margin-top: 4px;
  }
}

/* ==================== 用户详情弹窗 ==================== */
.user-detail-modal {
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 600px;
  max-height: 85vh;
  margin: 30px auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.user-detail-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-detail-header h3 {
  margin: 0;
  font-size: 18px;
}

.user-detail-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(85vh - 60px);
}

.user-basic-info {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.user-avatar-big {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.user-info-text p {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

/* 角色标签 */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.role-badge.role-customer {
  background: #e3f2fd;
  color: #1976d2;
}

.role-badge.role-service {
  background: #fff3e0;
  color: #f57c00;
}

.role-badge.role-worker {
  background: #e8f5e9;
  color: #388e3c;
}

.role-badge.role-admin {
  background: #fce4ec;
  color: #c2185b;
}

/* 接单员类型设置 */
.worker-types-section {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.worker-types-section h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.worker-types-section .hint {
  font-size: 12px;
  color: #888;
  margin: 0 0 12px 0;
}

.type-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.type-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #ddd;
}

.type-checkbox:hover {
  border-color: #667eea;
}

.type-checkbox input:checked + span {
  color: #667eea;
  font-weight: 600;
}

/* 用户订单列表 */
.user-orders-section {
  margin-bottom: 20px;
}

.user-orders-section h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #333;
}

.user-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
}

.user-order-item .order-id {
  color: #667eea;
  font-weight: 600;
  min-width: 40px;
}

.user-order-item .order-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-order-item .order-price {
  color: #ff9800;
  font-weight: 600;
}

.user-order-item .order-status {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: #eee;
}

.user-order-item .order-status.status-pending { background: #fff3e0; color: #ff9800; }
.user-order-item .order-status.status-available { background: #e3f2fd; color: #2196f3; }
.user-order-item .order-status.status-in_progress { background: #ede7f6; color: #673ab7; }
.user-order-item .order-status.status-completed { background: #e8f5e9; color: #4caf50; }
.user-order-item .order-status.status-cancelled { background: #f5f5f5; color: #9e9e9e; }

.more-hint {
  text-align: center;
  color: #888;
  font-size: 12px;
  margin: 8px 0 0 0;
}

.no-data {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 20px 0;
}

/* ==================== 分页和加载更多 ==================== */
.load-more-btn {
  text-align: center;
  padding: 12px;
  color: #667eea;
  cursor: pointer;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(102,126,234,0.1) 0%, transparent 100%);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.load-more-btn:hover {
  background: linear-gradient(180deg, rgba(102,126,234,0.2) 0%, transparent 100%);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  border-color: #667eea;
  color: #667eea;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination .page-info {
  font-size: 13px;
  color: #666;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: #888;
}

.loading-indicator::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #667eea;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ==================== 订单群聊 ==================== */
.order-chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eee;
}

.order-chat-item:hover {
  background: #f8f9ff;
  border-color: #667eea;
}

.order-chat-icon {
  font-size: 24px;
  margin-right: 12px;
}

.order-chat-info { flex: 1; }

.order-chat-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.order-chat-members {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.member-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  color: white;
}

.member-tag.member-service { background: #e74c3c; }
.member-tag.member-customer { background: #f39c12; }
.member-tag.member-worker { background: #3498db; }

.order-chat-last {
  font-size: 12px;
  color: #888;
}

/* 订单群聊消息 */
.order-chat-msg {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.order-chat-msg.sent { flex-direction: row-reverse; }

.order-chat-msg .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin: 0 8px;
  flex-shrink: 0;
}

.order-chat-msg .msg-avatar.role-service,
.order-chat-msg .msg-avatar.role-admin { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.order-chat-msg .msg-avatar.role-customer { background: linear-gradient(135deg, #f39c12, #e67e22); }
.order-chat-msg .msg-avatar.role-worker { background: linear-gradient(135deg, #3498db, #2980b9); }

.order-chat-msg .msg-content { max-width: 70%; }

.order-chat-msg .msg-sender {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.order-chat-msg.sent .msg-sender { flex-direction: row-reverse; }

.order-chat-msg .sender-name { font-size: 12px; font-weight: 600; }

.sender-name.role-service, .sender-name.role-admin { color: #e74c3c; }
.sender-name.role-customer { color: #f39c12; }
.sender-name.role-worker { color: #3498db; }

.sender-role-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  color: white;
}

.sender-role-tag.role-service, .sender-role-tag.role-admin { background: #e74c3c; }
.sender-role-tag.role-customer { background: #f39c12; }
.sender-role-tag.role-worker { background: #3498db; }

.order-chat-msg .msg-bubble {
  background: #f0f0f0;
  padding: 10px 14px;
  border-radius: 16px;
  color: #333;
  line-height: 1.5;
}

.order-chat-msg.sent .msg-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.order-chat-msg .msg-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.order-chat-msg.sent .msg-time { text-align: right; }

.system-message {
  text-align: center;
  padding: 8px 16px;
  margin: 12px auto;
  font-size: 12px;
  color: #888;
  background: #f5f5f5;
  border-radius: 20px;
  display: block;
  width: fit-content;
}

/* 消息列表分区标题 */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  padding: 12px 16px 8px;
  margin-top: 8px;
}

.section-title:first-child { margin-top: 0; }

/* 订单聊天入口样式 */
.order-chat-entry .order-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-status-mini {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #667eea;
  color: white;
  margin-left: 6px;
}

.order-members-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}

.mini-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 6px;
  color: white;
}

.mini-tag.mini-service { background: #e74c3c; }
.mini-tag.mini-customer { background: #f39c12; }
.mini-tag.mini-worker { background: #3498db; }

/* @选择器 */
.at-selector {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10000;
  min-width: 200px;
  display: none;
}

.at-member {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.at-member:hover { background: #f5f5f5; }

.at-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
}

.at-avatar.at-service, .at-avatar.at-admin { background: #e74c3c; }
.at-avatar.at-customer { background: #f39c12; }
.at-avatar.at-worker { background: #3498db; }

.at-name { flex: 1; font-size: 14px; }

.at-role-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  color: white;
}

.at-role-tag.at-service, .at-role-tag.at-admin { background: #e74c3c; }
.at-role-tag.at-customer { background: #f39c12; }
.at-role-tag.at-worker { background: #3498db; }

.at-empty {
  padding: 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* @通知悬浮框 */
.mention-notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 16px;
  min-width: 280px;
  max-width: 350px;
  z-index: 10001;
  cursor: pointer;
  animation: slideIn 0.3s ease;
  border-left: 4px solid #667eea;
}

.mention-notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.mention-notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(10px); }
}

.mention-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mention-icon { font-size: 18px; }

.mention-title {
  font-weight: 600;
  color: #667eea;
}

.mention-from {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.mention-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* 加载更多按钮 */
.load-more-btn {
  text-align: center;
  padding: 12px;
  cursor: pointer;
  color: #667eea;
  font-size: 13px;
  background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.load-more-btn:hover {
  background: linear-gradient(to bottom, rgba(102, 126, 234, 0.2), transparent);
}

/* 订单详情按钮 */
.order-detail-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.order-detail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 订单详情悬浮框 */
.order-chat-detail-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.order-chat-detail-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.order-chat-detail-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.order-chat-detail-popup .popup-title {
  font-weight: 600;
  font-size: 15px;
}

.order-chat-detail-popup .popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-chat-detail-popup .popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.order-chat-detail-popup .popup-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.order-chat-detail-popup .detail-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-chat-detail-popup .detail-item:last-child {
  border-bottom: none;
}

.order-chat-detail-popup .detail-item.full {
  flex-direction: column;
  gap: 6px;
}

.order-chat-detail-popup .detail-item .label {
  color: #888;
  font-size: 13px;
  min-width: 80px;
  flex-shrink: 0;
}

.order-chat-detail-popup .detail-item .value {
  color: #333;
  font-size: 14px;
  word-break: break-all;
}

.order-chat-detail-popup .detail-item .value.price {
  color: #e74c3c;
  font-weight: 600;
}

.order-chat-detail-popup .detail-item .value.desc {
  background: #f8f9fa;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.order-chat-detail-popup .detail-item .value.status-pending { color: #f39c12; }
.order-chat-detail-popup .detail-item .value.status-assigned { color: #3498db; }
.order-chat-detail-popup .detail-item .value.status-working { color: #9b59b6; }
.order-chat-detail-popup .detail-item .value.status-in_progress { color: #9b59b6; }
.order-chat-detail-popup .detail-item .value.status-completed { color: #27ae60; }
.order-chat-detail-popup .detail-item .value.status-cancelled { color: #95a5a6; }

/* 警告按钮样式 */
.action-btn.warning {
  background: #f39c12;
  color: white;
}

.action-btn.warning:hover {
  background: #e67e22;
}

/* 禁用的输入区域 */
.chat-input-area.disabled {
  opacity: 0.6;
  background: #f5f5f5;
}

.chat-input-area.disabled input {
  cursor: not-allowed;
}

/* 订单聊天未读标记 */
.order-chat-entry .unread-badge,
.order-chat-item .unread-badge,
.service-chat-item > .unread-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  background: #e74c3c !important;
  color: white !important;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ==================== 自助下单页面 ==================== */
.self-order-page {
  padding: 20px;
}

.self-order-page h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.self-order-page .page-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  min-height: 40px;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-modal-desc {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.product-modal-price {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
}

/* 购买激活码按钮 */
.wallet-action-btn.buy-code {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.wallet-action-btn.buy-code:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

/* 管理员产品表格 */
.products-table {
  overflow-x: auto;
}

.products-table table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th,
.products-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.products-table th {
  background: var(--bg-secondary);
  font-weight: 600;
}

.products-table tr.inactive {
  opacity: 0.5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h3 {
  margin: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* 用户订单分页 */
.user-orders-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.user-orders-pagination .page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.user-orders-pagination .page-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.user-orders-pagination .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-orders-pagination .page-info {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== 用户设置弹窗 ==================== */
.user-settings-modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
}

.settings-header h3 {
  margin: 0;
  font-size: 18px;
}

.settings-body {
  padding: 20px;
}

.settings-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.settings-section h4 {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: var(--text-primary);
}

/* 头像上传区域 */
.avatar-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.current-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-char {
  font-size: 32px;
  font-weight: bold;
  color: white;
}

.avatar-upload-area .hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* 头像图片在侧边栏/顶部 */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 基本信息行 */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--text-secondary);
}

.info-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* 设置表单 */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-form .form-group {
  margin-bottom: 0;
}

.settings-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.settings-form .form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.settings-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.settings-form .btn {
  margin-top: 8px;
}

/* ==================== 管理员用户管理 ==================== */
.admin-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.admin-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-primary);
}

.balance-manage-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.balance-manage-row select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  min-width: 80px;
}

.balance-manage-row input[type="number"],
.balance-manage-row input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  flex: 1;
  min-width: 80px;
}

.current-security {
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.current-security strong {
  color: var(--text-primary);
}

.security-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.security-form input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  flex: 1;
  min-width: 120px;
}

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

/* 消息头像图片 */
.message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 呼叫客服按钮 */
.call-service-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-bottom: 1px solid var(--border);
}

.call-service-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.call-service-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.call-service-btn:disabled {
  background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
  cursor: not-allowed;
  box-shadow: none;
}

.call-service-btn.cooling {
  background: linear-gradient(135deg, #78909c, #607d8b);
}

.call-service-hint {
  font-size: 12px;
  color: #e65100;
}

/* 自定义确认对话框 */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s;
}

.confirm-dialog-overlay.active {
  opacity: 1;
}

.confirm-dialog {
  background: var(--card-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.2s;
  overflow: hidden;
}

.confirm-dialog-overlay.active .confirm-dialog {
  transform: scale(1);
}

.confirm-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 12px;
}

.confirm-dialog-icon {
  font-size: 28px;
}

.confirm-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.confirm-dialog-body {
  padding: 0 24px 20px;
}

.confirm-dialog-body p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.confirm-dialog-footer {
  display: flex;
  border-top: 1px solid var(--border);
}

.confirm-dialog-btn {
  flex: 1;
  padding: 16px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-dialog-btn.cancel {
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}

.confirm-dialog-btn.cancel:hover {
  background: var(--bg-secondary);
}

.confirm-dialog-btn.confirm {
  color: var(--primary);
}

.confirm-dialog-btn.confirm:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* ==================== 支付方式选择 ==================== */
.payment-methods {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 30px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.payment-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.payment-btn .payment-icon {
  font-size: 32px;
}

.payment-btn .payment-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.payment-btn.balance-pay:hover {
  border-color: #ed8936;
  background: rgba(237, 137, 54, 0.05);
}

.payment-btn.alipay-pay:hover {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.05);
}

/* ==================== 支付宝充值档位 ==================== */
.recharge-modal-header {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.recharge-modal-header .alipay-logo {
  font-size: 40px;
  margin-bottom: 5px;
}

.recharge-modal-header h3 {
  color: #1677ff;
  font-size: 18px;
  margin: 0;
}

.recharge-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 5px 0 15px;
}

.recharge-amount-btn {
  padding: 20px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.recharge-amount-btn .amount {
  font-size: 20px;
  font-weight: 700;
  color: #1677ff;
}

.recharge-amount-btn .unit {
  font-size: 12px;
  color: var(--text-secondary);
}

.recharge-amount-btn:hover {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.15);
}

.recharge-amount-btn.active {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.1);
}

.recharge-amount-btn.custom {
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: white;
  border-color: transparent;
}

.recharge-amount-btn.custom .amount,
.recharge-amount-btn.custom .unit {
  color: white;
}

.recharge-amount-btn.custom:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.recharge-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.recharge-tip i {
  color: #1677ff;
}

.wallet-action-btn.alipay {
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: white;
}

/* ==================== 支付宝二维码弹窗 ==================== */
#alipay-qrcode-modal .modal-content {
  position: relative;
}

.qrcode-header h3 {
  font-size: 18px;
}

.qrcode-container {
  animation: fadeIn 0.3s ease;
}

.qrcode-amount {
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading-dot {
  display: inline-block;
  animation: blink 1s ease infinite;
  color: #1677ff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#qrcode-status {
  min-height: 20px;
}

/* ==================== 公告弹窗 ==================== */
.announcement-modal-content {
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  animation: announceSlideIn 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3px;
}

@keyframes announceSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.announcement-header {
  background: transparent;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-icon {
  font-size: 20px;
}

.announcement-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
}

.announcement-body {
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  margin: 0;
  min-height: 80px;
}

.announcement-content {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.9;
  word-break: break-word;
}

.announcement-footer {
  padding: 16px 24px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 13px 13px;
  display: flex;
  justify-content: center;
}

.announcement-footer .primary-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-footer .primary-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 图片上传预览 */
.image-upload-area {
  margin-top: 5px;
}

.image-preview {
  width: 100px;
  height: 100px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.05);
}

.image-preview:hover {
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.1);
}

.image-preview span {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-align: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 分类标签 */
.category-tag.inactive {
  opacity: 0.5;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.icon-btn:hover {
  opacity: 1;
}

/* 自助下单产品卡片图片 */
.product-card .product-image {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-category {
  margin-bottom: 25px;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 分类标签切换 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.category-tab {
  padding: 8px 18px;
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.category-tab:hover {
  background: #e0e0e0;
  border-color: #667eea;
}

.category-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 500;
  border-color: transparent;
}
