/* ============================================
   SLCHAIN - B2B Website Stylesheet
   Jinjiang Shi Lian Supply Chain Co., Ltd.
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0e6ba8;
  --color-primary-light: #2e8ec9;
  --color-primary-dark: #123b63;
  --color-accent: #f39c12;
  --color-accent-hover: #d9870b;
  --color-wa: #25d366;
  --color-wa-dark: #1da851;
  --color-bg: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--color-primary-dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--color-text-light); max-width: 680px; margin: 0 auto; font-size: 1rem; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: var(--color-bg-white); border-bottom: 1px solid var(--color-border);
  z-index: 1000; display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { display: block; padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 500; color: var(--color-text) !important; border-radius: var(--radius); transition: background 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(14, 107, 168, 0.08); color: var(--color-primary) !important; }

.nav-cta a { background: var(--color-wa); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.nav-cta a:hover { background: var(--color-wa-dark); color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--color-text); }
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero {
  padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; 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.03'%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");
  opacity: 0.4;
}
.hero-inner { display: flex; align-items: center; gap: 3rem; position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content .hero-sub { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 560px; }
.hero-points { list-style: none; margin-bottom: 2rem; display: grid; gap: 0.45rem; }
.hero-points li { color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; padding-left: 1.6rem; position: relative; }
.hero-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-wa); font-weight: 700; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media {
  flex-shrink: 0; width: 420px;
  background: rgba(255, 255, 255, 0.95); border-radius: 10px;
  padding: 1.25rem; box-shadow: var(--shadow-lg);
}
.hero-media img { border-radius: 6px; }
.hero-media figcaption { text-align: center; font-size: 0.8rem; color: var(--color-text-light); padding-top: 0.6rem; }

/* Trust bar */
.trust-bar { background: var(--color-bg-white); border-bottom: 1px solid var(--color-border); padding: 1.1rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-item strong { display: block; font-size: 0.92rem; color: var(--color-primary-dark); }
.trust-item span { font-size: 0.8rem; color: var(--color-text-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem; font-size: 0.9rem; font-weight: 600; border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; text-decoration: none !important; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff !important; }
.btn-whatsapp { background: var(--color-wa); color: #fff; }
.btn-whatsapp:hover { background: var(--color-wa-dark); color: #fff !important; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff !important; }
.btn-outline-dark { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff !important; }

/* Category cards (home) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cat-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card .cat-image { height: 220px; background: #fff; border-bottom: 1px solid var(--color-border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cat-card .cat-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; }
.cat-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cat-body .cat-count { font-size: 0.78rem; color: var(--color-accent-hover); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.cat-body p { font-size: 0.87rem; color: var(--color-text-light); margin-bottom: 0.9rem; flex: 1; }
.cat-body .btn { font-size: 0.85rem; padding: 0.45rem 1rem; align-self: flex-start; }

/* Features */
.features-strip { background: var(--color-bg-white); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: center; }
.feature-item svg { width: 36px; height: 36px; color: var(--color-accent); margin: 0 auto 0.75rem; }
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.feature-item p { font-size: 0.85rem; color: var(--color-text-light); margin: 0; }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.app-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.app-card svg { width: 34px; height: 34px; color: var(--color-primary); margin-bottom: 0.75rem; }
.app-card h4 { margin-bottom: 0.4rem; }
.app-card p { font-size: 0.86rem; color: var(--color-text-light); margin: 0; }

/* Products page */
.page-header { padding: calc(var(--nav-height) + 2.5rem) 0 1.75rem; background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); color: #fff; }
.page-header h1 { color: #fff; margin-bottom: 0.35rem; }
.page-header p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; max-width: 720px; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cat-nav a { font-size: 0.82rem; padding: 0.4rem 0.9rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-white); color: var(--color-text); }
.cat-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(14, 107, 168, 0.05); }

.product-category { margin-bottom: 3.5rem; }
.product-header { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-primary); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.product-header h2 { margin-bottom: 0; }
.product-header span { color: var(--color-text-light); font-size: 0.85rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.product-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card .p-image { height: 200px; background: #fff; border-bottom: 1px solid var(--color-border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card .p-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; }
.product-card .p-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .p-body h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--color-primary-dark); }
.product-card .p-body .p-tagline { font-size: 0.78rem; color: var(--color-accent-hover); font-weight: 600; margin-bottom: 0.6rem; }
.product-card .p-body p { font-size: 0.82rem; color: var(--color-text-light); flex: 1; margin-bottom: 0.75rem; }
.product-card .p-body .btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; align-self: flex-start; }
.product-card .p-specs { list-style: none; font-size: 0.78rem; line-height: 1.55; margin: 0 0 0.8rem; display: grid; gap: 0.1rem; flex: 1; }
.product-card .p-specs li { color: var(--color-text); }
.product-card .p-specs li b { color: var(--color-text-light); font-weight: 500; }

/* Featured models (home) */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.featured-grid .product-card .p-image { height: 190px; }
.featured-grid .product-card .p-body h4 { font-size: 1.05rem; }
.featured-grid .product-card .p-body .p-tagline { font-size: 0.8rem; margin-bottom: 0.5rem; }
.featured-grid .product-card .p-body .btn { align-self: stretch; justify-content: center; }

@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Full spec table (product detail) */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin: 0 0 1rem; }
.spec-table th, .spec-table td { padding: 0.5rem 0.9rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.spec-table th { background: var(--color-primary); color: #fff; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.spec-table tr:nth-child(even) td { background: #f1f6fa; }
.spec-table td:first-child { font-weight: 600; color: var(--color-primary-dark); white-space: nowrap; }

.note { font-size: 0.82rem; color: var(--color-text-light); background: #fff8ec; border: 1px solid #f5dfb8; border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 2rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.75rem; padding: 1rem 1.25rem; }
.faq-list summary { font-weight: 600; cursor: pointer; color: var(--color-primary-dark); font-size: 0.95rem; }
.faq-list details[open] summary { margin-bottom: 0.5rem; }
.faq-list details p { font-size: 0.88rem; color: var(--color-text-light); margin: 0; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.65rem 0.85rem; font-size: 0.9rem; font-family: var(--font-sans); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-white); color: var(--color-text); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(46, 142, 201, 0.12); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-card svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.contact-card h4 { font-size: 0.88rem; margin-bottom: 0.15rem; }
.contact-card p, .contact-card a { font-size: 0.88rem; margin: 0; word-break: break-word; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0; text-align: center; }
.stat-item h3 { font-size: 1.75rem; color: var(--color-accent); margin-bottom: 0.2rem; }
.stat-item p { font-size: 0.82rem; color: var(--color-text-light); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-media { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.25rem; box-shadow: var(--shadow-md); }
.about-media img { border-radius: 6px; }
.oem-list { list-style: none; display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.oem-list li { font-size: 0.92rem; padding-left: 1.6rem; position: relative; }
.oem-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }

/* Footer */
.footer { background: var(--color-primary-dark); color: rgba(255, 255, 255, 0.7); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer p, .footer a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); line-height: 1.8; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.25rem; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1200;
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--color-wa); color: #fff !important;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}
.wa-float:hover { background: var(--color-wa-dark); color: #fff !important; }
.wa-float svg { width: 20px; height: 20px; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 640px; }
  .hero-content .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-points { justify-items: center; }
  .hero-buttons { justify-content: center; }
  .hero-media { width: 100%; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--color-bg-white); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; width: 100%; }
  .nav-toggle { display: block; }
  .hero { padding: calc(var(--nav-height) + 2rem) 0 2rem; }
  .section { padding: 2.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.85rem; }
}
