/* ========== 禾客穆HAKIM·HALAL 清真B2B跨境电商平台 ========== */
/* marketplace.css - 平台首页样式 */

:root {
  --primary: #0a5c36;
  --primary-light: #0d7a48;
  --primary-dark: #073e25;
  --gold: #d4a843;
  --gold-light: #f0d078;
  --bg: #f5f7f0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --border: #e0e6d8;
  --shadow: 0 2px 12px rgba(10,92,54,0.08);
  --shadow-hover: 0 8px 30px rgba(10,92,54,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部公告栏 & 主导航 → 统一由 css/design-system.css 管理 ===== */

/* ===== 布局容器 ===== */
.login-btn:hover, .user-btn:hover { background: var(--primary-light); }

/* ===== 搜索栏 ===== */
.search-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 24px 0;
}
.search-bar {
  display: flex;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.search-bar select {
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  min-width: 140px;
}
.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 15px;
  outline: none;
}
.search-bar button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.search-bar button:hover { background: var(--gold-light); }
.quick-tags {
  text-align: center;
  margin-top: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.quick-tags span { color: var(--gold-light); margin-right: 8px; }
.quick-tags a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin: 0 6px;
  padding: 2px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 12px;
}
.quick-tags a:hover { background: rgba(255,255,255,0.3); }

/* ===== Hero Banner ===== */
.hero-banner {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.hero-content > p {
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 32px;
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ===== 统计数字 ===== */
.stats-section {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== 区块标题 ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 700;
}
.section-title small {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-top: 4px;
  font-weight: 400;
}

/* ===== 产品分类 ===== */
.categories-section { padding: 60px 0; background: var(--white); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.category-icon { font-size: 36px; margin-bottom: 8px; }
.category-card h4 { font-size: 14px; color: var(--text); }
.category-card p { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ===== 产品网格 ===== */
.featured-section { padding: 60px 0; background: var(--bg); }
.products-section { padding: 60px 0; background: var(--white); }
.products-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10,92,54,0.05);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.halal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.product-img {
  width: 100%;
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--border);
}
.product-info { padding: 16px; }
.product-vendor {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-name-en {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.product-price small { font-size: 11px; font-weight: 400; }
.product-moq {
  font-size: 11px;
  color: var(--text-light);
}
.product-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}
.btn-inquiry {
  flex: 1;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.btn-inquiry:hover { background: var(--primary-light); }
.btn-cart {
  padding: 8px 12px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
}

/* ===== 厂家展示 ===== */
.vendors-section { padding: 60px 0; background: var(--bg); }
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.vendor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.vendor-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.vendor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.vendor-logo {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.vendor-name { font-size: 16px; font-weight: 700; color: var(--text); }
.vendor-name-en { font-size: 11px; color: var(--text-light); }
.vendor-badges { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.vendor-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-verified { background: #e8f5e9; color: #2e7d32; }
.badge-halal { background: #fff3e0; color: #e65100; }
.badge-self { background: #e3f2fd; color: #1565c0; }
.vendor-info { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.vendor-products-count {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 12px;
}

/* ===== 出口国家 ===== */
.countries-section { padding: 60px 0; background: var(--white); }
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.country-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.country-card:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
}
.country-flag { font-size: 36px; margin-bottom: 8px; }
.country-card h4 { font-size: 14px; font-weight: 600; }
.country-card p { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.country-card small { font-size: 10px; opacity: 0.5; }

/* ===== CTA区块 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-content h2 { font-size: 32px; margin-bottom: 12px; }
.cta-content > p { font-size: 16px; color: var(--gold-light); margin-bottom: 32px; }
.cta-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.cta-feature {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 16px;
}
.cta-feature span { font-size: 32px; display: block; margin-bottom: 12px; }
.cta-feature h4 { font-size: 16px; margin-bottom: 6px; }
.cta-feature p { font-size: 13px; opacity: 0.8; }
.btn-large { padding: 16px 48px; font-size: 18px; }

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.auth-tab.active { background: var(--primary); color: var(--white); }
.auth-form input, .auth-form select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-form button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.auth-form button:hover { background: var(--primary-light); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { display: none; }
  .hero-content h2 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-features { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .vendors-grid { grid-template-columns: 1fr; }
}
