/**
 * Jiaxing Smart Technology - High-Tech Open Enterprise Aesthetic
 * Open layouts, precise dividers, image-text composition, minimal rounding, crisp industrial lines.
 */

:root {
  --brand-primary: #1e40af;
  --brand-blue: #2563eb;
  --brand-dark: #0f172a;
  --brand-slate: #1e293b;
  --brand-muted: #64748b;
  --brand-border: #e2e8f0;
  --brand-light-border: #f1f5f9;
  --brand-bg: #f8fafc;
}

html {
  scroll-behavior: smooth;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Technical Typography Classes */
.font-tech {
  font-family: "Space Grotesk", "Plus Jakarta Sans", "PingFang SC", sans-serif;
}

.font-mono-tech {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
  color: #334155;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================
   Open Layout & Industrial Grid Styles (No Rounded Blobs)
   ========================================================== */

.open-block {
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.open-block-hover:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.open-grid-item {
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.open-grid-item:hover {
  background-color: #f8fafc;
}

/* Precise Dividers */
.divider-line {
  height: 1px;
  background-color: #e2e8f0;
  width: 100%;
}
.divider-vert {
  width: 1px;
  background-color: #e2e8f0;
}

/* High-Tech Section Header Tag */
.tech-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  padding: 0.25rem 0.75rem;
  background-color: #eff6ff;
  border-left: 3px solid #2563eb;
}

.tech-tag-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  border-left: 3px solid #60a5fa;
}

/* Minimalist Industrial Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e40af;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid #1e40af;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.btn-outline-blue:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

/* Hero Carousel Slider */
.banner-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0b1120;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-dot {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.banner-dot .dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #3b82f6;
}

.banner-dot.active .dot-progress {
  animation: dotTimer 6s linear forwards;
}

@keyframes dotTimer {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Image Hover Zoom */
.img-zoom {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .img-zoom {
  transform: scale(1.03);
}

/* Technical Specification Table */
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.8125rem;
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-label {
  color: #64748b;
  font-weight: 500;
}
.spec-value {
  color: #0f172a;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================
   Navigation Bar & Spatial Aesthetics
   ========================================================== */

.nav-item {
  border-radius: 2px;
  position: relative;
}

.nav-item-active {
  border-radius: 2px;
  background-color: rgba(239, 246, 255, 0.6);
}

#main-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

#main-header.scrolled {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Subtle Technical Grid Lines */
.bg-tech-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

.bg-dark-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
