/* ==================== CSS Variables ==================== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

/* ==================== Reset ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================== Header ==================== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 108px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
}
.logo-banner-img {
  height: 88px;
  width: auto;
  display: block;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary); color: white; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
}

/* ==================== Buttons ==================== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-search {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 50px;
}
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* ==================== Main Content ==================== */
.main-content { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }
.page { display: none; }
.page.active { display: block; }
.page-header {
  text-align: center;
  padding: 40px 0 24px;
}
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }

/* ==================== Hero ==================== */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}
/* 首页 Hero 双 CTA：发布技能 / 发布需求 */
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.hero-cta-btn.primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .30);
}
.hero-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 70, 229, .42);
}
.hero-cta-btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.hero-cta-btn.secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.hero-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.tag-loading { color: var(--text-secondary); opacity: 0.6; animation: textPulse 1.5s ease-in-out infinite; }
.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}
.tag:hover { background: var(--primary); color: white; }

.hero-visual { position: relative; width: 350px; height: 350px; flex-shrink: 0; }
.hero-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes textPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.circle-inner { text-align: center; color: white; }
.circle-icon { font-size: 48px; display: block; }
.circle-text { font-size: 18px; font-weight: 600; }
.floating-card {
  position: absolute;
  background: var(--bg-card);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: float 3s ease-in-out infinite;
}
.fc-1 { top: 10px; right: 20px; animation-delay: 0s; }
.fc-2 { bottom: 40px; right: 10px; animation-delay: 0.7s; }
.fc-3 { top: 60px; left: 0; animation-delay: 1.4s; }
.fc-4 { bottom: 60px; left: 20px; animation-delay: 2.1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==================== Stats Bar ==================== */
.stats-bar {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.stat-item { flex: 1; text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--primary); display: block; }
.stat-number.stat-loading { color: var(--text-secondary); opacity: 0.5; animation: textPulse 1.5s ease-in-out infinite; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* 首页数据看板 12 项 4×3 网格 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  padding: 18px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(236,72,153,0.04));
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,0.08);
}
.stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}
.stats-bar .stat-item .stat-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}
.stats-bar .stat-item .stat-number {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary);
}
.stats-bar .stat-item .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.stats-bar .stat-item.stat-clickable {
  cursor: pointer;
}
.stats-bar .stat-item.stat-clickable:hover {
  background: rgba(124,58,237,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.12);
}
.stats-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 8px; }
  .stats-bar .stat-item .stat-number { font-size: 20px; }
  .stats-bar .stat-item .stat-icon { font-size: 18px; }
  .stats-bar .stat-item .stat-label { font-size: 11px; }
}

/* ==================== Section ==================== */
.section { margin-bottom: 48px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-more { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.section-more:hover { text-decoration: underline; }

/* ==================== Skill Card ==================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.skill-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.skill-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.skill-user-info { flex: 1; }
.skill-user-name { font-size: 15px; font-weight: 600; }
.skill-user-meta { font-size: 12px; color: var(--text-muted); }
.skill-rating { color: var(--secondary); font-size: 13px; font-weight: 600; }
.skill-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.skill-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.skill-tag {
  background: var(--bg);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.skill-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.skill-price { font-size: 22px; font-weight: 800; color: var(--danger); }
.skill-unit { font-size: 13px; color: var(--text-muted); }
.skill-distance {
  font-size: 12px; color: var(--success); font-weight: 500;
  background: #ecfdf5; padding: 3px 10px; border-radius: 20px;
}

/* ==================== Demand Card ==================== */
.demand-list { display: flex; flex-direction: column; gap: 16px; }
.demand-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  display: flex; align-items: center; gap: 20px;
}
.demand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.demand-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.demand-info { flex: 1; }
.demand-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.demand-desc { font-size: 13px; color: var(--text-secondary); }
.demand-tags { display: flex; gap: 6px; margin-top: 6px; }
.demand-tag {
  background: #fef3c7; color: #92400e;
  padding: 2px 8px; border-radius: 12px; font-size: 11px;
}
.demand-meta { text-align: right; flex-shrink: 0; }
.demand-budget { font-size: 20px; font-weight: 800; color: var(--primary); }
.demand-unit { font-size: 12px; color: var(--text-muted); }
.demand-urgency {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; margin-top: 4px;
}
.urgency-high { background: #fef2f2; color: var(--danger); }
.urgency-medium { background: #fffbeb; color: #d97706; }
.urgency-low { background: #f0fdf4; color: #16a34a; }

/* ==================== Filter Bar ==================== */
.filter-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-search {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  min-width: 200px;
  transition: var(--transition);
}
.filter-search:focus { border-color: var(--primary); }

/* ==================== Match Page ==================== */
.match-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  min-height: 500px;
}
.match-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.match-panel h3 { font-size: 16px; margin-bottom: 16px; }
.match-demand-list { display: flex; flex-direction: column; gap: 10px; }
.match-demand-item {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.match-demand-item:hover { border-color: var(--primary); background: var(--primary-light); }
.match-demand-item.active { border-color: var(--primary); background: var(--primary-light); }
.match-demand-item .title { font-weight: 600; font-size: 14px; }
.match-demand-item .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.match-results {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.match-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; min-height: 300px;
  text-align: center; color: var(--text-muted);
}
.placeholder-icon { font-size: 64px; margin-bottom: 16px; }
.placeholder-hint { font-size: 13px; margin-top: 8px; line-height: 1.6; }

.match-result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.match-result-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.match-result-card.best-match {
  border-color: var(--success);
  background: #f0fdf4;
  position: relative;
}
.match-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  align-items: center;
}
.best-badge {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.ai-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}
.match-score {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.match-score-bar {
  flex: 1; height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.match-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--primary));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.match-score-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.match-reasons { margin-top: 8px; }
.match-reason {
  font-size: 13px; color: var(--success);
  padding: 4px 0;
  display: flex; align-items: center; gap: 6px;
}
.match-reason::before { content: '✓'; font-weight: 700; }

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.breakdown-item { text-align: center; }
.breakdown-label { font-size: 11px; color: var(--text-muted); }
.breakdown-value { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ==================== Orders ==================== */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px;
}
.order-status {
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-pending { background: #fffbeb; color: #d97706; }
.status-confirmed { background: #eff6ff; color: #2563eb; }
.status-completed { background: #f0fdf4; color: #16a34a; }
.status-cancelled { background: #fef2f2; color: #dc2626; }

.empty-state { text-align: center; padding: 60px; color: var(--text-muted); }
.empty-icon { font-size: 56px; display: block; margin-bottom: 12px; }
.empty-hint { font-size: 13px; margin-top: 4px; }

/* ==================== Publish ==================== */
.publish-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.publish-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.publish-tab {
  flex: 1; padding: 12px;
  text-align: center; border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; font-size: 15px; transition: var(--transition);
}
.publish-tab.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.publish-form { }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  outline: none; transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ==================== 标签推荐（根据分类自动填） ==================== */
.tag-suggest {
  margin-top: 8px; padding: 10px 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
  border: 1px dashed #93c5fd; border-radius: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px;
}
.tag-suggest-tip { color: #1e40af; font-size: 12px; margin-right: 4px; }
.tag-suggest-list { display: contents; }
.tag-chip {
  display: inline-block; padding: 4px 10px; margin: 2px;
  background: #fff; color: #475569; border: 1px solid #cbd5e1;
  border-radius: 14px; cursor: pointer; font-size: 12px;
  transition: all .15s; user-select: none;
}
.tag-chip:hover { border-color: #3b82f6; color: #1e40af; }
.tag-chip.active {
  background: #3b82f6; color: #fff; border-color: #3b82f6;
  font-weight: 500;
}
.tag-suggest-fill {
  margin-left: auto; padding: 4px 12px; font-size: 12px;
  background: #3b82f6; color: #fff; border: none; border-radius: 14px;
  cursor: pointer;
}
.tag-suggest-fill:hover { background: #2563eb; }

/* ==================== AI 智能分类推荐 ==================== */
.ai-classify-box {
  margin-top: 8px; padding: 10px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d; border-radius: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px;
}
.ai-classify-box.is-loading {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #d1d5db;
}
.ai-classify-icon { font-size: 18px; }
.ai-classify-text { flex: 1; color: #78350f; min-width: 200px; }
.ai-classify-text strong { color: #92400e; }
.ai-classify-apply, .ai-classify-refresh, .ai-classify-auto {
  padding: 4px 14px; font-size: 12px; border-radius: 14px; cursor: pointer;
  border: none; transition: all .15s;
}
.ai-classify-auto {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #fff; font-weight: 600;
  padding: 6px 18px; font-size: 13px;
  box-shadow: 0 2px 6px rgba(139,92,246,.35);
}
.ai-classify-auto:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,.45); }
.ai-classify-auto:active { transform: translateY(0); }
.ai-classify-auto:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* 常驻 AI 一键按钮（标题输入框旁边，永远可见） */
.ai-classify-auto-persistent {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #fff; font-weight: 600;
  padding: 10px 20px; font-size: 14px; white-space: nowrap;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 3px 10px rgba(139,92,246,.4);
  transition: all .2s;
  animation: aiAutoPulse 2.5s ease-in-out infinite;
}
.ai-classify-auto-persistent:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139,92,246,.55);
}
.ai-classify-auto-persistent:not(:disabled):active { transform: translateY(0); }
.ai-classify-auto-persistent:disabled {
  background: #e5e7eb; color: #9ca3af;
  box-shadow: none; cursor: not-allowed;
  animation: none;
}
.ai-classify-auto-persistent:not(:disabled) {
  position: relative;
  overflow: hidden;
}
.ai-classify-auto-persistent:not(:disabled)::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: aiAutoShine 3s linear infinite;
}
@keyframes aiAutoPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(139,92,246,.4); }
  50% { box-shadow: 0 5px 18px rgba(139,92,246,.65); }
}
@keyframes aiAutoShine {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}
.ai-classify-apply {
  background: #f59e0b; color: #fff;
}
.ai-classify-apply:hover { background: #d97706; }
.ai-classify-refresh {
  background: #fff; color: #92400e; border: 1px solid #fbbf24;
}
.ai-classify-refresh:hover { background: #fef3c7; }

/* ==================== How It Works ==================== */
.how-it-works {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.step { flex: 1; text-align: center; }
.step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.step-arrow {
  font-size: 28px; color: var(--text-muted);
  padding-top: 16px;
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px; width: 90%;
  box-shadow: var(--shadow-lg);
  /* 弹窗内容过多时整体高度受限于可视区，内部可滚动，避免顶出窗口看不到标题 */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-shrink: 0; }
.modal-header h2 { font-size: 22px; }
.modal-close {
  background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text-muted);
}
.modal-body { margin-bottom: 24px; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; flex-shrink: 0; }

/* ==================== Auth Tabs ==================== */
.auth-tabs { display: flex; gap: 8px; }
.auth-tab {
  padding: 8px 24px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-tab:hover { color: var(--primary); }
.avatar-text { font-size: 18px; }

/* ==================== 顶栏发布下拉 ==================== */
.publish-wrap { position: relative; display: inline-flex; }
.publish-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 168px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
.publish-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.publish-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed; top: 24px; right: 24px;
  background: var(--text); color: white;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-weight: 500; z-index: 300;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ==================== Search Results Page ==================== */
.search-results-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.search-results-header h2 { font-size: 20px; }
.search-results-header p { color: var(--text-secondary); font-size: 14px; }

/* ==================== User Dropdown Menu ==================== */
.user-menu { position: relative; display: flex; align-items: center; }
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 150;
  overflow: hidden;
}
.user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

/* ==================== Star Rating ==================== */
.star-rating { display: flex; gap: 4px; }
.star-rating .star {
  font-size: 32px;
  cursor: pointer;
  color: #d1d5db;
  transition: var(--transition);
}
.star-rating .star:hover,
.star-rating .star.active { color: #f59e0b; transform: scale(1.15); }

/* V12-C 评价多维标签 */
.review-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.review-tag-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid #e5e7eb; background: #f9fafb;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; user-select: none;
  transition: all .2s;
}
.review-tag-chip:hover { border-color: #7c3aed; color: #7c3aed; }
.review-tag-chip.selected {
  border-color: #7c3aed; background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  color: #5b21b6; font-weight: 600;
}
.review-tags-display { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.review-tag-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px;
  background: #ede9fe; color: #6d28d9;
  font-size: 12px; border: 1px solid #ddd6fe;
}

/* ==================== Form Section Title ==================== */
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

/* ==================== Order Detail ==================== */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}
.order-detail-main { display: flex; flex-direction: column; gap: 20px; }
.order-detail-chat { }
.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.detail-info-row {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.detail-message {
  margin-top: 12px;
  padding: 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary-dark);
}
.skill-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.skill-detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0;
}
.skill-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
}
.skill-extra a { color: var(--primary); text-decoration: underline; }

/* ==================== Review Item ==================== */
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* ==================== Chat Panel ==================== */
.chat-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  position: sticky;
  top: 80px;
}
.chat-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}
.chat-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
}
.chat-msg { display: flex; gap: 8px; max-width: 85%; }
.chat-msg-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-other { align-self: flex-start; }
.chat-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-me .chat-msg-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg-other .chat-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg-name {
  font-size: 11px;
  margin-bottom: 2px;
  opacity: 0.7;
}
.chat-msg-text { white-space: pre-wrap; }
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
}
.chat-input-area textarea:focus { border-color: var(--primary); }
.chat-disabled {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ==================== My List (Skills/Demands Management) ==================== */
.my-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.my-list-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.my-list-item:hover { border-color: var(--primary-light); }
.my-list-info { flex: 1; }
.my-list-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ==================== Small Button ==================== */
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }

/* ==================== Price Reference ==================== */
.price-ref-card {
  margin-top: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  font-size: 12px;
  color: #065f46;
  line-height: 1.5;
}
.price-ref-card strong { color: #047857; font-weight: 700; }
.price-ref-card .ref-loading { color: #6b7280; font-style: italic; }
.price-ref-card .ref-error { color: #dc2626; }

/* ==================== Description Table ==================== */
.desc-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
.desc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.desc-row:last-child { border-bottom: none; }
.desc-row:hover { background: #f8fafc; }
.desc-num {
  width: 26px; height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.desc-title {
  width: 110px; min-width: 110px; flex-shrink: 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.desc-title:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.desc-detail {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.desc-detail:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.desc-remove {
  width: 26px; height: 26px; min-width: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}
.desc-remove:hover { background: #fef2f2; color: var(--danger); }
.add-desc-row-btn { font-size: 12px; padding: 5px 14px; }

/* ==================== Description Display (in Cards) ==================== */
.desc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  list-style: decimal;
}
.desc-list li { margin-bottom: 3px; }
.desc-list li strong { color: var(--text); }

/* ==================== Changelog Timeline ==================== */
.changelog-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}
.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--border) 100%);
  transform: translateX(-50%);
}
.changelog-month {
  text-align: center;
  margin: 36px 0 20px;
  position: relative;
  z-index: 1;
}
.changelog-month:first-child { margin-top: 0; }
.changelog-month-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.changelog-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}
.changelog-entry:nth-child(odd) { flex-direction: row; }
.changelog-entry:nth-child(even) { flex-direction: row-reverse; }
.changelog-date-col {
  width: 46%;
  text-align: right;
  padding-right: 30px;
}
.changelog-entry:nth-child(even) .changelog-date-col {
  text-align: left;
  padding-right: 0;
  padding-left: 30px;
}
.changelog-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.changelog-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}
.changelog-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--primary-light);
  z-index: 2;
  margin-top: 4px;
}
.changelog-card-col {
  width: 46%;
  padding-left: 30px;
}
.changelog-entry:nth-child(even) .changelog-card-col {
  padding-left: 0;
  padding-right: 30px;
}
.changelog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.changelog-entry:nth-child(even) .changelog-card {
  border-left: none;
  border-right: 4px solid var(--primary);
}
.changelog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.changelog-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.changelog-card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.tag-feature { background: #dbeafe; color: #1d4ed8; }
.tag-fix { background: #fef2f2; color: #dc2626; }
.tag-improve { background: #f0fdf4; color: #16a34a; }
.tag-deploy { background: #fef3c7; color: #b45309; }
.changelog-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.changelog-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 14px;
}

/* ==================== Detail Page (技能/需求详情页) ==================== */
.detail-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  position: relative;
}
.btn-back-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-family: inherit;
}
.btn-back-detail:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  transform: translateX(-2px);
}
.detail-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.detail-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero 区域 */
.detail-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, rgba(99,102,241,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.detail-hero-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.detail-hero-type.demand {
  background: #fef3c7;
  color: #b45309;
}
.detail-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
  word-break: break-word;
}
.detail-hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.detail-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #fecaca;
}
.detail-hero-price .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--danger);
}
.detail-hero-price .unit {
  font-size: 14px;
  color: var(--text-secondary);
}
.detail-hero-budget {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
}
.detail-hero-budget .num {
  font-size: 28px;
  font-weight: 800;
  color: #b45309;
}
.detail-hero-budget .unit {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 用户/发布者卡 */
.detail-poster {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-poster-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  flex-shrink: 0;
}
.detail-poster-info { flex: 1; min-width: 0; }
.detail-poster-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-poster-name .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  color: var(--success);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.detail-poster-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.detail-poster-rating {
  text-align: right;
  flex-shrink: 0;
}
.detail-poster-rating .stars {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
}
.detail-poster-rating .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 元信息网格 */
.detail-meta {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.detail-meta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-meta-label {
  font-size: 12px;
  color: var(--text-muted);
}
.detail-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.detail-meta-value.urgency-high { color: var(--danger); }
.detail-meta-value.urgency-medium { color: #d97706; }
.detail-meta-value.urgency-low { color: var(--success); }

/* 描述卡 */
.detail-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.detail-section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-section-body p { margin-bottom: 8px; }

/* 标签 */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.detail-tag.demand {
  background: #fef3c7;
  color: #92400e;
}

/* 证书图片网格 */
.detail-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.detail-cert-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-cert-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.detail-cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 资质列表 */
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.detail-list-item .bullet {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* 操作按钮区 */
.detail-actions {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 16px;
  z-index: 50;
}
.detail-actions .btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
}
.detail-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* 描述项表格 (技能描述) */
.detail-desc-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-desc-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
.detail-desc-num {
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  align-self: center;
}
.detail-desc-content { flex: 1; }
.detail-desc-name { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.detail-desc-detail { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .hero { flex-direction: column; padding: 30px 0; gap: 30px; }
  .hero-title { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta-btn { padding: 12px 18px; font-size: 15px; }
  .hero-visual { width: 250px; height: 250px; }
  .hero-circle { width: 140px; height: 140px; }
  .stats-bar { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .skill-grid { grid-template-columns: 1fr; }
  .match-container { grid-template-columns: 1fr; }
  .how-it-works { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .breakdown-grid { grid-template-columns: repeat(5, 1fr); }
  .order-detail-grid { grid-template-columns: 1fr; }
  .chat-panel { height: 400px; min-height: 400px; position: static; }
}

/* ==================== V3 新增样式 ==================== */

/* --- Header Icons & Badges --- */
.header-icons { display: flex; gap: 6px; align-items: center; margin-right: 6px; }
.icon-badge-wrapper { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; transition: var(--transition); }
.icon-badge-wrapper:hover { background: var(--bg); }
.icon-badge-icon { font-size: 20px; }
.icon-badge-num { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; line-height: 1; }

/* --- Notification Panel --- */
.notification-panel { position: fixed; top: 64px; right: 16px; width: 360px; max-height: 480px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1000; display: flex; flex-direction: column; overflow: hidden; }
.notification-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notification-panel-header h3 { font-size: 16px; margin: 0; }
.notification-panel-list { flex: 1; overflow-y: auto; padding: 8px; }
.notif-item { padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-item:last-child { border-bottom: none; }
.notif-title { font-weight: 600; font-size: 14px; }
.notif-msg { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-dot { display: inline-block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.notification-empty { text-align: center; padding: 30px; color: var(--text-muted); font-size: 14px; }

.btn-text { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 4px 8px; }
.btn-text:hover { text-decoration: underline; }

/* --- Message Center / Conversation List --- */
.conversation-list { max-width: 720px; margin: 0 auto; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.conv-item:hover { background: var(--bg); }
.conv-item.unread { background: var(--primary-light); }
.conv-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 15px; }
.conv-title { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-meta { text-align: right; flex-shrink: 0; }
.conv-time { font-size: 12px; color: var(--text-muted); }
.conv-badge { display: inline-block; margin-top: 4px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 2px 8px; min-width: 22px; text-align: center; }
.conv-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-top: 4px; }
.conv-status.active { background: #d1fae5; color: #065f46; }
.conv-status.completed { background: #e0e7ff; color: #3730a3; }
.conv-status.cancelled { background: #fee2e2; color: #991b1b; }

/* --- Advanced Search --- */
.search-filters { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.filter-row { display: flex; gap: 16px; margin-bottom: 12px; }
.filter-row:last-of-type { margin-bottom: 0; }
.filter-group { flex: 1; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.filter-input, .filter-select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff; transition: var(--transition); }
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { flex: 1; }
.price-range span { color: var(--text-muted); flex-shrink: 0; }
.search-results { max-width: 800px; margin: 0 auto; }
.search-result-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer; transition: var(--transition); }
.search-result-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.search-result-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.search-result-meta { font-size: 13px; color: var(--text-secondary); }
.search-result-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-price { font-weight: 700; font-size: 18px; color: var(--danger); flex-shrink: 0; text-align: right; }
.search-result-rating { color: var(--secondary); font-size: 13px; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; padding: 16px; }
.pagination button { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; transition: var(--transition); }
.pagination button:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-current { font-weight: 600; color: var(--primary); }

/* --- Wallet --- */
/* V17：服务方激活收款（收款账户状态卡） */
.wallet-payee-card { max-width: 900px; margin: 0 auto 16px; }
.payee-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.05); }
.payee-icon { font-size: 30px; line-height: 1; }
.payee-info { flex: 1; }
.payee-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.payee-sub { font-size: 13px; color: var(--text-secondary, #6b7280); line-height: 1.5; }
.payee-reject { color: #dc2626; }
.payee-card .btn-sm { margin-top: 8px; }
.payee-ok { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }
.payee-ok .payee-title { color: #15803d; }
.payee-wait { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.payee-wait .payee-title { color: #b45309; }
.payee-none { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: #c7d2fe; }
.payee-none .payee-title { color: #4338ca; }

/* V17：激活收款弹窗 */
.merchant-modal .modal-body { overflow-y: auto; max-height: 62vh; }
.merchant-tip { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.merchant-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.merchant-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.merchant-form .form-group:nth-child(7),
.merchant-form .form-group:nth-child(8) { grid-column: 1 / -1; }
.merchant-form label { font-size: 12px; font-weight: 600; color: var(--text-secondary, #6b7280); }
.merchant-form input,
.merchant-form select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; box-sizing: border-box; }
.merchant-form input:focus,
.merchant-form select:focus { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.merchant-img-preview { margin-top: 4px; }
.merchant-img-preview img { width: 100%; max-height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.merchant-legal { margin-top: 12px; font-size: 11px; color: #9ca3af; text-align: center; }
@media (max-width: 640px) {
  .merchant-form { grid-template-columns: 1fr; }
  .merchant-form .form-group:nth-child(7),
  .merchant-form .form-group:nth-child(8) { grid-column: auto; }
}

.wallet-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto 24px; }
.wallet-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.wallet-card .amount { font-size: 28px; font-weight: 700; margin: 8px 0; }
.wallet-card .amount.income { color: var(--success); }
.wallet-card .amount.expense { color: var(--danger); }
.wallet-card .amount.balance { color: var(--primary); }
.wallet-card .label { font-size: 13px; color: var(--text-muted); }
.wallet-card .sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.wallet-transactions { max-width: 900px; margin: 0 auto; }
.wallet-transactions h3 { margin-bottom: 12px; }
.txn-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--border); }
.txn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.txn-icon.income { background: #d1fae5; }
.txn-icon.expense { background: #fee2e2; }

/* --- P0: 信用分体系 --- */
.credit-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.credit-badge.gold { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }
.credit-badge.silver { background: #f1f5f9; color: #475569; border: 1px solid #94a3b8; }
.credit-badge.bronze { background: #fff7ed; color: #c2410c; border: 1px solid #d97706; }
.credit-badge.low { background: #ecfdf5; color: #047857; border: 1px solid #10b981; }

/* --- Day5: 服务者等级 --- */
.level-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; white-space: nowrap; background: #f1f5f9; background: color-mix(in srgb, var(--lv-color, #b45309) 12%, #fff); color: var(--lv-color, #b45309); border: 1px solid #e2e8f0; border-color: color-mix(in srgb, var(--lv-color, #b45309) 45%, #fff); }
.ov-level-score { margin-left: 8px; font-size: 12px; color: #94a3b8; font-weight: 500; }
.level-hero { display: flex; align-items: center; gap: 18px; background: #f8fafc; background: linear-gradient(135deg, color-mix(in srgb, var(--lv-color, #7c3aed) 16%, #fff) 0%, #fff 70%); border: 1px solid #e2e8f0; border-color: color-mix(in srgb, var(--lv-color, #7c3aed) 30%, #fff); border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; }
.level-hero-icon { font-size: 56px; line-height: 1; }
.level-hero-title { font-size: 22px; font-weight: 800; color: var(--lv-color, #7c3aed); }
.level-hero-score { margin: 4px 0 10px; color: #64748b; font-size: 13px; }
.level-progress { height: 10px; background: #e2e8f0; border-radius: 20px; overflow: hidden; }
.level-progress-bar { height: 100%; border-radius: 20px; transition: width .5s ease; }
.level-progress-text { margin-top: 6px; font-size: 12px; color: #94a3b8; }
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.level-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.level-card h3 { margin: 0 0 10px; font-size: 15px; }
.level-perk-list { list-style: none; margin: 0; padding: 0; }
.level-perk-list li { padding: 6px 0; font-size: 13px; color: #334155; border-bottom: 1px dashed #f1f5f9; }
.level-perk-list li:last-child { border-bottom: none; }
.level-perk-list li.is-locked { color: #94a3b8; }
.level-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.level-ladder-item { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; opacity: .55; transition: all .2s ease; }
.level-ladder-item.is-reached { opacity: 1; border-color: #f59e0b; border-color: color-mix(in srgb, var(--lv-color, #b45309) 50%, #fff); background: #fffbeb; background: color-mix(in srgb, var(--lv-color, #b45309) 6%, #fff); }
.level-ladder-item.is-current { outline: 2px solid var(--lv-color, #7c3aed); opacity: 1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.level-ladder-icon { font-size: 30px; }
.level-ladder-name { font-weight: 700; margin-top: 4px; font-size: 13px; color: #334155; }
.level-ladder-min { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.level-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.level-guide-item { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.level-guide-icon { font-size: 22px; }
.level-guide-text { font-size: 13px; color: #334155; font-weight: 600; }
.level-guide-val { color: #16a34a; font-weight: 700; margin-left: 2px; }
.level-guide-cur { font-size: 12px; color: #94a3b8; margin-top: 3px; }
@media (max-width: 768px) {
  .level-grid { grid-template-columns: 1fr; }
  .level-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .level-ladder { grid-template-columns: repeat(3, 1fr); }
}
/* V12-A 信用分面板 */
.credit-hero { display: flex; align-items: center; gap: 18px; background: #f8fafc; background: linear-gradient(135deg, color-mix(in srgb, var(--c-color, #10b981) 14%, #fff) 0%, #fff 70%); border: 1px solid #e2e8f0; border-color: color-mix(in srgb, var(--c-color, #10b981) 30%, #fff); border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; }
.credit-hero-icon { font-size: 56px; line-height: 1; }
.credit-hero-body { flex: 1; min-width: 0; }
.credit-hero-title { font-size: 22px; font-weight: 800; color: var(--c-color, #10b981); }
.credit-hero-score { margin: 4px 0 10px; font-size: 30px; font-weight: 800; color: #0f172a; }
.credit-hero-score span { font-size: 13px; font-weight: 500; color: #64748b; }
.credit-progress { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.credit-progress-bar { height: 100%; border-radius: 999px; transition: width .4s; }
.credit-hero-dim { margin-top: 10px; font-size: 12px; color: #64748b; }
.credit-sec-title { font-size: 16px; margin: 20px 0 10px; color: #0f172a; }
.credit-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.credit-rule-item { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.credit-rule-icon { font-size: 20px; }
.credit-rule-name { font-size: 13px; color: #334155; font-weight: 600; }
.credit-rule-name em { color: #10b981; font-style: normal; font-weight: 700; }
.credit-rule-desc { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.credit-events { display: flex; flex-direction: column; gap: 8px; }
.credit-event-item { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.credit-event-icon { font-size: 20px; }
.credit-event-info { flex: 1; min-width: 0; }
.credit-event-title { font-size: 13px; color: #334155; font-weight: 600; }
.credit-event-date { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.credit-event-delta { font-size: 16px; font-weight: 800; }
.credit-event-delta.up { color: #16a34a; }
.credit-event-delta.down { color: #dc2626; }
@media (max-width: 768px) {
  .credit-rules { grid-template-columns: 1fr; }
}
/* V12-B 优惠券 */
.coupon-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.coupon-tab { flex: 1; padding: 10px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: #475569; }
.coupon-tab.active { background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; border-color: transparent; }
.coupon-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(15,23,42,.05); overflow: hidden; position: relative; }
.coupon-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #ec4899, #f97316); }
.coupon-card.used { opacity: .6; }
.coupon-card.used::before { background: #94a3b8; }
.coupon-card.expired { opacity: .5; }
.coupon-card.expired::before { background: #94a3b8; }
.coupon-card-left { min-width: 92px; text-align: center; border-right: 1px dashed #e2e8f0; padding-right: 14px; }
.coupon-val { font-size: 24px; font-weight: 800; color: #e11d48; }
.coupon-cond { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.coupon-card-mid { flex: 1; min-width: 0; }
.coupon-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.coupon-desc { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.coupon-card-right { flex-shrink: 0; }
.coupon-btn { display: inline-block; padding: 8px 18px; border: none; border-radius: 999px; background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.coupon-btn.claimed { background: #f1f5f9; color: #94a3b8; cursor: default; }
.coupon-mine-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-mtab { padding: 6px 14px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 999px; font-size: 13px; cursor: pointer; color: #475569; }
.coupon-mtab.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.coupon-pick-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.coupon-pick-box .cp-title { font-size: 13px; font-weight: 700; color: #166534; margin-bottom: 8px; }
.cp-select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; }
.admin-toolbar .btn-sm { padding: 6px 14px; font-size: 13px; }
.wallet-credit { max-width: 900px; margin: 24px auto; }
.wallet-credit h3 { margin-bottom: 12px; }
.credit-box { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 16px; padding: 24px; color: #f8fafc; }
.credit-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.credit-score-num { font-size: 40px; font-weight: 800; background: linear-gradient(90deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.credit-level { font-size: 16px; font-weight: 600; color: #fbbf24; }
.credit-bar { height: 8px; background: #334155; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.credit-bar-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 4px; transition: width .5s ease; }
.credit-dim { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #cbd5e1; margin-bottom: 14px; }
.credit-tips { border-top: 1px solid #334155; padding-top: 12px; }
.credit-tip { font-size: 13px; color: #94a3b8; line-height: 2; }
.txn-info { flex: 1; }
.txn-title { font-size: 14px; font-weight: 600; }
.txn-date { font-size: 12px; color: var(--text-muted); }
.txn-amount { font-weight: 700; font-size: 16px; }
.txn-amount.income { color: var(--success); }
.txn-amount.expense { color: var(--danger); }

/* --- Settings --- */
.settings-container { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.settings-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.settings-card h3 { margin-bottom: 16px; font-size: 16px; }
.avatar-picker { display: flex; align-items: center; gap: 14px; }
.avatar-preview { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sms-input-row { display: flex; gap: 8px; }
.sms-input-row input { flex: 1; }
.verify-status { padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; }

/* --- Face Verification --- */
.face-capture-area { padding: 40px; border: 2px dashed var(--border); border-radius: var(--radius); margin: 12px 0; background: var(--bg); }
.face-result { padding: 20px; }
.face-result .success-icon { font-size: 48px; }
.face-result .fail-text { color: var(--danger); }

/* --- Loading Spinner --- */
.loading-spinner { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; }

/* --- Quick action buttons in order cards --- */
.order-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* --- V7: 个人中心（左菜单 + 右内容） --- */
.profile-layout { display: flex; gap: 20px; align-items: flex-start; max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
.profile-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.profile-user-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.profile-name { font-size: 16px; font-weight: 700; color: var(--text-primary); word-break: break-all; }
.profile-phone { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.profile-badge { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 20px; font-size: 12px; background: #f3f4f6; color: #6b7280; }
.profile-badge.admin { background: #eef2ff; color: #4f46e5; font-weight: 600; }
.profile-menu { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.profile-menu-title { font-size: 12px; color: var(--text-muted); padding: 10px 12px 4px; font-weight: 600; letter-spacing: .5px; }
.profile-menu-item { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text-primary); font-size: 14px; cursor: pointer; transition: all .15s; border-left: 3px solid transparent; }
.profile-menu-item:hover { background: var(--bg); }
.profile-menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }

/* 管理员专属：默认隐藏，body.user-admin 下显示。
   用显式 display 而非 revert，避免被其它样式（如 mobile .profile-menu-item）
   错误覆盖。配合 !important 防止 inline style 干扰。 */
.admin-only { display: none !important; }
body.user-admin .admin-only { display: block !important; }
body.user-admin .admin-only.profile-menu-title { display: block !important; }
.topbar-user-menu a.admin-only[href] { display: none !important; }
body.user-admin .topbar-user-menu a.admin-only[href] { display: block !important; }
@media (max-width: 768px) {
  body.user-admin .admin-only.profile-menu-item { display: inline-block !important; }
  body.user-admin .admin-only.profile-menu-title { display: none !important; }
}
.profile-main { flex: 1; min-width: 0; }
.profile-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.profile-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-panel-header h2 { font-size: 18px; margin: 0; }
.overview-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.overview-stat { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; }
.overview-stat .os-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.overview-stat .os-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.overview-profile { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }
.overview-profile .ov-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.overview-profile .ov-row:last-child { border-bottom: none; }
.overview-profile .ov-row span { color: var(--text-muted); }
.overview-profile .ov-row b { font-weight: 600; text-align: right; word-break: break-all; }
.overview-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- V7: 平台管理 --- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; overflow-x: auto; flex-wrap: wrap; padding-bottom: 2px; }
.admin-tabs::after { content: ''; display: block; flex: 1 0 100%; min-width: 0; }
.admin-tabs::-webkit-scrollbar { height: 6px; }
.admin-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.admin-tab { padding: 10px 16px; font-size: 14px; color: var(--text-muted); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -2px; }
.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat-card { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--border); }
.admin-stat-card .as-icon { font-size: 22px; }
.admin-stat-card .as-value { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 4px 0 2px; }
.admin-stat-card .as-label { font-size: 12px; color: var(--text-muted); }
.admin-stat-card.highlight { background: linear-gradient(135deg, #eef2ff, #faf5ff); border-color: #c7d2fe; }
.admin-hint { padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); color: #92400e; font-size: 13px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-search { width: 300px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: var(--bg); color: var(--text-muted); font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; word-break: break-all; }
.admin-table tr:hover td { background: #fafafa; }
.admin-cell-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.admin-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #f3f4f6; color: #6b7280; font-size: 12px; white-space: nowrap; }
.admin-tag-admin { background: #eef2ff; color: #4f46e5; font-weight: 600; }
.admin-empty { text-align: center; color: var(--text-muted); padding: 30px 0 !important; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.admin-pager-info { font-size: 13px; color: var(--text-muted); }
.admin-table .btn-sm { padding: 4px 10px; font-size: 12px; }

/* --- Responsive for V3 --- */
@media (max-width: 768px) {
  .notification-panel { width: calc(100vw - 32px); right: 16px; left: 16px; max-height: 360px; }
  .filter-row { flex-direction: column; gap: 8px; }
  .wallet-overview { grid-template-columns: 1fr 1fr; }
  .search-result-card { flex-direction: column; align-items: center; text-align: center; }
  .search-result-price { text-align: center; }
  .conv-item { flex-wrap: wrap; }
  .conv-meta { width: 100%; text-align: left; display: flex; gap: 8px; align-items: center; }
  .sms-input-row { flex-direction: column; }

  /* 个人中心移动端：左菜单改顶部横向滚动 */
  .profile-layout { flex-direction: column; padding: 16px 12px; }
  .profile-sidebar { width: 100%; position: static; flex-direction: row; }
  .profile-user-card { flex: 1; min-width: 0; }
  .profile-menu { flex: 2; min-width: 0; overflow-x: auto; white-space: nowrap; }
  .profile-menu-title { display: none; }
  .profile-menu-item { display: inline-block; border-left: none; border-bottom: 3px solid transparent; }
  .profile-menu-item.active { border-left-color: transparent; border-bottom-color: var(--primary); }
  .overview-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-search { width: 100%; }

  /* 个人中心嵌入容器移动端 */
  .profile-embed-slot .page.profile-embedded { padding: 0 !important; }

  /* 详情页移动端 */
  .detail-page { padding: 12px; }
  .detail-hero { padding: 20px 16px; }
  .detail-hero-title { font-size: 22px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
  .detail-meta-grid { grid-template-columns: 1fr; }
}

/* ==================== V4 新增样式 ==================== */

/* --- Tab Bar (通用) --- */
.tab-bar {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
  background: var(--bg-secondary, #fff);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tab-bar .tab-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: all .2s;
}
.tab-bar .tab-btn:hover { background: var(--bg-hover, rgba(99,102,241,.08)); }
.tab-bar .tab-btn.active {
  background: var(--primary-color, #6366f1);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99,102,241,.3);
}

/* --- 卡片底部点赞/收藏按钮组 --- */
.card-actions {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-color, #eee);
  margin-top: 8px;
}
.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all .2s;
}
.action-btn:hover { background: var(--bg-hover, rgba(0,0,0,.04)); }
.action-btn.active { color: var(--primary-color, #6366f1); border-color: var(--primary-color, #6366f1); background: rgba(99,102,241,.08); }
.action-btn.active.like { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,.08); }
.action-btn.active.favorite { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.08); }
.action-btn .count { font-size: 12px; font-weight: 600; }

/* --- 备份管理 --- */
.backup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.backup-tip {
  flex: 1;
  min-width: 240px;
  padding: 8px 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  color: #92400e;
  font-size: 13px;
}

.backup-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.backup-stat {
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}
.backup-stat-label { font-size: 12px; color: #64748b; }
.backup-stat-value { font-size: 24px; font-weight: 700; color: #1e40af; margin-top: 4px; }

.backup-list { display: flex; flex-direction: column; gap: 12px; }
.backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .2s;
}
.backup-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.backup-item-info { flex: 1; }
.backup-item-version { font-size: 16px; font-weight: 600; color: #1f2937; }
.backup-item-label { font-size: 13px; color: #6b7280; margin-top: 4px; }
.backup-item-meta { font-size: 12px; color: #9ca3af; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.backup-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.backup-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backup-item-actions .btn { padding: 6px 12px; font-size: 13px; }

/* 自动备份徽章 + 代码包徽章 */
.backup-item.auto { border-left: 4px solid #6366f1; background: linear-gradient(to right, #eef2ff 0%, transparent 80%); }
.backup-item.manual { border-left: 4px solid #e5e7eb; }
.backup-auto-tag { display: inline-block; padding: 2px 8px; margin-left: 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; vertical-align: middle; }
.backup-code-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; }
.backup-code-badge.cached { color: #047857; background: #d1fae5; border-color: #6ee7b7; }
.backup-code-badge.expired { color: #92400e; background: #fef3c7; border-color: #fde68a; }

/* 自动备份状态卡 */
.auto-backup-status { background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.auto-backup-status .abs-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.auto-backup-status .abs-label { color: #4338ca; font-weight: 600; min-width: 180px; }
.auto-backup-status .abs-value { color: var(--text-primary); flex: 1; }
.auto-backup-status .abs-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* --- 详情页点赞/收藏按钮 --- */
.detail-lf-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.detail-action-btn {
  flex: 1;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.detail-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.detail-action-btn.active.like { background: #fff1f2; border-color: #ef4444; color: #ef4444; }
.detail-action-btn.active.favorite { background: #fffbeb; border-color: #f59e0b; color: #f59e0b; }
.detail-action-btn .count {
  font-size: 13px;
  padding: 2px 8px;
  background: rgba(0,0,0,.06);
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}
.detail-action-btn.active.like .count { background: rgba(239,68,68,.15); }
.detail-action-btn.active.favorite .count { background: rgba(245,158,11,.15); }

/* --- V4 响应式 --- */
@media (max-width: 768px) {
  .tab-bar { padding: 4px; }
  .tab-bar .tab-btn { padding: 8px 10px; font-size: 13px; }
  .card-actions { padding: 6px 8px; gap: 6px; }
  .action-btn { padding: 5px 8px; font-size: 12px; }
  .backup-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .backup-item-actions { width: 100%; justify-content: stretch; }
  .backup-item-actions .btn { flex: 1; }
  .detail-lf-actions { flex-direction: column; }
}

/* ==================== P1 先聊聊：意向会话弹窗 ==================== */
.chat-modal { max-width: 460px; }
.chat-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 480px;
  max-height: 70vh;
}
.chat-thread-info {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-loading, .chat-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 14px;
}
.chat-input-row input:focus { border-color: var(--primary); }
.chat-msg-time { font-size: 11px; color: var(--text-muted); opacity: 0.7; }

/* 消息中心：先聊聊 状态标签 */
.conv-status.chat {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* ==================== 团购（Group Buy）样式 ==================== */
.group-buy-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.group-buy-tab {
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border-color);
  background: #fff; color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.group-buy-tab.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; border-color: transparent;
}
.gb-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .15s;
}
.gb-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gb-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gb-card-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
.gb-card-status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.gb-card-meta { display: flex; gap: 14px; color: var(--text-secondary); font-size: 13px; margin-top: 6px; flex-wrap: wrap; }
.gb-price { color: var(--primary); font-weight: 700; font-size: 15px; }
.gb-discount { color: #ef4444; text-decoration: line-through; font-size: 12px; }
.gb-role-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-top: 6px; }
.gb-role-badge.provider { background: #ede9fe; color: #7c3aed; }
.gb-role-badge.participant { background: #dcfce7; color: #16a34a; }
.gb-progress { height: 6px; background: #f3f4f6; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.gb-progress-bar { height: 100%; background: linear-gradient(90deg, #8b5cf6, #ec4899); border-radius: 3px; transition: width .3s; }
.gb-card-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.gb-list { margin-top: 10px; }
.gb-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px 0; }
.gb-section { background: linear-gradient(135deg, #faf5ff 0%, #fff 60%); }
.gb-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gb-section-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.gb-form-tip { font-size: 13px; color: #7c3aed; background: #f5f3ff; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.form-tip { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.gb-deposit-badge { display: inline-block; margin-left: 8px; font-size: 12px; color: #d97706; background: #fef3c7; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.gb-deposit-tip { font-size: 13px; color: #b45309; background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.gb-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.gb-detail-title { font-size: 18px; font-weight: 700; flex: 1; }
.gb-detail-status { font-size: 13px; font-weight: 600; }
.gb-provider-tip { font-size: 12px; color: #7c3aed; background: #f5f3ff; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; }
.gb-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gb-detail-item { background: var(--gray-50); border-radius: 8px; padding: 10px; }
.gb-detail-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.gb-detail-value { font-size: 14px; color: var(--text); }
.gb-detail-desc { background: var(--gray-50); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.gb-detail-desc p { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); white-space: pre-wrap; }
.gb-users { margin-top: 12px; }
.gb-users-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.gb-users-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-user { display: flex; align-items: center; gap: 8px; background: var(--gray-50); border-radius: 20px; padding: 4px 12px 4px 4px; }
.gb-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.gb-user-name { font-size: 13px; }
.gb-user-status { font-size: 11px; color: #16a34a; }
.gb-joined-tip { font-size: 13px; color: #16a34a; align-self: center; }
.group-buy-modal .modal { max-width: 560px; }

/* ==================== 活动系统 ==================== */
.activities-list { margin-top: 14px; }
.activity-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.activity-tabs { display: flex; gap: 10px; margin-top: 14px; }
.activity-tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border-color);
  background: #fff; font-size: 14px; cursor: pointer; color: var(--text-secondary); transition: all .15s;
}
.activity-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.act-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .15s; cursor: pointer;
}
.act-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.act-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.act-card-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
.act-card-status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.act-card-meta { display: flex; gap: 14px; color: var(--text-secondary); font-size: 13px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.act-fee { color: #e8590c; font-weight: 700; }
.act-free { color: #16a34a; font-weight: 700; }
.act-online-badge { background: #e0f2fe; color: #0369a1; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.act-city-badge { font-size: 12px; color: var(--text-secondary); }
.act-tag-badge { background: #f3f4f6; color: var(--text-secondary); font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.act-progress { height: 6px; background: #f3f4f6; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.act-progress-bar { height: 100%; background: linear-gradient(90deg, #10b981, #06b6d4); border-radius: 3px; transition: width .3s; }
.act-card-org { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.act-online-tip { font-size: 13px; color: #0369a1; background: #f0f9ff; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.act-online-link { font-size: 13px; color: #0369a1; background: #f0f9ff; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.act-online-link a { color: #0369a1; font-weight: 600; }
.empty-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* --- 个人中心：右侧面板嵌入独立 page --- */
.profile-embed-slot { width: 100%; min-height: 120px; }
.profile-embed-slot .page-header { display: none !important; }
.profile-embed-slot .page.profile-embedded {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
  animation: profileEmbedFade .18s ease-out;
}
@keyframes profileEmbedFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 邀请有礼（V8 推荐奖励） --- */
.referral-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  border-radius: 16px; padding: 24px; color: #fff; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .25);
}
.referral-hero-left { flex: 1 1 260px; min-width: 0; }
.referral-hero-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.referral-hero-sub { font-size: 13px; opacity: .94; line-height: 1.7; }
.referral-hero-sub b { color: #ffe27a; }
.referral-code-box {
  text-align: center; background: rgba(255,255,255,.16);
  border: 1px dashed rgba(255,255,255,.6); border-radius: 12px; padding: 14px 24px;
}
.referral-code-label { font-size: 12px; opacity: .9; margin-bottom: 6px; }
.referral-code {
  font-size: 34px; font-weight: 800; letter-spacing: 6px;
  font-family: Consolas, Menlo, monospace; margin-bottom: 8px;
}
.referral-rules {
  background: #f5f3ff; border: 1px solid #e9d5ff; border-radius: 10px;
  padding: 12px 16px; font-size: 12.5px; color: #5b21b6; line-height: 1.7; margin-bottom: 20px;
}
.referral-list-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.referral-event-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid #f1f0f5; border-radius: 12px; margin-bottom: 10px;
}
.referral-event-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #f3e8ff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.referral-event-info { flex: 1; min-width: 0; font-size: 14px; }
.referral-event-time { font-size: 12px; color: #999; margin-top: 2px; }
.referral-event-right {
  text-align: right; flex-shrink: 0; display: flex;
  flex-direction: column; align-items: flex-end; gap: 4px;
}
.referral-event-points { font-weight: 800; color: #7c3aed; font-size: 16px; }
.referral-event-item .tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.referral-event-item .tag-warn { background: #fef3c7; color: #92400e; }
.referral-event-item .tag-ok { background: #d1fae5; color: #065f46; }

/* ==================== 撮合页：需求摘要卡 + 紧急/距离徽章 ==================== */
.demand-summary-card {
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 8px;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.demand-summary-card.urgency-high {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}
.demand-summary-card.urgency-medium {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}
.demand-summary-card.urgency-low {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}
.dsc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; gap: 8px; flex-wrap: wrap;
}
.dsc-urgency {
  font-weight: 700; font-size: 14px;
  padding: 4px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.urgency-high   .dsc-urgency { background: #dc2626; color: #fff; }
.urgency-medium .dsc-urgency { background: #d97706; color: #fff; }
.urgency-low    .dsc-urgency { background: #059669; color: #fff; }
.dsc-time {
  font-size: 12px; color: #6b7280;
}
.dsc-body {
  display: flex; flex-direction: column; gap: 4px;
}
.dsc-location {
  font-size: 14px; color: #1f2937;
}
.dsc-meta {
  font-size: 13px; color: #4b5563;
}
/* 匹配卡片右上角徽章组 */
.match-urgency-pill,
.match-distance-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.match-urgency-pill.urgency-high {
  background: #dc2626; color: #fff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
  animation: urgencyPulse 1.6s ease-in-out infinite;
}
.match-urgency-pill.urgency-medium {
  background: #fbbf24; color: #78350f;
}
.match-urgency-pill.urgency-low {
  background: #d1fae5; color: #065f46;
}
.match-distance-pill {
  background: #ede9fe; color: #5b21b6;
}
.match-distance-pill.muted {
  background: #f3f4f6; color: #9ca3af;
}
@keyframes urgencyPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15); }
  50%      { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.05); }
}
@media (max-width: 768px) {
  .dsc-head { flex-direction: column; align-items: flex-start; }
  .match-urgency-pill, .match-distance-pill { font-size: 10px; padding: 2px 6px; }
}

/* ==================== AI 一键生成个人简介 ==================== */
.ai-bio-helper {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 50%, #fef3c7 100%);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.06);
}
.bio-helper-head {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 8px;
}
.bio-helper-title {
  font-weight: 600; color: #5b21b6; font-size: 14px;
}
.bio-helper-sub {
  font-size: 12px; color: #6b7280;
}
.chip-input-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
.chip-input-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.bio-chips { display: contents; }
.bio-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  color: #5b21b6;
  padding: 4px 4px 4px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  animation: bioChipIn .18s ease-out;
}
@keyframes bioChipIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.bio-chip .chip-x {
  cursor: pointer; font-weight: bold; padding: 0 5px;
  border-radius: 50%;
  color: #5b21b6; opacity: 0.55;
  line-height: 1; font-size: 14px;
}
.bio-chip .chip-x:hover { background: #5b21b6; color: #fff; opacity: 1; }
#bioChipInput {
  flex: 1; min-width: 140px;
  border: none !important;
  outline: none !important;
  padding: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bio-tone-row {
  display: flex; gap: 6px; margin: 10px 0 8px;
  font-size: 13px; color: #374151;
  align-items: stretch;
}
.bio-tone-label { color: #6b7280; margin-right: 4px; align-self: center; flex-shrink: 0; white-space: nowrap; font-size: 13px; }
.bio-tone-row label {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; user-select: none;
  padding: 8px 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  transition: all .15s ease;
}
.bio-tone-row label:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}
.bio-tone-row input[type="radio"] {
  accent-color: #7c3aed;
  margin: 0;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.bio-tone-row label:has(input[type="radio"]:checked),
.bio-tone-row label.is-active {
  /* :has 兼容性：现代浏览器 OK；退化到 .is-active（JS 端兜底） */
  border-color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  color: #5b21b6;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(124,58,237,.15);
}
.bio-ai-btn {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #0ea5e9 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  cursor: pointer;
}
.bio-ai-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}
.bio-ai-btn:disabled {
  opacity: 0.7; cursor: wait;
  background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
}
.bio-ai-icon {
  display: inline-block;
  animation: bioSparkle 2.4s ease-in-out infinite;
}
@keyframes bioSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(8deg); }
}
.bio-helper-hint {
  color: #6b7280; font-size: 12px; margin: 8px 0 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .ai-bio-helper { padding: 10px 12px; }
  .bio-tone-row { gap: 6px; }
  .bio-tone-row label { padding: 6px 4px; font-size: 12px; }
}

/* ==================== V9：每日签到 + 积分商城 ==================== */
.tag-warn {
  color: #d97706; font-size: 11px; background: #fef3c7;
  border-radius: 4px; padding: 1px 6px; display: inline-block;
}
.tag-ok {
  color: #16a34a; font-size: 11px; background: #dcfce7;
  border-radius: 4px; padding: 1px 6px; display: inline-block;
}
/* 每日签到 */
.checkin-top { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.checkin-stat-card {
  flex: 1 1 120px; min-width: 110px; background: #fff;
  border: 1px solid #eee; border-radius: 12px; padding: 14px 10px; text-align: center;
}
.checkin-stat-card.main { background: linear-gradient(135deg, #7c3aed, #4f46e5); border: none; }
.checkin-stat-card.main .checkin-stat-num,
.checkin-stat-card.main .checkin-stat-label { color: #fff; }
.checkin-stat-num { font-size: 22px; font-weight: 700; color: #7c3aed; }
.checkin-stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.checkin-cal {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.checkin-cal-title { font-weight: 600; margin-bottom: 10px; color: #333; }
.checkin-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.checkin-cal-week span { text-align: center; font-size: 12px; color: #999; }
.checkin-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.checkin-cell {
  aspect-ratio: 1; border-radius: 8px; background: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #666;
}
.checkin-cell.empty { background: transparent; }
.checkin-cell.done {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; font-weight: 700;
}
.checkin-cell.today { box-shadow: 0 0 0 2px #f59e0b; color: #b45309; font-weight: 700; }
.checkin-cell.done.today { color: #fff; }
.checkin-actions { text-align: center; margin: 14px 0; }
.checkin-btn { min-width: 220px; padding: 10px 20px; }
.checkin-btn:disabled { opacity: .7; cursor: default; }
.checkin-rules {
  background: #faf5ff; border: 1px dashed #c4b5fd; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: #6d28d9;
  margin-bottom: 14px; line-height: 1.7;
}
.checkin-ledger-title { font-weight: 600; color: #333; margin: 10px 0 8px; }
.checkin-ledger { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 4px 14px; }
.ledger-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f5f7; font-size: 13px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-reason { color: #333; }
.ledger-amount { font-weight: 700; }
.ledger-amount.plus { color: #16a34a; }
.ledger-amount.minus { color: #dc2626; }
/* 积分商城 */
.shop-top { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-balance, .shop-level {
  flex: 1 1 140px; min-width: 130px; background: #fff;
  border: 1px solid #eee; border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column;
}
.shop-balance span, .shop-level span { font-size: 12px; color: #888; }
.shop-balance b { font-size: 26px; color: #7c3aed; margin-top: 4px; }
.shop-level b { font-size: 18px; margin-top: 4px; color: #333; }
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.shop-card {
  background: #fff; border: 1px solid #eee; border-radius: 14px;
  padding: 18px 16px; display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.shop-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.shop-card.locked { opacity: .55; filter: grayscale(.4); }
.shop-card-icon { font-size: 32px; margin-bottom: 8px; }
.shop-card-name { font-weight: 600; color: #333; margin-bottom: 6px; }
.shop-card-desc { font-size: 12px; color: #888; line-height: 1.6; flex: 1; margin-bottom: 10px; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: center; }
.shop-card-points { font-weight: 700; color: #7c3aed; }
.shop-tip { margin-top: 14px; font-size: 12px; color: #999; line-height: 1.7; }
/* 置顶徽章 */
.skill-boost-badge {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  border-radius: 4px; padding: 1px 6px; vertical-align: middle;
}
/* 兑换弹窗 */
.redeem-confirm { text-align: center; padding: 6px 0 14px; }
.redeem-confirm-icon { font-size: 42px; }
.redeem-confirm-name { font-size: 16px; font-weight: 700; color: #333; margin-top: 8px; }
.redeem-confirm-desc { font-size: 13px; color: #888; margin-top: 6px; line-height: 1.6; }
.redeem-confirm-cost { margin-top: 12px; font-size: 14px; color: #7c3aed; }
.redeem-confirm-cost b { font-size: 18px; }
#redeemModal .form-group { text-align: left; margin-top: 4px; }

/* ==================== V10：成交秀场 ==================== */
.showcase-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0;
}
.showcase-stat {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fde68a; border-radius: 12px;
  padding: 14px 10px; text-align: center;
}
.showcase-stat .num {
  display: block; font-size: 22px; font-weight: 800; color: #7c3aed; line-height: 1.3;
}
.showcase-stat .lbl { display: block; font-size: 12px; color: #a16207; margin-top: 2px; }

.showcase-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 12px 0 16px;
}
.showcase-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.showcase-tab {
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  border-radius: 20px; padding: 7px 16px; font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.showcase-tab:hover { border-color: #7c3aed; color: #7c3aed; }
.showcase-tab.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; border-color: transparent;
  font-weight: 600; box-shadow: 0 2px 8px rgba(124,58,237,.25);
}
.showcase-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.showcase-list { display: flex; flex-direction: column; gap: 12px; }
.showcase-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.showcase-card:hover { box-shadow: 0 6px 18px rgba(124,58,237,.10); transform: translateY(-2px); }
.showcase-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.showcase-user { display: flex; gap: 10px; align-items: center; min-width: 0; }
.showcase-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0; border: 2px solid #ddd6fe;
}
.showcase-avatar.lg { width: 56px; height: 56px; font-size: 28px; }
.showcase-user-name { font-weight: 700; color: #1e293b; font-size: 14px; }
.showcase-user-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.showcase-price {
  font-size: 18px; font-weight: 800; color: #7c3aed; flex-shrink: 0;
}
.showcase-title { margin-top: 12px; font-size: 16px; font-weight: 700; color: #1e293b; }
.showcase-content {
  margin-top: 6px; font-size: 13px; color: #64748b; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.showcase-meta { margin-top: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }
.showcase-stars { color: #f59e0b; letter-spacing: 1px; }
.showcase-extra { display: inline-flex; align-items: center; gap: 2px; }
.showcase-card-bottom {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eef0f4;
  display: flex; justify-content: space-between; align-items: center;
}
.showcase-like {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 20px;
  padding: 5px 14px; font-size: 13px; cursor: pointer; color: #64748b; transition: all .2s;
}
.showcase-like:hover { border-color: #f43f5e; color: #f43f5e; }
.showcase-like.liked { background: #fff1f2; border-color: #fda4af; color: #e11d48; font-weight: 600; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0 8px; }
.pagination-info { font-size: 13px; color: #94a3b8; }

/* 晒单弹窗 */
#showcaseModal .form-group { text-align: left; margin-top: 2px; }

/* 我的晒单 */
.showcase-mine-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; flex-wrap: wrap;
}

/* 晒单详情弹窗 */
.showcase-detail-user { display: flex; gap: 12px; align-items: center; }
.showcase-detail-title { margin-top: 14px; font-size: 18px; font-weight: 800; color: #1e293b; }
.showcase-detail-price { margin-top: 8px; font-size: 16px; font-weight: 700; color: #7c3aed; }
.showcase-detail-content {
  margin-top: 10px; background: #f8fafc; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: #475569; line-height: 1.8;
}
.showcase-detail-meta { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #64748b; }
.showcase-detail-msg { margin-top: 12px; font-size: 13px; color: #64748b; background: #fefce8; border-radius: 8px; padding: 10px 12px; }
.showcase-detail-reviews { margin-top: 16px; }
.showcase-detail-reviews h4 { font-size: 14px; margin-bottom: 8px; color: #334155; }

/* ==================== Day6 担保交易 ==================== */
/* 担保状态徽章 */
.escrow-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.escrow-badge.escrow-holding { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.escrow-badge.escrow-released { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.escrow-badge.escrow-disputed { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.escrow-badge.escrow-refunded { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
/* 订单详情：担保状态框 */
.escrow-status-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-top: 8px;
}
.escrow-status-box.escrow-holding { background: #eef2ff; border-color: #c7d2fe; }
.escrow-status-box.escrow-released { background: #ecfdf5; border-color: #a7f3d0; }
.escrow-status-box.escrow-disputed { background: #fff7ed; border-color: #fed7aa; }
.escrow-status-box.escrow-refunded { background: #f1f5f9; border-color: #e2e8f0; }
/* 订单详情：担保时间线 */
.escrow-timeline {
  margin-top: 12px; padding-left: 4px;
  border-left: 2px solid var(--border);
}
.escrow-log-item {
  position: relative; padding: 0 0 14px 16px; font-size: 13px;
}
.escrow-log-item::before {
  content: ''; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}
.escrow-log-item:last-child { padding-bottom: 0; }
/* 个人中心：担保交易统计卡 */
.escrow-stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 4px 0 14px;
}
.escrow-stat {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe; border-radius: 12px; padding: 12px 8px; text-align: center;
}
.escrow-stat .es-value { display: block; font-size: 20px; font-weight: 800; color: #4338ca; line-height: 1.3; }
.escrow-stat .es-label { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
/* 保障金提示 */
.escrow-deposit-tip {
  font-size: 13px; color: #065f46; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
/* 担保交易列表 */
.escrow-list { display: flex; flex-direction: column; gap: 10px; }
.escrow-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.escrow-card:hover { box-shadow: 0 6px 18px rgba(99,102,241,.12); transform: translateY(-1px); }
.escrow-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 768px) {
  .escrow-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
/* 网站页脚（ICP 备案） */
.site-footer {
  border-top: 1px solid #eef0f4;
  background: #fff;
  padding: 16px 20px;
  margin-top: 24px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}
.site-footer-inner a {
  color: #4f46e5;
  text-decoration: none;
}
.site-footer-inner a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .site-footer-inner { gap: 8px; font-size: 12px; }
}

/* ==================== V13：社群频道 ==================== */
.btn-danger-link {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  text-decoration: none;
}
.btn-danger-link:hover { text-decoration: underline; }

/* 广场 */
.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.community-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.community-cat {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  transition: all .15s;
}
.community-cat:hover { border-color: #7c3aed; color: #7c3aed; }
.community-cat.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border-color: transparent;
  color: #fff;
}
.community-filters { display: flex; gap: 8px; align-items: center; }
.community-filters .search-input { width: 220px; }

.community-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.community-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all .18s;
}
.community-card:hover { box-shadow: 0 8px 22px rgba(99,102,241,.14); transform: translateY(-2px); border-color: #c7d2fe; }
.community-card.compact { cursor: pointer; margin-bottom: 10px; }
.community-card-head { display: flex; gap: 12px; align-items: center; }
.community-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-avatar.big { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
.community-avatar.sm { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
.community-card-main { flex: 1; min-width: 0; }
.community-card-name { font-weight: 600; font-size: 15px; color: #1e293b; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.community-cat-tag {
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  white-space: nowrap;
}
.community-card-meta { display: flex; gap: 12px; font-size: 12px; color: #64748b; margin-top: 4px; flex-wrap: wrap; }
.community-card-desc {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.community-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.community-card-tags span { background: #f1f5f9; color: #64748b; border-radius: 6px; font-size: 11px; padding: 2px 8px; }
.community-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.join-mode-tag { font-size: 12px; font-weight: 500; }
.join-mode-tag.open { color: #059669; }
.join-mode-tag.approval { color: #d97706; }
.join-mode-tag.invite { color: #64748b; }
.community-card-time { font-size: 12px; color: #94a3b8; }

/* 详情 */
.community-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.community-detail-title { display: flex; align-items: center; gap: 14px; }
.community-detail-title h2 { margin: 0; font-size: 20px; color: #1e293b; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.community-detail-meta { display: flex; gap: 14px; font-size: 13px; color: #64748b; margin-top: 6px; flex-wrap: wrap; }
.community-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.community-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.community-detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #eef0f4;
  margin-bottom: 14px;
  overflow-x: auto;
}
.cd-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .15s;
}
.cd-tab.active { color: #7c3aed; border-bottom-color: #7c3aed; font-weight: 600; }
.cd-tab-count { background: #f1f5f9; border-radius: 999px; font-size: 11px; padding: 1px 8px; margin-left: 4px; }

/* 动态墙 */
.community-post-editor { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.community-post-editor textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; font-size: 14px; resize: vertical; min-height: 60px; font-family: inherit; }
.community-post-editor-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.community-posts-list { display: flex; flex-direction: column; gap: 12px; }
.community-post { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 14px; }
.community-post-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.community-post-type { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.community-post-type.post { background: #e0f2fe; color: #0369a1; }
.community-post-type.training { background: #dcfce7; color: #15803d; }
.community-post-author { font-weight: 600; font-size: 13px; color: #334155; }
.community-post-time { font-size: 12px; color: #94a3b8; margin-left: auto; }
.community-post-content { font-size: 14px; color: #1e293b; line-height: 1.6; white-space: pre-wrap; }
.community-post-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.community-post-images img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.community-post-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.empty-tip { color: #94a3b8; font-size: 13px; text-align: center; padding: 30px 0; }

/* 成员 */
.community-member-list { display: flex; flex-direction: column; gap: 8px; }
.community-member { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 10px 14px; }
.community-member-info { flex: 1; min-width: 0; }
.community-member-name { font-weight: 600; font-size: 14px; color: #334155; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.community-member-meta { font-size: 12px; color: #64748b; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.community-member-ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* 群聊 */
.community-chat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.community-chat-msg { background: #fff; border: 1px solid #eef0f4; border-radius: 10px; padding: 8px 12px; max-width: 80%; align-self: flex-start; }
.community-chat-msg.mine { background: #eef2ff; border-color: #c7d2fe; align-self: flex-end; }
.community-chat-sender { font-size: 12px; font-weight: 600; color: #4f46e5; }
.community-chat-content { font-size: 14px; color: #1e293b; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.community-chat-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.community-chat-input { display: flex; gap: 8px; margin-top: 10px; }
.community-chat-input input { flex: 1; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* 我的社群 */
.my-comm-group-title { font-size: 14px; font-weight: 700; color: #334155; margin: 18px 0 10px; }
.my-comm-group-title:first-child { margin-top: 0; }

@media (max-width: 768px) {
  .community-toolbar { flex-direction: column; align-items: stretch; }
  .community-filters .search-input { width: 100%; }
  .community-list { grid-template-columns: 1fr; }
  .community-detail-head { flex-direction: column; align-items: flex-start; }
  .community-chat-msg { max-width: 92%; }
}

/* ===== V10 增长进阶：消费返积分 / 分享红包 / 邀请阶梯 / 拼团升级 / 限时特惠 ===== */
/* 秒杀 */
.sale-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
  animation: sale-pulse 1.6s infinite;
}
@keyframes sale-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.skill-price.sale { color: #ef4444; }
.skill-price-old { color: #94a3b8; text-decoration: line-through; font-size: 12px; margin-left: 4px; }
.detail-hero-price .num.old { text-decoration: line-through; color: #94a3b8; }
.sale-stock-hint { margin-top: 6px; font-size: 13px; color: #ef4444; font-weight: 600; }

/* ==================== P2-1 AI 智能助手 ==================== */
.ai-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ai-fab:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(124, 58, 237, .55); }
.ai-fab-icon { font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.ai-fab::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
.ai-assistant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: min(620px, calc(100vh - 60px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ai-pop .22s ease;
}
@keyframes ai-pop { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ai-assistant-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
}
.ai-title { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ai-title-text { display: flex; flex-direction: column; line-height: 1.25; }
.ai-title-text strong { font-size: 15px; }
.ai-subtitle { font-size: 11px; opacity: .85; }
.ai-close {
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.ai-close:hover { background: rgba(255,255,255,.3); }
.ai-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}
.ai-welcome { text-align: center; padding: 10px 6px 6px; font-size: 13px; color: #475569; line-height: 1.7; }
.ai-welcome p { margin: 2px 0; }
.ai-quick-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ai-quick-chip {
  border: 1px solid #ddd6fe;
  background: #fff;
  color: #5b21b6;
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.ai-quick-chip:hover { background: #f5f3ff; border-color: #a78bfa; transform: translateY(-1px); }
.ai-msg { display: flex; margin: 10px 0; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-assistant { justify-content: flex-start; }
.ai-bubble {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}
.ai-bubble-user {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-bubble-assistant {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}
.ai-bubble-assistant .ai-h { font-weight: 700; margin: 6px 0 2px; }
.ai-bubble-assistant .ai-li { margin: 2px 0; }
.ai-msg[data-loading] .ai-text { color: #94a3b8; font-style: italic; }
.ai-input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.ai-input-bar textarea {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 100px;
  resize: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
}
.ai-input-bar textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .18); }
.ai-send-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ai-send-btn:hover { opacity: .9; }
@media (max-width: 480px) {
  .ai-assistant { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 60px); }
  .ai-fab { right: 14px; bottom: 14px; }
}

/* ==================== P2-2 会员中心 ==================== */
.member-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #1e293b;
  margin-bottom: 14px;
}
.member-hero-active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
}
.member-hero-icon { font-size: 34px; }
.member-hero-info { flex: 1 1 auto; min-width: 0; }
.member-hero-title { font-size: 18px; font-weight: 700; }
.member-hero-desc { font-size: 13px; opacity: .9; margin-top: 3px; }
.member-hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .25);
}
.member-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 13px;
  margin-bottom: 14px;
}
.member-sec-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; color: var(--text, #1e293b); }
.member-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.member-perk {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
}
.member-perk-icon { font-size: 22px; flex-shrink: 0; }
.member-perk-name { font-weight: 600; font-size: 14px; }
.member-perk-desc { font-size: 12px; color: var(--text-muted, #64748b); margin-top: 2px; }
.member-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member-plan {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all .18s ease;
}
.member-plan:hover { transform: translateY(-3px); border-color: #fbbf24; box-shadow: 0 10px 24px rgba(245, 158, 11, .18); }
.member-plan-name { font-size: 15px; font-weight: 700; }
.member-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: #d97706;
  margin: 8px 0 2px;
}
.member-plan-price .member-plan-period { font-size: 12px; font-weight: 400; color: var(--text-muted, #64748b); }
.member-plan-original { font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.member-plan-perks { flex: 1 1 auto; text-align: left; margin: 10px 0 12px; font-size: 12px; color: var(--text-muted, #64748b); }
.member-plan-perk-line { padding: 2px 0; }
.member-plan-btn { background: linear-gradient(135deg, #f59e0b, #d97706); border: none; }
.member-note { margin-top: 14px; font-size: 12px; color: var(--text-muted, #64748b); line-height: 1.7; }

/* ==================== P2-3 数据看板 ==================== */
.stats-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  margin-bottom: 12px;
}
.stats-profile-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.stats-profile-info { flex: 1 1 auto; min-width: 0; }
.stats-profile-name { font-size: 16px; font-weight: 700; }
.stats-profile-meta { font-size: 12px; opacity: .92; margin-top: 3px; }
.stats-profile-level { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stats-kpi {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.stats-kpi-icon { font-size: 20px; }
.stats-kpi-val { font-size: 22px; font-weight: 800; color: var(--text, #1e293b); margin: 4px 0 2px; }
.stats-kpi-label { font-size: 12px; color: var(--text-muted, #64748b); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 14px;
}
.stats-card-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.stats-money-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stats-money { flex: 1 1 0; min-width: 90px; }
.stats-money-label { font-size: 12px; color: var(--text-muted, #64748b); }
.stats-money-val { font-size: 18px; font-weight: 700; margin-top: 2px; }
.stats-money-val.green { color: #059669; }
.stats-status-wrap { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.stats-status-chip { font-size: 11px; padding: 3px 8px; border-radius: 12px; background: #f1f5f9; color: #475569; }
.stats-rating-row { display: flex; align-items: center; gap: 12px; }
.stats-rating-num { font-size: 34px; font-weight: 800; color: #f59e0b; }
.stats-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.stats-rating-sub { font-size: 12px; color: var(--text-muted, #64748b); margin-top: 2px; }
.stats-trend {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 130px;
  padding: 8px 4px 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.stats-trend-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.stats-trend-bar {
  width: 70%;
  max-width: 16px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  min-height: 2px;
  transition: height .3s ease;
}
.stats-trend-col:hover .stats-trend-bar { background: linear-gradient(180deg, #a5b4fc, #4f46e5); }
.stats-trend-label { font-size: 9px; color: #94a3b8; margin-top: 4px; transform: rotate(-35deg); white-space: nowrap; }
.stats-reason-title { font-size: 12px; font-weight: 600; margin: 12px 0 6px; color: var(--text-muted, #64748b); }
.stats-reason-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; }
.stats-reason-name { width: 74px; flex-shrink: 0; color: #475569; }
.stats-reason-bar { flex: 1 1 auto; height: 8px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.stats-reason-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #34d399, #10b981); }
.stats-reason-pts { width: 64px; text-align: right; font-weight: 700; flex-shrink: 0; }
.stats-reason-pts.green { color: #059669; }
.stats-card-tip { font-size: 12px; color: var(--text-muted, #64748b); margin-top: 10px; line-height: 1.6; }

/* 积分抵扣（撮合弹窗） */
.points-deduct-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #c4b5fd;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
}
.pd-title { font-size: 13px; font-weight: 700; color: #6d28d9; margin-bottom: 6px; }
.pd-row { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.pd-row b { color: #7c3aed; }
.pd-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d4f0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}
.pd-input:focus { outline: none; border-color: #7c3aed; }
.pd-preview { margin-top: 6px; font-size: 12px; font-weight: 600; min-height: 16px; }

/* 订单详情：抵扣/返分提示 */
.pd-inline-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
}

/* ==================== V18：生态优选商城 ==================== */
/* 工具栏 */
.eco-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.eco-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-cat {
  padding: 7px 16px; border-radius: 999px; border: 1px solid #e5e0f5;
  background: #fff; color: #555; font-size: 13px; cursor: pointer; transition: all .2s;
}
.eco-cat:hover { border-color: #c4b5fd; color: #7c3aed; }
.eco-cat.active { background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 2px 8px rgba(124,58,237,.25); }
.eco-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eco-filters .search-input { flex: 1; min-width: 200px; }
.eco-sort { padding: 7px 10px; border-radius: 8px; border: 1px solid #e5e0f5; font-size: 13px; background: #fff; color: #444; }
.eco-select { padding: 8px 10px; border-radius: 8px; border: 1px solid #e5e0f5; font-size: 13px; background: #fff; color: #444; width: 100%; box-sizing: border-box; }
.eco-input {
  width: 100%; padding: 9px 12px; border: 1px solid #e5e0f5; border-radius: 8px;
  font-size: 13px; background: #fff; color: #333; box-sizing: border-box; margin-bottom: 8px; font-family: inherit;
}
.eco-input:focus { outline: none; border-color: #7c3aed; }
textarea.eco-input { resize: vertical; min-height: 60px; }

/* 商品网格 */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card {
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #f0ecfb;
  cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(124,58,237,.12); }
.eco-card-img { position: relative; aspect-ratio: 1; background: #f8f6ff; overflow: hidden; }
.eco-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-card-cat {
  position: absolute; top: 8px; left: 8px; background: rgba(124,58,237,.9); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
}
.eco-card-tag {
  position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg,#f59e0b,#ef4444);
  color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
.eco-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.eco-card-name { font-size: 14px; font-weight: 600; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eco-card-spec { font-size: 12px; color: #999; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eco-card-shop { font-size: 12px; color: #7c3aed; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eco-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.eco-price { color: #ef4444; font-weight: 700; font-size: 16px; }
.eco-price-old { color: #bbb; font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.eco-card-sales { font-size: 11px; color: #aaa; }
.eco-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }

/* 购物车浮标 */
.eco-cart-fab {
  position: fixed; right: 24px; bottom: 90px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 6px 18px rgba(124,58,237,.4); cursor: pointer; transition: transform .2s;
}
.eco-cart-fab:hover { transform: scale(1.08); }
.eco-cart-fab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* 商品详情 */
.eco-detail { display: flex; gap: 18px; }
.eco-detail-img { flex: 1; max-width: 300px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f8f6ff; }
.eco-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-detail-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eco-detail-cat { font-size: 12px; color: #7c3aed; }
.eco-detail-name { font-size: 18px; font-weight: 700; color: #222; line-height: 1.4; }
.eco-detail-spec { font-size: 13px; color: #888; }
.eco-detail-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.eco-detail-sales { font-size: 12px; color: #999; margin-left: auto; }
.eco-detail-row { display: flex; gap: 8px; font-size: 13px; color: #555; }
.eco-detail-label { color: #999; flex-shrink: 0; }
.eco-detail-desc { font-size: 13px; color: #666; line-height: 1.7; background: #faf8ff; border-radius: 8px; padding: 10px; max-height: 140px; overflow-y: auto; }
.eco-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-tag { font-size: 12px; color: #7c3aed; background: #f5f3ff; padding: 3px 10px; border-radius: 999px; border: 1px solid #e9e2ff; }
.eco-tag-active { background: linear-gradient(135deg,#7c3aed,#c026d3); color: #fff; border-color: transparent; }
.eco-detail-qty { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.eco-qty-ctl { display: inline-flex; align-items: center; border: 1px solid #e5e0f5; border-radius: 8px; overflow: hidden; }
.eco-qty-ctl button { width: 30px; height: 30px; border: none; background: #f7f5ff; font-size: 16px; cursor: pointer; color: #7c3aed; }
.eco-qty-ctl button:hover { background: #efeaff; }
.eco-qty-ctl span { min-width: 40px; text-align: center; font-weight: 600; font-size: 14px; }

/* 购物车 */
.eco-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3effc; }
.eco-cart-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f8f6ff; flex-shrink: 0; }
.eco-cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-cart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eco-cart-name { font-size: 14px; font-weight: 600; color: #222; }
.eco-cart-shop { font-size: 12px; color: #7c3aed; }
.eco-cart-price { font-size: 14px; font-weight: 700; color: #ef4444; }
.eco-cart-stock { font-size: 11px; color: #aaa; font-weight: 400; margin-left: 8px; }
.eco-cart-ops { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.eco-cart-invalid { opacity: .55; }
.eco-cart-footer { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }

/* 结算 */
.eco-checkout { display: flex; flex-direction: column; gap: 14px; }
.eco-checkout-addr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eco-checkout-addr .eco-select { flex: 1; min-width: 220px; }
.eco-section-title { font-size: 13px; font-weight: 700; color: #444; }
.eco-checkout-item { display: flex; gap: 12px; background: #faf8ff; border-radius: 10px; padding: 10px; }
.eco-checkout-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.eco-checkout-remark { display: flex; flex-direction: column; gap: 6px; }
.eco-checkout-summary { background: #faf8ff; border-radius: 10px; padding: 10px 12px; }
.eco-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 3px 0; }
.eco-sum-total { font-size: 15px; font-weight: 700; color: #ef4444; border-top: 1px dashed #e5e0f5; margin-top: 4px; padding-top: 8px; }

/* 地址 */
.eco-addr-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3effc; }
.eco-addr-default { background: #faf8ff; border-radius: 8px; padding: 10px; }
.eco-addr-line { font-size: 14px; color: #333; }
.eco-addr-line2 { font-size: 12px; color: #888; margin-top: 2px; }
.eco-addr-ops { display: flex; gap: 6px; flex-shrink: 0; }
.eco-addr-form { margin-top: 14px; border-top: 1px dashed #e5e0f5; padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.eco-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; margin: 2px 0 8px; cursor: pointer; }

/* tabs */
.eco-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.eco-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid #e5e0f5; background: #fff;
  font-size: 13px; color: #555; cursor: pointer; transition: all .2s;
}
.eco-tab.active { background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; border-color: transparent; font-weight: 600; }

/* 订单 */
.eco-order-item { border: 1px solid #f0ecfb; border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.eco-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.eco-order-no { font-size: 12px; color: #999; }
.eco-order-status { font-size: 13px; font-weight: 700; }
.eco-order-body { display: flex; gap: 12px; }
.eco-order-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #f8f6ff; flex-shrink: 0; }
.eco-order-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-order-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eco-order-name { font-size: 14px; font-weight: 600; color: #222; }
.eco-order-spec { font-size: 12px; color: #999; }
.eco-order-fee { font-size: 14px; font-weight: 700; color: #ef4444; }
.eco-order-shipfee { font-size: 11px; color: #bbb; font-weight: 400; margin-left: 6px; }
.eco-order-receiver { font-size: 12px; color: #777; }
.eco-order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #f0ecfb; }
.eco-order-time { font-size: 11px; color: #bbb; }
.eco-order-btns { display: flex; gap: 6px; }
.eco-status-wait { font-size: 12px; color: #ef4444; }

/* 商家中心 */
.eco-merchant-hero { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg,#7c3aed,#c026d3); color: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.eco-merchant-hero h3 { margin: 0 0 4px; font-size: 16px; color: #fff; }
.eco-merchant-hero p { margin: 0; font-size: 13px; opacity: .9; line-height: 1.6; }
.eco-merchant-logo { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.2); flex-shrink: 0; }
.eco-merchant-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-merchant-prod { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3effc; }
.eco-merchant-prod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eco-merchant-prod-ops { display: flex; gap: 6px; flex-shrink: 0; }

/* 管理端统计 */
.eco-admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.eco-admin-stat { background: #faf8ff; border: 1px solid #f0ecfb; border-radius: 12px; padding: 14px 10px; text-align: center; }
.eco-admin-stat-icon { font-size: 22px; }
.eco-admin-stat-val { font-size: 18px; font-weight: 700; color: #7c3aed; margin-top: 4px; }
.eco-admin-stat-label { font-size: 12px; color: #888; margin-top: 2px; }
.eco-img-fallback { display: flex; align-items: center; justify-content: center; font-size: 30px; background: #f3e8ff; width: 100%; height: 100%; }

/* 移动端响应式 */
@media (max-width: 900px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eco-admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .eco-detail { flex-direction: column; }
  .eco-detail-img { max-width: 100%; }
  .eco-form-grid { grid-template-columns: 1fr; }
  .eco-cart-fab { right: 16px; bottom: 84px; width: 50px; height: 50px; font-size: 22px; }
}

/* 邀请阶梯 */
.referral-tier-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.rt-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.rt-progress { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rt-progress-bar { height: 100%; background: linear-gradient(90deg, #7c3aed, #f59e0b); border-radius: 999px; transition: width .4s; }
.rt-progress-text { font-size: 12px; color: #64748b; margin-top: 6px; }
.rt-progress-text b { color: #7c3aed; }
.rt-list { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rt-item {
  flex: 1 1 120px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.rt-item.rt-reached { border-color: #6ee7b7; background: #f0fdf4; }
.rt-icon { font-size: 22px; }
.rt-name { font-size: 13px; font-weight: 600; color: #334155; margin-top: 4px; }
.rt-reward { font-size: 12px; color: #7c3aed; font-weight: 700; }
.rt-status { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.rt-item.rt-reached .rt-status { color: #16a34a; }
.rt-share-tip { margin-top: 12px; font-size: 12px; color: #475569; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 10px; }
.rt-share-tip b { color: #ea580c; }

/* ===== V12-D：统一积分规则 ===== */
.rules-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.rules-stat {
  background: linear-gradient(135deg, #f5f3ff, #fff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.rules-stat-icon { font-size: 26px; line-height: 1; }
.rules-stat-val { font-size: 20px; font-weight: 800; color: #1e293b; margin-top: 6px; }
.rules-stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.rules-group {
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 16px;
}
.rules-group-title { font-size: 15px; font-weight: 800; color: #334155; margin: 0 0 12px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rules-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  padding: 10px 12px;
}
.rules-item-icon { font-size: 20px; line-height: 1.2; }
.rules-item-info { flex: 1; min-width: 0; }
.rules-item-name { font-size: 13px; font-weight: 700; color: #334155; }
.rules-item-name em {
  font-style: normal; font-weight: 700;
  color: #7c3aed; background: #f3e8ff;
  border-radius: 6px; padding: 1px 7px;
  font-size: 12px; margin-left: 4px;
  white-space: nowrap;
}
.rules-item-desc { font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.5; }
.rules-footnote {
  font-size: 12px; color: #94a3b8;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; padding: 10px 12px;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .rules-hero { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }
}

/* ===== AI 领域趋势洞察（V16） ===== */
.news-badge { font-size: 12px; color: #64748b; font-weight: normal; margin-left: auto; margin-right: 12px; white-space: nowrap; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.news-tab {
  padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0;
  background: #fff; font-size: 13px; color: #475569; cursor: pointer; transition: all .2s;
}
.news-tab:hover { border-color: #7c3aed; color: #7c3aed; }
.news-tab.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff;
  border-color: transparent; box-shadow: 0 2px 8px rgba(124, 58, 237, .25);
}
.news-main { background: #faf8ff; border: 1px solid #ede9fe; border-radius: 14px; padding: 18px; }
.news-title { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.news-summary { font-size: 13.5px; color: #475569; line-height: 1.7; margin-bottom: 12px; }
.news-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 12px; }
.news-point { display: flex; gap: 10px; background: #fff; border: 1px solid #ede9fe; border-radius: 10px; padding: 12px; }
.news-point-icon { font-size: 20px; line-height: 1.3; }
.news-point-title { font-weight: 600; font-size: 13.5px; color: #312e81; margin-bottom: 3px; }
.news-point-desc { font-size: 12.5px; color: #64748b; line-height: 1.6; }
.news-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.news-stat { background: #fff; border: 1px solid #ede9fe; border-radius: 10px; padding: 10px; text-align: center; }
.news-stat-v { display: block; font-size: 18px; font-weight: 700; color: #7c3aed; }
.news-stat-k { font-size: 12px; color: #64748b; }
.news-advice { display: grid; gap: 8px; margin-bottom: 10px; }
.news-advice-item { font-size: 13px; padding: 10px 12px; border-radius: 10px; line-height: 1.6; }
.news-advice-provider { background: #ecfdf5; border: 1px solid #d1fae5; color: #065f46; }
.news-advice-seeker { background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }
.news-advice-item b { margin-right: 6px; }
.news-meta { font-size: 12px; color: #94a3b8; margin-top: 8px; }
@media (max-width: 640px) {
  .news-points { grid-template-columns: 1fr; }
  .news-badge { display: none; }
}
