/* =========================================================
   吉果岭 · 正宗槟榔在线移动商城样式表
   视觉风格：东方轻奢国韵 / 深邃翡翠绿 & 御用金配饰
   ========================================================= */

:root {
  --bg-app: #071512;
  --bg-card: #0d241f;
  --bg-card-hover: #12302a;
  --bg-card-lighter: #163a33;
  --bg-blur: rgba(10, 28, 23, 0.88);
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-bright: rgba(212, 175, 55, 0.7);
  --gold-primary: #d4af37;
  --gold-light: #f5e4a8;
  --gold-dark: #a17c24;
  --gold-gradient: linear-gradient(135deg, #fcedba 0%, #d4af37 50%, #9e7920 100%);
  --gold-btn-gradient: linear-gradient(135deg, #e5c365 0%, #d4af37 100%);
  --red-accent: #c43826;
  --red-gradient: linear-gradient(135deg, #e54d3b 0%, #ba2b1a 100%);
  --text-primary: #f7f6f2;
  --text-secondary: #a9beba;
  --text-muted: #6f8781;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 4px 14px rgba(212, 175, 55, 0.25);
  --transition-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: #030a08;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  overflow: hidden;
  user-select: none;
}

/* =========================================================
   设备外壳与适配容器 (PC端居中呈现iPhone手机壳，移动端满屏)
   ========================================================= */
.device-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 920px;
  margin: 0 auto;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.18);
  transition: all 0.3s ease;
}

/* PC端手机外壳美化 */
@media (min-width: 521px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0c201a 0%, #030806 100%);
  }

  .device-wrapper {
    height: 92vh;
    border-radius: 46px;
    border: 9px solid #1c2b26;
    outline: 2px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.12);
  }

  .device-wrapper.expanded-mode {
    max-width: 680px;
    border-radius: 24px;
  }
}

/* 顶部刘海/灵动岛装饰 */
.phone-notch {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-app);
  z-index: 50;
  flex-shrink: 0;
}

.phone-camera-pill {
  width: 76px;
  height: 18px;
  background-color: #030807;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* 底部手势横条 */
.home-indicator {
  width: 130px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
}

/* 主视口容器 */
.app-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 38px - 62px);
  overflow: hidden;
}

/* =========================================================
   单页标签页 (Tab Pages)
   ========================================================= */
.tab-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-page.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 10;
}

/* =========================================================
   TAB 1: 首页样式
   ========================================================= */
.home-header {
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seal-icon {
  width: 34px;
  height: 34px;
  background: var(--red-gradient);
  border: 1.5px solid var(--gold-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-light);
  box-shadow: 0 2px 8px rgba(196, 56, 38, 0.45);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

.badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background-color: var(--red-accent);
  border-radius: 50%;
  border: 1.5px solid var(--bg-app);
}

/* 搜索条 */
.search-bar-wrap {
  padding: 4px 16px 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 36, 31, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-clear-search:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}

/* 首页滚动主体 */
.home-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.2) transparent;
}

.home-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.home-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 2px;
}

/* 核心海报横幅展示 */
.hero-banner-container {
  margin-bottom: 14px;
}

.hero-banner-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold-bright);
  box-shadow: var(--shadow-card), 0 0 20px rgba(212, 175, 55, 0.15);
  cursor: pointer;
  background-color: #061813;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-banner-card:hover .banner-img {
  transform: scale(1.02);
}

.banner-overlay-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 22, 18, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.gold-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 品质背书 */
.trust-features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 36, 31, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--text-secondary);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feature-icon {
  font-size: 13px;
}

/* 分类胶囊标签 */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

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

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cat-pill.active {
  background: var(--gold-btn-gradient);
  color: #172418;
  font-weight: 700;
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* 模块标题 */
.section-heading {
  text-align: center;
  margin-bottom: 14px;
}

.title-with-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gold-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.gold-line:last-child {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.title-with-line h3 {
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-light);
  font-weight: 700;
}

.section-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 商品双列网格 (4张独立裁切图) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-bright);
}

.card-badge-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  width: 100%;
  padding-top: 100%; /* 1:1 正方形 */
  position: relative;
  background-color: #061612;
  overflow: hidden;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-taste-tag {
  font-size: 11px;
  color: var(--gold-primary);
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prod-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.prod-price-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.prod-curr {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
}

.prod-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.prod-sales {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 4px;
}

.btn-add-cart-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-btn-gradient);
  color: #172418;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-add-cart-mini:active {
  transform: scale(0.88);
}

/* 首页底部加盟推广条 */
.franchise-promo-card {
  background: linear-gradient(135deg, rgba(196, 56, 38, 0.2) 0%, rgba(212, 175, 55, 0.25) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  cursor: pointer;
}

.promo-info h4 {
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.promo-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

.promo-btn {
  background: var(--gold-btn-gradient);
  border: none;
  color: #152219;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

.bottom-disclaimer {
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-disclaimer p {
  font-size: 11px;
  color: var(--text-muted);
}

.bottom-disclaimer .copyright {
  font-size: 10px;
  color: #4b5e58;
  margin-top: 4px;
}

/* =========================================================
   TAB 2: 购物车样式
   ========================================================= */
.page-topbar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-app);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.page-topbar h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
}

.text-action-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.free-shipping-bar {
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 7px 16px;
  font-size: 11px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 80px;
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-card);
}

/* 复选框样式 */
.item-check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.item-check-label input,
.select-all-label input {
  display: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
  background-color: rgba(0, 0, 0, 0.2);
}

input:checked + .custom-checkbox {
  background-color: var(--gold-primary);
}

input:checked + .custom-checkbox::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #172418;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.cart-thumb-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #061612;
  border: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.cart-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-card-spec {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.cart-price-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.cart-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  overflow: hidden;
  background: #091a16;
}

.cart-stepper button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 14px;
  cursor: pointer;
}

.cart-stepper span {
  width: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-primary);
}

.btn-remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.btn-remove-item:hover {
  color: var(--red-accent);
}

/* 购物车底部固定条 */
.cart-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-blur);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.cart-total-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.total-row {
  display: flex;
  align-items: baseline;
}

.total-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 4px;
}

.total-currency {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
}

.total-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.total-hint {
  font-size: 10px;
  color: var(--text-muted);
}

.checkout-btn {
  background: var(--gold-btn-gradient);
  border: none;
  color: #172418;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 0.15s ease;
}

.checkout-btn:active {
  transform: scale(0.96);
}

/* 购物车空状态 */
.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon-box {
  font-size: 54px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.2));
}

.cart-empty-state h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cart-empty-state p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.primary-pill-btn {
  background: var(--gold-btn-gradient);
  border: none;
  color: #162419;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* =========================================================
   TAB 3: 加盟页面样式 (严格要求：全屏放一张加盟海报图)
   ========================================================= */
.franchise-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.share-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.franchise-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background-color: #061813;
  padding-bottom: 74px; /* 预留底部快捷栏空间 */
}

/* 仅放一张加盟图，满宽自适应，无变形高清晰度呈现 */
.poster-container {
  width: 100%;
  line-height: 0;
  background: #081a15;
}

.franchise-poster-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* 底部悬浮轻量快捷联系条（实用演示，不破坏纯图主体） */
.franchise-bottom-actions {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  background: rgba(8, 24, 19, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), var(--shadow-gold);
  z-index: 20;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.contact-action-btn:active {
  transform: scale(0.96);
}

.phone-btn {
  background: var(--red-gradient);
  color: #fff;
  flex: 1.2;
}

.wechat-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  flex: 1;
}

.form-btn {
  background: var(--gold-btn-gradient);
  color: #172418;
  flex: 0.9;
}

/* =========================================================
   TAB 4: 我的 (PROFILE) 样式
   ========================================================= */
.profile-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 40px;
}

.profile-header-card {
  background: linear-gradient(135deg, #0d2821 0%, #15382e 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.user-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-gradient);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #091a15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Songti SC", serif;
  font-size: 26px;
  font-weight: bold;
  color: var(--gold-primary);
}

.user-meta {
  flex: 1;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.user-nickname {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.vip-badge {
  font-size: 10px;
  background: var(--gold-btn-gradient);
  color: #172418;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.user-phone {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.user-tags {
  display: flex;
  gap: 6px;
}

.user-tags .tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 12px;
  text-align: center;
}

.stat-col {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 订单卡片 */
.card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title-row h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.view-all-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.order-status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.status-icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.badge-num {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-card);
}

.status-box span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 合伙人加盟横幅 */
.banner-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gold-gradient-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(196, 56, 38, 0.25) 100%);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-text h5 {
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.banner-text p {
  font-size: 10px;
  color: var(--text-secondary);
}

.small-gold-btn {
  background: var(--gold-btn-gradient);
  border: none;
  color: #172418;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* 常用服务列表 */
.menu-list-card {
  padding: 6px 14px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

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

.menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}

.menu-left svg {
  color: var(--gold-primary);
}

.menu-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.menu-subtext {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
}

.version-info {
  text-align: center;
  padding: 16px 0;
}

.version-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================================
   底部固定四导航栏 (NAV BAR)
   ========================================================= */
.bottom-nav {
  height: 62px;
  background: var(--bg-blur);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding: 4px 12px;
  transition: var(--transition-fast);
}

.nav-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--gold-primary);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--red-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tag-hot {
  position: absolute;
  top: -4px;
  right: -10px;
  background: var(--red-gradient);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1;
}

/* =========================================================
   模态弹窗与底部抽屉 (MODALS & DRAWERS)
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-drawer {
  width: 100%;
  max-width: 430px;
  background: #0a1f1a;
  border-top: 1px solid var(--border-gold-bright);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-drawer {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* 商品详情抽屉头部 */
.modal-product-header {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.modal-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  background: #061612;
}

.modal-product-meta {
  flex: 1;
}

.modal-product-meta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-taste-tag {
  font-size: 12px;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.price-symbol {
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 700;
}

.price-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
}

.price-unit {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

.modal-stock {
  font-size: 11px;
  color: #38a169;
}

.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
}

.spec-section {
  margin-bottom: 14px;
}

.spec-section h4,
.quantity-row h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.spec-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

.spec-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

.spec-list {
  list-style: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-list li {
  color: var(--text-secondary);
}

.spec-list li span {
  color: var(--gold-primary);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #091c17;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.qty-stepper input {
  width: 36px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
}

.modal-footer-btns {
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.btn-drawer-add,
.btn-drawer-buy {
  flex: 1;
  padding: 12px 0;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}

.btn-drawer-add {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.btn-drawer-buy {
  background: var(--gold-btn-gradient);
  color: #172418;
  box-shadow: var(--shadow-gold);
}

.btn-drawer-add:active,
.btn-drawer-buy:active {
  transform: scale(0.97);
}

/* 加盟登记表单抽屉 */
.inquiry-header {
  text-align: center;
  margin-bottom: 16px;
}

.gold-icon-circle {
  font-size: 32px;
  margin-bottom: 6px;
}

.inquiry-header h3 {
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.inquiry-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-secondary);
}

.required {
  color: var(--red-accent);
}

.form-group input,
.form-group textarea {
  background: #081713;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: #fff;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.submit-inquiry-btn {
  margin-top: 6px;
  background: var(--gold-btn-gradient);
  border: none;
  color: #162418;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* 结算抽屉 */
.checkout-header h3 {
  font-size: 16px;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 14px;
}

.shipping-address-card {
  background: #091a15;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.addr-icon {
  font-size: 20px;
}

.addr-info {
  flex: 1;
}

.addr-user {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.addr-user span {
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 6px;
}

.addr-detail {
  font-size: 11px;
  color: var(--text-secondary);
}

.addr-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.checkout-items-summary {
  max-height: 120px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
  margin-bottom: 12px;
}

.checkout-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}

.checkout-mini-name {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.checkout-mini-price {
  color: var(--gold-light);
  font-weight: 600;
}

.checkout-calc-card {
  background: #091a15;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.calc-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.final-price {
  color: var(--gold-light);
  font-size: 18px;
}

.green-text {
  color: #38a169;
}

.gold-text {
  color: var(--gold-primary);
}

.pay-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method-item {
  flex: 1;
  background: #091a15;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
  position: relative;
}

.pay-method-item.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-weight: 600;
}

.pay-check {
  color: var(--gold-primary);
  font-size: 12px;
  margin-left: 2px;
}

.confirm-pay-btn {
  width: 100%;
  background: var(--gold-btn-gradient);
  border: none;
  color: #172418;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* 轻量提示 Toast */
.app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(13, 36, 31, 0.95);
  border: 1px solid var(--border-gold-bright);
  color: var(--gold-light);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 999;
  pointer-events: none;
  text-align: center;
}

.app-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* 桌面端演示控制浮窗 */
.desktop-controls {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(13, 36, 31, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  z-index: 150;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .desktop-controls {
    display: flex;
  }
}

.desktop-control-title {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 6px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-fast);
}

.ctrl-btn:hover {
  background: var(--gold-btn-gradient);
  color: #172418;
  font-weight: 600;
}

/* 订单抽屉列表样式 */
.orders-scroll-body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 10px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-entry-card {
  background: #091a16;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.order-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.order-no {
  color: var(--text-muted);
}

.order-badge-status {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.order-entry-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.order-mini-name {
  color: var(--text-primary);
}

.order-mini-qty {
  color: var(--text-muted);
  font-size: 11px;
}

.order-mini-price {
  color: var(--gold-light);
  font-weight: 600;
}

.order-entry-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.order-shipping-tag {
  color: #38a169;
  font-size: 11px;
}

.order-total-highlight {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
}

.empty-orders-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
}
