/* ========================================
   迦纳电竞 H5 共享样式 - 1:1复制小程序
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #2C2C2C;
  background: #F5F5F5;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; font-size: inherit; border: none; outline: none; }
button { cursor: pointer; background: none; }
ul, ol { list-style: none; }

/* ========== 页面容器 ========== */
.page {
  min-height: 100vh;
  background: #F5F5F5;
  padding-bottom: 60px;
}

.page-with-tabbar {
  padding-bottom: 70px;
}

/* ========== 导航栏 ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.nav-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2C2C2C;
  flex-shrink: 0;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #2C2C2C;
}

.nav-right {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #2C2C2C;
  flex-shrink: 0;
}

/* ========== 底部TabBar ========== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #777777;
  font-size: 10px;
  transition: color 0.2s;
}

.tab-item.active {
  color: #D32F2F;
}

.tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-item .tab-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #D32F2F, #B71C1C);
  color: #fff;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  height: 50px;
  font-size: 16px;
}

.btn-sm {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #D32F2F;
  color: #D32F2F;
}

.btn-ghost {
  background: rgba(211, 47, 47, 0.08);
  color: #D32F2F;
}

.btn-disabled {
  background: #ccc;
  color: #999;
  box-shadow: none;
  pointer-events: none;
}

/* ========== 卡片 ========== */
.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 12px;
}

/* ========== 搜索栏 ========== */
.search-bar {
  padding: 10px 12px;
  background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 8px 14px;
}

.search-input-wrap .search-icon {
  font-size: 16px;
  margin-right: 8px;
  color: #777777;
}

.search-input-wrap input {
  flex: 1;
  font-size: 14px;
  color: #2C2C2C;
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: #BDBDBD;
}

/* ========== Banner ========== */
.banner-section {
  padding: 10px 12px;
}

.banner-swiper {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 快捷操作 ========== */
.quick-actions {
  display: flex;
  gap: 10px;
  padding: 0 12px 10px;
}

.quick-action {
  flex: 1;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(211, 47, 47, 0.08);
  gap: 10px;
}

.quick-action:active {
  transform: scale(0.97);
}

.quick-action .qa-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.quick-action .qa-title {
  font-size: 13px;
  font-weight: 700;
  color: #2C2C2C;
}

.quick-action .qa-desc {
  font-size: 11px;
  color: #6B6B6B;
  margin-top: 1px;
}

/* ========== 星级Banner ========== */
.star-banner {
  margin: 0 12px 10px;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.28)), url('https://jianadj.com/static/star-banner-bg.jpg') center / cover no-repeat;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.star-banner .star-left {
  display: flex;
  flex-direction: column;
}

.star-banner .star-label {
  font-size: 11px;
  color: #FFCDD2;
  letter-spacing: 1px;
  font-weight: 600;
}

.star-banner .star-title {
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  margin-top: 2px;
}

.star-banner .star-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 4px;
}

.star-banner .star-btn {
  background: linear-gradient(135deg, #D32F2F, #B71C1C);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ========== 通知栏 ========== */
.notice-bar {
  display: flex;
  align-items: center;
  margin: 0 12px 10px;
  padding: 10px 12px;
  background: rgba(211, 47, 47, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(211, 47, 47, 0.15);
}

.notice-bar .notice-icon {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.notice-bar .notice-text {
  font-size: 13px;
  color: #D32F2F;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 秒杀专区 ========== */
.flash-sale-section {
  margin: 0 12px 10px;
  background: linear-gradient(135deg, #FFF5F5, #FFE8E8);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.12);
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flash-sale-title {
  font-size: 16px;
  color: #D32F2F;
  font-weight: 700;
}

.flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #666;
}

.flash-sale-countdown .cd-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: #D32F2F;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 0 4px;
}

.flash-sale-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flash-sale-scroll::-webkit-scrollbar { display: none; }

.flash-sale-card {
  width: 140px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.flash-sale-card .fs-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #f5f5f5;
}

.flash-sale-card .fs-info {
  padding: 8px;
}

.flash-sale-card .fs-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-sale-card .fs-price {
  font-size: 16px;
  font-weight: 700;
  color: #D32F2F;
  margin-top: 4px;
}

.flash-sale-card .fs-progress {
  height: 6px;
  background: #FFE8E8;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.flash-sale-card .fs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B6B, #D32F2F);
  border-radius: 3px;
}

/* ========== 分类标签 ========== */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  padding: 7px 16px;
  font-size: 13px;
  color: #6B6B6B;
  font-weight: 600;
  background: #FFFFFF;
  border-radius: 999px;
  border: 1px solid rgba(211, 47, 47, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tab.active {
  background: #D32F2F;
  color: #ffffff;
  border-color: #D32F2F;
}

/* ========== 商品网格 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}

.product-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(232, 116, 116, 0.06);
  position: relative;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card .product-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-card .product-img-placeholder {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D32F2F, #F44336);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-card .product-info {
  padding: 10px;
}

.product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card .product-desc {
  font-size: 11px;
  color: #6B6B6B;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-price {
  font-size: 18px;
  font-weight: 700;
  color: #D32F2F;
  margin-top: 6px;
}

.product-card .product-original {
  font-size: 11px;
  color: #999999;
  text-decoration: line-through;
  margin-left: 4px;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.product-card .product-game-tag {
  display: inline-flex;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  color: #999999;
  font-weight: 600;
}

.product-card .product-sales {
  font-size: 10px;
  color: #777777;
  font-weight: 600;
}

/* 角标 */
.wheel-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #FF6B35, #F7C948);
  padding: 3px 8px;
  border-radius: 0 0 8px 0;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  z-index: 2;
}

.gift-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #D32F2F, #F44336);
  padding: 3px 8px;
  border-radius: 0 8px 0 0;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  z-index: 2;
}

.sold-out-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(180, 180, 180, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 3;
}

/* ========== 订单卡片 ========== */
.order-card {
  background: #FFFFFF;
  border-radius: 10px;
  margin: 10px 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-card .order-no {
  font-size: 12px;
  color: #777777;
}

.order-card .order-body {
  display: flex;
  gap: 12px;
}

.order-card .order-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

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

.order-card .order-title {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-card .order-spec {
  font-size: 12px;
  color: #6B6B6B;
  margin-top: 4px;
}

.order-card .order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F0F0F0;
}

.order-card .order-price {
  font-size: 16px;
  font-weight: 700;
  color: #D32F2F;
}

.order-card .order-actions {
  display: flex;
  gap: 8px;
}

/* ========== 状态标签 ========== */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending { background: #FFF3E0; color: #E65100; }
.status-active { background: #E8F5E9; color: #2E7D32; }
.status-done { background: #E3F2FD; color: #1565C0; }
.status-cancel { background: #F5F5F5; color: #999; }
.status-refund { background: #FCE4EC; color: #C62828; }

/* ========== 陪玩卡片 ========== */
.booster-card {
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.booster-card .booster-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

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

.booster-card .booster-name {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
}

.booster-card .booster-level {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.booster-card .level-1 { background: #E8F5E9; color: #2E7D32; }
.booster-card .level-2 { background: #E3F2FD; color: #1565C0; }
.booster-card .level-3 { background: #FFF3E0; color: #E65100; }

.booster-card .booster-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #6B6B6B;
}

.booster-card .booster-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.booster-card .booster-tag {
  padding: 2px 8px;
  background: rgba(211, 47, 47, 0.06);
  border-radius: 999px;
  font-size: 11px;
  color: #D32F2F;
  font-weight: 500;
}

.booster-card .booster-price {
  font-size: 16px;
  font-weight: 700;
  color: #D32F2F;
  margin-top: 6px;
}

/* ========== 用户中心 ========== */
.user-header {
  background: linear-gradient(135deg, #D32F2F, #B71C1C);
  padding: 40px 20px 30px;
  color: #fff;
}

.user-header .user-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-header .user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  background: rgba(255,255,255,0.2);
}

.user-header .user-name {
  font-size: 20px;
  font-weight: 700;
}

.user-header .user-id {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.user-wallet {
  display: flex;
  background: #FFFFFF;
  margin: -16px 12px 12px;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.user-wallet .wallet-item {
  flex: 1;
  text-align: center;
}

.user-wallet .wallet-value {
  font-size: 20px;
  font-weight: 700;
  color: #2C2C2C;
}

.user-wallet .wallet-label {
  font-size: 12px;
  color: #777777;
  margin-top: 4px;
}

.user-menu {
  background: #FFFFFF;
  border-radius: 10px;
  margin: 0 12px 12px;
  overflow: hidden;
}

.user-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
}

.user-menu-item:last-child {
  border-bottom: none;
}

.user-menu-item:active {
  background: #FAFAFA;
}

.user-menu-item .menu-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.user-menu-item .menu-text {
  flex: 1;
  font-size: 15px;
  color: #2C2C2C;
}

.user-menu-item .menu-arrow {
  color: #777777;
  font-size: 14px;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #F5F5F5;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  font-size: 14px;
  color: #2C2C2C;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #D32F2F;
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  background: #F5F5F5;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  font-size: 14px;
  color: #2C2C2C;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: #777777;
  margin-top: 4px;
}

/* ========== 空状态 ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #777777;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 14px;
}

/* ========== 加载 ========== */
.loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #777777;
  font-size: 13px;
  gap: 8px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #EEEEEE;
  border-top-color: #D32F2F;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Toast ========== */
.toast-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.toast-content {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 80%;
  text-align: center;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  width: 85%;
  max-width: 400px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.modal-content {
  font-size: 14px;
  color: #6B6B6B;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #D32F2F; }
.text-muted { color: #777777; }
.text-success { color: #4CAF50; }
.text-danger { color: #F44336; }
.text-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 80px; height: 80px; }

.price {
  color: #D32F2F;
  font-weight: 700;
}

.price-lg { font-size: 24px; }
.price-md { font-size: 18px; }
.price-sm { font-size: 14px; }

.list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #F0F0F0;
}

.list-item:active {
  background: #FAFAFA;
}

.list-item .list-main {
  flex: 1;
  min-width: 0;
}

.list-item .list-title {
  font-size: 15px;
  font-weight: 600;
  color: #2C2C2C;
}

.list-item .list-desc {
  font-size: 13px;
  color: #6B6B6B;
  margin-top: 2px;
}

.list-item .list-arrow {
  color: #777777;
  font-size: 14px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ========== 类名别名（兼容代理生成的HTML） ========== */
.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 8px 14px;
}

.search-input-wrapper input {
  flex: 1;
  font-size: 14px;
  color: #2C2C2C;
  background: transparent;
  border: none;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #BDBDBD;
}

.quick-action-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 8px;
  box-shadow: 0 2px 12px rgba(211, 47, 47, 0.08);
  gap: 6px;
}

.quick-action-item:active {
  transform: scale(0.97);
}

.quick-action-icon {
  font-size: 28px;
  line-height: 1;
}

.quick-action-text {
  font-size: 12px;
  font-weight: 600;
  color: #2C2C2C;
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}

.tab-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #777777;
  font-size: 10px;
}

.tab-bar-item.active {
  color: #D32F2F;
}

.tab-bar-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.star-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

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

.booster-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.booster-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: #6B6B6B;
}

.info-value {
  font-size: 14px;
  color: #2C2C2C;
  font-weight: 500;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}

.bottom-bar .btn {
  flex: 1;
}

.tab-pills {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-pills::-webkit-scrollbar { display: none; }

.tab-pill {
  padding: 6px 16px;
  font-size: 13px;
  color: #6B6B6B;
  font-weight: 600;
  background: #FFFFFF;
  border-radius: 999px;
  border: 1px solid rgba(211, 47, 47, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-pill.active {
  background: #D32F2F;
  color: #ffffff;
  border-color: #D32F2F;
}

.chat-input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}

.chat-input-bar input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: #F5F5F5;
  border: 1px solid #EEEEEE;
  border-radius: 999px;
  font-size: 14px;
  color: #2C2C2C;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  background: #D32F2F;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.msg-bubble {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
}

.msg-content {
  background: #FFFFFF;
  padding: 8px 12px;
  border-radius: 0 10px 10px 10px;
  font-size: 14px;
  color: #2C2C2C;
  max-width: 70%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg-content.self {
  background: #FFCDD2;
  border-radius: 10px 0 10px 10px;
  margin-left: auto;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #D32F2F;
}

.stat-label {
  font-size: 12px;
  color: #777777;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}

.menu-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.menu-grid-item:active {
  transform: scale(0.97);
}

.menu-grid-icon {
  font-size: 24px;
}

.menu-grid-text {
  font-size: 12px;
  color: #2C2C2C;
  font-weight: 600;
}

/* ===== 底部 Tab 未读角标 ===== */
.tab-item,
.tab-item-nav {
  position: relative;
}
.tab-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(6px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #FF3B30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(255, 59, 48, 0.4);
  z-index: 10;
}
