/* 精品商城 - 移动端高端 UI */
:root {
  --bg: #f4f6fb;
  --bg-card: #ffffff;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #6366f1;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --danger: #ef4444;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 62px;
  --tab-h: 64px;
  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", "Noto Sans CJK SC", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 120px, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }

/* 顶栏 */
.mall-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  box-shadow: 0 2px 16px rgba(13, 148, 136, 0.35);
}

.mall-header svg { width: 22px; height: 22px; opacity: 0.95; }
.mall-header span { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }

.page-title {
  padding: 20px 20px 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.page-subtitle {
  padding: 0 20px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.shop-trust-bar {
  margin: 0 16px 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 55%, #f8fafc 100%);
  border: 1px solid #ccfbf1;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}

.shop-trust-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.shop-trust-main strong {
  font-size: 15px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.3px;
}

.shop-trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

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

.shop-trust-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.shop-trust-tag--accent {
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.mall-main {
  padding: 0 16px calc(var(--tab-h) + var(--safe-bottom) + 20px);
  min-height: calc(100vh - var(--header-h) - var(--tab-h));
}

/* 商品页布局 */
.shop-layout {
  display: flex;
  gap: 12px;
  min-height: calc(100vh - 180px);
}

.category-nav {
  width: 88px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  position: sticky;
  top: calc(var(--header-h) + 8px);
}

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

.cat-item {
  display: block;
  padding: 14px 10px;
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s;
  line-height: 1.4;
}

.cat-item.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

.product-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}

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

.product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price small { font-size: 10px; font-weight: 500; }

.btn-spec {
  display: inline-block;
  width: auto;
  height: 24px;
  line-height: 24px;
  padding: 0 10px;
  box-sizing: border-box;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
  vertical-align: middle;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  justify-self: end;
}

.btn-spec:active {
  opacity: 0.88;
  transform: scale(0.96);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 0.7;
}

.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* 购物车空状态 */
.cart-empty-state {
  text-align: center;
  padding: 48px 28px 56px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cart-empty-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-empty-visual::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed #e2e8f0;
  opacity: 0.8;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.cart-empty-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-cart-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cart-empty:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.28);
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  padding: 12px 24px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* 购物车 */
.cart-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.cart-item .product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cart-item-top {
  flex: 1;
}

.cart-unit-price {
  font-size: 15px;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 600;
}

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

.cart-summary {
  padding: 16px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row-total {
  margin-top: 4px;
  margin-bottom: 0;
  align-items: baseline;
}

.summary-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: -2px 0 10px;
  line-height: 1.4;
}

.summary-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active { background: #e2e8f0; }

.qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cart-actions button { flex: 1; padding: 13px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: none; cursor: pointer; }

.btn-checkout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-clear { background: #f1f5f9; color: var(--text-secondary); }

.item-subtotal { font-size: 15px; font-weight: 700; color: var(--text); }

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  width: 100%;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-delete {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

/* 投诉表单 */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.form-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

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

.form-label .required { color: var(--danger); }

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  background: #fff;
}

.form-textarea { min-height: 120px; resize: vertical; }

.upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.upload-btn {
  padding: 10px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

.upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* 底部导航 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
  min-width: 0;
  padding: 0 2px;
}

.tab-item.active { color: var(--primary); font-weight: 600; }

.tab-item svg { width: 21px; height: 21px; flex-shrink: 0; }

.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-badge.hidden { display: none; }

/* 首页悬浮下单按钮 */
.fab-order-wrap {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 150;
  pointer-events: none;
  padding-right: 16px;
  display: flex;
  justify-content: flex-end;
}

.fab-order-btn {
  pointer-events: auto;
  min-width: 56px;
  height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.fab-order-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

/* 底部抽屉（结算等） */
.modal-overlay.modal-bottom {
  align-items: flex-end;
  padding: 0;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

/* 居中弹窗（选规格 / 去结算） */
.sku-modal,
.checkout-modal {
  padding: 24px 20px;
}

.modal-dialog {
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  animation: modalPopIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes modalPopIn {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-right: 36px;
}

.modal-header p {
  font-size: 13px;
  opacity: 0.9;
  padding-right: 36px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:active { background: rgba(255, 255, 255, 0.35); }

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.sku-modal-body {
  padding: 16px 16px 8px;
  max-height: 42vh;
}

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

.sku-item {
  padding: 13px 12px;
  border: 1.5px solid #e8ecf1;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: #fafbfc;
  text-align: left;
}

.sku-item:active { transform: scale(0.98); }

.sku-item.selected {
  border-color: var(--primary);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15);
}

.sku-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.sku-stock {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-footer {
  padding: 14px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.sku-modal-footer {
  padding: 14px 16px 16px;
  border-top: none;
  background: #fff;
}

.modal-selected {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.modal-selected strong {
  color: var(--primary-dark);
  font-weight: 600;
}

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

.modal-price-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.btn-sku-confirm {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-sku-confirm:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

body.modal-open {
  overflow: hidden;
}

/* 结算弹窗表单 */
.checkout-modal-body {
  padding: 18px 16px 8px;
}

.checkout-modal-body .form-group {
  margin-bottom: 14px;
}

.checkout-modal-body .form-group:last-child {
  margin-bottom: 0;
}

.checkout-modal-body .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.checkout-modal-body .form-label .required {
  color: var(--danger);
}

.checkout-modal-body .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8ecf1;
  border-radius: 12px;
  font-size: 14px;
  background: #fafbfc;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.checkout-modal-body .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  background: #fff;
}

.checkout-modal-body .form-input::placeholder {
  color: #b0bec5;
}

/* 成功页 */
.page-success .page-title {
  display: none;
}

.mall-main--success {
  padding-top: 8px;
}

.success-card {
  position: relative;
  text-align: center;
  padding: 28px 20px 28px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  margin-top: 12px;
}

.success-hero {
  padding: 0 0 22px;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
}

.success-check {
  width: 80px;
  height: 80px;
  display: block;
}

.success-check-circle {
  stroke: #99f6e4;
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle 0.5s ease forwards 0.1s;
}

.success-check-mark {
  stroke: var(--primary-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successMark 0.35s ease forwards 0.45s;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successMark {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  padding: 0 8px;
}

.success-info-panel {
  text-align: left;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 16px;
  margin-bottom: 4px;
}

.success-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.success-info-label {
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.success-info-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.success-info-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.success-copy-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.success-copy-btn:active {
  transform: scale(0.96);
  background: #ccfbf1;
}

.success-info-divider {
  height: 1px;
  background: var(--border);
}

.success-info-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.success-info-amount-sub {
  font-size: 16px;
  font-weight: 600;
}

.success-banner {
  margin: 18px auto 0;
  max-width: 100%;
}

.success-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.success-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.success-actions .btn-primary {
  border-radius: 12px;
  padding: 14px 24px;
}

.success-actions .btn-secondary {
  border-radius: 12px;
  padding: 13px 24px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 999;
  display: none;
  max-width: 80%;
  text-align: center;
}

.toast.show { display: block; animation: fadeIn 0.2s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  height: 80px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 首页客服弹窗 */
.promo-popup {
  z-index: 400;
  padding: 20px 16px;
}

.promo-popup-wrap {
  width: 100%;
  max-width: 340px;
}

.promo-popup-card {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: promoPopIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes promoPopIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promo-popup-header {
  padding: 24px 20px 18px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
  text-align: center;
  color: #fff;
}

.promo-popup-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.promo-popup-subtitle {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  font-weight: 500;
}

.promo-popup-content {
  padding: 20px 20px 22px;
}

.promo-qr-frame {
  width: 168px;
  margin: 0 auto 14px;
  padding: 10px;
  background: linear-gradient(145deg, #f0fdfa 0%, #fff 100%);
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.promo-qrcode-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #fff;
}

.promo-scan-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.promo-scan-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.promo-notice-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.promo-notice-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.promo-notice-list li:last-child {
  margin-bottom: 0;
}

.promo-notice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.promo-popup-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.promo-popup-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.promo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}

.promo-popup-close:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 360px) {
  .promo-popup-wrap { max-width: 100%; }
  .promo-popup-title { font-size: 17px; }
  .promo-qr-frame { width: 152px; }
}

/* 客服页 */
.service-panel {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.service-panel-header {
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
  text-align: center;
  color: #fff;
}

.service-panel-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.service-panel-subtitle {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}

.service-panel-body {
  padding: 22px 20px 24px;
}

.service-qr-frame {
  width: 200px;
  margin: 0 auto 14px;
}

.service-scan-tip {
  margin-bottom: 16px;
}

.service-notice-list {
  margin-bottom: 0;
}

.service-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.service-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-empty-icon svg {
  width: 36px;
  height: 36px;
}

.service-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.service-empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
