/* ============================================
   同城便民系统 - PC 端样式
   ============================================ */
:root {
  --primary: #2b6cff;
  --primary-dark: #1e56d6;
  --primary-light: #e8f0ff;
  --success: #00b578;
  --warning: #ff9f0a;
  --danger: #ff4d4f;
  --text-main: #1a1a2e;
  --text-sub: #666;
  --text-light: #999;
  --border: #e8e8e8;
  --bg: #f5f6fa;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; outline: none; }

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2b6cff, #7bb0ff);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-sub);
  font-size: 15px;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.header-right { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
  color: var(--text-main);
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 12px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 轮播 */
.banner-wrap {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}
.banner {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2b6cff, #5e9bff);
  box-shadow: var(--shadow);
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.banner-dots span {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dots span.active { background: #fff; width: 32px; }

/* 搜索栏 */
.search-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 0 20px;
  font-size: 14px;
}
.search-input:focus { border-color: var(--primary); }
.search-select {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  min-width: 140px;
}

/* 分类导航 */
.section { margin-top: 24px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title h2::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title .more { color: var(--text-light); font-size: 13px; }
.section-title .more:hover { color: var(--primary); }

/* ===== 首页 秒杀/团购 促销卡片 ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.promo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.promo-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #f5f7ff, #eef1fb); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-flag {
  position: absolute; left: 8px; top: 8px; color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 8px;
  border-radius: 6px; letter-spacing: 0.5px;
}
.promo-body { padding: 10px 12px 12px; }
.promo-title {
  font-size: 14px; font-weight: 600; color: var(--text-main);
  height: 40px; line-height: 20px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.promo-merchant {
  font-size: 12px; color: var(--text-light); margin: 6px 0 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.promo-price-line { display: flex; align-items: baseline; gap: 6px; }
.promo-now { font-size: 19px; font-weight: 800; }
.promo-old { color: #bbb; font-size: 12px; }
.promo-rail { height: 6px; background: #f2f3f5; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.promo-rail i { display: block; height: 100%; border-radius: 3px; }
.promo-foot { display: flex; justify-content: space-between; font-size: 11px; color: #999; margin-top: 6px; }
.promo-btn {
  margin-top: 10px; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 0; border-radius: 8px; text-align: center; letter-spacing: 1px;
}
.cat-grid {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-item:hover { background: var(--primary-light); transform: translateY(-2px); }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}
.cat-name { font-size: 14px; color: var(--text-main); }

/* 信息卡片 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.card-img {
  height: 160px;
  background: linear-gradient(135deg, #e8f0ff, #f0f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #b8cdf5;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .no-img-text { font-size: 14px; color: var(--text-light); }
.card-body { padding: 14px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}
.card-price {
  color: var(--danger);
  font-weight: 700;
  font-size: 17px;
}
.card-price .unit { font-size: 12px; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}
.tag-top { background: var(--danger); }
.tag-essence { background: var(--warning); }
.tag-vip { background: linear-gradient(135deg, #ff9f0a, #ff6b00); }

/* 列表页布局 */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-top: 20px;
}
.sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 84px;
}
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.sidebar-list li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-list li a:hover, .sidebar-list li a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.content-area { min-width: 0; }
.list-toolbar {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sub);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}
.pagination button {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 0 12px;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 详情页 */
.detail-wrap { margin-top: 20px; }
.detail-main {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.detail-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.detail-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.detail-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--danger);
  margin: 18px 0;
}
.detail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.detail-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.detail-content {
  line-height: 1.9;
  color: var(--text-main);
  font-size: 15px;
  margin-top: 20px;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--primary);
}
.contact-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  align-items: center;
}
.contact-item:last-child { border-bottom: none; }
.contact-item .label { color: var(--text-light); min-width: 60px; }
.contact-item .value { font-weight: 600; }

/* 评论区 */
.comment-list { margin-top: 12px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item .comment-name { font-weight: 600; font-size: 14px; }
.comment-item .comment-time { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.comment-item .comment-content { font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* 表单 */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 720px;
  margin: 0 auto;
}
.form-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 28px; }
.form-item { margin-bottom: 18px; }
.form-item label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-sub);
  font-weight: 600;
}
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.form-textarea { height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.upload-item {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 28px;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
  background: #fafbfc;
}
.upload-item:hover { border-color: var(--primary); color: var(--primary); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* 我的中心 */
.my-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 20px; }
.my-profile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  text-align: center;
}
.my-profile .avatar { width: 72px; height: 72px; margin: 0 auto 12px; font-size: 28px; }
.my-profile .nickname { font-size: 17px; font-weight: 700; }
.my-profile .vip-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  background: linear-gradient(135deg, #ff9f0a, #ff6b00);
  color: #fff;
}
.my-nav { margin-top: 20px; text-align: left; }
.my-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 14px;
  transition: all 0.2s;
}
.my-nav a:hover, .my-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.my-content { min-width: 0; }
.my-tabs {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 20px;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.my-tabs button {
  padding: 16px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.my-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* 表格 */
.table-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 13px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: #fafbfc;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}
.table tr:hover td { background: #fafbfc; }

/* 状态标签 */
.status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.status-pending { background: #fff7e6; color: #d48806; }
.status-active { background: #f6ffed; color: #52c41a; }
.status-rejected { background: #fff1f0; color: #ff4d4f; }
.status-down { background: #f0f0f0; color: #999; }

/* 公告 */
.notice {
  background: #fff8e6;
  border: 1px solid #ffe7a3;
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #8a6d1a;
  margin-bottom: 20px;
}
.notice .notice-icon { font-size: 18px; }

/* 空状态 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Toast */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.toast {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  animation: toastIn 0.3s;
  max-width: 80vw;
  text-align: center;
}
.toast.success { background: rgba(0, 181, 120, 0.95); }
.toast.error { background: rgba(255, 77, 79, 0.95); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 400px;
  max-width: 92vw;
  padding: 24px;
  animation: modalIn 0.25s;
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal-body { color: var(--text-sub); font-size: 14px; line-height: 1.8; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* 增值服务天数选择 */
.service-opt {
  flex: 1 1 80px;
  max-width: 90px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.service-opt .svc-days { font-weight: 700; font-size: 15px; color: var(--text-main); }
.service-opt .svc-price { font-size: 13px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.service-opt.active { border-color: var(--primary); background: var(--primary-light); }

/* 首页增值服务横幅 */
.svc-banner {
  background: linear-gradient(135deg, #fff7e6, #fff);
  border: 1px solid #ffe58f;
  border-radius: 14px;
  padding: 18px 20px;
}
.svc-banner-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.svc-banner-title { font-size: 16px; font-weight: 700; color: #ad6800; }
.svc-banner-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc-banner-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: all .2s; border: 1px solid #f0f0f0;
}
.svc-banner-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); border-color: #ffd666; }
.svc-banner-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.svc-banner-info b { display: block; font-size: 14px; }
.svc-banner-info span { font-size: 12px; color: #999; }
.svc-banner-info em { font-style: normal; color: var(--danger); font-weight: 700; font-size: 14px; }

/* 收银台支付方式选择 */
.cashier-sum {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px dashed #eee; padding: 4px 0 14px; margin-bottom: 6px;
}
.cashier-sum span { color: #666; font-size: 13px; }
.cashier-sum b { font-size: 28px; color: #ff3b30; font-weight: 700; }
.cashier-tip { color: #999; font-size: 12px; line-height: 1.6; margin: 6px 0 10px; }
.cashier-channels { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.cashier-channel {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: all .2s; user-select: none;
}
.cashier-channel:hover { border-color: #c7c9cc; }
.cashier-channel.active { border-color: var(--primary); background: var(--primary-light); }
.cashier-channel input { display: none; }
.cashier-channel .cc-ic { font-size: 20px; }
.cashier-channel .cc-name { font-weight: 600; font-size: 14px; line-height: 1.3; display: flex; flex-direction: column; }
.cashier-channel .cc-name small { color: #999; font-weight: 400; font-size: 12px; margin-top: 2px; }

/* 钱包/余额页 */
.wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.wallet-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; position: relative; overflow: hidden;
}
.wallet-card.gradient { background: linear-gradient(135deg, #2b6cff, #6a9bff); color: #fff; }
.wallet-card.gradient .wc-label { color: rgba(255,255,255,.85); }
.wallet-card.gradient .wc-value { color: #fff; }
.wc-label { color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.wc-value { font-size: 26px; font-weight: 700; color: var(--text-main); }
.wc-sub { margin-top: 8px; font-size: 12px; color: #999; }
.wallet-card.gradient .wc-sub { color: rgba(255,255,255,.8); }

/* 底部 */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}
.footer .links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.footer .links a:hover { color: var(--primary); }

/* 响应式 */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .header-inner { padding: 0 12px; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* 商家卡片 */
.merchant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.merchant-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.merchant-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
.merchant-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.merchant-logo img { width: 100%; height: 100%; object-fit: cover; }
.merchant-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.merchant-info p { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.merchant-badges { margin-top: 8px; display: flex; gap: 6px; }

/* ============ V2 新增模块样式 ============ */

/* 页面工具栏 */
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}
.page-toolbar h2 { font-size: 22px; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-bar button {
  padding: 7px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-sub);
}
.filter-bar button:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar button.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* 表单兼容类（与 form-input 一致） */
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-group textarea.form-control { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.text-danger { color: var(--danger); }

/* 商品详情页 */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.detail-img {
  width: 300px;
  height: 240px;
  border-radius: 10px;
  background: var(--primary-light);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { color: var(--text-sub); font-size: 14px; }
.detail-main .card, .detail-side .card { margin-bottom: 0; }

/* 首页特色功能 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.feature-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.feature-item span { font-size: 12px; color: var(--text-light); }

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-text { color: var(--text-sub); line-height: 1.7; }

/* ===== 在线客服 ===== */
.service-box {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 460px; overflow: hidden;
}
.service-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.service-head h2 { font-size: 17px; }
.service-tip { font-size: 12px; color: var(--text-light); background: #f7f8fa; padding: 10px 20px; text-align: center; }
.service-chat { flex: 1; overflow-y: auto; padding: 20px; background: #f5f6fa; }
.service-input { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.service-input input { flex: 1; height: 42px; border-radius: 21px; border: 1px solid var(--border); padding: 0 18px; font-size: 14px; outline: none; }
.chat-date { text-align: center; font-size: 12px; color: #999; margin: 12px 0; }
.chat-row { display: flex; margin-bottom: 14px; align-items: flex-end; }
.chat-row.me { justify-content: flex-end; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e8f0ff; color: #2b6cff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; overflow: hidden; font-weight: 700;
}
.chat-row.me .chat-avatar { background: #d9f7be; color: #389e0d; order: 2; margin-left: 10px; }
.chat-row.other .chat-avatar { margin-right: 10px; }
.chat-avatar img { width: 100%; height: 100%; }
.chat-bubble { max-width: 70%; padding: 10px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.chat-row.other .chat-bubble { background: #fff; color: #333; border-top-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.chat-row.me .chat-bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.chat-time { font-size: 11px; color: #bbb; margin-top: 4px; }
.chat-row.me .chat-time { text-align: right; }

/* ===== 公众号文章正文 ===== */
.article-content { font-size: 15px; line-height: 1.9; color: #333; word-break: break-word; overflow-wrap: break-word; }
.article-content p { margin: 0 0 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 10px auto; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { margin: 18px 0 10px; line-height: 1.5; }
.article-content h1 { font-size: 20px; } .article-content h2 { font-size: 18px; } .article-content h3 { font-size: 16px; } .article-content h4 { font-size: 15px; }
.article-content blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--primary); background: var(--primary-light); border-radius: 0 8px 8px 0; color: #555; }
.article-content a { color: var(--primary); }
.article-content table { max-width: 100%; border-collapse: collapse; margin: 10px 0; }
.article-content table td, .article-content table th { border: 1px solid #e5e5e5; padding: 6px 10px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-content iframe, .article-content video { display: block; width: 100%; border-radius: 8px; margin: 12px 0; background: #000; }
.article-content iframe { border: 0; aspect-ratio: 16 / 9; }
.article-content video { object-fit: contain; aspect-ratio: 16 / 9; }
.article-content .wx-sph-card { display: block; margin: 12px 0; border-radius: 10px; overflow: hidden; text-decoration: none; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .12); }
.article-content .wx-sph-screen { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #20304b, #0b1524 60%, #15263f); }
.article-content .wx-sph-play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 6px rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; }
.article-content .wx-sph-play::before { content: ''; width: 0; height: 0; border-left: 19px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.article-content .wx-sph-badge { position: absolute; right: 12px; top: 12px; background: #07c160; color: #fff; font-size: 11px; line-height: 1; padding: 6px 10px; border-radius: 12px; letter-spacing: 2px; }
.article-content .wx-sph-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: #fff; }
.article-content .wx-sph-tip { font-size: 14px; font-weight: 600; color: #333; }
.article-content .wx-sph-open { font-size: 12px; color: #07c160; white-space: nowrap; }

/* 响应式 */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-img { width: 100%; }
  .svc-banner-items { grid-template-columns: repeat(2, 1fr); }
  .svc-banner-item { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .svc-banner-items { grid-template-columns: 1fr; }
  .svc-banner-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
