/* ============================================================
   B2B Foreign Trade Website — Complete Stylesheet
   Brand: Industrial Blue + Professional Red
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --accent: #c41230;
  --accent-dark: #a00e28;
  --dark: #1a202c;
  --gray-800: #2d3748;
  --gray-600: #4a5568;
  --gray-400: #a0aec0;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: #ebf4ff;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-800);
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #1a56db 60%, #2563eb 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn { display: inline-block; font-weight: 600; padding: 14px 36px; border-radius: 4px; font-size: 16px; transition: all 0.3s; cursor: pointer; }
.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: #edf2f7; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); border: none; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(196,18,48,0.3); }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--gray-400);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== ADVANTAGE CARDS ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.adv-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.adv-card:hover { transform: translateY(-4px); }
.adv-card .icon { font-size: 44px; margin-bottom: 16px; }
.adv-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.adv-card p { color: var(--gray-600); font-size: 14px; }

/* ==================== PRODUCT CARDS ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-card-img {
  height: 220px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--gray-400);
}
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-card-body h3 a { color: var(--dark); }
.product-card-body p { color: var(--gray-600); font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--gray-400); margin-bottom: 12px; }
.product-card-meta span { background: var(--gray-100); padding: 4px 10px; border-radius: 20px; }

/* ==================== STEPS ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 72px; height: 72px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step-card h4 { font-size: 18px; margin-bottom: 6px; }
.step-card p { color: var(--gray-600); font-size: 14px; }

/* ==================== CTA ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  border-radius: var(--radius);
  margin: 60px 0;
}
.cta-section h2 { color: var(--white); font-size: 32px; margin-bottom: 12px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--gray-400); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

/* ==================== PAGE HERO (Interior Pages) ==================== */
.page-hero {
  background: linear-gradient(135deg, #1a365d, var(--primary-dark));
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 18px; }

/* ==================== MOQ TABLE ==================== */
.moq-card {
  background: #f0f6ff;
  border-left: 4px solid var(--primary);
  padding: 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.moq-card h4 { color: var(--primary); font-size: 18px; margin-bottom: 12px; }
.moq-table { width: 100%; border-collapse: collapse; }
.moq-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.moq-table td:first-child { font-weight: 600; color: var(--gray-600); width: 40%; white-space: nowrap; }

/* ==================== SPECS TABLE ==================== */
.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.specs-table th { background: var(--primary); color: var(--white); padding: 12px 16px; text-align: left; font-size: 14px; }
.specs-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.specs-table tr:nth-child(even) { background: var(--gray-100); }

/* ==================== CONTACT FORM ==================== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); font-size: 14px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-info-item .ci-icon { font-size: 24px; flex-shrink: 0; }
.contact-info-item strong { display: block; margin-bottom: 2px; }

/* ==================== PRODUCT DETAIL LAYOUT ==================== */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 40px 0; }
.product-gallery { background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 400px; font-size: 100px; }
.product-info h1 { font-size: 28px; margin-bottom: 12px; }
.product-info .sku { color: var(--gray-400); font-size: 14px; margin-bottom: 16px; }
.product-info .desc { color: var(--gray-600); margin-bottom: 24px; line-height: 1.8; }

/* ==================== BREADCRUMB ==================== */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-600); }

/* ==================== WHATSAPP FLOAT ==================== */
/* ==================== LANGUAGE SELECTOR ==================== */
#lang-selector { position: relative; flex-shrink: 0; }
.lang-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.lang-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(26,86,219,0.25); }
.lang-dropdown {
  display: none;
  position: absolute;
}
.lang-dropdown.open { display: block; }
.lang-dropdown {
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 210px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px 0;
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--gray-800);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.12s;
}
.lang-dropdown a:hover { background: var(--gray-100); }
.lang-dropdown a.active { background: #ebf4ff; color: var(--primary); font-weight: 600; }

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ==================== SOCIAL MEDIA ICONS ==================== */
/* 头部社交图标区 */
.header-socials {
  display: flex; align-items: center; gap: 6px; margin-left: 16px;
}
.header-socials .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; transition: all 0.25s ease;
  color: var(--gray-600); background: transparent;
}
.header-socials .social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.header-socials .social-icon:hover { transform: translateY(-2px); }
.header-socials .social-icon.wa:hover { color: #25D366; background: #f0fff4; }
.header-socials .social-icon.li:hover { color: #0A66C2; background: #e8f3fa; }
.header-socials .social-icon.fb:hover { color: #1877F2; background: #e7f1fd; }
.header-socials .social-icon.ig:hover { color: #E4405F; background: #fef0f3; }
.header-socials .social-icon.yt:hover { color: #FF0000; background: #ffeaea; }
.header-socials .social-icon.tk:hover { color: #111111; background: #f3f3f3; }

/* 页脚社交图标区 */
.footer-socials {
  display: flex; gap: 10px; margin-top: 12px;
}
.footer-socials .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; transition: all 0.25s ease;
  color: var(--gray-400); background: rgba(255,255,255,0.08);
}
.footer-socials .social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.footer-socials .social-icon:hover { transform: translateY(-3px); color: #fff; }
.footer-socials .social-icon.wa:hover { background: #25D366; }
.footer-socials .social-icon.li:hover { background: #0A66C2; }
.footer-socials .social-icon.fb:hover { background: #1877F2; }
.footer-socials .social-icon.ig:hover { background: #E4405F; }
.footer-socials .social-icon.yt:hover { background: #FF0000; }
.footer-socials .social-icon.tk:hover { background: #111111; }

/* 移动端社交图标缩小 */
@media (max-width: 768px) {
  .header-socials { gap: 2px; margin-left: 8px; }
  .header-socials .social-icon { width: 28px; height: 28px; }
  .header-socials .social-icon svg { width: 15px; height: 15px; }
}

/* 桌面端隐藏移动语言区，移动端隐藏桌面语言按钮 */
.mobile-lang-section { display: none; }
@media (max-width: 768px) {
  #lang-selector { display: none; }
  .mobile-lang-section { display: block; margin: 0; padding: 0; width: 100%; }
  .mobile-lang-title { display: none; }
  .lang-dropdown-mobile { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
  .lang-dropdown-mobile a {
    display: inline-block; padding: 6px 12px; background: var(--gray-100);
    border-radius: 4px; font-size: 12px; color: var(--gray-800); text-decoration: none;
    border-bottom: none;
  }
  .lang-dropdown-mobile a.active { background: var(--primary); color: #fff; }
  .lang-dropdown-mobile a small { display: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 60px 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 16px; margin: 40px 0; }
  .cta-section h2 { font-size: 24px; }
}

/* ==================== ALERT ==================== */
.alert { padding: 14px 20px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0fff4; color: #22543d; border: 1px solid #c6f6d5; }
.alert-info { background: #ebf8ff; color: #2a4365; border: 1px solid #bee3f8; }

/* ==================== ARABIC RTL ==================== */
body.rtl { direction: rtl; text-align: right; }
body.rtl .header-inner { flex-direction: row-reverse; }
body.rtl .nav-links { padding-right: 0; }
body.rtl .header-right { margin-left: 0; margin-right: auto; }
body.rtl .lang-dropdown { right: auto; left: 0; }
body.rtl .lang-dropdown a small { margin-left: 0; margin-right: auto; }
body.rtl .footer-grid { direction: rtl; }
body.rtl .product-card-body { text-align: right; }
body.rtl .moq-card { border-left: none; border-right: 4px solid var(--primary); border-radius: var(--radius) 0 0 var(--radius); }
body.rtl .breadcrumb { direction: rtl; }
body.rtl .contact-info-item { flex-direction: row-reverse; }
body.rtl .whatsapp-float { right: auto; left: 24px; }

/* ==================== MOBILE LANGUAGE SELECTOR ==================== */
.lang-dropdown-mobile { padding: 8px 0; }
.lang-dropdown-mobile a {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  color: var(--gray-800); font-size: 14px; text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.lang-dropdown-mobile a small { color: var(--gray-400); font-size: 11px; margin-left: auto; }
.lang-dropdown-mobile a:hover { background: var(--gray-100); }
.lang-dropdown-mobile a.active { background: #ebf4ff; color: var(--primary); font-weight: 600; }

/* 移动端汉堡菜单内语言区 */
@media (max-width: 768px) {
  .mobile-lang-section { border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 8px; }
  .mobile-lang-title { font-size: 13px; font-weight: 600; color: var(--gray-600); padding: 4px 16px; }
}

.cert-badge { padding:20px 32px;background:var(--white);border:2px solid var(--gray-200);border-radius:var(--radius);font-weight:600; }
