/* ============================================
   瓶盖回收核销系统 - 移动端优先现代化设计
   ============================================ */

:root {
  --primary: #0D7C3D;
  --primary-light: #10B981;
  --primary-dark: #065F2E;
  --primary-bg: #E6F7EE;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --accent-dark: #D97706;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --success: #10B981;
  --success-light: #D1FAE5;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --bg: #F3F4F6;
  --bg-secondary: #E5E7EB;
  --card-bg: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(70px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ========== 顶部导航 ========== */
.navbar {
  background: linear-gradient(135deg, #065F2E 0%, #0D7C3D 40%, #059669 100%);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(6, 95, 46, 0.35);
  backdrop-filter: blur(10px);
}
.navbar-title {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  letter-spacing: 0.5px;
}
.navbar-back {
  color: #fff;
  font-size: 15px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  transition: background 0.2s;
}
.navbar-back:hover { background: rgba(255,255,255,0.15); }
.navbar-action {
  color: #fff;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.navbar-action:hover { background: rgba(255,255,255,0.15); }

/* ========== 底部导航 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  transition: all 0.2s;
}
.bottom-nav a.active { 
  color: var(--primary);
}
.bottom-nav a .nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
.bottom-nav a.active .nav-icon {
  transform: translateY(-2px);
}

/* ========== 容器 ========== */
.container { padding: 16px; max-width: 640px; margin: 0 auto; }

/* ========== 卡片 ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.supplier-card { margin-bottom: 14px; }
.supplier-card .supplier-card-inner { transition: none; }
.supplier-card .supplier-card-inner:hover { box-shadow: var(--shadow); transform: none; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 124, 61, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(13, 124, 61, 0.4); transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-full); }
.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: var(--radius-full); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn .btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ========== 表单 ========== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  background: #F9FAFB;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
  font-family: var(--font);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.form-input::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-input[type="number"] { -moz-appearance: textfield; }
.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* 文件上传 */
.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  background: #F9FAFB;
  cursor: pointer;
  transition: all 0.25s;
  flex-direction: column;
  gap: 8px;
}
.file-upload:hover, .file-upload:active {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-1px);
}
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload .upload-icon {
  font-size: 36px;
  color: var(--text-light);
  transition: transform 0.2s;
}
.file-upload:hover .upload-icon { transform: scale(1.1); }
.file-upload .upload-text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.file-preview { margin-top: 10px; text-align: center; }
.file-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  object-fit: contain;
}

/* ========== 二维码上传组件 ========== */
.qr-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  background: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s;
}
.qr-upload-zone:hover {
  border-color: var(--primary);
  background: #F0FDF4;
}
.qr-upload-icon { color: var(--primary); margin-bottom: 8px; }
.qr-upload-text { font-size: 15px; font-weight: 600; color: var(--text); }
.qr-upload-sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.qr-preview-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.qr-preview-item {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.qr-preview-item .qr-thumb { aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.qr-preview-item .qr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qr-preview-item .qr-info { padding: 8px; font-size: 11px; }
.qr-preview-item .qr-status { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 11px; }
.qr-preview-item .qr-status.success { color: var(--primary-dark); }
.qr-preview-item .qr-status.fail { color: #DC2626; }
.qr-preview-item .qr-status.decoding { color: var(--text-light); }
.qr-preview-item .qr-content {
  margin-top: 4px;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qr-preview-item .qr-tip { color: #B45309; margin-top: 4px; }
.qr-preview-item .qr-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-summary {
  margin-top: 14px;
  padding: 12px;
  background: #ECFDF5;
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--text);
}
.qr-summary b { color: var(--accent-dark); }

/* ========== 任务卡片（新版） ========== */
.task-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  padding: 0;
}
.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.task-card-main {
  display: flex;
  padding: 16px;
  gap: 14px;
}
.task-info { flex: 1; min-width: 0; }
.task-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.task-title-row .task-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.task-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--tag-color, var(--primary));
  background: color-mix(in srgb, var(--tag-color, var(--primary)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--primary)) 25%, transparent);
  flex-shrink: 0;
}
.task-company-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.task-company-row .company-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.task-company-row .company-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.task-company-row .company-name { font-size: 13px; font-weight: 600; color: var(--text); }
.task-company-row .company-addr { font-size: 12px; color: var(--text-light); }
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.task-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #F9FAFB;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.task-meta-item.urgent-text { color: #DC2626; background: #FEF2F2; }
.task-note, .task-phone {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  line-height: 1.5;
}
.task-note i, .task-phone i { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.task-phone { background: #F0FDF4; border-color: #BBF7D0; margin-top: 6px; }
.task-price-side {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #FDE68A;
}
.task-price-label {
  font-size: 11px;
  color: #92400E;
  margin-bottom: 4px;
}
.task-price-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}
.task-price-unit {
  font-size: 11px;
  color: #92400E;
  margin-top: 4px;
  margin-bottom: 12px;
}
.task-submit-btn { width: 100%; justify-content: center; }
.task-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: #FAFAFA;
}
.task-card-bottom .task-progress {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.task-card-bottom .task-status { display: flex; align-items: center; gap: 6px; }
.task-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.task-badge.active { background: var(--success-light); color: var(--primary-dark); }
.task-badge.closed { background: #F3F4F6; color: var(--text-light); }
.task-badge.urgent { background: #FEE2E2; color: #DC2626; animation: pulse-badge 2s infinite; }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@media (max-width: 400px) {
  .task-card-main { flex-direction: column; }
  .task-price-side { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .task-price-side > * { margin: 0 !important; }
  .task-submit-btn { margin-left: auto; width: auto; }
}

/* ========== 统计卡片 ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid.col4 { grid-template-columns: repeat(4, 1fr); }

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 18px;
}
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}

/* ========== 状态标签 ========== */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.status-tag .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-pending .status-dot { background: #F59E0B; }
.status-approved { background: #D1FAE5; color: #065F2E; }
.status-approved .status-dot { background: #10B981; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-rejected .status-dot { background: #EF4444; }

/* ========== 提交记录 ========== */
.submission-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  transition: background 0.2s;
}
.submission-item:last-child { border-bottom: none; }
.submission-item:hover { background: #F9FAFB; margin: 0 -18px; padding-left: 18px; padding-right: 18px; border-radius: var(--radius-sm); }
.submission-item .sub-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.submission-item .sub-info { flex: 1; min-width: 0; }
.submission-item .sub-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.submission-item .sub-detail { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.submission-item .sub-amount {
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  font-size: 15px;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  letter-spacing: 0.3px;
}
.toast-success { background: linear-gradient(135deg, #059669, #10B981); }
.toast-error { background: linear-gradient(135deg, #DC2626, #EF4444); }
.toast-warning { background: linear-gradient(135deg, #D97706, #F59E0B); }
.toast-info { background: linear-gradient(135deg, #2563EB, #3B82F6); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.empty-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.empty-state .empty-text { font-size: 14px; line-height: 1.5; }

/* ========== 搜索 ========== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.search-bar .form-input {
  flex: 1;
  border-radius: var(--radius-full);
  padding: 11px 18px;
  background: #fff;
}
.search-bar .btn { border-radius: var(--radius-full); }

/* ========== 回收商专属页 ========== */
.recycler-hero {
  background: linear-gradient(135deg, #065F2E 0%, #0D7C3D 30%, #059669 100%);
  color: #fff;
  padding: 32px 20px 28px;
  text-align: center;
  margin: -16px -16px 20px;
  position: relative;
  overflow: hidden;
}
.recycler-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.recycler-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.recycler-hero .hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.3);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.recycler-hero .hero-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.recycler-hero .hero-desc {
  font-size: 14px;
  opacity: 0.85;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.5;
}
.recycler-hero .hero-contact {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

/* ========== 标签页切换 ========== */
.tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 5px;
  margin-bottom: 16px;
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.tab-item.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ========== 登录页 ========== */
.page-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
  min-height: 80vh;
}
.page-auth .auth-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(13, 124, 61, 0.3);
}
.page-auth .auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.page-auth .auth-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.auth-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 5px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  background: none;
  color: var(--text-secondary);
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ========== 公告/提示条 ========== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-light); color: #065F2E; border: 1px solid #A7F3D0; }
.alert-error { background: var(--danger-light); color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: var(--info-light); color: #1E40AF; border: 1px solid #BFDBFE; }

/* ========== 专属链接 ========== */
.share-link-area {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border: 1px solid #A7F3D0;
}
.share-link-area .link-text {
  flex: 1;
  font-size: 13px;
  color: var(--primary-dark);
  word-break: break-all;
  font-weight: 500;
}
.share-link-area .copy-btn {
  flex-shrink: 0;
  font-size: 13px;
  color: #fff;
  background: var(--primary);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.share-link-area .copy-btn:active { transform: scale(0.95); }

/* ========== 成功页 ========== */
.success-page {
  text-align: center;
  padding: 40px 20px;
}
.success-page .success-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: var(--success);
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== 操作按钮组 ========== */
.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-content {
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ========== 公告弹窗 ========== */
.announcement-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: annFadeIn 0.25s ease;
}
.announcement-overlay.active {
  display: flex;
}
.announcement-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: annPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.announcement-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.announcement-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  max-height: 55vh;
  overflow-y: auto;
  word-break: break-word;
}
.announcement-footer {
  margin-top: 20px;
}
@keyframes annFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes annPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========== 首页横幅 ========== */
.home-banner {
  background: linear-gradient(135deg, #065F2E 0%, #059669 40%, #0D9488 100%);
  color: #fff;
  padding: 28px 20px;
  margin: -16px -16px 20px;
  position: relative;
  overflow: hidden;
}
.home-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.home-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.home-banner .banner-icon {
  font-size: 44px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.home-banner .banner-title {
  font-size: 24px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 1px;
}
.home-banner .banner-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.home-banner .banner-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.home-banner .banner-stat {
  text-align: center;
}
.home-banner .banner-stat-val {
  font-size: 22px;
  font-weight: 800;
}
.home-banner .banner-stat-lbl {
  font-size: 11px;
  opacity: 0.75;
}

/* ========== 管理后台 ========== */
@media (min-width: 768px) {
  .container { max-width: 900px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .admin-layout {
    display: flex;
    min-height: 100vh;
  }
  .admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 50;
  }
  .admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 24px 28px;
    background: var(--bg);
  }
}
.admin-sidebar .sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .sidebar-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.admin-sidebar .sidebar-brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.admin-sidebar .sidebar-menu { list-style: none; padding: 12px 0; }
.admin-sidebar .sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  margin: 2px 0;
}
.admin-sidebar .sidebar-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.admin-sidebar .sidebar-menu li a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-left-color: var(--primary-light);
  font-weight: 600;
}
.admin-sidebar .sidebar-menu li a .menu-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* 后台卡片 */
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.admin-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 表格 */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  padding: 12px 14px;
  text-align: left;
  background: #F8FAFC;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.data-table tr:hover td { background: #F8FAFC; }
.data-table a { font-weight: 500; }

/* 管理端面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-light); }

/* 首页任务大厅美化 */
.hall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hall-header .hall-count {
  font-size: 13px;
  color: var(--text-light);
}
.hall-header .hall-count b {
  color: var(--primary);
  font-weight: 700;
}

/* 渐变头部卡片 */
.gradient-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(13,124,61,0.25);
  position: relative;
  overflow: hidden;
}
.gradient-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

/* 设置页面 */
.setting-group {
  margin-bottom: 24px;
}
.setting-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 加载动画 */
.loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 20px;
}
.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.4s ease-in-out infinite both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
