/* ===== Longow Selection — Global Styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5fa8;
  --primary-dark: #0e4580;
  --primary-light: #e8f1fb;
  --accent: #f5a623;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e0e0e0;
  --bg: #f8f9fb;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 16px;
  font-size: 16px;
}

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

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  height: 64px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: var(--white);
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-en { font-size: 15px; font-weight: 600; color: var(--primary); }
.logo-cn { font-size: 11px; color: var(--text-muted); }

.nav { display: flex; gap: 6px; }
.nav-link {
  padding: 6px 14px; border-radius: 6px; text-decoration: none;
  font-size: 14px; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--text-secondary);
  transition: all 0.15s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  margin-top: 64px;
  background: linear-gradient(135deg, #0e2d5e 0%, #1a5fa8 60%, #2980d4 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; color: var(--white); max-width: 700px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 20px;
  padding: 5px 16px; font-size: 13px; margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero-title { font-size: 42px; font-weight: 700; line-height: 1.25; margin-bottom: 18px; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.82); margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #e09415; border-color: #e09415; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-full { width: 100%; }

.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.section-header p { font-size: 15px; color: var(--text-muted); }

/* ===== Categories ===== */
.categories-section { background: var(--bg); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}
.cat-icon { font-size: 28px; margin-bottom: 10px; }
.cat-card span { font-size: 13px; font-weight: 500; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: all 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #bbb; }
.product-img-wrap { height: 220px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-info { padding: 16px; }
.product-sku { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.product-spec { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-price-note { font-size: 11px; color: var(--text-muted); }
.product-btn {
  padding: 7px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: background 0.15s;
}
.product-btn:hover { background: var(--primary-dark); }
.product-tag {
  display: inline-block; background: #e8f1fb; color: var(--primary);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}

/* ===== Features ===== */
.whyus-section { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== About ===== */
.about-inner { max-width: 720px; margin: 0 auto; }
.about-text h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; color: var(--text); text-align: center; }
.about-text p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-info { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--primary); min-width: 80px; }

/* ===== Contact ===== */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.contact-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.contact-info-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 22px; color: var(--text); }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.c-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.c-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-item > div { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg); }
.modal-inner { padding: 28px; }
.modal-product-img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; background: #f5f5f5; margin-bottom: 20px; }
.modal-product-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-price { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.modal-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.modal-spec-table td { padding: 9px 12px; border: 1px solid var(--border); }
.modal-spec-table td:first-child { font-weight: 500; color: var(--text-secondary); width: 40%; background: var(--bg); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* Modal rich text detail */
.modal-desc-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-rich-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.modal-rich-desc img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }
.modal-rich-desc iframe, .modal-rich-desc video { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.modal-rich-desc h1, .modal-rich-desc h2, .modal-rich-desc h3 { font-size: 15px; margin: 12px 0 6px; }
.modal-rich-desc ul, .modal-rich-desc ol { padding-left: 20px; margin: 8px 0; }
.modal-rich-desc li { margin-bottom: 4px; }
.modal-rich-desc p { margin-bottom: 8px; }
.modal-rich-desc strong { font-weight: 600; }

/* ===== Footer ===== */
.footer { background: #0e2d5e; color: rgba(255,255,255,0.8); padding: 52px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-en { color: #fff; }
.footer-brand .logo-cn { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 12px; }
.footer-links h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 20px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: #1a5fa8; color: #fff; padding: 14px 20px; border-radius: 8px;
  font-size: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(80px); opacity: 0; transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; cursor: pointer;
  transition: all 0.25s;
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: #333; color: #fff; font-size: 12px; white-space: nowrap;
  padding: 6px 14px; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ===== QR Code Thumbnail ===== */
.qr-thumb {
  width: 90px; height: 90px; border-radius: 8px;
  border: 2px solid var(--border); margin-top: 8px;
  cursor: pointer; object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qr-thumb:hover { transform: scale(1.08); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

/* ===== QR Modal ===== */
.qr-modal {
  background: #fff; padding: 16px; border-radius: var(--radius-lg);
  text-align: center; position: relative; max-width: 320px; width: 90%;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 24px; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .whatsapp-float { bottom: 18px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float .wa-icon { width: 24px; height: 24px; }
}
