/* ============================================
   修康药业集团 - 企业官网样式
   Primary: #2171DB | Accent: #FA7F31
   ============================================ */

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

:root {
  --primary: #2171DB;
  --primary-dark: #1a5bb5;
  --primary-light: #e8f0fc;
  --primary-lighter: #f4f8fe;
  --accent: #FA7F31;
  --accent-light: #fff3eb;
  --accent-dark: #e06a1f;
  --coral: #FF8A80;
  --text-dark: #1a2332;
  --text-body: #4a5568;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --bg-white: #ffffff;
  --bg-light: #f7f9fc;
  --bg-gray: #edf2f7;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 3px rgba(33, 113, 219, 0.06);
  --shadow-md: 0 4px 16px rgba(33, 113, 219, 0.08);
  --shadow-lg: 0 8px 32px rgba(33, 113, 219, 0.12);
  --shadow-xl: 0 16px 48px rgba(33, 113, 219, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1550px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

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

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

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(33, 113, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 113, 219, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(250, 127, 49, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 127, 49, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 70px;
}

.header.scrolled .nav-link {
  color: var(--text-body);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--primary);
}

.header.scrolled .mobile-toggle span {
  background: var(--text-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 1001;
}

.logo img {
  width: 210px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.header.scrolled .logo img {
  filter: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .nav-link {
  color: var(--text-body);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  text-align: center;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  background: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
}

.header-phone:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span {
  background: var(--text-dark);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/factory-01.jpg') center center / cover no-repeat;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.05) 70%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(33, 113, 219, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250, 127, 49, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat h3 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 800;
}

.hero-stat h3 span {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-stat p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.hero-image {
  position: relative;
}

.hero-image-main {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 20px;
  left: -30px;
}

.hero-float-card.card-2 {
  bottom: 40px;
  right: -20px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-float-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-float-card .icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.hero-float-card .icon.orange {
  background: var(--accent-light);
  color: var(--accent);
}

.hero-float-card .info h4 {
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-float-card .info p {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ---------- Features / About Preview ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

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

.section-full {
  padding-left: 0;
  padding-right: 0;
}

.section-full .section-header {
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto 64px;
}

.features-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.05);
}

.feature-card:hover .feature-icon svg {
  color: #fff;
}

.feature-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-light);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Video in About Preview ---------- */
.video-main-wrapper {
  margin-bottom: 12px;
}

.video-main-wrapper video {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #000;
}

.about-preview-image .video-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.about-preview-image .video-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.about-preview-image .video-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.about-preview-image .video-thumb {
  min-width: 90px;
  max-width: 90px;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.about-preview-image .video-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.about-preview-image .video-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(33,113,219,0.2);
}

.about-preview-image .video-thumb video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.about-preview-image .video-thumb span {
  display: block;
  text-align: center;
  padding: 4px 2px;
  font-size: 0.7rem;
  color: var(--text-body);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ---------- Products Section ---------- */
.products-section {
  background: linear-gradient(160deg, #1a5bb5 0%, #2572DB 40%, #3a8fd4 100%);
  position: relative;
  overflow: hidden;
}

.products-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.products-section .section-header h2 {
  color: #fff;
}

.products-section .section-header h2::after {
  background: linear-gradient(90deg, #fff, var(--accent));
}

.products-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-img {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

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

.product-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: rgba(33, 113, 219, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

.product-card-link:hover {
  gap: 10px;
  color: var(--accent);
}

/* ---------- Strength / Stats Section ---------- */
.stats-section {
  background: transparent;
  color: var(--text-body);
  position: relative;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  padding: 0;
  margin-top: 40px;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 16px;
}

.stat-number {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number span:first-child {
  font-size: 54px;
  font-weight: bold;
  color: #2171db;
}

.stat-number span:last-child {
  font-size: 30px;
  color: #2171db;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-body);
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-image {
  position: relative;
}

.about-preview-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.about-preview-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge h3 {
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}

.experience-badge p {
  font-size: 0.9rem;
  margin-top: 4px;
}

.about-preview-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-preview-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.about-feature-item .check {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-item .check svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

/* ---------- OEM / Service Section ---------- */
.oem-section {
  background: var(--bg-light);
}

.oem-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.oem-steps::before {
  display: none;
}

.oem-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.oem-step:not(:nth-child(4n))::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 22px;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.oem-step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  transition: all var(--transition);
}

.oem-step:hover .oem-step-num {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.oem-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

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

/* ---------- News Section ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

.news-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-featured-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-featured:hover .news-featured-img img {
  transform: scale(1.03);
}

.news-featured-info {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.news-featured-date {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.news-featured-info h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-list-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 80px;
  letter-spacing: -0.5px;
}

.news-list-content {
  flex: 1;
}

.news-list-content h3 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-content p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5bb5 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
}

.cta-section h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: linear-gradient(135deg, rgba(33, 113, 219, 0.85) 0%, rgba(26, 91, 181, 0.85) 100%), url('../images/banner-bio-research.png') center center / cover no-repeat;
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
}

.page-banner p {
  font-size: 1.1rem;
  opacity: 0.85;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.75;
  position: relative;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- About Page ---------- */
.about-content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content-section.reverse {
  direction: rtl;
}

.about-content-section.reverse > * {
  direction: ltr;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 400px;
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Strength Page ---------- */
.strength-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.strength-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.strength-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.strength-card-body {
  padding: 20px;
}

.strength-card-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.strength-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cert-card .cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cert-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

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

.cert-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-light);
}

.cert-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.cert-card-img.portrait {
  aspect-ratio: 3/4;
}

.trademark-scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.trademark-scroll-track {
  display: flex;
  gap: 20px;
  animation: scrollTrademark 20s linear infinite;
  width: fit-content;
}

@keyframes scrollTrademark {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trademark-scroll-item {
  flex-shrink: 0;
  width: 260px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition);
}

.trademark-scroll-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.trademark-scroll-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  margin-bottom: 12px;
}

.trademark-scroll-item p {
  font-size: 0.8rem;
  color: var(--text-light);
  word-break: break-all;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-info-card {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card .icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-info-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 113, 219, 0.1);
  background: #fff;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Recruitment Page ---------- */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.job-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 20px;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.job-meta svg {
  width: 16px;
  height: 16px;
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.job-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-light);
  transition: all var(--transition);
  font-size: 0.85rem;
  color: var(--text-light);
}

.job-card:hover .job-toggle {
  background: var(--primary);
  color: #fff;
}

.toggle-text {
  white-space: nowrap;
}

.toggle-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.job-card.expanded .toggle-arrow {
  transform: rotate(180deg);
}

.job-requirements {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.job-card.expanded .job-requirements {
  max-height: 400px;
  opacity: 1;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}

.job-requirements h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.job-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-requirements ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.job-requirements ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

/* ---------- Team Gallery ---------- */
.team-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.team-gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-gallery-item:hover img {
  transform: scale(1.05);
}

.team-gallery-item h4 {
  text-align: center;
  padding: 14px 16px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,0.7fr) minmax(0,0.8fr) minmax(0,0.7fr) minmax(0,0.6fr) minmax(0,0.6fr) minmax(0,1.3fr) minmax(0,0.6fr);
  gap: 8px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo img {
  width: 210px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col,
.footer-brand,
.footer-qrcode {
  min-width: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

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

.footer-qrcode h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-qrcode img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.footer-qrcode p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.friend-links {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.friend-links-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.friend-links-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.friend-links-list a:hover {
  color: var(--accent);
}

/* ---------- Factory Gallery ---------- */
.factory-gallery-section {
  background: #fff !important;
}

.factory-gallery-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.factory-gallery-track {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  animation: scrollGallery 40s linear infinite;
  width: fit-content;
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.factory-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  width: 380px;
}

.factory-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.factory-gallery-item:hover img {
  transform: scale(1.05);
}

.factory-gallery-overlay {
  position: static;
  padding: 14px 16px 16px;
  background: #fff;
  color: var(--text-dark);
}

.factory-gallery-overlay h4 {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.factory-gallery-overlay p {
  display: none;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ---------- Loading ---------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;

  animation: hideLoader 0.5s ease 1.5s forwards;
}



@keyframes hideLoader {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

  .about-preview {
    grid-template-columns: 1fr;
  }

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

  .oem-step:not(:nth-child(4n))::after {
    content: none;
  }

  .oem-step:not(:nth-child(2n))::after {
    content: none;
  }

  .oem-step:not(:nth-child(2n))::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 22px;
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-brand,
  .footer-qrcode,
  .footer-col:nth-child(7) {
    grid-column: 1 / -1;
  }

  .page-banner {
    padding: 120px 0 60px;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    max-width: 100%;
  }

  .strength-gallery {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 20px 24px;
  }

  .job-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-toggle {
    align-self: flex-end;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

      /* OEM feature items: 2-char per line title on mobile */
      .about-feature-item {
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
      }
      .about-feature-item .check {
        flex-shrink: 0 !important;
        min-width: 20px !important;
        margin-top: 4px !important;
      }
      .about-feature-item strong {
        white-space: normal !important;
        flex-shrink: 0 !important;
        width: 2em !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        display: inline-block !important;
      }


  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .factory-gallery-item {
    width: 260px;
  }

  .factory-gallery-item img {
    height: 170px;
  }

      /* Factory gallery: faster scroll on mobile */
      .factory-gallery-track {
        animation-duration: 10s !important;
      }

}






@media (max-width: 768px) {
  :root { --header-height: 70px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  .section { padding: 50px 0; }

  /* === 2-column modules (user requested) === */
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-section { height: auto !important; min-height: 140px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; }
  .footer-brand, .footer-qrcode, .footer-col:nth-child(7) { grid-column: 1 / -1 !important; }
  .oem-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .oem-step::after { content: none !important; }

  /* === 1-column overrides (cancel 1024px 2-col rules) === */
  .about-content-section { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-content-section.reverse { direction: ltr !important; }
  .news-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-info-cards { grid-template-columns: 1fr !important; }
  .products-grid, .products-card-grid { grid-template-columns: 1fr !important; }
  .recommend-grid { grid-template-columns: 1fr !important; }
  .strength-gallery, .cert-grid, .team-gallery-grid { grid-template-columns: 1fr !important; }
  .news-cards, .news-grid { grid-template-columns: 1fr !important; }

  /* === Navigation === */
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 85%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 100px 0 32px; box-shadow: var(--shadow-xl);
    transition: right var(--transition); overflow-y: auto; z-index: 1002;
  }
  .nav.open { right: 0; }
  .nav-item { margin-bottom: 4px; }
  .nav-link {
    display: block; width: 100%; padding: 14px 24px;
    font-size: 1.05rem; font-weight: 500; color: var(--text-body);
  }
  .nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
  .nav-link .arrow { float: right; font-size: 0.75rem; margin-top: 4px; transition: transform 0.3s; }
  .nav-item.open .nav-link .arrow { transform: rotate(180deg); }
  .nav-item { width: 100%; }
  .nav-item .dropdown,
  .nav-item:hover .dropdown,
  .nav-item.open .dropdown {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    text-align: left;
    box-shadow: none;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
  }
  .nav-item .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-item .dropdown a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--text-body);
    box-sizing: border-box;
  }
  .nav-item .dropdown a:hover,
  .nav-item .dropdown a.active {
    color: var(--primary);
    background: var(--primary-light);
  }
  .mobile-toggle { display: flex; }
  .header-phone { display: none; }

  /* === Hero === */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .about-preview { grid-template-columns: 1fr; }

      /* Fix video section overflow on mobile */
      .about-preview-image {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
      }
      .video-main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
      }
      .video-main-wrapper video {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: var(--radius-lg) !important;
      }
      .about-preview-image .video-thumbnails {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
      }
      .about-preview-image .video-thumb {
        min-width: 72px !important;
        max-width: 72px !important;
      }
      .about-preview-image .video-thumb span {
        font-size: 0.62rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }


  /* === Page Banner === */
  .page-banner { padding: 100px 0 50px; }
  .page-banner h1 { font-size: 1.8rem; }

  /* === Timeline === */
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { padding-left: 56px; padding-right: 0; justify-content: flex-start; }
  .timeline-dot { left: 20px; }
  .timeline-content { max-width: 100%; }

  /* === CTA === */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }

  /* === Factory Gallery === */
  .factory-gallery-item { width: 260px; }
  .factory-gallery-item img { height: 170px; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section {
    padding: 40px 0;
  }

  .features-grid,
  .products-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .strength-gallery,
  .cert-grid,
  .team-gallery-grid {
    grid-template-columns: 1fr;
  }

  /* factory-gallery-item width removed to preserve horizontal scroll */

  .stat-number span:first-child {
    font-size: 32px;
  }

  .stat-number span:last-child {
    font-size: 18px;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .oem-steps {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 1.5rem;
  }

  .nav {
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- Fixed Sidebar ---------- */
.cs-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-item {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cs-item svg {
  width: 22px;
  height: 22px;
}

.cs-item-wechat {
  background: #07c160;
}

.cs-item-phone {
  background: #2171DB;
}

.cs-item-consult {
  background: #FA7F31;
}

.cs-item:hover {
  opacity: 0.85;
}

.cs-popup {
  display: none;
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 16px;
  text-align: center;
  white-space: nowrap;
}

.cs-popup-qr {
  width: 160px;
}

.cs-popup-qr img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 8px;
}

.cs-popup-qr p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.cs-popup-phone {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
}

.cs-popup-phone .phone-number {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.cs-popup-phone .phone-hint {
  font-size: 12px;
  color: #999;
}

.cs-item:hover .cs-popup {
  display: block;
}

.cs-item:hover .cs-popup-phone {
  display: flex;
}
