/* 🙈 应用户要求隐藏 Header 与 Footer 信任卡片，保留底部版权与锁定跑马灯 */
.store-header,
.footer-container {
  display: none !important;
}

.store-footer {
  background: transparent !important;
  border-top: none !important;
  padding: 20px 0 30px !important;
}

.footer-bottom {
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 16px !important;
}

:root {
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
  --accent-cyan: #0284c7;
  --accent-green: #10b981;
  --accent-amber: #d97706;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html, body, * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* 📢 顶部动态跑马灯公告栏 (吸顶锁定) */
.top-announcement {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.announcement-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.announce-pinned-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  z-index: 2;
  white-space: nowrap;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.marquee-window {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: seamlessMarquee 26s linear infinite;
  will-change: transform;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.announcement-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 12px;
  padding-right: 24px;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.announce-text {
  color: #1e40af;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.2 !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.announce-divider {
  color: #93c5fd;
  margin: 0 6px;
  font-size: 12px !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

@keyframes seamlessMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Header Navbar 导航 (支持对称居中布局) */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.logo-icon.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  color: var(--primary-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.online-support-tag {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

/* 搜索框行 */
.search-box-row {
  width: 100%;
}

.search-box-wrapper {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-box-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* 桌面端 (>=768px) 经典 3 段对称居中布局 */
@media (min-width: 768px) {
  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
  }

  .search-box-row {
    display: flex;
    justify-content: center;
  }

  .search-box-wrapper {
    max-width: 480px;
  }
}

/* Main Content Layout */
.store-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 16px;
}

.features-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Category Filter Bar */
.category-bar-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.category-bar-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-bar {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.cat-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.cat-btn.active, .cat-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Products Grid & White Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.loading-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.product-icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.product-badge {
  background: #fef3c7;
  color: var(--accent-amber);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid #fde68a;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* 库存进度条组件 */
.stock-bar-wrapper {
  margin-bottom: 14px;
}

.stock-info-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stock-progress-track {
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.stock-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
}

.price-box {
  display: flex;
  flex-direction: column;
}

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

.price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-blue);
}

.buy-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: opacity 0.2s, transform 0.1s;
}

.buy-btn:hover {
  opacity: 0.95;
}

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

/* Store Footer 样式 */
.store-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-col {
  max-width: 380px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.crypto-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.crypto-tag {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--primary-blue);
}

.guarantee-item {
  font-size: 13px;
  color: #475569;
}

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  padding: 16px 20px;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 11px;
  color: #94a3b8;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 扫码授权专属卡片样式 (QRCode Card) */
.qrcode-card {
  align-items: center;
  text-align: center;
}

.center-title {
  justify-content: center;
}

.qrcode-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
}

.qrcode-container {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 6px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#qrcode-box {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode-box img, #qrcode-box canvas {
  width: 180px !important;
  height: 180px !important;
  border-radius: 8px;
}

.qrcode-badge {
  position: absolute;
  bottom: 8px;
  background: #eff6ff;
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

.supported-wallets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.wallet-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Checkout Wallet Selector Chips */
.wallet-select-section {
  margin: 12px 0 14px 0;
  width: 100%;
}

.wallet-select-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-align: left;
}

.wallet-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.wallet-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.chip-icon {
  font-size: 16px;
}

/* Loading Detector Animation Modal Styles */
.loading-phase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  text-align: center;
}

.loading-radar-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.radar-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  animation: radarPulse 1.5s infinite ease-out;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.loading-icon-pulse {
  font-size: 32px;
  z-index: 2;
  animation: iconBounce 1s infinite alternate ease-in-out;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.loading-progress-bar {
  width: 100%;
  max-width: 240px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.1s linear;
}

/* Mobile Wallet DeepLink Grid */
.mobile-wallet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 12px 0 16px 0;
}

@media (min-width: 640px) {
  .mobile-wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wallet-launch-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.wallet-launch-btn:hover, .wallet-launch-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

.wallet-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.wallet-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.wallet-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.launch-arrow {
  font-size: 14px;
  color: #94a3b8;
  font-weight: bold;
}

.wallet-launch-btn.bitget-theme:hover { border-color: #38bdf8; background: #f0f9ff; }
.wallet-launch-btn.tp-theme:hover { border-color: #3b82f6; background: #eff6ff; }
.wallet-launch-btn.tronlink-theme:hover { border-color: #8b5cf6; background: #f5f3ff; }
.wallet-launch-btn.okx-theme:hover { border-color: #10b981; background: #ecfdf5; }

.qrcode-divider {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  line-height: 0.1em;
  margin: 12px 0 16px 0;
}

.qrcode-divider span {
  background: #fff;
  padding: 0 10px;
  font-size: 11px;
  color: #94a3b8;
}

.copy-url-row {
  width: 100%;
}

.copy-btn {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #e2e8f0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-row h3 {
  font-size: 17px;
  font-weight: 700;
}

.badge-tag {
  background: #e0f2fe;
  color: var(--accent-cyan);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.buy-product-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-icon {
  font-size: 28px;
}

.buy-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

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

.quantity-selector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  width: 20px;
}

.qty-num {
  font-weight: 700;
  color: var(--text-main);
}

.order-price-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.price-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.price-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
  color: var(--text-main);
  font-weight: 700;
}

.total-val {
  font-size: 18px;
  color: var(--primary-blue);
}

.agree-terms-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.agree-terms-row a {
  color: var(--primary-blue);
  text-decoration: none;
}

.confirm-pay-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.safe-tips {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Toast 通知 */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================================================================
   📱 全端响应式高颜值适配重构 (@media max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {
  /* 1. Header 顶栏移动端紧凑对齐 */
  .store-header {
    padding: 12px;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-box-row,
  .search-box-wrapper {
    width: 100%;
  }

  /* 2. Hero 移动端精简卡片 */
  .hero-banner {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .features-bar {
    gap: 6px;
  }

  .feature-item {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* 3. Footer 底部响应式卡片双列化重构 */
  .store-footer {
    padding-top: 20px;
    background: #f8fafc;
  }

  .footer-container {
    padding: 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .brand-col {
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .crypto-badges {
    justify-content: center;
  }

  /* 2 大功能分类卡片及内嵌双列并排微胶囊按钮 */
  .footer-col:not(.brand-col) {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  }

  .footer-title {
    font-size: 13px;
    color: var(--primary-blue);
    border-left: 3px solid var(--primary-blue);
    padding-left: 8px;
    margin-bottom: 10px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .footer-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .footer-links li a::after {
    content: "›";
    font-size: 15px;
    color: #94a3b8;
    font-weight: 700;
  }

  .footer-links li a:active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--primary-blue);
    transform: scale(0.98);
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* 4. 移动端分类 TAB 栏无缝滑动 */
  .category-bar-container {
    padding: 4px 0;
  }

  .cat-btn {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  /* 5. 移动端商品列表全面重构为 1-Column 全屏自适应响应式列表 (类似于原生 App) */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .goods-item-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 10px;
  }

  .goods-thumb-box {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .goods-title-text {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
  }

  .goods-tag-row {
    gap: 3px;
  }

  .goods-tag {
    font-size: 10px;
    padding: 1px 4px;
  }

  .goods-price-val {
    font-size: 14px;
    font-weight: 700;
  }
}

/* Pay Page Cashier Styles */
.pay-page-body {
  background: #f8fafc;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pay-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.pay-header-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: #2563eb;
}

.pay-logo-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.pay-main-container {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.pay-cashier-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 24px;
}

.pay-order-summary {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.order-item-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.item-icon {
  font-size: 32px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.item-info .item-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.item-info .item-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.order-price-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.total-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.total-amount-row .total-price {
  font-size: 20px;
  font-weight: 900;
  color: #2563eb;
}

.pay-wallet-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

.current-wallet-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 10px;
}

.pay-wallet-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pay-wallet-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-wallet-btn:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

.pay-wallet-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.pay-phase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
}

.loading-status-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 14px;
  margin-bottom: 4px;
}

.loading-status-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.relaunch-btn {
  margin-top: 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.relaunch-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qr-phase-title h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.qr-phase-title p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px 0;
}

.pay-safe-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #10b981;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* ⚡ 超感 Web3 动态唤醒与等待对话框视觉样式 */
.loading-radar-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.radar-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #2563eb;
  animation: radarRipple 1.8s infinite ease-out;
}

@keyframes radarRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.loading-icon-pulse {
  font-size: 36px;
  z-index: 2;
  animation: floatPulse 2s infinite ease-in-out;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.status-badge-pill.warning {
  background: #fffbe6;
  border-color: #ffe58f;
  color: #d48806;
}

.status-badge-pill.success {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #389e0d;
}

/* 🛍️ 下单须知与售前规则卡片 (参照 jiemaa.xyz 风格) */
.notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  margin-bottom: 16px;
}

.notice-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #3b82f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.notice-item .highlight {
  color: #1d4ed8;
  font-weight: 700;
}

.notice-item .warning {
  color: #ef4444;
  font-weight: 700;
}

.notice-contact-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 12px;
  font-size: 13px;
  color: #854d0e;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  width: fit-content;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.tg-support-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* 🏷️ 分类导航与展关按键 (参照 jiemaa.xyz 风格) */
.category-grid-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.cat-grid-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.cat-grid-btn:hover {
  border-color: #3b82f6;
  color: #2563eb;
  background: #eff6ff;
}

.cat-grid-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.cat-grid-btn.hidden-cat {
  display: none;
}

.toggle-cat-btn-container {
  text-align: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.toggle-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-cat-btn:hover {
  background: #dbeafe;
}

/* 📦 商品卡片多维 Badge 标签与布局 (100% 参照图二 jiemaa.xyz 标杆样式) */
.goods-item-card {
  background: #ffffff;
  border: 1px solid #f4f4f4;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(32, 35, 51, 0.04), 0 2px 4px rgba(32, 35, 51, 0.02);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.goods-item-card:hover {
  transform: translateY(-2px);
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(32, 35, 51, 0.08);
}

.goods-thumb-box {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(27, 23, 67, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}

.goods-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.goods-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.goods-title-text {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods-tag-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.goods-tag {
  font-size: 11px;
  font-weight: 400;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid;
  background: transparent !important;
  white-space: nowrap;
}

.goods-tag.success {
  color: #18bc9c;
  border-color: #18bc9c;
}

.goods-tag.danger {
  color: #ed3c2b;
  border-color: #ed3c2b;
}

.goods-tag.warning {
  color: #e08d09;
  border-color: #e08d09;
}

.goods-price-row {
  display: flex;
  align-items: center;
  margin-top: 1px;
}

/* 💳 参照 jiemaa.xyz 1:1 收银台页面视觉样式 */
.pay-warning-banner {
  background: #fde8e8;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pay-qr-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-qr-badge {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.pay-order-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.pay-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-order-label {
  color: #64748b;
  font-weight: 500;
}

.pay-order-val {
  color: #1e293b;
  font-weight: 600;
  word-break: break-all;
}

.pay-wallet-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  text-align: left;
}

.pay-wallet-radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.pay-wallet-radio-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-wallet-radio-item:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.pay-wallet-radio-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.radio-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.radio-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pay-wallet-radio-item.active .radio-dot {
  border-color: #2563eb;
  background: #2563eb;
}

.pay-wallet-radio-item.active .radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.pay-action-btn {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: background 0.2s, transform 0.1s;
}

.pay-action-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pay-action-btn:disabled,
.pay-action-btn[disabled],
.pay-action-btn.disabled {
  background: #94a3b8 !important;
  color: #f1f5f9 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.75 !important;
}

/* 🎨 极简高端收银台 Loading 连接卡片组件 */
.pay-loading-box {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.07), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.pay-loading-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #10b981);
}

.loading-status-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.4;
}

.wallet-badge-chip {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.loading-status-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 400;
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.status-badge-pill.warning {
  background: #fffbe6;
  border-color: #ffe58f;
  color: #d48806;
}

.status-badge-pill.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.6s infinite ease-out;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.loading-progress-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #10b981);
  border-radius: 2px;
  transition: width 0.3s ease;
}
