/* Enterprise B2B Design Tokens & Styling for XIQI TECH */
:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.09);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1240px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--secondary-hover);
}

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

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

/* Top Announcement Bar */
.top-bar {
  background: var(--dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  color: #e2e8f0;
}
.top-bar-badges span strong {
  color: #38bdf8;
}
.top-bar-contact a {
  color: #cbd5e1;
}
.top-bar-contact a:hover {
  color: #ffffff;
}

/* Main Navigation */
.header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  padding: 8px 4px;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}
.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 50%, #ffffff 100%);
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: linear-gradient(90deg, #0f766e, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-bluf {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}
.hero-bluf strong {
  color: var(--dark);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-box h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-card-img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}
.hero-card-body {
  padding: 24px;
}
.hero-card-body h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.hero-card-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Trust Bar / Cert Strip */
.trust-strip {
  background: #ffffff;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-strip-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: center;
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-badge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}
.trust-badge-item img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.trust-badge-item div h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--dark);
}
.trust-badge-item div p {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

/* Section Common */
.section {
  padding: 72px 0;
}
.section-subtle {
  background: var(--bg-subtle);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--muted);
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.product-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f1f5f9;
  overflow: hidden;
}
.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img {
  transform: scale(1.04);
}
.product-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}
.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card-sku {
  font-size: 11.5px;
  font-family: monospace;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}
.product-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}
.product-card-specs {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-specs span strong {
  color: var(--slate);
}
.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price-box {
  display: flex;
  flex-direction: column;
}
.product-price-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.product-price-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.product-price-val small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.category-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.category-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Certificate Cards Hub */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.cert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.cert-card-badge {
  width: 100%;
  height: 150px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cert-card-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.cert-card-type {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.cert-card-code {
  font-family: monospace;
  font-size: 12.5px;
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--dark);
  font-weight: 700;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.cert-card p {
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 12px;
}
.cert-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Factory Tour Gallery */
.factory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.factory-photo-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.factory-photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.factory-photo-card-body {
  padding: 16px 20px;
}
.factory-photo-card-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.factory-photo-card-body p {
  font-size: 12.5px;
  color: var(--muted);
}

/* Product Detail Page (PDP) Layout */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.pdp-gallery {
  position: sticky;
  top: 94px;
}
.pdp-main-img-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.pdp-main-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pdp-info h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.pdp-sku-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.pdp-pricing-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.pdp-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
}
.pdp-moq {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.pdp-features-list {
  margin-bottom: 24px;
  list-style: none;
}
.pdp-features-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--slate);
}
.pdp-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.spec-table th {
  background: var(--bg-subtle);
  color: var(--dark);
  font-weight: 700;
  width: 35%;
}
.spec-table td {
  color: var(--slate);
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb-separator {
  color: #cbd5e1;
}

/* Contact & Inquiry Form */
.inquiry-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.honeypot-field {
  display: none !important;
  visibility: hidden;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  color: #94a3b8;
}
.footer-col h5 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-contact-item {
  font-size: 13.5px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}
.footer-contact-item strong {
  color: #ffffff;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom p {
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pdp-layout {
    grid-template-columns: 1fr;
  }
  .pdp-gallery {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
