/* ============================================================
   信用卡推广平台 - 客户端样式（复刻妙搭版本）
   设计规范：主色#2563EB，橙色#F97316，圆角8-16px
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* 所有可点击元素立即响应 */
button, .category-tab, .product-card, .category-ad-card, .nav-item, .service-item, .profile-list-item, .bank-progress-item {
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  transition: transform 0.05s ease, opacity 0.05s ease;
}

button:active, .category-tab:active, .product-card:active, .category-ad-card:active, .nav-item:active, .service-item:active, .profile-list-item:active, .bank-progress-item:active {
  transform: scale(0.97);
  opacity: 0.8;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

:root {
  --primary: #2563EB;
  --primary-light: #64B5F6;
  --primary-dark: #1565C0;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --accent: #F97316;
  --accent-100: #FFEDD5;
  --foreground: #1F2937;
  --muted-foreground: #6B7280;
  --background: #F9FAFB;
  --secondary-bg: #F3F4F6;
  --border: #E5E7EB;
  --success: #16A34A;
  --destructive: #EF4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  padding-bottom: 64px;
}

/* ========== 下拉刷新（妙搭风格） ========== */
#app {
  position: relative;
  transition: padding-top 0.3s ease-out;
}

.pull-refresh {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 200;
  pointer-events: none;
  transition: top 0.3s ease-out;
  opacity: 0;
}

.pull-refresh.visible {
  opacity: 1;
}

.pull-refresh-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #E5E7EB;
  border-top-color: #2563EB;
  border-radius: 50%;
  transition: transform 0.15s ease;
  display: inline-block;
}

.pull-refresh-icon.rotate {
  transform: rotate(180deg);
}

.pull-refresh-icon.refreshing {
  animation: spin 0.8s linear infinite;
}

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

.pull-refresh-text {
  font-size: 12px;
  color: #6B7280;
}

/* ========== 顶部吸顶广告条 ========== */
.top-ad {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  background: white;
}

body.has-top-ad {
  padding-top: 88px;
}

.top-ad .ad-content {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #EFF6FF, #DBEAFE);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.top-ad .ad-qrcode {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.top-ad .ad-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-ad .ad-qrcode .qrcode-placeholder {
  font-size: 10px;
  color: var(--muted-foreground);
}

.top-ad .ad-text {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}

.top-ad .ad-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-ad .ad-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-top: 2px;
}

.top-ad .ad-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}

.top-ad .ad-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.has-top-ad #app {
  padding-top: 0;
}

/* ========== 分类Tab ========== */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 16px;
}

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

.category-tab {
  background: var(--secondary-bg);
  color: var(--muted-foreground);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab.active {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

/* ========== 搜索框 ========== */
.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  margin-top: 12px;
  align-items: center;
}

.search-bar .search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 36px;
  padding-left: 36px;
  padding-right: 12px;
  background: var(--secondary-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

.search-bar button {
  height: 36px;
  padding: 0 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========== 分类广告位 ========== */
.category-ads {
  margin: 12px 12px 0;
}

.category-ad-card {
  display: flex;
  background: white;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  padding: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  margin-bottom: 12px;
  align-items: stretch;
}

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

.category-ad-card .ad-image {
  width: 50%;
  height: 200px;
  border-radius: 6px;
  background: #F3F4F6;
  object-fit: contain;
  flex-shrink: 0;
}

.category-ad-card .ad-image-placeholder {
  width: 50%;
  height: 200px;
  border-radius: 6px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 14px;
  flex-shrink: 0;
}

.category-ad-card .ad-info {
  width: 50%;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8px;
}

.category-ad-card .ad-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.category-ad-card .ad-info-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* ========== 产品列表（3列网格） ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 12px 16px;
}

.product-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  padding: 0 10px 10px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card:active {
  opacity: 0.8;
}

.product-card .product-logo {
  width: 100px;
  height: 100px;
  margin-top: 12px;
  border-radius: 50%;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.product-card .product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .product-bank {
  font-size: 11px;
  color: #6B7280;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
}

.product-card .product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 4px;
  line-height: 1.3;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-tag {
  font-size: 10px;
  background: #F3F4F6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-reward {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  margin-bottom: 12px;
}

.product-grid .loading,
.product-grid .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted-foreground);
  padding: 40px 0;
}

/* ========== 底部导航栏 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 底部备案号 */
.footer-icp {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
  padding: 6px 0;
  background: #F9FAFB;
  z-index: 49;
}

.footer-icp a {
  color: #9CA3AF;
  text-decoration: none;
}

.footer-icp a:hover {
  color: #6B7280;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.bottom-nav .nav-icon {
  width: 20px;
  height: 20px;
}

.bottom-nav .nav-item span {
  font-size: 11px;
  margin-top: 4px;
}

/* ========== 产品详情页 ========== */
.product-detail-page {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--secondary-bg);
  z-index: 100;
  overflow-y: auto;
  display: none;
  padding-bottom: 80px;
}

.product-detail-page.active {
  display: block;
}

.detail-header {
  background: linear-gradient(to bottom, #3B82F6, #1D4ED8);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  color: white;
}

.detail-nav .back-btn,
.detail-nav .share-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-nav .detail-title {
  font-size: 16px;
  font-weight: 500;
}

.detail-product-info {
  display: flex;
  align-items: center;
  padding: 0 16px 16px;
  color: white;
}

.detail-product-info .product-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.detail-product-info .product-text {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}

.detail-product-info .product-name {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-product-info .product-bank {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.detail-product-info .product-reward-wrap {
  text-align: right;
}

.detail-product-info .reward-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.detail-product-info .reward-amount {
  font-size: 20px;
  font-weight: bold;
  color: #FDE047;
}

.detail-section {
  margin: 12px 12px 0;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.detail-section.promotion-card {
  margin-top: -12px;
  position: relative;
  z-index: 10;
}

.detail-section .section-title {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.detail-section .section-content {
  padding: 0 16px;
}

.detail-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .row-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.detail-row .row-value {
  flex: 1;
  font-size: 14px;
  color: var(--foreground);
  word-break: break-word;
  line-height: 1.6;
}

.detail-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.detail-step .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-step .step-text {
  flex: 1;
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.6;
}

.promotion-tag {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 8px;
}

.promotion-tag .tag {
  background: #DCFCE7;
  color: #15803D;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
}

.promotion-tag .tag.limited {
  background: #FFEDD5;
  color: #C2410C;
}

.promotion-tag .tag-text {
  font-size: 14px;
  color: var(--foreground);
}

.detail-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 101;
}

.detail-footer .apply-btn {
  width: 100%;
  height: 48px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.detail-footer .apply-btn:active {
  background: #2563EB;
}

/* ========== 我的页面 ========== */
/* ========== 页面切换 ========== */
.home-page {
  display: none;
  padding-bottom: 80px;
}

.home-page.active {
  display: block;
}

.profile-page {
  display: none;
  padding-bottom: 80px;
}

.profile-page.active {
  display: block;
}

.profile-header {
  background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
  padding: 48px 24px 80px;
}

.profile-user-info {
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-text {
  flex: 1;
  margin-left: 16px;
}

.profile-name {
  font-size: 20px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.profile-id {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  line-height: 1.5;
}

.balance-card {
  margin: -48px 16px 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  padding: 20px;
  position: relative;
  z-index: 10;
}

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 500;
}

.balance-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 4px;
}

.balance-amount {
  font-size: 30px;
  font-weight: bold;
  color: var(--foreground);
  margin-top: 8px;
}

.balance-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.balance-actions .primary-btn {
  height: 36px;
  padding: 0 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.balance-actions .text-btn {
  font-size: 14px;
  color: #4B5563;
  background: none;
  border: none;
  cursor: pointer;
}

.balance-actions .divider {
  color: #D1D5DB;
}

.services-card {
  margin: 16px 16px 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  padding: 20px;
}

.services-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  color: #4B5563;
  transition: color 0.2s;
}

.service-item:active {
  color: #3B82F6;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3B82F6;
}

.service-name {
  font-size: 12px;
  color: inherit;
  text-align: center;
}

.profile-list {
  margin: 16px 16px 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  overflow: hidden;
}

.profile-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #F9FAFB;
  cursor: pointer;
  transition: background-color 0.2s;
}

.profile-list-item:active {
  background-color: #F9FAFB;
}

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

.profile-list-item .arrow {
  color: #D1D5DB;
  font-size: 16px;
}
}

.profile-version {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
  padding: 8px 0 16px;
  margin-top: 8px;
  width: 100%;
}

.profile-version > div {
  text-align: center;
  width: 100%;
}

/* ========== 订单页面 ========== */
.orders-page {
  display: none;
  padding-bottom: 80px;
}

.orders-page.active {
  display: block;
}

.orders-search-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  border-bottom: 1px solid #F3F4F6;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.orders-search-bar input {
  flex: 1;
  height: 36px;
  padding: 0 16px 0 40px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 14px;
  outline: none;
}

.orders-search-bar button {
  height: 40px;
  padding: 0 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.orders-status-tabs {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  gap: 16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.orders-status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  font-size: 14px;
  color: var(--muted-foreground);
  padding: 12px 0;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.status-tab.active {
  color: var(--primary);
  font-weight: bold;
}

.status-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 9999px;
}

.orders-list {
  padding: 16px;
}

.order-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  padding: 12px;
  margin-bottom: 12px;
}

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

.order-card .order-product {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-card .order-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.order-card .order-name {
  font-size: 14px;
  font-weight: 600;
}

.order-card .order-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #F3F4F6;
  color: var(--muted-foreground);
}

.order-card .order-info {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 8px;
  line-height: 1.8;
}

.order-card .order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F3F4F6;
}

.order-card .order-time {
  font-size: 12px;
  color: #9CA3AF;
}

.orders-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted-foreground);
}

.orders-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ========== 弹窗通用 ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}

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

.modal-content {
  animation: scaleIn 0.15s ease-out;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 二维码弹窗 */
.qrcode-modal-content {
  width: 85%;
  max-width: 320px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.qrcode-modal-content .modal-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted-foreground);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-modal-content .qrcode-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.qrcode-modal-content .qrcode-image {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qrcode-modal-content .qrcode-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-modal-content .qrcode-tip {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 16px;
}

.qrcode-modal-content .modal-close-btn {
  width: 100%;
  height: 44px;
  background: #F3F4F6;
  color: #374151;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
}

/* 广告弹窗 */
.ad-popup-content {
  width: 300px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.ad-popup-content .ad-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted-foreground);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-popup-content .ad-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 16px;
}

.ad-popup-content .ad-popup-qrcode {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-popup-content .ad-popup-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ad-popup-content .ad-popup-subtitle {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 16px;
}

.ad-popup-content .ad-popup-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 12px 20px;
  font-size: 14px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease-out;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--destructive); }

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 办卡进度查询页面 */
.bank-progress-page {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: 64px;
  background: var(--background);
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.progress-header {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.progress-back-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  border-radius: 8px;
}

.progress-back-btn:hover {
  background: var(--muted);
}

.progress-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}

.progress-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.progress-tip {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
  margin-bottom: 16px;
}

.bank-progress-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bank-progress-item {
  background: white;
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.bank-progress-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bank-progress-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
  overflow: hidden;
}

.bank-progress-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-progress-name {
  font-size: 12px;
  color: var(--foreground);
  text-align: center;
  line-height: 1.3;
}
