/* Quanzhou Shenghongda Hygiene Products Co., Ltd. - Main Style System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --primary-color: #0f4c81; /* Deep Trust Blue */
  --primary-hover: #0a355c;
  --secondary-color: #8cdbb3; /* Soft Hygiene Mint */
  --secondary-dark: #5cb68d;
  --accent-color: #ff9f43; /* Soft Gold/Orange for CTAs */
  --text-dark: #1e293b; /* Charcoal for text */
  --text-muted: #64748b; /* Slate gray */
  --bg-light: #f8fafc; /* Warm off-white */
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(15, 76, 129, 0.05);
  --shadow-md: 0 8px 16px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 76, 129, 0.12);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  --container-width: 1200px;
  --header-height: 80px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* --- Layout Utilities --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 6px rgba(15, 76, 129, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(15, 76, 129, 0.25);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: #f39c12;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* --- Interactive Compass Navigation --- */
.compass-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
}

/* Compass Trigger Button - Pill Shape Layout */
.compass-trigger {
  height: 40px;
  padding: 0 16px 0 6px;
  border-radius: 20px;
  background: var(--bg-white);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.15);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1005;
  outline: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, border-color 0.3s;
}

.compass-trigger:hover,
.compass-trigger:focus-visible {
  box-shadow: 0 0 20px rgba(140, 219, 179, 0.6);
  border-color: var(--secondary-dark);
  transform: scale(1.05);
}

.compass-trigger:hover .sitemap-text,
.compass-trigger:hover .sitemap-arrow {
  color: var(--secondary-dark);
}

.sitemap-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  transition: color 0.3s;
}

.sitemap-arrow {
  font-size: 0.8rem;
  color: var(--primary-color);
  display: inline-block;
  animation: arrowBounce 2s infinite ease-in-out;
  transition: color 0.3s;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Dial and Needle Styling */
.compass-dial {
  width: 28px;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-dial-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(15, 76, 129, 0.4);
  border-radius: 50%;
  animation: compassRotate 20s linear infinite;
}

.compass-needle {
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, #ff4d4d 50%, var(--primary-color) 50%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  transform: rotate(45deg); /* Default north-east tilt */
}

.compass-center {
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  z-index: 2;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

/* Dynamic Needle Animations */
.compass-nav-container.active .compass-needle,
.compass-nav-container:hover .compass-needle {
  transform: rotate(225deg); /* Flips needle pointing to menu when active/hovered */
}

/* Active pulse indicator on sitemap container - pill format */
.compass-nav-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 24px;
  border: 2px solid var(--secondary-color);
  opacity: 0;
  pointer-events: none;
  z-index: 1004;
  transition: all var(--transition-normal);
}

.compass-nav-container:not(.active):hover::before {
  animation: sitemapPulse 2s infinite;
}

@keyframes sitemapPulse {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1.04); opacity: 0; }
}

@keyframes compassPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes compassRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Toggle Helpers */
.pc-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}

/* Hamburger Menu Icon */
.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

/* Hamburger transform to X when active */
.compass-nav-container.active .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background-color: var(--secondary-dark);
}
.compass-nav-container.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.compass-nav-container.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background-color: var(--secondary-dark);
}

/* Responsive styling for Mobile Trigger */
@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
  
  /* Transform pill trigger button to circle on mobile */
  .compass-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
  }
  
  .compass-nav-container::before {
    border-radius: 50%;
  }
  
  .compass-nav-container:not(.active):hover::before {
    animation: mobileSitemapPulse 2s infinite;
  }
}

/* Mobile narrow screen radial semicircle shrink (preventing overflow) */
@media (max-width: 480px) {
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 0"] {
    --target-x: -110px; --target-y: 0px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 1"] {
    --target-x: -99px; --target-y: 48px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 2"] {
    --target-x: -68px; --target-y: 85px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 3"] {
    --target-x: -24px; --target-y: 107px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 4"] {
    --target-x: 24px; --target-y: 107px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 5"] {
    --target-x: 68px; --target-y: 85px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 6"] {
    --target-x: 99px; --target-y: 48px;
  }
  .compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 7"] {
    --target-x: 110px; --target-y: 0px;
  }
  
  /* Sensor helper footprint on narrow mobile screens */
  .compass-nav-container.active .compass-menu::before {
    left: -130px;
    width: 260px;
    height: 180px;
  }
}

@keyframes mobileSitemapPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Menu Items Radial Core List */
.compass-menu {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1002;
}

/* Invisible helper area to maintain hover capture over the 180° radial items */
.compass-nav-container.active .compass-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -160px;
  width: 320px;
  height: 220px;
  background: transparent;
  pointer-events: auto;
  z-index: -1;
}

/* Individual Radial Item Container */
.compass-item {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid rgba(15, 76, 129, 0.15);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translate(0, 0) scale(0.5);
  z-index: 1002;
}

/* Magnet hover snapping and glowing border */
.compass-item:hover,
.compass-item:focus-visible {
  background: var(--secondary-color);
  border-color: var(--secondary-dark);
  color: var(--primary-color);
  box-shadow: 0 0 20px rgba(140, 219, 179, 0.6);
  transform: translate(var(--target-x), var(--target-y)) scale(1.15) !important;
}

.compass-item.active {
  border-color: var(--accent-color);
  background: rgba(255, 159, 67, 0.05);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.15);
}

.compass-item .item-icon {
  font-size: 1.25rem;
}

/* Permanent horizontal label below items when menu is fanned open */
.compass-item .item-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 76, 129, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.compass-nav-container.active .compass-item .item-label {
  opacity: 1;
  visibility: visible;
}

.compass-item:hover .item-label,
.compass-item:focus-visible .item-label {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 76, 129, 0.2);
  border-color: var(--primary-color);
}

/* Backdrop Overlay styling - Focus Mode */
.compass-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 9998;
}

.compass-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Expansion Mathematics for 180° Downward Arc Spread (Radius: 140px) */
.compass-nav-container.active .compass-menu .compass-item {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 0"] {
  --target-x: -140px; --target-y: 0px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 1"] {
  --target-x: -126px; --target-y: 61px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.03s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 2"] {
  --target-x: -87px; --target-y: 109px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.06s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 3"] {
  --target-x: -31px; --target-y: 136px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.09s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 4"] {
  --target-x: 31px; --target-y: 136px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.12s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 5"] {
  --target-x: 87px; --target-y: 109px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.15s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 6"] {
  --target-x: 126px; --target-y: 61px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.18s;
}
.compass-nav-container.active .compass-menu .compass-item[style*="--item-index: 7"] {
  --target-x: 140px; --target-y: 0px;
  transform: translate(var(--target-x), var(--target-y)) scale(1);
  transition-delay: 0.21s;
}

/* Global Header adaptation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  margin: 0 auto;
}

.header-center-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Offset body on all pages to clear the 60px fixed header and prevent text covering */
body {
  padding-top: 60px;
}


/* --- Hero Banner --- */
.hero {
  position: relative;
  height: 600px;
  background: url('../images/hero_banner.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(15, 76, 129, 0.45));
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-actions .btn-secondary {
  border-color: var(--bg-white);
  color: var(--bg-white);
}

.hero-actions .btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .hero {
    height: 480px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Key Statistics Widget --- */
.stats-banner {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
  gap: 20px;
}

.stat-item h3 {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* --- Features / Core Strengths --- */
.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--secondary-color);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(140, 219, 179, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* --- Certificates Section --- */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.cert-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 180px;
  transition: var(--transition-fast);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary-color);
}

.cert-badge {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: rgba(15, 76, 129, 0.05);
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  border: 2px dashed var(--secondary-color);
}

.cert-card h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.cert-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* --- Product Categories Tabs & Cards --- */
.tabs-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  background-color: var(--bg-light);
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

.product-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-features {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-dark);
  font-weight: 700;
}

.product-card .btn {
  width: 100%;
}

/* --- Specifications Tables --- */
.table-responsive {
  overflow-x: auto;
  margin-top: 30px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: var(--bg-white);
}

.spec-table th, 
.spec-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.spec-table tr:hover {
  background-color: rgba(140, 219, 179, 0.05);
}

/* --- About & History timeline --- */
.history-section {
  position: relative;
  padding-left: 30px;
  margin-left: 10px;
  border-left: 2px solid var(--border-color);
}

.history-item {
  position: relative;
  margin-bottom: 40px;
}

.history-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.history-year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.history-item p {
  color: var(--text-muted);
}

/* --- OEM/ODM Pipeline Process --- */
.pipeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.pipeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  width: 16%;
  text-align: center;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.pipeline-step:hover .step-num {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.pipeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pipeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .pipeline {
    flex-direction: column;
    gap: 40px;
  }
  .pipeline::before {
    display: none;
  }
  .pipeline-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  .step-num {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* --- Accordion FAQ --- */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--bg-white);
}

.faq-header {
  padding: 20px;
  background-color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-header:hover {
  background-color: rgba(140, 219, 179, 0.05);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform var(--transition-normal);
}

.faq-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
  color: var(--text-muted);
}

.faq-item.active .faq-body {
  padding: 0 20px 20px 20px;
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* --- Contact Form & Info --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-text p {
  color: var(--text-muted);
}

.contact-form {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  margin-top: 40px;
  height: 350px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(140, 219, 179, 0.1), rgba(15, 76, 129, 0.05));
  text-align: center;
  padding: 20px;
}

.map-placeholder h3 {
  margin-bottom: 10px;
}

/* --- Footer --- */
footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-col h3 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
}

.footer-contact-list li {
  position: relative;
  padding-left: 25px;
}

.footer-contact-list li::before {
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.footer-contact-list .loc::before { content: '📍'; }
.footer-contact-list .tel::before { content: '📞'; }
.footer-contact-list .eml::before { content: '✉️'; }
.footer-contact-list .wa::before { content: '💬'; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* --- Scroll Animation Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Success Feedback Popup --- */
.toast-msg {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 2000;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 5px solid var(--secondary-color);
}

.toast-msg.show {
  bottom: 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- B2B News Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .articles-list {
    grid-template-columns: 1fr;
  }
}
.news-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.news-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-light);
}
.news-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-widget {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
}
.sidebar-widget h4 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  display: inline-block;
}
.recent-post-link {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 500;
}
.recent-post-link:hover {
  color: var(--primary-color);
}
.recent-post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* --- Editorial Detail Page --- */
.editorial-container {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
}
@media (max-width: 992px) {
  .editorial-container {
    grid-template-columns: 1fr;
  }
}
.article-header {
  margin-bottom: 30px;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  gap: 20px;
}
.article-featured-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}
.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}
.article-body h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 35px 0 15px 0;
}
.article-body p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.7;
}
.article-body ul {
  margin-bottom: 25px;
  padding-left: 20px;
}
.article-body li {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sidebar-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-inquiry-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.sidebar-inquiry-form .form-control {
  padding: 10px;
  font-size: 0.9rem;
}

/* --- Case Studies Layout --- */
.case-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.case-block {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.case-block:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
@media (max-width: 992px) {
  .case-block {
    grid-template-columns: 1fr;
  }
}
.case-visual {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.case-metric {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}
.case-metric-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.case-details h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.case-details h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 20px 0 10px 0;
}
.case-details p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* --- Floating B2B Chat Widget --- */
.b2b-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: 60px;
  height: 60px;
}

.b2b-chat-widget:hover {
  max-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  padding: 8px 16px 8px 8px;
}

.chat-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 76, 129, 0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.b2b-chat-widget:hover .chat-trigger {
  transform: rotate(90deg);
  background-color: var(--secondary-color);
}

.chat-options {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.b2b-chat-widget:hover .chat-options {
  opacity: 1;
  transform: translateX(0);
}

.chat-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.chat-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.chat-btn.whatsapp {
  background-color: #25D366;
}

.chat-btn.wechat {
  background-color: #07C160;
  position: relative;
}

.chat-btn.phone {
  background-color: #0f4c81;
}

.wechat-popup {
  position: absolute;
  bottom: 130%;
  right: -50px;
  background-color: #fff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  width: 200px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10000;
}

.wechat-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.chat-btn.wechat:hover .wechat-popup {
  visibility: visible;
  opacity: 1;
}

.wechat-popup p {
  margin: 0 0 5px 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

.wechat-popup strong {
  font-size: 0.95rem;
  color: #07C160;
}

/* Floating B2B Social Share Bar */
.b2b-social-share-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.b2b-social-share-bar .share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.b2b-social-share-bar .share-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.b2b-social-share-bar .share-btn.fb { background: #1877f2; }
.b2b-social-share-bar .share-btn.ln { background: #0a66c2; }
.b2b-social-share-bar .share-btn.wa { background: #25d366; }
.b2b-social-share-bar .share-btn.wx { background: #07c160; }

/* Floating B2B Social & AI Follow Sidebar (Left Margin) */
.b2b-social-follow-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.b2b-social-follow-sidebar .follow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

.b2b-social-follow-sidebar .follow-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.b2b-social-follow-sidebar .follow-btn.ln { background: #0a66c2; }
.b2b-social-follow-sidebar .follow-btn.fb { background: #1877f2; }
.b2b-social-follow-sidebar .follow-btn.yt { background: #ff0000; }
.b2b-social-follow-sidebar .follow-btn.ig { background: #e1306c; }
.b2b-social-follow-sidebar .follow-btn.tt { background: #000000; }
.b2b-social-follow-sidebar .follow-btn.gemini { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.b2b-social-follow-sidebar .follow-btn.chatgpt { background: #10a37f; }



