/* ============================================
   小智商城 v3.0 - 有赞风格UI
   Zan Design 品质红金·精致电商体验
   ============================================ */

:root {
  /* 主色 - 品质红金（有赞风格升级） */
  --primary: #EE6722;
  --primary-light: #F5843D;
  --primary-dark: #D45510;
  --primary-bg: #FFF3ED;
  
  --accent: #E74C3C;
  --accent-light: #FF6B6B;
  
  --gold: #D4A843;
  --gold-light: #F0D68A;
  --gold-bg: #FFF8E8;
  
  /* 中性色（有赞风格：中性色含蓝调） */
  --bg: #F5F6F8;
  --card-bg: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #5A6072;
  --text-light: #9098A8;
  --text-muted: #C8CDD6;
  --border: #E8E8EE;
  --border-light: #F0F1F5;
  
  /* 功能色 */
  --success: #00B894;
  --success-bg: #E6F9F4;
  --warning: #F39C12;
  --warning-bg: #FEF5E7;
  --danger: #E74C3C;
  --danger-bg: #FDEDEC;
  --info: #3498DB;
  --info-bg: #EBF5FB;
  --link: #2E86DE;
  
  /* 间距 */
  --safe-top: env(safe-area-inset-top, 20px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  
  /* 阴影 - 有赞风格 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  
  /* 圆角（有赞规范） */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

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

body { 
  font-family: var(--font-family);
  background: var(--bg); 
  color: var(--text); 
  font-size: 14px; 
  line-height: 1.5;
  padding-bottom: 65px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   顶部导航（通用）
   ============================================ */
.app-header {
  background: #fff;
  padding: 10px 16px;
  padding-top: calc(10px + var(--safe-top));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-header .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.app-header .search-box {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-header .search-box:active {
  background: #E8EAED;
}

.app-header .search-box .search-icon {
  font-size: 15px;
  opacity: 0.4;
}

.app-header .search-box .search-placeholder {
  color: var(--text-light);
  font-size: 13px;
  flex: 1;
}

/* ============================================
   底部导航
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  padding-bottom: calc(6px + var(--safe-bottom));
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.bottom-nav .nav-item {
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 0 10px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item:active {
  transform: scale(0.92);
}

.bottom-nav .nav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
  display: block;
  transition: transform 0.2s;
}

.bottom-nav .nav-item.active .nav-icon {
  transform: scale(1.1);
}

.bottom-nav .nav-label {
  font-size: 10px;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.bottom-nav .badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(231,76,60,0.3);
}

/* ============================================
   通用组件系统
   ============================================ */

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-padding {
  padding: 16px;
}

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 6px;
  outline: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:active::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(238,103,34,0.25);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(231,76,60,0.25);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212,168,67,0.25);
}

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

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:active {
  background: var(--primary-bg);
}

.btn-outline-accent {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn-outline-accent:active {
  background: var(--danger-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:active {
  background: var(--bg);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 9999;
  display: none;
  max-width: 80%;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: toastIn 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

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

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

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

.empty-state .text {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-state .sub-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* 加载 */
.load-more {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
}

.load-more:active {
  color: var(--text-secondary);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

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

/* 分割线 */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 16px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 500;
}

.tag-primary {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-accent {
  background: var(--danger-bg);
  color: var(--accent);
}

.tag-success {
  background: var(--success-bg);
  color: var(--success);
}

.tag-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.tag-gold {
  background: var(--gold-bg);
  color: var(--gold);
}

/* 价格 */
.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.price .symbol {
  font-size: 12px;
  font-weight: 500;
}

.original-price {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: line-through;
}

/* 星级评分 */
.stars {
  color: #FFB800;
  font-size: 12px;
  letter-spacing: 1px;
}

.stars .empty {
  color: var(--border);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238,103,34,0.1);
}

/* 页面标题区 */
.page-header {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header .back-btn {
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.15s;
}

.page-header .back-btn:active {
  transform: scale(0.9);
}

.page-header .page-title {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}

.page-header .header-action {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.page-header .header-action:active {
  background: var(--primary-bg);
}

/* 商品标签徽章 */
.badge-sale {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, var(--accent), #FF6B6B);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, var(--success), #00D2A0);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============================================
   动画关键帧 - 通用
   ============================================ */

/* 页面滑入 */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 淡入上移 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 淡入 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 抖动（表单校验错误提示用） */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* 脉冲（红点/提醒用） */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 弹跳入场 */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* 旋转（加载） */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 骨架屏闪烁 */
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast 入场 */
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); }
}

/* 微信弹窗蒙版淡入 */
@keyframes modalMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 微信弹窗内容底部滑入 */
@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* 下拉刷新旋转 */
@keyframes ptrRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   页面进场动画
   ============================================ */
.page-enter {
  animation: pageSlideIn 0.35s ease both;
}

.page-fade-in {
  animation: fadeIn 0.3s ease both;
}

.page-fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

/* ============================================
   上拉加载指示器
   ============================================ */
.load-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 8px;
  color: var(--text-light);
  font-size: 13px;
}

.load-indicator .load-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.load-indicator .load-text {
  white-space: nowrap;
}

.load-indicator .load-text.loaded {
  color: var(--text-muted);
}

/* ============================================
   微信风格弹窗
   ============================================ */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0.3s;
}

.wechat-modal.active {
  visibility: visible;
}

.wechat-modal .modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wechat-modal.active .modal-mask {
  opacity: 1;
}

.wechat-modal .modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px;
  padding-bottom: calc(20px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.wechat-modal.active .modal-content {
  transform: translateY(0);
}

.wechat-modal .modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.wechat-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.2s;
}

.wechat-modal .modal-close:active {
  background: var(--border);
}

.wechat-modal .modal-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.wechat-modal .modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   数字徽章 & 小红点
   ============================================ */
.badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 2s ease infinite;
}

.badge-num {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
  white-space: nowrap;
}

.badge-dot-sm {
  width: 6px;
  height: 6px;
  top: 0;
  right: 0;
}

/* 通知角标增强 */
.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: linear-gradient(135deg, var(--accent), #FF6B6B);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================
   折叠面板
   ============================================ */
.collapse {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.collapse-item {
  border-bottom: 1px solid var(--border-light);
}

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

.collapse-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  gap: 10px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.collapse-header:active {
  background: var(--bg);
}

.collapse-header .collapse-arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.collapse-item.active .collapse-arrow {
  transform: rotate(180deg);
}

.collapse-header .collapse-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.collapse-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.collapse-item.active .collapse-body {
  max-height: 500px;
  padding: 0 16px 14px;
}

.collapse-body-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   步骤条（订单状态等）
   ============================================ */
.steps {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
}

.steps .step {
  flex: 1;
  text-align: center;
  position: relative;
}

.steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.steps .step.done:not(:last-child)::after {
  background: var(--primary);
}

.steps .step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--primary) 50%, var(--border) 50%);
}

.steps .step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  background: var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s;
}

.steps .step.done .step-icon {
  background: var(--primary);
  color: #fff;
}

.steps .step.active .step-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.steps .step-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.steps .step.done .step-label,
.steps .step.active .step-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* 横向步骤条（紧凑） */
.steps-horizontal .step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.steps-horizontal .step:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

/* ============================================
   横向滚动容器
   ============================================ */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 16px;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.scroll-x .scroll-item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ============================================
   图片占位 / 加载失败
   ============================================ */
.img-placeholder {
  position: relative;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-placeholder::before {
  content: '🖼️';
  font-size: 28px;
  opacity: 0.3;
}

.img-placeholder.load-error::before {
  content: '📷';
  font-size: 24px;
  opacity: 0.2;
}

.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.img-placeholder img[src],
.img-placeholder img:not([src='']) {
  opacity: 0;
}

.img-placeholder img.loaded {
  opacity: 1;
}

/* 加载失败的图片 */
.img-error {
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  min-height: 80px;
}

.img-error::before {
  content: '📷';
  font-size: 24px;
  opacity: 0.4;
}

/* ============================================
   吸底按钮条
   ============================================ */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.sticky-bottom-bar .bar-info {
  flex: 1;
  min-width: 0;
}

.sticky-bottom-bar .bar-total {
  font-size: 13px;
  color: var(--text-secondary);
}

.sticky-bottom-bar .bar-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.sticky-bottom-bar .bar-price .symbol {
  font-size: 14px;
}

.sticky-bottom-bar .bar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sticky-bottom-bar .bar-actions .btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================
   下拉刷新指示器
   ============================================ */
.ptr-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
  color: var(--text-light);
  font-size: 13px;
  overflow: hidden;
  height: 0;
  transition: height 0.2s;
}

.ptr-indicator.visible {
  height: 56px;
}

.ptr-indicator .ptr-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ptrRotate 0.8s linear infinite;
  flex-shrink: 0;
}

.ptr-indicator .ptr-arrow {
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.ptr-indicator .ptr-arrow.flip {
  transform: rotate(180deg);
}

/* ============================================
   空状态（插画风格增强）
   ============================================ */
.empty-state-illustration {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-illustration .empty-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gold-bg) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  animation: fadeInUp 0.5s ease both;
}

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

.empty-state-illustration .empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.empty-state-illustration .empty-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-xl);
  transition: all 0.2s;
}

.empty-state-illustration .empty-action:active {
  background: var(--primary-bg);
}

/* 更好的骨架屏（组合版） */
.skeleton-block {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
  height: 16px;
}

.skeleton-block.w-full { width: 100%; }
.skeleton-block.w-75 { width: 75%; }
.skeleton-block.w-50 { width: 50%; }
.skeleton-block.w-33 { width: 33%; }
.skeleton-block.h-sm { height: 12px; }
.skeleton-block.h-md { height: 16px; }
.skeleton-block.h-lg { height: 24px; }
.skeleton-block.h-xl { height: 40px; }
.skeleton-block.circle { border-radius: 50%; width: 40px; height: 40px; }
.skeleton-block.rounded { border-radius: var(--radius-md); }

.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.skeleton-card .skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-card .skeleton-row .skeleton-block:first-child {
  flex-shrink: 0;
}

/* ============================================
   响应式适配
   ============================================ */
@media (min-width: 768px) {
  body {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    min-height: 100vh;
  }
}
