/* ============================================================
   R11 style.css — 全局样式 + CSS变量 + 响应式
   R3母版：原生CSS，无框架依赖
   ============================================================ */

/* ---- CSS自定义属性 (@property 支持翻页动画) ---- */
@property --rotate-x {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --tile-opacity {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

/* ---- CSS变量（默认值，由config.js动态覆盖） ---- */
:root {
  --festival-primary: #C41E3A;
  --festival-secondary: #FFD700;
  --festival-bg: #FFF9F0;
  --festival-text: #2C1810;
  --festival-accent: #8B0000;
  --festival-badge: #FF4444;
  --font-heading: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 24px rgba(0,0,0,0.12);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-heading);
  background: var(--festival-bg);
  color: var(--festival-text);
  transition: background var(--transition-smooth), color var(--transition-smooth);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  --contact-footer-h: 72px;
  --cta-bar-h: 72px;
  padding-bottom: calc(var(--cta-bar-h) + var(--contact-footer-h) + var(--safe-bottom));
}

/* ---- Section通用 ---- */
.section {
  padding: 40px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--festival-primary);
  text-align: center;
}

/* ---- 节日切换器 ---- */
.festival-switcher {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

.festival-switcher::-webkit-scrollbar {
  display: none;
}

.festival-tab {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all var(--transition-fast);
  color: var(--festival-text);
}

.festival-tab.active {
  background: var(--festival-primary);
  color: #fff;
  border-color: var(--festival-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.festival-tab:hover:not(.active) {
  border-color: var(--festival-primary);
}

/* ---- Hero区 ---- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 16px;
  position: relative;
  overflow: hidden;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--festival-primary);
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--festival-text);
  margin: 16px 0 24px;
  z-index: 1;
  opacity: 0.85;
}

.hero-countdown {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  z-index: 1;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  width: 64px;
  height: 72px;
  background: var(--festival-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 36px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  perspective: 200px;
}

.countdown-label {
  font-size: 12px;
  color: var(--festival-text);
  margin-top: 4px;
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  z-index: 1;
  margin-top: 8px;
}

.scroll-hint {
  position: absolute;
  bottom: 80px;
  font-size: 14px;
  color: var(--festival-text);
  opacity: 0.5;
  animation: bounce-down 2s infinite;
}

/* ---- 按钮样式 ---- */
.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--festival-primary), var(--festival-accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  padding: 14px 32px;
  background: #fff;
  color: var(--festival-primary);
  border: 2px solid var(--festival-primary);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--festival-primary);
  color: #fff;
}

.btn-outline {
  padding: 10px 24px;
  background: transparent;
  color: var(--festival-primary);
  border: 2px solid var(--festival-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--festival-primary);
  color: #fff;
}

/* ---- 秒杀区 ---- */
.session-timer {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--festival-badge);
  margin-bottom: 16px;
}

.session-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.session-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.session-tab.active {
  border-color: var(--festival-primary);
  background: var(--festival-primary);
  color: #fff;
}

.flash-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.flash-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast);
}

.flash-card:hover {
  box-shadow: var(--shadow-hover);
}

.flash-card.sold-out {
  opacity: 0.5;
  position: relative;
}

.flash-card.sold-out::after {
  content: '已售罄';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #999;
  border-radius: var(--radius-md);
}

.flash-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #f0f0f0;
}

.flash-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.flash-price-now {
  font-size: 22px;
  font-weight: 900;
  color: var(--festival-badge);
}

.flash-price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.flash-progress {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.flash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--festival-primary), var(--festival-badge));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.flash-progress-bar.near-end {
  background: linear-gradient(90deg, #FF4444, #FF0000);
  animation: pulse-bar 1s infinite;
}

.flash-card-sold {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.flash-btn {
  padding: 10px;
  background: var(--festival-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
  margin-top: auto;
}

.flash-btn:hover {
  transform: scale(1.03);
}

.flash-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ---- 优惠券区 ---- */
.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.coupon-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast);
  border-left: 4px solid var(--festival-primary);
}

.coupon-card:hover {
  box-shadow: var(--shadow-hover);
}

.coupon-card.claimed {
  opacity: 0.6;
}

.coupon-card.sold-out-card {
  opacity: 0.4;
  border-left-color: #ccc;
}

.coupon-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coupon-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--festival-badge);
}

.coupon-condition {
  font-size: 14px;
  color: #666;
}

.coupon-stock {
  font-size: 12px;
  color: #999;
}

.coupon-stock.low-stock {
  color: var(--festival-badge);
  font-weight: 700;
}

.coupon-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--festival-primary), var(--festival-accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.coupon-btn:hover {
  transform: scale(1.05);
}

.coupon-btn:disabled {
  background: #ccc;
}

.coupon-wallet {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--festival-primary);
  cursor: pointer;
  border: 1px dashed var(--festival-primary);
}

/* ---- 热门商品 ---- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.category-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab.active {
  border-color: var(--festival-primary);
  background: var(--festival-primary);
  color: #fff;
}

.product-grid {
  columns: 3 280px;
  column-gap: 16px;
}

.product-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast);
  position: relative;
}

.product-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.product-fav-btn.active {
  color: #FF2442;
  transform: scale(1.1);
}

/* ---- P1 实时热度 ---- */
.live-stats-bubble {
  position: absolute;
  right: 12px;
  bottom: 120px;
  z-index: 2;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse 1.5s infinite;
}

.live-stats-banner {
  text-align: center;
  font-size: 14px;
  color: var(--festival-primary);
  background: rgba(255,255,255,0.8);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ---- P1 互动入口 ---- */
.p1-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-red-rain {
  background: linear-gradient(135deg, #C41E3A, #FFD700) !important;
  color: #fff !important;
  border: none !important;
}

.hero-cta {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 360px;
}

/* ---- P1 红包雨 ---- */
.red-rain-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
}

#red-rain-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.red-rain-hud {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

.red-rain-hud .red-rain-close {
  pointer-events: auto;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
}

/* ---- P1 刮刮卡 ---- */
.scratch-modal {
  text-align: center;
}

.scratch-hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.scratch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#scratch-canvas {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-width: 100%;
  touch-action: none;
  cursor: crosshair;
}

.scratch-result {
  font-size: 16px;
  font-weight: 700;
  color: var(--festival-primary);
}

.scratch-result.hidden {
  display: none;
}

/* ---- P1 收藏 ---- */
.fav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

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

.empty-fav {
  text-align: center;
  color: #999;
  padding: 24px 0;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f0f0;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
  transition: transform var(--transition-fast);
}

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

.product-card-body {
  padding: 12px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.product-price-now {
  font-size: 20px;
  font-weight: 900;
  color: var(--festival-badge);
}

.product-price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.product-card-save {
  font-size: 12px;
  color: #4CAF50;
  font-weight: 600;
}

.product-card-tags {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.product-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tag-hot { background: #FFF0F0; color: #FF4444; }
.tag-new { background: #F0F0FF; color: #0066FF; }
.tag-gift { background: #FFF8E1; color: #FF9800; }
.tag-sale { background: #F0FFF0; color: #4CAF50; }
.tag-clear { background: #F5F5F5; color: #666; }

/* ---- 满减阶梯 ---- */
.tier-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tier-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  min-width: 120px;
}

.tier-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all var(--transition-smooth);
}

.tier-circle.reached {
  border-color: #4CAF50;
  background: #F0FFF0;
  color: #4CAF50;
}

.tier-circle.current {
  border-color: var(--festival-primary);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 16px rgba(0,0,0,0.1);
}

.tier-threshold {
  font-size: 14px;
  font-weight: 600;
}

.tier-discount {
  font-size: 16px;
  font-weight: 900;
  color: var(--festival-badge);
}

.tier-status {
  font-size: 12px;
  margin-top: 4px;
}

.tier-arrow {
  font-size: 24px;
  color: #ccc;
  margin: 0 -8px;
}

.cart-amount {
  text-align: center;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--festival-text);
}

.cart-hint {
  text-align: center;
  font-size: 14px;
  color: var(--festival-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---- 海报生成器 ---- */
.poster-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#poster-canvas {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  max-width: 100%;
  height: auto;
}

.poster-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.template-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.template-btn.active {
  border-color: var(--festival-primary);
  background: rgba(255,255,255,0.8);
  color: var(--festival-primary);
  font-weight: 700;
}

.poster-text-input {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.poster-text-input:focus {
  outline: none;
  border-color: var(--festival-primary);
}

/* ---- 底部CTA Bar ---- */
.cta-bar {
  position: fixed;
  bottom: calc(var(--contact-footer-h) + var(--safe-bottom));
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  z-index: 100;
  height: 72px;
}

.cta-bar.hero-overlay {
  background: rgba(255,255,255,0.6);
}

.btn-cta-secondary {
  flex: 1;
  padding: 12px;
  background: #fff;
  color: var(--festival-primary);
  border: 2px solid var(--festival-primary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: pulse-border 2s infinite;
}

.btn-cta-primary {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--festival-primary), var(--festival-accent));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.btn-cta-primary:hover {
  transform: scale(1.02);
}

/* ---- 弹窗 ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 300;
  pointer-events: none;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .countdown-num {
    width: 52px;
    height: 60px;
    font-size: 28px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }
  .product-grid { columns: 2 1fr; }
  .flash-products {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
  }
  .flash-card {
    min-width: 200px;
    scroll-snap-align: start;
  }
  .tier-progress {
    flex-direction: column;
  }
  .tier-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .section { padding: 24px 12px; }
  .section-title { font-size: 20px; }
  .hero-title { font-size: 28px; }
  .countdown-num {
    width: 44px;
    height: 52px;
    font-size: 24px;
  }
  .countdown-block {
    gap: 2px;
  }
  .product-grid { columns: 1; }
  .session-tabs, .festival-switcher {
    justify-content: flex-start;
  }
  .flash-products {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ---- H5 标准底栏 ---- */
.contact-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 850;
  background: #1a1a1a;
  padding: .55rem .75rem calc(.55rem + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-footer__btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-footer__cta {
  background: #c41e1e !important;
  color: #fff !important;
  text-align: center;
  padding: .6rem .35rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-footer__btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: .6rem .35rem;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.contact-footer__brand {
  text-align: center;
  font-size: .62rem;
  color: rgba(255, 255, 255, 0.5);
  margin: .4rem 0 0;
}

html.has-contact-footer .zw-root .zw-fab {
  bottom: calc(var(--contact-footer-h) + var(--cta-bar-h) + var(--safe-bottom));
}

/* ---- 分享页 ---- */
body.share-page {
  padding-bottom: calc(var(--contact-footer-h) + var(--safe-bottom));
}

.share-shell {
  max-width: 480px;
  margin: 0 auto;
}

.share-hero {
  text-align: center;
  padding: 24px 16px 32px;
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 8px;
}

.share-festival-tabs {
  margin-bottom: 16px;
  justify-content: flex-start;
}

.share-eyebrow {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
}

.share-emoji {
  font-size: 64px;
  line-height: 1;
  margin: 8px 0;
}

.share-subtitle {
  font-size: 18px;
  margin: 8px 0 20px;
  opacity: 0.9;
}

.share-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.share-stat {
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
}

.share-stat strong {
  display: block;
  font-size: 18px;
  color: var(--festival-primary);
}

.share-stat span {
  font-size: 11px;
  color: var(--festival-text);
  opacity: 0.75;
}

.share-section {
  padding: 24px 16px;
}

.share-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-product-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.share-product-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.share-product-body h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.share-product-body p {
  font-size: 14px;
}

.share-product-body s {
  color: #999;
  font-size: 12px;
  margin-left: 6px;
}

.share-product-sold {
  font-size: 12px;
  color: #666;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-block {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
}

.share-canvas-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

#share-page-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.poster-share-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.poster-share-link a {
  color: var(--festival-primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 480px) {
  .share-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
