* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1A2B4A;
  --primary-light: #2a4a7a;
  --accent: #f7931a;
  --accent-light: #ffb347;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* 导航栏 */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  font-size: 24px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.crypto-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 页面 */
.page {
  display: none;
  min-height: calc(100vh - 64px);
}

.page.active {
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  opacity: 0.95;
}

.feature-icon {
  font-size: 20px;
}

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 16px;
  outline: none;
}

.hero-search button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--accent-light);
}

/* 区块 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.filter-bar select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.category-name {
  font-weight: 600;
  color: var(--text);
}

/* 商品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 120px;
  background: linear-gradient(135deg, #f0f2f5, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.product-brand {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-price {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.product-country {
  display: inline-block;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

/* 结账页 */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.checkout-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checkout-header {
  background: var(--primary);
  color: white;
  padding: 24px;
}

.checkout-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.checkout-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.denomination-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.denomination-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.denomination-btn:hover {
  border-color: var(--primary);
}

.denomination-btn.active {
  border-color: var(--accent);
  background: #fff7ed;
  color: var(--accent);
}

.crypto-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.crypto-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.crypto-btn:hover {
  border-color: var(--primary);
}

.crypto-btn.active {
  border-color: var(--accent);
  background: #fff7ed;
}

.crypto-symbol {
  font-weight: 700;
  font-size: 16px;
}

.crypto-rate {
  font-size: 12px;
  color: var(--text-light);
}

.order-summary {
  background: var(--bg);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 18px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 支付页面 */
.payment-container {
  text-align: center;
  padding: 40px;
}

.payment-qr {
  width: 200px;
  height: 200px;
  margin: 24px auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.payment-address {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  word-break: break-all;
  font-family: monospace;
  font-size: 14px;
}

.copy-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 8px;
}

.payment-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.payment-status {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-paid {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

/* 礼品卡展示 */
.gift-card-display {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  text-align: center;
}

.gift-card-code {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 16px 0;
  background: rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 8px;
}

.gift-card-pin {
  font-family: monospace;
  font-size: 18px;
  margin-top: 8px;
}

/* 订单查询 */
.order-search {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 32px;
}

.order-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

.order-search button {
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.order-result {
  max-width: 600px;
}

/* 页脚 */
.footer {
  background: var(--primary);
  color: white;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-section h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-section p {
  opacity: 0.8;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .nav-links {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .checkout-body {
    padding: 20px;
  }
}

/* 快捷服务卡片 */
.quick-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.quick-service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.qs-icon { font-size: 40px; margin-bottom: 12px; }
.quick-service-card h3 { font-size: 18px; margin-bottom: 4px; color: var(--primary); }
.quick-service-card p { font-size: 13px; color: var(--text-light); }

/* 话费充值表单 */
.airtime-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 用户中心 */
.account-container { max-width: 450px; margin: 0 auto; }
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.user-profile-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.user-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 16px;
}
.user-orders-list { margin-top: 24px; text-align: left; }
.user-order-item {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.user-order-item:hover { background: var(--bg); }

/* 语言选择器 */
.lang-select {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 12px;
}
.lang-select option {
  color: #333;
}

/* 主题切换按钮 */
.theme-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* 暗色模式 */
[data-theme="dark"] {
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #a0a0b0;
  --border: #2a2a40;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .quick-service-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .user-profile-card,
[data-theme="dark"] .airtime-form {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 {
  color: var(--text);
}

[data-theme="dark"] input, [data-theme="dark"] select {
  background: #252540;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .footer {
  background: #0a0a15;
}

[data-theme="dark"] .order-detail-card,
[data-theme="dark"] .checkout-card {
  background: var(--card-bg);
}

/* 购物车 */
.cart-container { max-width: 900px; margin: 0 auto; }
.cart-items { margin-bottom: 24px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.cart-item-image {
  width: 60px; height: 60px;
  background: var(--bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 16px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.cart-item-qty button:hover { background: var(--bg); }
.cart-item-price { font-weight: 600; min-width: 80px; text-align: right; }
.cart-remove {
  background: none; border: none;
  font-size: 24px; color: #999;
  cursor: pointer; padding: 4px 8px;
}
.cart-remove:hover { color: var(--danger); }
.cart-summary {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 400px;
  margin-left: auto;
}
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
}
.cart-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  display: none;
}

/* 收藏 */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.wishlist-item {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}
.wishlist-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: none; border: none;
  cursor: pointer; font-size: 18px;
  color: #999;
}
.wishlist-remove:hover { color: var(--danger); }
.wishlist-icon { font-size: 36px; margin-bottom: 8px; }

/* 评价 */
.review-form {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.star-rating {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}
.star {
  font-size: 28px;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s;
}
.star.active { color: #ffc107; }
.review-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-stars { color: #ffc107; }

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}
.modal-content {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
}
.modal-content h3 { margin-bottom: 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 按钮样式补充 */
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--border); }
.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
}

/* 限时促销横幅 */
.promo-banner {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  border-radius: 16px; padding: 32px; color: white;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; cursor: pointer; transition: transform 0.2s;
}
.promo-banner:hover { transform: translateY(-2px); }
.promo-badge { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 12px; font-size: 13px; }
.promo-banner h2 { margin: 8px 0; font-size: 24px; }
.promo-banner p { margin: 0; opacity: 0.9; }
.promo-countdown { font-size: 24px; font-weight: 700; margin-bottom: 12px; font-family: monospace; }

/* 统计数据 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: #f39c12; }
.stat-label { font-size: 14px; color: #666; margin-top: 4px; }

/* 购买步骤 */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step-card { text-align: center; padding: 24px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; }
.step-number { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: #f39c12; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step-icon { font-size: 40px; margin-bottom: 12px; }
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; color: #666; font-size: 13px; }

/* 用户评价 */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.testimonial-stars { color: #f39c12; margin-bottom: 12px; }
.testimonial-text { color: #555; line-height: 1.6; margin-bottom: 16px; font-size: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f39c12, #e74c3c); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.testimonial-author span { font-size: 12px; color: #999; }

/* 信任徽章 */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.trust-badge { padding: 12px 24px; background: white; border-radius: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); font-size: 14px; font-weight: 500; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { padding: 16px 0; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-toggle { font-size: 20px; color: #f39c12; transition: transform 0.2s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; color: #666; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 16px; }

/* 邮件订阅 */
.newsletter-box { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 16px; padding: 40px; text-align: center; color: white; }
.newsletter-box h2 { margin: 0 0 8px; font-size: 24px; }
.newsletter-box p { color: #aaa; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 14px; }
.newsletter-form button { padding: 12px 24px; background: #f39c12; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* 深色模式 */
body.dark { background: #0f0f1a; color: #e0e0e0; }
body.dark .section { background: transparent; }
body.dark .product-card, body.dark .stat-card, body.dark .step-card,
body.dark .testimonial-card, body.dark .trust-badge, body.dark .panel,
body.dark .checkout-section, body.dark .order-summary { background: #1a1a2e; color: #e0e0e0; }
body.dark .section-title, body.dark h1, body.dark h2, body.dark h3 { color: #fff; }
body.dark .faq-question { color: #e0e0e0; }
body.dark .faq-answer { color: #aaa; }
body.dark .navbar { background: #1a1a2e; border-bottom-color: #2a2a4e; }
body.dark .nav-brand, body.dark .nav-link { color: #e0e0e0; }
body.dark input, body.dark select { background: #2a2a4e; color: #e0e0e0; border-color: #3a3a5e; }
body.dark .footer { background: #0a0a15; border-top-color: #2a2a4e; }
body.dark .footer h4 { color: #fff; }
body.dark .footer p, body.dark .footer a { color: #aaa; }

/* 增强页脚 */
.footer { background: #1a1a2e; color: #aaa; padding: 48px 0 0; margin-top: 40px; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr 1fr; } }
.footer-section h4 { color: white; margin-bottom: 16px; font-size: 16px; }
.footer-section a, .footer-section p { display: block; color: #aaa; text-decoration: none; margin-bottom: 8px; font-size: 14px; transition: color 0.2s; }
.footer-section a:hover { color: #f39c12; }
.footer-social { display: flex; gap: 10px; margin: 16px 0; }
.social-icon { width: 36px; height: 36px; background: #2a2a4e; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #aaa; font-size: 14px; transition: all 0.2s; }
.social-icon:hover { background: #f39c12; color: white; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-tag { background: #2a2a4e; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #ccc; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding: 20px 24px; border-top: 1px solid #2a2a4e; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: 13px; color: #666; }
.footer-legal { display: flex; gap: 16px; font-size: 12px; color: #666; }

/* 全局微交互 */
.product-card, .category-card, .stat-card, .step-card, .testimonial-card, .promo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover, .category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 按钮点击效果 */
.btn-primary, .btn-buy, .pay-btn, .promo-btn {
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.btn-primary:active, .btn-buy:active, .pay-btn:active {
  transform: scale(0.97);
}

/* 图片加载淡入 */
img {
  animation: imgFadeIn 0.5s ease;
}
@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 卡片入场动画 */
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 脉冲动画（用于重要提示） */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse { animation: pulse 2s infinite; }

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 卡片悬浮发光 */
.glow-hover:hover {
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* 选中文本颜色 */
::selection { background: #f39c12; color: white; }

/* 输入框聚焦效果 */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f39c12 !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* 标签页切换动画 */
.tab-content {
  animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 打印样式 */
@media print {
  .navbar, .footer, #mobile-bottom-nav, #back-to-top,
  .chat-widget, .notification-center, .promo-banner,
  .newsletter-section, .faq-section { display: none !important; }
  body { background: white; color: black; }
  .product-card, .order-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  a { color: black; text-decoration: none; }
  .btn-primary, .btn-buy { display: none; }
}

/* 无障碍：焦点可见 */
a:focus-visible, button:focus-visible {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .product-card, .category-card { border: 2px solid #333; }
}
