/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100vh; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f1f5f9;
  color: #020617;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* ========== App Shell ========== */
.app {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  /* 与原站 shadow-2xl 一致：大阴影让窗体更有存在感 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}
.header-left { display: flex; align-items: center; gap: 8px; }
.logo-box {
  width: 36px; height: 36px; border-radius: 12px;
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.logo-box svg { width: 20px; height: 20px; }
.site-name { font-size: 18px; font-weight: 900; color: #020617; letter-spacing: normal; line-height: 28px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #020617;
  transition: background 0.15s;
}
.header-btn:hover { background: #f1f5f9; }
.lang-btn {
  position: relative;
}
.lang-btn svg { width: 28px; height: 28px; }
.lang-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #020617;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0 6px;
  border-radius: 999px;
  line-height: 16px;
}

/* Back button header (for non-home pages) */
.page-header {
  position: sticky; top: 0; z-index: 20;
  height: 64px; padding: 0 20px; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}
.page-title { font-size: 16px; font-weight: 900; color: #020617; line-height: 24px; }
.back-btn { display: flex; align-items: center; gap: 4px; color: #334155; font-size: 14px; font-weight: 700; line-height: 20px; }

/* ========== Main Content ========== */
.main {
  flex: 1;
  padding: 16px 16px 96px;
}

/* ========== Bottom Nav ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: clamp(56px, 14vw, 72px);
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(217,189,136,0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 30;
  padding: 0 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 5px);
  color: #64748b;
  /* 自适应字体：小屏 13px，大屏 16px，基于视口宽度自动缩放 */
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 900;
  line-height: 1.2;
  transition: color 0.15s;
  padding: 6px 0;
  text-decoration: none;
}
.nav-item.active { color: #6366f1; }
.nav-icon {
  /* 图标比文字小，与原站一致（图标较小、文字更大） */
  width: clamp(16px, 4.2vw, 20px);
  height: clamp(16px, 4.2vw, 20px);
  display: flex; align-items: center; justify-content: center;
}
.nav-icon svg { width: 100%; height: 100%; }

/* ========== Common sections ========== */
.section { }

/* ========== Carousel Banner ========== */
.carousel {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.carousel-inner {
  position: relative;
  height: 144px;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s;
  opacity: 0;
}
.carousel-slide.active { opacity: 1; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.carousel-dot {
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.carousel-dot.active { width: 20px; background: #ff7a1a; }
.carousel-dot:not(.active) { width: 6px; }

/* ========== Announce Bar ========== */
.announce {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.announce-badge {
  flex-shrink: 0;
  margin-right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff9676, #ff7913);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
}
.announce-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: #020617;
  line-height: 20px;
}
.announce-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: noticeRoll 450ms ease-out;
}
@keyframes noticeRoll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* ========== Group Buy Picks Entry ========== */
.rec-entry {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  cursor: pointer;
  gap: 8px;
}
.rec-entry:hover { background: #f8fafc; }
.rec-entry-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px;
  border-radius: 2px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.rec-entry-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
  color: #020617;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rec-entry-count {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
}
.rec-entry-sub {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  opacity: 0.6;
}
.rec-entry-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #94a3b8;
  font-weight: 700;
}

/* ========== Category Grid (5 columns, matching original) ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(10px, 2.5vw, 14px);
  margin-bottom: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1vw, 6px);
  height: clamp(56px, 14vw, 72px);
  border-radius: 12px;
  background: #fff5ed;
  color: #a74c13;
  /* 自适应字体：小屏 13px，大屏 15px */
  font-size: clamp(14px, 3.6vw, 15px);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s;
  text-align: center;
  line-height: 1.2;
}
.cat-item:active { transform: scale(0.96); }
.cat-initial {
  display: flex; align-items: center; justify-content: center;
  width: clamp(24px, 6vw, 30px);
  height: clamp(24px, 6vw, 30px);
  border-radius: 50%;
  background: #ff7a1a;
  color: #fff;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 900;
  line-height: 1;
}

/* ========== Section Title ========== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 900;
  color: #020617;
  border-left: 4px solid #ff7a1a;
  padding-left: 8px;
  line-height: 28px;
}
.section-title .more {
  font-size: 14px;
  font-weight: 900;
  color: #ff7a1a;
  cursor: pointer;
  line-height: 16px;
}

/* ========== Product Grid (2 columns) ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s;
}
.product-card:active { transform: scale(0.98); }
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-price-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.price-row-baseline {
  align-items: baseline;
}
.price-label {
  color: #64748b;
  flex-shrink: 0;
}
.price-val {
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.price-val.old {
  color: #64748b;
  text-decoration: line-through;
}
.price-val.now {
  font-size: 16px;
  font-weight: 900;
  color: #f43f5e;
  line-height: 24px;
}
.price-val.commission {
  color: #dc2626;
  font-weight: 900;
}
.price-val.commission-val {
  font-size: 12px;
  font-weight: 900;
  color: #dc2626;
}
.commission-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 2px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  flex-shrink: 0;
}

/* ========== Recommend Page (row list) ========== */
.recommend-header {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.recommend-count {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #334155; font-weight: 600;
  margin-bottom: 12px;
}
.recommend-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.recommend-tabs::-webkit-scrollbar { display: none; }
.rec-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.rec-tab.active {
  background: #ff7a1a;
  color: #fff;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-row {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  cursor: pointer;
}
.product-row-img {
  width: 100px; height: 100px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.product-row-img img { width: 100%; height: 100%; object-fit: cover; }
.product-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-row-title {
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-row-price {
  display: flex; align-items: baseline; gap: 6px; margin-top: 8px;
}
.product-row-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  padding-top: 8px;
}
.group-btn {
  background: #ff7a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========== Product Detail Page ========== */
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  color: #334155;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
}
.detail-back-btn:active { transform: scale(0.98); }

.detail-section {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.detail-img-fixed {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f1f5f9;
}
.detail-info-fixed {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-title-fixed {
  font-size: 20px;
  font-weight: 900;
  line-height: 28px;
  color: #020617;
  margin: 0;
}
.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.detail-price-big-fixed {
  font-size: 30px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}
.detail-price-old-fixed {
  font-size: 14px;
  color: #64748b;
  text-decoration: line-through;
  padding-bottom: 4px;
}
.commission-badge-fixed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.detail-stats-fixed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.detail-stat-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 12px;
}
.detail-stat-label {
  font-size: 11px;
  font-weight: 900;
  color: #94a3b8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-stat-num {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-stat-num.emerald { color: #059669; }

/* 拼单成员列表（在 detail-info-fixed 内部） */
.group-members-fixed {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff;
  box-shadow: 0 8px 24px rgba(239,68,68,0.08);
  overflow: hidden;
}
.group-members-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}
.member-row-fixed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #f1f5f9;
}
.member-avatar-fixed {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #ef4444;
  background: #fef2f2;
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.member-info-fixed { flex: 1; min-width: 0; }
.member-name-fixed { font-size: 14px; font-weight: 900; color: #020617; }
.member-status-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0d9488;
}
.member-time-fixed { font-size: 12px; font-weight: 600; color: #94a3b8; margin-top: 4px; }
.member-action-fixed { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.member-remaining { font-size: 12px; font-weight: 900; color: #64748b; }
.member-join-btn {
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.member-join-btn:active { transform: scale(0.96); }

/* 主按钮 - 全宽圆角，在内容流中（与原站一致） */
.detail-main-btn {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(220,38,38,0.1), 0 4px 6px -4px rgba(220,38,38,0.1);
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.detail-main-btn:active { transform: scale(0.98); }
.detail-main-btn.disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  color: #64748b;
}
/* 商品详情页底部占位（给固定按钮留空间） */
.detail-bottom-spacer { height: 80px; }

/* 旧样式保留兼容 */
.detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 16px;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info {
  background: #fff;
  padding: 16px;
  margin-top: 12px;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #6366f1;
  line-height: 28px;
  margin-bottom: 12px;
}
.detail-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.detail-price-big {
  color: #f43f5e;
  font-size: 26px;
  font-weight: 900;
}
.detail-price-big .cur { font-size: 16px; font-weight: 700; }
.detail-stats {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-num { font-size: 16px; font-weight: 700; color: #020617; line-height: 24px; }
.stat-label { font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 16px; }

.group-members {
  background: #fff;
  margin: 12px 0;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.group-members h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #020617; }
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.member-row:last-child { border-bottom: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border: 2px solid #ef4444;
  flex-shrink: 0;
  overflow: hidden;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 600; color: #020617; }
.member-time { font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 16px; }
.member-progress { font-size: 12px; color: #f43f5e; font-weight: 600; margin-top: 2px; line-height: 16px; }
.join-btn {
  background: #f43f5e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ========== Product Detail Description ========== */
.detail-desc-section {
  margin-top: 16px;
}
.detail-page-title {
  font-size: 15px;
  font-weight: 900;
  color: #020617;
  border-left: 4px solid #ff7a1a;
  padding-left: 8px;
  margin-bottom: 16px;
}
.detail-desc-content { font-size: 14px; line-height: 28px; color: #334155; max-width: none; }
.detail-desc-content img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.detail-desc-content p { font-size: 14px; color: #334155; line-height: 28px; margin-bottom: 8px; }

/* ========== Fixed Bottom Action Button ========== */
.primary-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 120, 240, 0.3);
  transition: transform 0.1s;
}
.primary-btn:active { transform: scale(0.98); }
.primary-btn.purple {
  background: linear-gradient(to right, #6678f0, #7644a8);
  box-shadow: 0 4px 12px rgba(102, 120, 240, 0.3);
}
.primary-btn.black {
  background: #020617;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.2);
}

/* ========== Profile Page ========== */
.profile-wrap { }
.auth-wrap { display: flex; flex-direction: column; gap: 16px; }
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.auth-tab {
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  color: #020617;
  text-align: center;
  cursor: pointer;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  opacity: 1;
}
.form-group { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #020617;
  margin-bottom: 8px;
  opacity: 0.6;
}
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: #6366f1; }

.logged-card {
  background: linear-gradient(135deg, #ff7a1a 0%, #f43f5e 100%);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.25);
}
.logged-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.logged-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.logged-username { font-size: 16px; font-weight: 700; }
.logged-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 8px;
}
.balance-label { font-size: 12px; opacity: 0.85; }
.balance-amount { font-size: 22px; font-weight: 800; }
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.half-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.15s;
}
.half-btn:hover { background: rgba(255,255,255,0.3); }
.solid-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.solid-btn:hover { background: #f8fafc; }

/* ========== Menu List ========== */
.menu-list {
  background: #fff;
  border-radius: 16px;
  padding: 4px 0;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.menu-item:hover { background: #f8fafc; }
.menu-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #fff5ed;
  color: #ff7a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.menu-text {
  flex: 1;
  font-size: 14px;
  color: #020617;
  font-weight: 600;
}
.menu-arrow {
  color: #94a3b8;
  font-size: 16px;
}
.menu-badge {
  font-size: 12px;
  color: #94a3b8;
}

/* ========== Orders Page ========== */
.order-balance-card {
  background: linear-gradient(to right, #6678f0, #7644a8);
  border-radius: 16px;
  padding: 16px 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(102, 120, 240, 0.2);
}
.order-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-balance-label { font-size: 14px; font-weight: 900; opacity: 0.9; margin-bottom: 4px; }
.order-balance-amount { font-size: 24px; font-weight: 900; }
.order-balance-btn {
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.order-balance-btn:hover { background: rgba(255,255,255,0.3); }

.order-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 4px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tab {
  flex-shrink: 0;
  min-width: 80px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0.55;
}
.order-tab.active {
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  opacity: 1;
}
.status-active { color: #f43f5e !important; }
.status-done { color: #10b981 !important; }
.status-unpaid { color: #f59e0b !important; }

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}
.order-time-row { font-size: 13px; }
.order-no { font-size: 13px; color: #475569; font-weight: 600; }
.order-status { font-size: 13px; font-weight: 700; color: #10b981; }
.order-body {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.order-img {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  background-size: cover;
  background-position: center;
}
.order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex: 1; min-width: 0; }
.order-title {
  font-size: 14px;
  font-weight: 600;
  color: #020617;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.order-price { font-size: 16px; font-weight: 900; color: #f43f5e; }
.order-commission { font-size: 13px; font-weight: 700; color: #dc2626; }

/* 订单详情区 */
.order-detail-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
}
.order-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.order-detail-label { font-size: 14px; opacity: 0.5; }
.order-detail-val { font-size: 14px; font-weight: 900; color: #6366f1; }
.order-detail-val.strong { font-size: 18px; color: #8b5cf6; }
.order-detail-val.status-active { color: #f43f5e; }
.order-detail-val.status-done { color: #10b981; }
.order-detail-val.status-unpaid { color: #f59e0b; }
.order-detail-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 8px 0;
}

/* 新订单卡片样式 */
.order-header-new {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.order-time-new {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.order-no-new {
  font-size: 14px;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.order-product-title {
  font-size: 15px;
  font-weight: 700;
  color: #020617;
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.order-product-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.order-product-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.order-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-detail-new {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-detail-row-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.order-detail-label-new {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.order-detail-val-new {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.order-detail-val-new.order-status-new {
  font-size: 16px;
  font-weight: 900;
}
.order-detail-divider-new {
  border-top: 1px dashed #cbd5e1;
  margin: 4px 0;
}
.order-refund-amount {
  color: #10b981 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

/* ========== Grab Page ========== */
.grab-header {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.grab-header .row { display: flex; align-items: center; justify-content: space-between; }
.grab-header .label { font-size: 12px; color: #94a3b8; font-weight: 500; }
.grab-header .amount { font-size: 22px; font-weight: 900; color: #f43f5e; }

/* 去抢单页（购物车结算，与原站 J 组件一致） */
/* ========== 分类专区页 ========== */
.cat-tab-bar {
  display: flex;
  gap: 10px;
  padding: 16px 8px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tab-bar::-webkit-scrollbar { display: none; }
.cat-tab-item {
  position: relative;
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #64748b;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}
.cat-tab-item:hover {
  background: linear-gradient(135deg, #fff5ed, #ffe4d6);
  color: #a74c13;
  transform: translateY(-1px);
}
.cat-tab-item.active {
  background: linear-gradient(135deg, #ff7a1a, #ff5c1a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,122,26,0.4), 0 1px 3px rgba(0,0,0,0.1);
  transform: scale(1.05);
}
.cat-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.8;
}
body.dark-mode .cat-tab-item {
  background: linear-gradient(135deg, #1e293b, #1a2332);
  color: #94a3b8;
  border-color: rgba(255,255,255,0.05);
}
body.dark-mode .cat-tab-item:hover {
  background: linear-gradient(135deg, #2a3f5f, #1e293b);
  color: #cbd5e1;
}
body.dark-mode .cat-tab-item.active {
  background: linear-gradient(135deg, #ff7a1a, #ff5c1a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,122,26,0.5);
}

.grab-wrap { display: flex; flex-direction: column; gap: 16px; }
.grab-card {
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  color: #020617;
}
.grab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.grab-card-title { font-size: 18px; font-weight: 900; color: #020617; }
.grab-card-total { font-size: 14px; font-weight: 900; color: #6366f1; }
.grab-balance-box {
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}
.grab-cart-list { display: flex; flex-direction: column; gap: 12px; }
.grab-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  padding: 12px;
}
.grab-cart-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}
.grab-cart-info { flex: 1; min-width: 0; }
.grab-cart-name {
  font-size: 14px;
  font-weight: 900;
  color: #020617;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grab-cart-price { margin-top: 4px; font-size: 13px; font-weight: 600; color: #020617; opacity: 0.5; }
.grab-cart-qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.grab-qty-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.grab-qty-btn.plus { background: #020617; color: #fff; }
.grab-qty-btn:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }
.grab-qty-val { width: 20px; text-align: center; font-size: 15px; font-weight: 900; color: #020617; }
.grab-pay-btn {
  display: flex;
  height: 48px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 4px 12px 0 rgba(99,102,241,0.3);
}
.grab-pay-btn:active { transform: scale(0.98); }
.grab-empty {
  border-radius: 12px;
  background: #f1f5f9;
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #64748b;
}

.pay-btn {
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.empty-desc { font-size: 13px; color: #94a3b8; }
.empty-action { margin-top: 20px; display: inline-block; padding: 10px 20px; background: linear-gradient(to right, #6678f0, #7644a8); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ========== Support Page - matches original _ function ========== */
.support-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* h2 title - matches original text-xl font-black */
.support-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #020617;
}

/* Support status card (top) - matches original eJ(e) flex items-center justify-between */
.support-status-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.support-status-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.support-status-emoji {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.support-status-subtitle { font-size: 14px; color: #020617; opacity: 0.5; font-weight: 600; }
.support-status-title { font-size: 18px; font-weight: 900; color: #020617; margin-top: 2px; }
.support-status-online {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 900; color: #10b981;
}
.support-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
}

/* Contact card - matches original eJ(e) flex items-center justify-between */
.support-contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.support-contact-left {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0;
}
.support-contact-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.support-contact-icon svg { width: 64px; height: 64px; }
.support-contact-name { font-size: 20px; font-weight: 900; color: #020617; }
.support-contact-type { font-size: 14px; color: #020617; opacity: 0.5; margin-top: 2px; font-weight: 600; }
.support-contact-tags { display: flex; gap: 8px; margin-top: 8px; }
.support-tag {
  padding: 4px 8px; border-radius: 6px;
  background: #eef2ff; color: #6366f1;
  font-size: 12px; font-weight: 700;
}
.support-contact-btn {
  padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff; font-size: 14px; font-weight: 900;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.support-contact-btn:active { transform: scale(0.96); }

/* Info card (work hours + response time) - matches original eJ(e) section with e$ components */
.support-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.support-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.support-info-emoji {
  font-size: 24px;
  flex-shrink: 0;
}
.support-info-content {
  flex: 1;
  min-width: 0;
}
.support-info-title { font-size: 14px; font-weight: 900; color: #020617; }
.support-info-subtitle { font-size: 12px; color: #020617; opacity: 0.5; margin-top: 2px; font-weight: 600; }
.support-info-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #d1fae5;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
}
.support-info-divider {
  height: 1px;
  background: #e2e8f0;
  opacity: 0.7;
}

/* FAQ section - matches original overflow-hidden rounded-2xl shadow-sm */
.faq-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.faq-empty {
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #020617;
  opacity: 0.5;
}
.faq-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #020617;
  cursor: pointer;
  user-select: none;
  text-align: left;
  background: transparent;
  border: none;
  transition: background 0.15s;
}
.faq-q:hover { background: #f8fafc; }
.faq-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s;
}
.faq-arrow svg { width: 16px; height: 16px; }
.faq-q.open .faq-arrow {
  transform: rotate(90deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #020617;
  opacity: 0.65;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 20px 16px;
}

.chat-wrap {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.msg.bot .msg-avatar { background: #94a3b8; }
.msg.me .msg-avatar { background: linear-gradient(135deg, #6678f0, #7644a8); }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.msg.bot .msg-bubble { background: #fff; color: #020617; border-top-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.msg.me .msg-bubble { background: linear-gradient(135deg, #6678f0, #7644a8); color: #fff; border-top-right-radius: 4px; box-shadow: 0 4px 12px rgba(102, 120, 240, 0.2); }
.msg-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.chat-input-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 600px;
  background: #fff;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
  display: flex;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  z-index: 45;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 14px;
}
.chat-input:focus { border-color: #6366f1; background: #fff; }
.send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6678f0, #7644a8);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 120, 240, 0.25);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

/* ========== Toast / Modal ========== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 200;
  animation: fadeIn 0.2s ease;
  pointer-events: none;
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.modal-mask {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-mask.visible {
  opacity: 1;
}
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.modal-mask.visible .modal {
  transform: scale(1);
}
.modal h3 { font-size: 16px; font-weight: 900; margin-bottom: 12px; color: #020617; }
.modal p { font-size: 14px; color: #64748b; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ghost-btn {
  padding: 10px 20px; border-radius: 10px;
  background: #f1f5f9; color: #334155;
  font-size: 13px; font-weight: 600;
}
.confirm-btn {
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(to right, #6678f0, #7644a8); color: #fff;
  font-size: 13px; font-weight: 600;
}

/* 支付弹窗样式 */
.payment-modal {
  max-width: 450px;
  padding: 24px;
}
.payment-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #020617;
  margin-bottom: 10px;
  text-align: center;
}
.payment-modal-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}
.payment-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.payment-product-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}
.payment-product-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.payment-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.payment-product-info {
  flex: 1;
  min-width: 0;
}
.payment-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.payment-product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.payment-product-price {
  font-size: 13px;
  color: #f43f5e;
  font-weight: 700;
}
.payment-product-qty {
  font-size: 12px;
  color: #94a3b8;
}
.payment-product-subtotal {
  font-size: 15px;
  font-weight: 900;
  color: #6366f1;
}
.payment-summary {
  margin-bottom: 20px;
}
.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.payment-summary-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.payment-summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #020617;
}
.payment-summary-total {
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}
.payment-total-amount {
  font-size: 20px;
  color: #f43f5e;
  font-weight: 900;
}
.payment-modal-actions {
  display: flex;
  gap: 12px;
}
.payment-btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.payment-btn-confirm {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* ========== 支付成功页 ========== */
.success-header {
  text-align: center;
  padding: 20px 20px 16px;
  margin-bottom: 12px;
}
.success-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.success-title {
  font-size: 20px;
  font-weight: 900;
  color: #020617;
  margin-bottom: 4px;
}
.success-desc {
  font-size: 14px;
  color: #64748b;
}
.success-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.success-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #6678f0, #7644a8);
  border-radius: 12px;
  margin-bottom: 12px;
}
.success-amount-label {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.success-amount-value {
  font-size: 24px;
  color: #fff;
  font-weight: 900;
}
.success-section {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.success-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.success-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 12px;
}
.success-product-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}
.success-product-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.success-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.success-product-info {
  flex: 1;
  min-width: 0;
}
.success-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.success-product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.success-product-price {
  font-size: 13px;
  color: #f43f5e;
  font-weight: 700;
}
.success-product-qty {
  font-size: 12px;
  color: #94a3b8;
}
.success-product-subtotal {
  font-size: 15px;
  font-weight: 900;
  color: #6366f1;
}
.success-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.success-detail-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.success-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #020617;
  text-align: right;
  word-break: break-all;
  max-width: 60%;
}
.success-total-row {
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}
.success-total-amount {
  font-size: 20px;
  color: #f43f5e;
  font-weight: 900;
}
.success-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.success-btn-outline {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: #020617;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  cursor: pointer;
}
.success-btn-primary {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(to right, #6678f0, #7644a8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* ========== Loading Spinner ========== */
.loading { text-align: center; padding: 40px 20px; color: #94a3b8; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #6678f0;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Form Card (充值/提现/设置) ========== */
.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* ========== Contact Support Button (rose border, for deposit/withdraw) ========== */
.contact-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 192px;
  margin: 0 auto;
  padding: 0 32px;
  border: 1px solid #fb7185;
  border-radius: 12px;
  background: transparent;
  color: #f43f5e;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-support-btn:hover { background: #fff1f2; }
.contact-support-btn:active { transform: scale(0.98); }
/* ========== Withdraw Balance Box (gray background) ========== */
.withdraw-balance-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 900;
  color: #334155;
}
.withdraw-balance-box span:last-child {
  font-weight: 900;
  color: #334155;
}
/* ========== Record List (记录列表 - matches original eg component) ========== */
.record-list {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.record-list-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  padding: 16px 20px;
}
.record-list-item:last-child { border-bottom: none; }
.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.record-primary {
  font-size: 14px;
  font-weight: 900;
  color: #020617;
}
.record-secondary {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #020617;
  opacity: 0.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-status {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 12px;
  font-weight: 900;
}
.record-time {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #020617;
  opacity: 0.45;
}
.record-amount-positive { color: #10b981; }
.record-amount-negative { color: #f43f5e; }
/* ========== Record Card (legacy, kept for compatibility) ========== */
.record-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
/* ========== Language Option (matches original eb component) ========== */
.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
  color: #020617;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-option.active {
  background: #6366f1;
  color: #fff;
}
.lang-option.active svg { color: #fff; }
/* ========== Menu Item Danger ========== */
.menu-item-danger .title, .menu-item-danger .icon svg { color: #ef4444; stroke: #ef4444; }
/* ========== Deposit/Withdraw Buttons ========== */
.half-btn.deposit-btn { background: linear-gradient(135deg, #6678f0, #7644a8); color: #fff; border: none; }
.half-btn.withdraw-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; }

/* ========== Dark Mode ========== */
body.dark-mode {
  background: #020618;
  color: #f1f5f9;
}
body.dark-mode .app {
  background: #0f172b;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
body.dark-mode .main {
  background: #020618;
}
/* 全量覆盖：夜间模式下所有白色/浅色背景强制深色 */
body.dark-mode .header,
body.dark-mode .page-header,
body.dark-mode .bottom-nav,
body.dark-mode .announce,
body.dark-mode .rec-entry,
body.dark-mode .cat-grid,
body.dark-mode .product-card,
body.dark-mode .product-row,
body.dark-mode .order-card,
body.dark-mode .order-balance-card,
body.dark-mode .grab-header,
body.dark-mode .recommend-header,
body.dark-mode .auth-card,
body.dark-mode .menu-list,
body.dark-mode .chat-wrap,
body.dark-mode .chat-input-bar,
body.dark-mode .modal,
body.dark-mode .carousel,
body.dark-mode .group-members,
body.dark-mode .detail-info,
body.dark-mode .faq-list,
body.dark-mode .faq-a,
body.dark-mode .support-contact-card,
body.dark-mode .support-status-card,
body.dark-mode .support-info-card,
body.dark-mode .announce,
body.dark-mode .header,
body.dark-mode .page-header,
body.dark-mode .bottom-nav,
body.dark-mode .product-card,
body.dark-mode .rec-entry,
body.dark-mode .section-header,
body.dark-mode .carousel,
body.dark-mode .order-card,
body.dark-mode .order-balance-card,
body.dark-mode .order-tabs {
  background: #1d293d !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
body.dark-mode .bottom-nav {
  background: rgba(15,23,43,0.95) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
body.dark-mode .header,
body.dark-mode .page-header,
body.dark-mode .bottom-nav {
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .site-name,
body.dark-mode .section-title h2,
body.dark-mode .rec-entry-text,
body.dark-mode .product-title,
body.dark-mode .detail-title,
body.dark-mode .member-name,
body.dark-mode .stat-num,
body.dark-mode .menu-text,
body.dark-mode .faq-q,
body.dark-mode .product-row-title,
body.dark-mode .order-title,
body.dark-mode .empty-title,
body.dark-mode .modal h3,
body.dark-mode .page-title {
  color: #f1f5f9;
}
body.dark-mode .price-label,
body.dark-mode .order-no,
body.dark-mode .stat-label,
body.dark-mode .empty-desc,
body.dark-mode .member-time,
body.dark-mode .menu-badge,
body.dark-mode .menu-arrow,
body.dark-mode .faq-arrow,
body.dark-mode .msg-time,
body.dark-mode .modal p,
body.dark-mode .form-label,
body.dark-mode .grab-header .label {
  color: #94a3b8;
}
body.dark-mode .announce-text,
body.dark-mode .rec-entry-sub,
body.dark-mode .price-val.old,
body.dark-mode .price-label {
  color: #94a3b8;
}
body.dark-mode .form-input {
  background: #1d293d;
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
body.dark-mode .form-input:focus { border-color: #6366f1; background: #0f172b; }
body.dark-mode .auth-tabs { background: #0f172b; }
body.dark-mode .auth-tab { color: #f1f5f9; }
body.dark-mode .auth-card { background: #1d293d; color: #f1f5f9; }
body.dark-mode .chat-input {
  background: #1d293d;
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
body.dark-mode .msg.bot .msg-bubble {
  background: #1d293d;
  color: #f1f5f9;
}
body.dark-mode .faq-a { background: #020618; }
body.dark-mode .faq-item { border-color: rgba(255,255,255,0.1); }
body.dark-mode .member-row { border-color: rgba(255,255,255,0.1); }
body.dark-mode .detail-stats { border-color: rgba(255,255,255,0.1); }
body.dark-mode .product-img-wrap,
body.dark-mode .product-row-img,
body.dark-mode .order-img,
body.dark-mode .detail-img {
  background: #1d293d;
}
body.dark-mode .rec-entry:hover,
body.dark-mode .menu-item:hover,
body.dark-mode .faq-q:hover { background: #1d293d; }
body.dark-mode .rec-tab { background: #1d293d; color: #94a3b8; }
body.dark-mode .order-tab { background: #1d293d; color: #94a3b8; }
body.dark-mode .order-tab.active { background: linear-gradient(135deg, #6678f0, #7644a8); color: #fff; }
body.dark-mode .ghost-btn { background: #1d293d; color: #cbd5e1; }
body.dark-mode .cat-item {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}
body.dark-mode .recommend-tabs { background: transparent; }
body.dark-mode .header-btn { color: #94a3b8; }
body.dark-mode .header-btn:hover { background: rgba(255,255,255,0.1); }
body.dark-mode .back-btn { color: #94a3b8; }
body.dark-mode .carousel-dot { background: #475569; }
body.dark-mode .carousel-dot.active { background: #ff7a1a; }
body.dark-mode .grab-card { background: #1d293d; color: #f1f5f9; border-color: rgba(255,255,255,0.1); }
body.dark-mode .grab-card-title { color: #f1f5f9; }
body.dark-mode .grab-balance-box { background: #020618; color: #cbd5e1; }
body.dark-mode .grab-cart-item { background: #020618; border-color: rgba(255,255,255,0.1); }
body.dark-mode .grab-cart-name { color: #f1f5f9; }
body.dark-mode .grab-qty-btn { background: #0f172b; color: #e2e8f0; }
body.dark-mode .grab-empty { background: #020618; color: #94a3b8; }
body.dark-mode .product-title,
body.dark-mode .product-row-title,
body.dark-mode .order-title { color: #818cf8; }
body.dark-mode .primary-btn { background: linear-gradient(135deg, #6678f0, #7644a8); }
body.dark-mode .send-btn { background: linear-gradient(135deg, #6678f0, #7644a8); }
body.dark-mode .chat-input-bar { border-color: #334155; }

/* ========== Profile Page - Matching Original ========== */
.profile-user-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #f1f5f9; color: #475569;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-avatar svg { width: 32px; height: 32px; }
.profile-user-info { flex: 1; min-width: 0; }
.profile-username { font-size: 18px; font-weight: 900; color: #020617; }
.profile-user-sub { font-size: 12px; font-weight: 600; opacity: 0.55; margin-top: 4px; }
.profile-credit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ecfdf5; color: #047857;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 900; margin-top: 8px;
}
.profile-credit-badge svg { width: 14px; height: 14px; }
.profile-settings-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f1f5f9; color: #475569;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-settings-btn svg { width: 20px; height: 20px; }

/* 2-column stat cards with gradient */
.profile-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 12px;
}
.profile-stat-card {
  border-radius: 16px; padding: 16px; color: #fff;
  position: relative; overflow: hidden;
}
.profile-stat-card.sky { background: linear-gradient(135deg, #38bdf8, #5eead4); }
.profile-stat-card.emerald { background: linear-gradient(135deg, #34d399, #5eead4); }
.profile-stat-label { font-size: 13px; font-weight: 900; opacity: 0.9; }
.profile-stat-value { font-size: 24px; font-weight: 900; margin-top: 4px; }
.profile-stat-sub { font-size: 12px; opacity: 0.7; margin-top: 2px; }

/* Credit score standalone card */
.profile-credit-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-credit-card .label { font-size: 14px; font-weight: 900; }
.profile-credit-card .sub { font-size: 12px; font-weight: 600; opacity: 0.55; margin-top: 4px; }
.profile-credit-card .score { font-size: 24px; font-weight: 900; color: #10b981; }

/* 4-column order stats */
.profile-order-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: 16px; padding: 16px 0;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-order-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 56px; cursor: pointer;
  font-size: 12px; font-weight: 600; opacity: 0.7;
}
.profile-order-stat:hover { opacity: 1; }
.profile-order-stat .icon { font-size: 18px; opacity: 0.6; line-height: 1; }
.profile-order-stat .count {
  background: #dc2626; color: #fff;
  padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
}
.profile-order-stat .count.count-zero {
  display: none;
}

/* 2-column grabbed/total stats */
.profile-grab-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-grab-stat {
  text-align: center; padding: 16px;
}
.profile-grab-stat:first-child { border-right: 1px solid #e2e8f0; }
.profile-grab-stat .value { font-size: 20px; font-weight: 900; color: #020617; }
.profile-grab-stat .label { font-size: 13px; opacity: 0.5; margin-top: 4px; }

/* Quick action menu */
.profile-quick-menu {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-quick-menu h2 {
  font-size: 20px; font-weight: 900; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
/* matches original: flex w-full items-center justify-between rounded-xl px-4 py-4 text-left font-black */
.profile-quick-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  font-weight: 900;
  transition: background 0.15s;
}
.profile-quick-item:hover { background: #f8fafc; }
/* matches original: 2nd item (index 2) gets bg-slate-100 */
.profile-quick-item.highlight { background: #f1f5f9; }
.profile-quick-item .left { display: flex; align-items: center; gap: 16px; }
/* matches original: grid size-7 place-items-center text-indigo-500 */
.profile-quick-item .menu-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}
.profile-quick-item .menu-icon svg { width: 20px; height: 20px; }
.profile-quick-item .label { font-weight: 900; color: #020617; font-size: 15px; }
/* matches original: size-4 opacity-45 */
.profile-quick-item .arrow { color: #020617; opacity: 0.45; }
.profile-quick-item .arrow svg { width: 16px; height: 16px; }

/* Payment account section */
.profile-payment-section {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-payment-section h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }

/* Settings section */
.profile-settings-section {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); margin-bottom: 12px;
}
.profile-setting-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; cursor: pointer;
  border-bottom: 1px solid rgba(226,232,240,0.7);
}
.profile-setting-item:last-child { border-bottom: none; }
.profile-setting-item .left { display: flex; align-items: center; gap: 16px; }
.profile-setting-item .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #eef2ff; color: #6366f1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-setting-item .icon svg { width: 20px; height: 20px; }
.profile-setting-item .info { min-width: 0; }
.profile-setting-item .title { font-weight: 900; display: block; font-size: 15px; }
.profile-setting-item .subtitle { font-size: 14px; opacity: 0.45; display: block; }
.profile-setting-item .right { display: flex; align-items: center; gap: 8px; margin-left: 12px; flex-shrink: 0; }
.profile-setting-item .badge { font-size: 12px; font-weight: 900; color: #6366f1; }
.profile-setting-item .arrow { color: #94a3b8; }
.profile-setting-item .arrow svg { width: 16px; height: 16px; }

/* ========== Order Detail Rows ========== */
.order-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px;
}
.order-detail-row .label { color: #64748b; }
.order-detail-row .value { font-weight: 700; }
.order-detail-row .value.strong { color: #10b981; font-weight: 900; }
.order-detail-divider {
  border-top: 1px dashed #cbd5e1; margin: 8px 0;
}

/* ========== Dark Mode Additions ========== */
body.dark-mode .profile-user-card,
body.dark-mode .profile-credit-card,
body.dark-mode .profile-order-stats,
body.dark-mode .profile-grab-stats,
body.dark-mode .profile-quick-menu,
body.dark-mode .profile-payment-section,
body.dark-mode .profile-settings-section,
body.dark-mode .profile-stat-card {
  background: #1e293b;
}
body.dark-mode .profile-username,
body.dark-mode .profile-credit-card .label,
body.dark-mode .profile-grab-stat .value,
body.dark-mode .profile-quick-menu h2,
body.dark-mode .profile-payment-section h2,
body.dark-mode .profile-setting-item .title {
  color: #f1f5f9;
}
body.dark-mode .profile-user-sub,
body.dark-mode .profile-credit-card .sub,
body.dark-mode .profile-grab-stat .label,
body.dark-mode .profile-order-stat,
body.dark-mode .profile-setting-item .subtitle {
  color: #94a3b8;
}
body.dark-mode .profile-settings-btn { background: #334155; color: #94a3b8; }
body.dark-mode .profile-grab-stat:first-child { border-color: #334155; }
body.dark-mode .profile-quick-item { border-color: #334155; }
body.dark-mode .profile-quick-item.highlight { background: #0f172a; }
body.dark-mode .profile-setting-item { border-color: rgba(51,65,85,0.7); }
body.dark-mode .profile-setting-item .icon { background: #334155; }
body.dark-mode .order-detail-row .label { color: #94a3b8; }
body.dark-mode .order-detail-divider { border-color: #475569; }

/* ========== 支付成功页夜间模式 ========== */
body.dark-mode .success-card {
  background: #1e293b;
  color: #f1f5f9;
}
body.dark-mode .success-title {
  color: #f1f5f9;
}
body.dark-mode .success-desc {
  color: #94a3b8;
}
body.dark-mode .success-product-item {
  background: #0f172a;
}
body.dark-mode .success-product-title {
  color: #f1f5f9;
}
body.dark-mode .success-product-img {
  background: #334155;
}
body.dark-mode .success-detail-row .label,
body.dark-mode .success-section-label {
  color: #94a3b8;
}
body.dark-mode .success-detail-row .value {
  color: #f1f5f9;
}
body.dark-mode .success-btn {
  background: #334155;
  color: #cbd5e1;
}
body.dark-mode .success-btn-primary {
  background: linear-gradient(135deg, #6678f0, #7644a8);
  color: #fff;
}

/* ========== 支付弹窗夜间模式 ========== */
body.dark-mode .modal {
  background: #1d293d;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode .payment-modal {
  background: #1d293d;
}
body.dark-mode .payment-modal-title {
  color: #f1f5f9;
}
body.dark-mode .payment-modal-desc {
  color: #94a3b8;
}
body.dark-mode .payment-product-item {
  background: #0f172a;
}
body.dark-mode .payment-product-title {
  color: #f1f5f9;
}
body.dark-mode .payment-product-img {
  background: #334155;
}
body.dark-mode .payment-summary {
  background: #0f172a;
}
body.dark-mode .payment-summary-label {
  color: #94a3b8;
}
body.dark-mode .payment-summary-value {
  color: #f1f5f9;
}
body.dark-mode .payment-btn-cancel {
  background: #334155;
  color: #cbd5e1;
}

/* ========== 订单卡片新样式夜间模式 ========== */
body.dark-mode .order-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode .order-header-new {
  border-color: #334155;
}
body.dark-mode .order-time-new,
body.dark-mode .order-no-new {
  color: #94a3b8;
}
body.dark-mode .order-product-title {
  color: #818cf8;
}
body.dark-mode .order-product-img {
  background: #334155;
}
body.dark-mode .order-detail-new {
  color: #f1f5f9;
}
body.dark-mode .order-detail-label-new {
  color: #94a3b8;
}
body.dark-mode .order-detail-val-new {
  color: #f1f5f9;
}
body.dark-mode .order-detail-divider-new {
  border-color: #334155;
}
body.dark-mode .order-refund-amount {
  color: #34d399 !important;
}

/* ========== 我的页夜间模式补充 ========== */
body.dark-mode .profile-order-stat .count {
  background: #ef4444;
}
body.dark-mode .profile-quick-item:hover {
  background: #334155;
}
body.dark-mode .profile-quick-item .label {
  color: #f1f5f9;
}
body.dark-mode .profile-quick-item .arrow {
  color: #94a3b8;
}
body.dark-mode .profile-user-card {
  box-shadow: none;
  border: 1px solid #334155;
}
body.dark-mode .profile-credit-card,
body.dark-mode .profile-order-stats,
body.dark-mode .profile-grab-stats,
body.dark-mode .profile-quick-menu,
body.dark-mode .profile-payment-section,
body.dark-mode .profile-settings-section {
  box-shadow: none;
  border: 1px solid #334155;
}
body.dark-mode .profile-avatar {
  background: #334155;
  color: #94a3b8;
}

/* ========== 遗漏白色背景组件夜间模式 ========== */
body.dark-mode .detail-section {
  background: #1e293b;
  box-shadow: none;
  border: 1px solid #334155;
}
body.dark-mode .group-members-fixed {
  background: #1e293b;
}
body.dark-mode .solid-btn {
  background: #334155;
  color: #cbd5e1;
}
body.dark-mode .order-tabs {
  background: #1e293b;
}
body.dark-mode .form-card {
  background: #1e293b;
  box-shadow: none;
  border: 1px solid #334155;
}
body.dark-mode .record-list {
  background: #0f172a;
}
body.dark-mode .record-card {
  background: #1e293b;
}
body.dark-mode .success-btn-outline {
  background: transparent;
  border-color: #475569;
  color: #cbd5e1;
}
body.dark-mode .detail-page-title {
  color: #f1f5f9;
}
body.dark-mode .detail-back-btn {
  background: #334155;
  color: #94a3b8;
}
body.dark-mode .chat-input:focus {
  background: #1e293b;
}
body.dark-mode .msg.bot .msg-bubble {
  background: #334155;
  color: #f1f5f9;
}
body.dark-mode .contact-support-btn {
  background: #334155;
  color: #f87171;
  border-color: #475569;
}
/* 夜间模式通用文字色补充 */
body.dark-mode .order-detail-row .value {
  color: #f1f5f9;
}
body.dark-mode .payment-modal-actions .payment-btn-confirm {
  color: #fff;
}
body.dark-mode .payment-product-price {
  color: #fb7185;
}
body.dark-mode .payment-product-subtotal {
  color: #818cf8;
}