/* ============================================================
   GESON SUPPLY — style.css
   统一样式，所有语言页面共用
============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a2340;
  background: #f5f7fa;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1240a8;
  --blue-light:  #e8f0fe;
  --blue-mid:    #1a5fd4;
  --green:       #25d366;
  --green-dark:  #1da851;
  --white:       #ffffff;
  --gray-bg:     #f5f7fa;
  --gray-card:   #ffffff;
  --gray-text:   #4b5563;
  --gray-light:  #f0f4ff;
  --border:      #e2e8f0;
  --shadow-sm:   0 2px 8px rgba(26,86,219,0.07);
  --shadow-md:   0 4px 24px rgba(26,86,219,0.10);
  --shadow-lg:   0 8px 40px rgba(26,86,219,0.14);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

/* ── RTL SUPPORT (Arabic) ─────────────────────────────────── */
[dir="rtl"] {
  font-family: 'Segoe UI', 'Arial', 'Tahoma', sans-serif;
}
[dir="rtl"] .nav-container,
[dir="rtl"] .hero-btns,
[dir="rtl"] .features-grid,
[dir="rtl"] .contact-wrap {
  direction: rtl;
}
[dir="rtl"] .cat-title {
  border-left: none;
  border-right: 4px solid var(--blue-mid);
  padding-left: 0;
  padding-right: 12px;
}
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .search-box { margin-left: 0; margin-right: auto; }
[dir="rtl"] .search-box input { padding: 7px 36px 7px 16px; }
[dir="rtl"] .search-box .search-icon { left: auto; right: 12px; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-mid);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: #1a2340; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;   /* 新增：把导航菜单整体向右推 */
  margin-right: 16px;  /* 新增：和右侧的语言按钮保持一点呼吸间距 */
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue-mid); }

/* Lang switcher */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-text);
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  z-index: 200;
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-text);
  transition: background var(--transition);
}
.lang-dropdown a:hover { background: var(--gray-light); color: var(--blue-mid); }
.lang-dropdown a.active {
  color: var(--blue-mid);
  font-weight: 700;
  background: var(--blue-light);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue-mid); }/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #0d3a8a 100%);
  color: var(--white);
  padding: 88px 24px 80px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: #7eb8ff; }
.hero p {
  font-size: 17px;
  opacity: 0.88;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--white);
  color: var(--blue-mid);
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: #ddeaff; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  padding: 12px 36px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* ============================================================
   FEATURES / WHY US
============================================================ */
.features {
  background: var(--white);
  padding: 72px 24px;
}
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--gray-text);
  font-size: 15px;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon { font-size: 38px; margin-bottom: 16px; line-height: 1; }
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.feature-card p { font-size: 13px; color: var(--gray-text); line-height: 1.65; }

/* ============================================================
   PRODUCTS SECTION
============================================================ */
.products {
  padding: 72px 24px;
  background: var(--gray-bg);
}

/* Filter bar */
.filter-bar {
  max-width: 1100px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-text);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
}

/* Search box */
.search-box {
  margin-left: auto;
  position: relative;
}
.search-box input {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px 7px 36px;
  font-size: 13px;
  outline: none;
  width: 200px;
  transition: border-color var(--transition), width var(--transition);
  background: var(--white);
  font-family: inherit;
}
.search-box input:focus {
  border-color: var(--blue-mid);
  width: 240px;
}
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab8d8;
  font-size: 14px;
  pointer-events: none;
}

/* Category section */
.cat-section {
  max-width: 1100px;
  margin: 0 auto 52px;
}
.cat-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-mid);
  border-left: 4px solid var(--blue-mid);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}/* ============================================================
   PRODUCT CARD
============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card.hidden { display: none; }

/* ── Image Slider ──────────────────────────────────────────── */
.img-slider {
  position: relative;
  /* 修改点 1：删除固定的 210px，改用比例 */
  aspect-ratio: 1 / 1;
  width: 100%;

  /* 修改点 2：优化背景色，让图片加载前更有质感 */
  background: #f0f3f9;

  overflow: hidden;
  flex-shrink: 0;

  /* 修改点 3：增加平滑过渡，防止瞬间弹开 */
  transition: opacity 0.3s ease;
}

/* 确保里面的图片填满预留的“坑” */
.img-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保证图片不变形地充满正方形区域 */
  display: block;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef2fb;
  cursor: zoom-in;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.slide.ph {
  flex-direction: column;
  gap: 8px;
  color: #aab8d8;
  font-size: 12px;
  cursor: default;
}
.slide.ph .ph-icon { font-size: 32px; }

/* Slider nav buttons */
.s-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  color: var(--blue-mid);
  line-height: 1;
  transition: background var(--transition), transform 0.15s;
}
.s-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.s-btn.prev { left: 6px; }
.s-btn.next { right: 6px; }
.img-slider[data-n="1"] .s-btn { display: none; }

/* Dots */
.s-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(26,95,212,0.3);
  cursor: pointer;
  transition: background var(--transition);
}
.dot.on { background: var(--blue-mid); }
.img-slider[data-n="1"] .s-dots { display: none; }

/* Count & zoom hint */
.s-count {
  position: absolute;
  top: 8px;
  right: 9px;
  background: rgba(0,0,0,0.42);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
}
.img-slider[data-n="1"] .s-count { display: none; }
.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 9px;
  background: rgba(0,0,0,0.38);
  color: var(--white);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.img-slider:hover .zoom-hint { opacity: 1; }

/* Product info */
.product-info {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 5px;
  line-height: 1.45;
}
.product-info p {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.55;
  flex: 1;
}
.product-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 600;
  align-self: flex-start;
}

/* Card action buttons */
.card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
}
.btn-inquire {
  flex: 1;
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
  text-align: center;
}
.btn-inquire:hover { background: var(--blue-dark); }
.btn-wa {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 15px;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-wa:hover { background: var(--green-dark); }

/* ============================================================
   ABOUT SECTION
============================================================ */
.about {
  background: var(--white);
  padding: 72px 24px;
}
.about-wrap {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.about-wrap p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-wrap p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact {
  background: var(--gray-bg);
  padding: 72px 24px;
}
.contact-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a2e;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-icon { font-size: 22px; margin-top: 1px; flex-shrink: 0; }
.contact-item h4 {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-item p {
  font-size: 15px;
  color: var(--blue-mid);
  font-weight: 500;
}
.wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
}
.wa-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* Contact form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
  background: var(--white);
  color: #1a2340;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue-mid); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button[type="submit"] {
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  transition: background var(--transition), transform var(--transition);
}
.contact-form button[type="submit"]:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Toast */
.toast {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a7a3c;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: fadeInUp 0.3s ease;
}
.toast.error { background: #c0392b; }
.toast.show { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}/* ============================================================
   LIGHTBOX
============================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.90);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 24px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  opacity: 0.8;
  transition: opacity var(--transition);
  background: none;
  border: none;
}
.lb-close:hover { opacity: 1; }
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  border: none;
  color: var(--white);
  font-size: 38px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10000;
}
.lb-arrow:hover { background: rgba(255,255,255,0.28); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 12px;
}
.lb-caption {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 13px;
  background: rgba(0,0,0,0.48);
  padding: 5px 16px;
  border-radius: 12px;
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #1a1a2e;
  color: #8899bb;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  line-height: 1.8;
}
footer span { color: var(--white); }
footer a { color: #8899bb; transition: color var(--transition); }
footer a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
============================================================ */
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero h1 { font-size: 34px; }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
============================================================ */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 16px 56px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .features { padding: 48px 16px; }
  .products { padding: 48px 16px; }
  .about { padding: 48px 16px; }
  .contact { padding: 48px 16px; }
  .section-title { font-size: 24px; }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .img-slider { height: 170px; }
  .filter-bar { gap: 8px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .lb-arrow { width: 40px; height: 40px; font-size: 26px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .btn-primary, .btn-outline { padding: 12px 24px; font-size: 14px; }
}
/* --- TDS 按钮补丁 --- */
.card-actions{display:flex;gap:6px;padding:10px 16px 14px;align-items:center}.btn-inquire,.btn-tds,.btn-tds-request{flex:1;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:12px;font-weight:600;transition:all .2s;text-decoration:none}.btn-tds{background:#e8f0fe;color:#1a56db}.btn-tds-request{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.btn-inquire{background:#1a56db;color:#fff;border:none}.btn-wa{background:#25d366;color:#fff;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:18px}
