/**
 * ============================================================
 *  wallet.css — Wallet 钱包 App 样式表
 * ============================================================
 *  使用通用安全区域架构，演示蓝色主题适配
 * ============================================================
 */

/* ——————————————————————————————————————————————
 *  根容器（继承通用架构）
 * —————————————————————————————————————————————— */

.wallet-app-root {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* ——————————————————————————————————————————————
 *  Header（使用通用架构类）
 * —————————————————————————————————————————————— */

.wallet-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-header-content {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.wallet-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.wallet-back-btn svg {
  width: 12px;
  height: 20px;
}

.wallet-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.wallet-menu-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ——————————————————————————————————————————————
 *  Content（使用通用架构类）
 * —————————————————————————————————————————————— */

.wallet-content {
  padding: 20px 16px;
  padding-bottom: calc(100px + var(--safe-area-bottom)); /* 为浮动栏留出空间 */
}

/* ——————————————————————————————————————————————
 *  余额卡片
 * —————————————————————————————————————————————— */

.wallet-balance-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.balance-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.balance-actions {
  display: flex;
  gap: 12px;
}

.balance-action-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.balance-action-btn:active {
  transform: scale(0.95);
}

/* ——————————————————————————————————————————————
 *  功能区
 * —————————————————————————————————————————————— */

.wallet-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.feature-item:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}

.feature-icon {
  font-size: 28px;
}

.feature-label {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

/* ——————————————————————————————————————————————
 *  交易记录
 * —————————————————————————————————————————————— */

.wallet-transactions {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
}

.transactions-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 16px 0;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.transaction-info {
  flex: 1;
}

.transaction-name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.transaction-time {
  font-size: 13px;
  color: #999;
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.transaction-amount.positive {
  color: #4caf50;
}

/* ——————————————————————————————————————————————
 *  浮动底部栏（使用 floating-bottom-element 工具类）
 * —————————————————————————————————————————————— */

.wallet-auto-payments {
  /* 已通过 floating-bottom-element 类处理底部安全区域 */
  margin: 0 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.wallet-auto-payments:active {
  transform: scale(0.98);
}

.auto-payments-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.auto-payments-text {
  flex: 1;
}

.auto-payments-title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.auto-payments-desc {
  font-size: 13px;
  color: #666;
}

.auto-payments-arrow {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
