/* ===== 商脉通官网 — 全局样式 ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #e8f0fe;
  --gold: #d4a017;
  --gold-light: #fef9e7;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-light);
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); text-decoration: none; }

.btn-nav {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--primary-dark); }

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #4f46e5 50%, #7c3aed 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px 90px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: #fff; }

/* ===== 通用 Section ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== 功能卡片 ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}

.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p  { color: var(--text-light); font-size: 14px; }

/* ===== 产品页 ===== */
.page-header {
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.page-header p  { color: var(--text-light); font-size: 16px; }

.product-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 60px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.product-card.reverse { flex-direction: row-reverse; }

.product-info { flex: 1; }
.product-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; text-align: left; }
.product-info p  { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }

.product-features { list-style: none; margin-bottom: 24px; }
.product-features li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text);
  font-size: 14px;
}
.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.product-visual {
  flex: 0 0 240px;
  height: 240px;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.price-tag .current {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
}
.price-tag .unit {
  font-size: 16px;
  color: var(--text-light);
}
.price-tag .original {
  font-size: 20px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
}
.price-tag .badge {
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--primary-dark); }

.btn-cta.gold {
  background: linear-gradient(135deg, var(--gold), #b8860b);
}
.btn-cta.gold:hover { background: linear-gradient(135deg, #b8860b, #8b6508); }

/* ===== 关于页 ===== */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--primary);
}
.about-section h2:first-child { margin-top: 0; }
.about-section p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  animation: slideUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-gray);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }

.modal h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal .modal-price {
  margin: 20px 0;
}

.modal .modal-price .current {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
}
.modal .modal-price .unit {
  font-size: 16px;
  color: var(--text-light);
}
.modal .modal-price .original {
  font-size: 20px;
  color: #9ca3af;
  text-decoration: line-through;
  display: block;
  margin-top: 4px;
}
.modal .modal-price .badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 6px;
}

.modal p.modal-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.modal .modal-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

/* ===== 扫码购买弹窗 ===== */
.pay-modal { padding: 36px 32px 28px; }

.pay-modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pay-modal .pay-qr-note {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.pay-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #ff00ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 0, 255, 0.18);
}

.pay-qr .fake-qr {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-amount {
  margin-bottom: 20px;
  text-align: center;
}

.pay-amount .current {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
}

.pay-amount .unit {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 4px;
}

.pay-price-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-original {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.pay-badge {
  background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.pay-buttons {
  display: flex;
  gap: 12px;
}

.pay-btn {
  flex: 1;
  padding: 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.pay-btn:active { transform: scale(0.97); }
.pay-btn:hover { opacity: 0.92; }

.pay-btn-cancel {
  background: #fff;
  color: #4b5563;
  border: 1px solid var(--border);
}

.pay-btn-confirm {
  background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.22);
}

.pay-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: #e8f5e9;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  text-align: center;
  display: none;
}

.pay-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.pay-success-title {
  color: #2e7d32;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pay-success-text {
  color: #558b55;
  font-size: 13px;
  line-height: 1.6;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 底部 ===== */
.footer {
  margin-top: auto;
  background: #1f2937;
  color: #9ca3af;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand { font-size: 18px; color: #fff; font-weight: 700; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: #9ca3af; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-compliance {
  border-top: 1px solid #374151;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: #6b7280;
  margin-bottom: 12px;
}

.footer-icp {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  padding-bottom: 4px;
}
.footer-icp a {
  color: #6b7280;
  text-decoration: none;
}
.footer-icp a:hover {
  color: #9ca3af;
}

/* ===== 知识资讯页 ===== */
.knowledge-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.knowledge-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.3s;
}
.knowledge-card:hover { box-shadow: var(--shadow-lg); }

.knowledge-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.knowledge-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.knowledge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.knowledge-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.btn-knowledge {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-knowledge:hover { background: var(--primary-dark); }

.hidden-card { display: none; }
.hidden-card.show { display: block; }

.knowledge-more {
  text-align: center;
  margin-top: 24px;
}

.btn-knowledge-more {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-knowledge-more:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p  { font-size: 15px; }
  .features { grid-template-columns: 1fr; }
  .product-card,
  .product-card.reverse { flex-direction: column; }
  .product-visual { flex: 0 0 160px; width: 100%; }
  .nav-links { display: none; }
  .section { padding: 48px 16px; }
  .footer-top { flex-direction: column; gap: 16px; }
  .knowledge-card { padding: 16px 20px; }
  .knowledge-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
