/* ============================================
   种草卡 · 多门店主题系统 v5
   支持100+门店独立主题配色
   主题变量通过 JS 动态注入
   ============================================ */

/* ===== 默认主题（暖橙美食风） ===== */
:root {
  --theme-primary: #F97316;
  --theme-primary-dark: #EA580C;
  --theme-primary-light: #FF9A3C;
  --theme-gradient: linear-gradient(160deg, #FF9A3C 0%, #F97316 45%, #E85D3A 100%);
  --theme-bg: #FFF8F1;
  --theme-text-on-primary: #FFFFFF;
  
  /* 衍生色 */
  --theme-primary-50: #FFF8F2;
  --theme-primary-100: #FFE9D6;
  --theme-primary-200: #FFD0A8;
  --theme-primary-300: #FFB078;
  --theme-primary-400: #FF8F4F;
  --theme-primary-500: #F97316;
  --theme-primary-600: #EA580C;
  --theme-primary-700: #C2410C;
}
/* ============================================
   种草卡 · 温馨美食风设计系统 v4
   餐饮场景专属 · 暖橙焦糖色调
   ============================================ */

:root {
  /* ===== 主色：暖橙焦糖 ===== */
  --primary-50: #FFF8F2;
  --primary-100: #FFE9D6;
  --primary-200: #FFD0A8;
  --primary-300: #FFB078;
  --primary-400: #FF8F4F;
  --primary-500: #F97316;
  --primary-600: #EA580C;
  --primary-700: #C2410C;
  
  /* 主渐变：暖橙 → 珊瑚红（美食感） */
  --primary-gradient: linear-gradient(160deg, #FF9A3C 0%, #F97316 45%, #E85D3A 100%);
  --primary-gradient-soft: linear-gradient(135deg, #FFB77A, #FF8A4D);
  
  /* 辅助色 */
  --accent-amber: #F59E0B;
  --accent-rose: #FB7185;
  --accent-green: #10B981;
  --accent-green-dark: #059669;
  --accent-teal: #14B8A6;
  
  /* 中性色（暖灰调） */
  --warm-50: #FFFBF7;
  --warm-100: #FFF5ED;
  --warm-200: #FDE8D4;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917;
  
  /* 背景系统 */
  --bg-page: #FFF8F1;
  --bg-card: #FFFFFF;
  --bg-soft: #FFFDF9;
  
  /* 文字系统 */
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-tertiary: #A8A29E;
  --text-on-primary: #FFFFFF;
  
  /* 圆角体系（美食风偏圆润） */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-full: 9999px;
  
  /* 阴影体系（暖调阴影） */
  --shadow-xs: 0 1px 2px rgba(194, 65, 12, 0.04);
  --shadow-sm: 0 2px 10px rgba(194, 65, 12, 0.06);
  --shadow-md: 0 6px 20px rgba(194, 65, 12, 0.08);
  --shadow-lg: 0 12px 32px rgba(194, 65, 12, 0.10);
  --shadow-xl: 0 24px 56px rgba(194, 65, 12, 0.14);
  --shadow-primary: 0 8px 24px rgba(249, 115, 22, 0.35);
  --shadow-primary-sm: 0 4px 12px rgba(249, 115, 22, 0.28);
  --shadow-card: 0 4px 18px rgba(120, 113, 108, 0.08);
  
  /* 动效曲线 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --dur-slower: 600ms;
  
  /* 间距系统 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: 
    linear-gradient(180deg, rgba(28,25,23,0.65) 0%, rgba(28,25,23,0.50) 25%, rgba(28,25,23,0.70) 70%, rgba(28,25,23,0.80) 100%),
    url("../images/bg-girl.jpg") center top / cover no-repeat fixed;
  background-color: #1C1917;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰：温暖的食品感纹理 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(28,25,23,0.3) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   骨架屏
   ============================================ */
#skeleton {
  position: relative;
  z-index: 1;
}

.skeleton-header {
  padding: 48px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skeleton-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.35), rgba(255,255,255,0.2));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 2px solid rgba(255,255,255,0.4);
}

.skeleton-line {
  height: 18px;
  border-radius: 9px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.35), rgba(255,255,255,0.2));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card-wrap {
  padding: 0 var(--s-4);
  margin-top: -60px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.skeleton-card {
  height: 92px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--warm-100), var(--warm-50), var(--warm-100));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 90px;
  right: 50px;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gray-100), #fafaf9, var(--gray-100));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ============================================
   页面显示控制
   ============================================ */
#main-content {
  display: none;
  position: relative;
  z-index: 1;
}

#main-content.show {
  display: block;
  animation: pageIn var(--dur-slower) var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   门店头部
   ============================================ */
.shop-header {
  color: #fff;
  padding: 52px 24px 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 装饰光斑 */
.shop-header::before,
.shop-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shop-header::before {
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  animation: floatOrb 8s ease-in-out infinite;
}

.shop-header::after {
  bottom: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,236,200,0.12), transparent 65%);
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -15px); }
}

/* 小装饰点 */
.shop-header .deco-dots {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 6px;
  opacity: 0.35;
}

.shop-header .deco-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.shop-logo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.shop-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  object-fit: cover;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  transition: transform var(--dur-base) var(--ease-bounce);
}

.shop-logo:active {
  transform: scale(0.94);
}

.shop-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFE4B5 50%, #FFD700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 4px 16px rgba(0,0,0,0.3));
  margin-bottom: 8px;
}

.shop-welcome {
  font-size: 18px;
  opacity: 1;
  font-weight: 900;
  color: #FFE066;
  position: relative;
  z-index: 1;
  letter-spacing: 0.8px;
  text-shadow: 
    0 1px 3px rgba(0,0,0,0.4),
    0 3px 12px rgba(0,0,0,0.5);
}

/* ============================================
   任务卡片列表
   ============================================ */
.cards {
  padding: 0 var(--s-4) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: -72px;
  position: relative;
  z-index: 2;
}

/* 单张卡片 */
.card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: rgba(255, 255, 255, 0.92);
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 卡片顶部高光线 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
  pointer-events: none;
}

.card:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-md);
}

/* 卡片图标 - 统一白色画布风格 */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  border: 1px solid rgba(0,0,0,0.06);
}

.card:active .card-icon {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 图标内品牌色点缀（左上角小色块） */
.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 0 0 10px 0;
  z-index: 2;
}

/* 图标 Logo 容器 */
.card-icon::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card-icon > * {
  position: relative;
  z-index: 1;
}

/* 卡片内容区 */
.card-body {
  flex: 1;
  min-width: 0;
  padding-right: var(--s-2);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 400;
}

/* 奖励标签 */
.card-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.card-reward::before {
  content: '🎁';
  font-size: 10px;
}

/* 右侧箭头/状态区 */
.card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.card-arrow {
  color: var(--gray-300);
  font-size: 22px;
  font-weight: 300;
  transition: all var(--dur-fast) var(--ease-out);
  line-height: 1;
}

.card:active .card-arrow {
  transform: translateX(5px);
  color: var(--primary-500);
}

/* ============================================
   平台品牌配色 - 统一白色画布 + 品牌色点缀
   ============================================ */

/* 抖音 */
.card[data-platform="douyin"] .card-icon::before {
  background: #000000;
}
.card[data-platform="douyin"] .card-icon::after {
  background-image: url('/images/icons/douyin.png');
}

/* 抖音极速版 */
.card[data-platform="douyinLite"] .card-icon::before {
  background: #000000;
}
.card[data-platform="douyinLite"] .card-icon::after {
  background-image: url('/images/icons/douyin.png');
}

/* 小红书 */
.card[data-platform="xhs"] .card-icon::before {
  background: #FF2442;
}
.card[data-platform="xhs"] .card-icon::after {
  background-image: url('/images/icons/xhs.png');
}

/* 大众点评 */
.card[data-platform="dianping"] .card-icon::before {
  background: #FF6600;
}
.card[data-platform="dianping"] .card-icon::after {
  background-image: url('/images/icons/dianping.png');
}

/* 美团 */
.card[data-platform="meituan"] .card-icon::before {
  background: #FFC300;
}
.card[data-platform="meituan"] .card-icon::after {
  background-image: url('/images/icons/meituan.png');
}

/* 微信 */
.card[data-platform="wechat"] .card-icon::before {
  background: #07C160;
}
.card[data-platform="wechat"] .card-icon::after {
  background-image: url('/images/icons/wechat.png');
}

/* 视频号 */
.card[data-platform="sph"] .card-icon::before {
  background: #119955;
}
.card[data-platform="sph"] .card-icon::after {
  background-image: url('/images/icons/sph.png');
}

/* WiFi */
.card[data-platform="wifi"] .card-icon::before {
  background: #0EA5E9;
}
.card[data-platform="wifi"] .card-icon::after {
  background-image: url('/images/icons/wifi.png');
}

/* ============================================
   已完成状态
   ============================================ */
.card.done {
  opacity: 0.7;
  background: var(--bg-soft);
  border-color: var(--warm-200);
  box-shadow: var(--shadow-xs);
}

.card.done .card-icon {
  opacity: 0.6;
  box-shadow: var(--shadow-xs);
  filter: grayscale(0.5);
}

.card.done .card-title,
.card.done .card-desc {
  color: var(--text-tertiary);
}

.card.done .card-reward {
  background: var(--gray-100);
  color: var(--gray-400);
}

.card.done .card-reward::before {
  content: '✓';
}

/* 完成勾选标 */
.card.done .card-action {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
  position: relative;
}

.card.done .card-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.card.done .card-arrow {
  display: none;
}

/* ============================================
   卡片入场动画（错落有致）
   ============================================ */
.card {
  animation: cardIn var(--dur-slow) var(--ease-out) backwards;
}

.cards .card:nth-child(1) { animation-delay: 0.08s; }
.cards .card:nth-child(2) { animation-delay: 0.14s; }
.cards .card:nth-child(3) { animation-delay: 0.20s; }
.cards .card:nth-child(4) { animation-delay: 0.26s; }
.cards .card:nth-child(5) { animation-delay: 0.32s; }
.cards .card:nth-child(6) { animation-delay: 0.38s; }
.cards .card:nth-child(7) { animation-delay: 0.44s; }
.cards .card:nth-child(8) { animation-delay: 0.50s; }

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    box-shadow: none;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-card);
  }
}

/* 完成弹跳 */
.card.bounce .card-action {
  animation: donePop 0.5s var(--ease-bounce);
}

@keyframes donePop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* 卡片ripple效果 */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* 进度条 */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--s-4) var(--s-2);
  position: relative;
  z-index: 2;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: 2px;
  transition: width 0.5s var(--ease-out);
}

.progress-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

/* 全部完成庆祝 */
.celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  display: none;
}

.celebration.show {
  display: block;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0;
  animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ============================================
   安全提示
   ============================================ */
.safety-tip {
  text-align: center;
  padding: var(--s-4) var(--s-5) var(--s-2);
  position: relative;
  z-index: 1;
}

.safety-tip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   微信遮罩
   ============================================ */
.wechat-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 5, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wechat-mask.show {
  display: flex;
  animation: fadeIn var(--dur-base) var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mask-content {
  background: #fff;
  border-radius: var(--r-2xl);
  padding: 36px 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-xl);
  animation: popIn var(--dur-slow) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.mask-content::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-50);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mask-icon {
  font-size: 52px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.mask-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.mask-tip {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.copy-btn {
  width: 100%;
  background: linear-gradient(180deg, rgba(249,115,22,0.15) 0%, rgba(255,154,60,0.25) 40%, rgba(255,248,241,0.95) 85%, var(--bg-page) 100%);
  color: #fff;
  border: none;
  padding: 15px 24px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-primary);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.copy-btn:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-primary-sm);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.mask-close {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

/* ============================================
   底部
   ============================================ */
.footer {
  text-align: center;
  padding: var(--s-4) var(--s-5) var(--s-8);
  position: relative;
  z-index: 1;
}

.footer-tip {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  opacity: 1;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(28, 25, 23, 0.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 500;
  animation: toastIn 0.3s var(--ease-bounce);
  max-width: 80%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* ============================================
   弹窗组件系统
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 12, 0.55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeIn var(--dur-base) var(--ease-out);
}

.modal-content {
  background: linear-gradient(180deg, #FFFBF5 0%, #FFF5EB 100%);
  border-radius: 28px;
  padding: 28px 22px 22px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(28, 20, 12, 0.35),
    0 8px 24px rgba(28, 20, 12, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: popIn var(--dur-slow) var(--ease-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 60, 0.15) 0%, transparent 70%);
  opacity: 1;
}

.modal-content::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  opacity: 1;
}

.modal-emoji {
  font-size: 44px;
  margin-bottom: 10px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.modal-btn {
  width: 100%;
  border: none;
  padding: 14px 24px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

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

.modal-btn.primary {
  background: linear-gradient(135deg, #FF9A3C 0%, #F97316 50%, #EA580C 100%);
  box-shadow: 
    0 6px 20px rgba(249, 115, 22, 0.4),
    0 2px 8px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.modal-btn.secondary {
  background: var(--warm-100);
  color: var(--text-secondary);
  box-shadow: none;
  margin-top: 8px;
}

.modal-btn.success {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.modal-btn.info {
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.modal-btn.warning {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.modal-btn.copy-btn {
  background: linear-gradient(135deg, #FF9A3C 0%, #F97316 50%, #EA580C 100%);
  box-shadow: 
    0 6px 20px rgba(249, 115, 22, 0.4),
    0 2px 8px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.modal-btn.copy-btn.copied {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.modal-btn.hidden {
  display: none;
}

.copy-btn-icon {
  margin-right: 6px;
  font-size: 18px;
}

.modal-step-box {
  background: var(--warm-50);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--warm-100);
}

.modal-step-box p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.6;
}

/* 错误页面重试按钮 */
.error-page {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.error-emoji {
  font-size: 56px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 24px;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.retry-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}

/* 复制状态文字 */
.copy-success {
  color: var(--accent-green-dark);
  font-weight: 600;
}

.copy-fail {
  color: var(--accent-amber);
  font-weight: 600;
}

/* ============================================
   WiFi 弹窗专属
   ============================================ */
.wifi-info-item {
  background: var(--warm-50);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 10px;
  text-align: left;
  border: 1px solid var(--warm-100);
  position: relative;
  z-index: 1;
}

.wifi-info-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wifi-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: 1px;
}

/* ============================================
   响应式适配
   ============================================ */

/* 小屏手机（如 SE） */
@media (max-width: 340px) {
  .shop-header {
    padding: 40px 20px 88px;
  }
  .shop-logo {
    width: 72px;
    height: 72px;
  }
  .shop-name {
    font-size: 22px;
  }
  .card {
    padding: var(--s-4);
    gap: var(--s-3);
  }
  .card-icon {
    width: 52px;
    height: 52px;
  }
  .cards {
    margin-top: -60px;
    gap: var(--s-3);
    padding: 0 var(--s-3) var(--s-5);
  }
}

/* 大屏手机 */
@media (min-width: 400px) {
  .cards {
    padding: 0 18px var(--s-6);
    gap: var(--s-4);
  }
  .card {
    padding: 20px;
    gap: 18px;
  }
  .card-icon {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   减少动效偏好（无障碍）
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


