/* ===================================================
   YiLian Furnishings — web03 Design System
   NingBo YiLian Furnishings Co., Ltd.
   PVC Nano Cabinet Board Manufacturer
   =================================================== */

/* ── Fonts ── */
/* Google Fonts 由 enqueue 统一加载（wp_enqueue_style('yilian-fonts')），此处不再 @import，避免双重加载（审核修复） */

/* ── CSS Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Design Tokens ── */
:root {
  /* Primary — Navy Blue (基于 #1F497D) */
  --brand-600: #1F497D;
  --brand-500: #2B5A9A;
  --brand-400: #3B7BC8;
  --brand-300: #5A9EE0;
  --brand-200: #8BBDEA;
  --brand-glow: rgba(31, 73, 125, 0.10);

  /* Light — Clean White/Cream Base */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f6f3;
  --bg-cream: #faf7f2;
  --bg-warm: #f5f0ea;
  --bg-card: #ffffff;

  /* Text — High Contrast */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8580;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-light: #e8e4de;
  --border-med:   #d6d0c8;

  /* Surface — Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10);

  /* Dark accent (for footer/CTA, minimal use) */
  --dark-bg: #1a1410;
  --dark-text: #e8e4de;
  --dark-muted: #a09890;

  /* Semantic */
  --green-eco: #2d6a4f;
  --red-fire:  #b91c1c;

  /* Typography */
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --alt: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  /* Layout */
  --max-wide:  1340px;
  --max-narrow: 900px;
  --header-h: 72px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-med:  400ms;
  --dur-slow: 600ms;
}

/* ── Container ── */
.container { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: var(--max-narrow); }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
.section-label {
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-600);
  margin-bottom: var(--space-sm);
}
.section-title { margin-bottom: var(--space-sm); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--alt);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-600);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--brand-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(31, 73, 125, 0.3);
}
/* White border helps btn stand out on dark banner backgrounds */
.site-header.scrolled .btn-primary {
  border: 1.5px solid rgba(255,255,255,0.2);
}
.site-header.scrolled .btn-primary:hover {
  border-color: rgba(255,255,255,0.4);
}
.btn-outline {
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}
/* Hero-specific buttons — orange pops against navy */
.hero-actions .btn-primary {
  background: #e07c2e;
  color: #ffffff;
  border: 1.5px solid #e07c2e;
}
.hero-actions .btn-primary:hover {
  background: #d06d1f;
  border-color: #d06d1f;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(224, 124, 46, 0.35);
  transform: translateY(-2px);
}
.hero-actions .btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #ffffff;
  background: transparent;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
}
.btn-gold {
  background: var(--brand-600);
  color: var(--text-inverse);
}
.btn-gold:hover {
  background: var(--brand-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(31, 73, 125, 0.3);
}
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ── Section Spacing ── */
.section { padding: var(--space-2xl) 0; }
.section-dark {
  background: var(--bg-warm);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-dark h2,
.section-dark h3 { color: var(--text-primary); }
.section-dark .section-sub { color: var(--text-muted); }
.section-cream { background: var(--bg-cream); }
.section-white { background: var(--bg-primary); }
.section-walnut { background: var(--bg-warm); color: var(--text-primary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-walnut h2 { color: var(--brand-600); }

/* ── Header / Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all var(--dur-med) var(--ease-out);
  /* Will be overridden on scroll */
}
.site-header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}
.site-header:not(.scrolled) {
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--alt);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.site-header .logo-img {
  height: 48px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-600);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--alt);
  letter-spacing: 0;
}
.logo span { color: var(--text-primary); }
.scrolled .logo span { color: var(--text-primary); }
.site-header:not(.scrolled) .logo span { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a:not(.btn) {
  font-family: var(--alt);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-600);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--brand-600); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.site-header:not(.scrolled) .nav-links a:not(.btn) { color: var(--text-primary); }
.site-header:not(.scrolled) .nav-links a:not(.btn):hover { color: var(--brand-600); }
/* Active page — bold + brand orange */
.nav-links a.nav-active,
.nav-links a.nav-active:hover {
  font-weight: 700;
  color: #ff5000 !important;
}
.nav-links a.nav-active::after { background: #ff5000; }
.site-header:not(.scrolled) .logo-icon { background: var(--brand-600); color: #ffffff; }
.site-header:not(.scrolled) .nav-cta { border-color: #ffffff; color: #ffffff; background: transparent; }
.site-header:not(.scrolled) .nav-cta:hover { background: #ffffff; color: var(--brand-600); }

/* ── Homepage Transparent Header (video bg) ── */
.home-header:not(.scrolled) {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.home-header:not(.scrolled) .nav-links a:not(.btn) {
  color: rgba(255,255,255,0.9);
}
.home-header:not(.scrolled) .nav-links a:not(.btn):hover {
  color: #ffffff;
}
.home-header:not(.scrolled) .nav-links a:not(.btn)::after {
  background: #ffffff;
}
.home-header:not(.scrolled) .nav-cta {
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
  background: transparent;
}
.home-header:not(.scrolled) .nav-cta:hover {
  background: #ffffff;
  color: var(--brand-600);
}
.home-header:not(.scrolled) .lang-current {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}
.home-header:not(.scrolled) .lang-current:hover {
  border-color: #ffffff;
  color: #ffffff;
}
.home-header:not(.scrolled) .hamburger span {
  background: #ffffff;
}
.home-header:not(.scrolled) .nav-links .lang-dropdown a {
  color: var(--text-secondary);
}
.home-header:not(.scrolled) .nav-links .lang-dropdown a:hover {
  color: var(--brand-600);
}
.home-header:not(.scrolled) .nav-links .lang-dropdown a.active {
  color: var(--brand-600);
}

/* ── Mobile Menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark-bg);
  transition: all var(--dur-fast);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--text-inverse);
  z-index: 999;
  padding: calc(var(--header-h) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transition: right var(--dur-med) var(--ease-out);
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: var(--space-md) 0;
  font-family: var(--alt);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-bg);
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu .btn-primary { color: #ffffff; }
.mobile-menu .mobile-lang a { color: var(--text-secondary); }
.mobile-menu .mobile-lang a.active { color: #ffffff; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--brand-600);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(43,90,154,0.3) 0%, transparent 50%);
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-size: cover;
  background-position: center;
}
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,73,125,0.78) 25%, rgba(31,73,125,0.45) 50%, rgba(31,73,125,0.72) 100%);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video-bg.active {
  opacity: 0.3;
}

/* Hero banner image — alternates with video */
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.hero-banner-img.active {
  opacity: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-family: var(--alt);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-lg);
}
.hero h1 {
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.hero h1 .highlight {
  color: #25D366;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.hero-tags {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--alt);
  font-weight: 500;
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-gold { background: var(--brand-500); }
.dot-green { background: var(--green-eco); }
.dot-red { background: var(--red-fire); }

/* ── Hero Product Categories ── */
.hero-categories {
  display: flex;
  gap: 12px;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.hero-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  min-width: 100px;
  flex: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-cat-item:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.hero-cat-icon {
  width: 100px;
  height: 100px;
  border-radius: 50% 0 50% 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}
.hero-cat-item:hover .hero-cat-icon {
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.1);
}
.hero-cat-label {
  font-family: var(--alt);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
}
.hero-product-showcase {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--brand-600);
  box-shadow: 0 20px 60px rgba(31, 73, 125, 0.15);
}
.hero-product-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-product-overlay {
  position: absolute;
  inset: 0;
}
.hero-product-overlay .big-number {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  opacity: 0.95;
}
.hero-product-overlay .big-label {
  font-family: var(--alt);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-xs);
}


/* ── Stats Bar ── */
.stats-bar {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--text-inverse);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  overflow: hidden;
}
.stat-item {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}
.stat-number {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-number .suffix { font-size: 1rem; color: var(--brand-600); }
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--alt);
  font-weight: 500;
}

/* ── Brand Intro ── */
.brand-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.brand-intro-text .lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.brand-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.brand-highlight {
  padding: var(--space-md);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-600);
}
.brand-highlight h4 {
  font-family: var(--alt);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.brand-highlight p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.brand-intro-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border-light);
}
.brand-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Products Section ── */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.product-card {
  position: relative;
  background: var(--text-inverse);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--border-light);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 34, 28, 0.1);
  border-color: var(--border-med);
}
.product-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-card-image {
  aspect-ratio: 4/3;
  background: var(--border-light);
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  background: var(--brand-600);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--alt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}
.product-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.product-card-body h3 {
  margin-bottom: var(--space-xs);
}
.product-card-body .product-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}
.product-specs-mini {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.product-specs-mini span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

/* ── Advantages ── */
.adv-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.adv-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  align-items: start;
}
.adv-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--brand-600);
  flex-shrink: 0;
}
.adv-content h4 {
  font-family: var(--alt);
  font-weight: 600;
  margin-bottom: 4px;
}
.adv-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Alternating Feature Sections ── */
.alt-features { display: flex; flex-direction: column; gap: var(--space-2xl); }
.alt-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.alt-feature.reverse { direction: rtl; }
.alt-feature.reverse > * { direction: ltr; }
.alt-feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border-light);
}
.alt-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alt-feature-text .feature-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-300);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.alt-feature-text h3 { margin-bottom: var(--space-sm); }
.alt-feature-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Scenarios ── */
.scenarios-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}
.scenario-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--text-secondary);
}
.scenario-card:first-child { grid-row: span 2; aspect-ratio: auto; }
.scenario-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.scenario-card:hover img { transform: scale(1.05); }
.scenario-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.scenario-overlay h3 {
  color: var(--text-inverse);
  margin-bottom: 4px;
}
.scenario-overlay p {
  color: var(--border-med);
  font-size: 0.85rem;
}

/* ── Partners ── */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
}
.partner-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  font-family: var(--alt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--dur-fast);
}
.partner-item:hover {
  border-color: var(--brand-600);
  color: var(--text-primary);
  box-shadow: 0 2px 12px var(--brand-glow);
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 60%);
}
.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  z-index: 1;
}
.cta-text h2 { color: var(--text-primary); }
.cta-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}
.cta-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-group { margin-bottom: var(--space-md); }
.form-group.full { grid-column: span 2; }
.form-group label {
  display: block;
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--dur-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-600);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group select option { color: var(--text-primary); background: var(--text-inverse); }
.form-group textarea { min-height: 80px; resize: vertical; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 2px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand .logo-img { height: 44px; }
.footer-brand .logo span { color: var(--text-primary); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  margin-bottom: var(--space-md);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer Social (后台 全局设置 → 社交链接 维护) ── */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  margin-bottom: var(--space-lg);
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.footer-social-link:hover {
  color: #fff;
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 104px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all var(--dur-fast);
  color: white;
  font-size: 1.5rem;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* ── Page Hero ── */
.page-hero {
  background: var(--bg-warm);
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, var(--brand-glow) 0%, transparent 60%);
}
.page-hero h1 { color: var(--text-primary); margin-bottom: var(--space-sm); }
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}
/* Banner background for inner pages */
.page-hero.has-banner {
  background: var(--brand-600);
  padding: calc(var(--header-h) + var(--space-2xl) + 40px) 0 var(--space-xl);
  border-bottom: none;
}
.page-hero.has-banner .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero.has-banner::before {
  background: linear-gradient(135deg, rgba(31,73,125,0.75) 0%, rgba(31,73,125,0.40) 50%, rgba(31,73,125,0.65) 100%);
}
.page-hero.has-banner h1 { color: var(--text-inverse); }
.page-hero.has-banner p { color: rgba(255,255,255,0.85); }
.page-hero.has-banner .section-label { color: var(--brand-200) !important; }
.page-hero.has-banner .breadcrumb-override { color: rgba(255,255,255,0.6); }
.page-hero.has-banner .breadcrumb-override a { color: rgba(255,255,255,0.6); }
.page-hero.has-banner .breadcrumb-override a:hover { color: var(--text-inverse); }
.page-hero.has-banner .breadcrumb-override .current { color: var(--text-inverse); }

/* ── Product Detail Page ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.product-gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-light);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}
.product-gallery-thumbs .thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur-fast);
  border: 2px solid transparent;
}
.product-gallery-thumbs .thumb.active { opacity: 1; border-color: var(--brand-600); }
.product-gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Spec Table ── */
.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.spec-table th {
  background: var(--bg-warm);
  color: var(--brand-600);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.spec-table tr:hover td { background: var(--bg-cream); }
.spec-table .highlight-row td { background: var(--brand-glow); font-weight: 500; }

/* ── Product Catalog Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--dur-med), box-shadow var(--dur-med);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31,73,125,0.12);
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-cream);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med);
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-number {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--brand-600);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.product-card-tag {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.6rem;
  padding: 3px 8px;
  background: rgba(31,73,125,0.85);
  color: #fff;
  border-radius: 100px;
  font-family: var(--alt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-family: var(--alt);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.product-card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  flex: 1;
}
.product-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.product-card-tags span {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: var(--bg-cream);
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.product-card-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}
.product-card-actions .btn {
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}
.filter-tab {
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--alt);
  transition: all var(--dur-fast);
  cursor: pointer;
}
.filter-tab:hover {
  background: var(--brand-glow);
  border-color: var(--brand-400);
  color: var(--brand-600);
}
.filter-tab.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}
.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--dur-fast);
}
.page-btn:hover { border-color: var(--brand-400); color: var(--brand-600); }
.page-btn.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.page-btn.disabled { opacity: 0.3; pointer-events: none; }
.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 var(--space-sm);
}

/* ── Comparison Table ── */
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.comp-table th {
  padding: 14px 16px;
  text-align: center;
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.comp-table th:first-child { text-align: left; background: var(--text-primary); color: var(--text-inverse); }
.comp-table th { background: var(--border-light); color: var(--text-secondary); }
.comp-table th.best { background: var(--brand-600); color: var(--text-inverse); }
.comp-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.comp-table td:first-child { text-align: left; font-weight: 500; }
.comp-table td.best { background: var(--brand-glow); }
.comp-table .check { color: var(--green-eco); font-weight: 700; }
.comp-table .cross { color: var(--red-fire); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-med);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-600);
  border: 3px solid var(--bg-secondary);
}
.timeline-year {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: 4px;
}
.timeline-title { font-weight: 600; margin-bottom: 4px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Accordion (FAQ) ── */
.accordion { border-top: 1px solid var(--border-light); }
.accordion-item { border-bottom: 1px solid var(--border-light); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--dur-fast);
}
.accordion-trigger:hover { color: var(--brand-600); }
.accordion-trigger .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast);
  color: var(--brand-600);
  font-size: 1.2rem;
}
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}
.accordion-content-inner {
  padding: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── QC Steps ── */
.qc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  counter-reset: qc;
}
.qc-step {
  text-align: center;
  position: relative;
}
.qc-step::before {
  counter-increment: qc;
  content: counter(qc);
  display: block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  margin: 0 auto var(--space-md);
  background: #ff5000;
  color: #ffffff;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}
.qc-step h4 { margin-bottom: var(--space-xs); }
.qc-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
}
/* 联系页左右交换：在线表单放左（宽列），联系信息放右（窄列） */
.contact-grid > .contact-info-cards { order: 2; }
.contact-grid > div:nth-child(2) { order: 1; }
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-600);
}
.contact-card-icon {
  font-size: 1.3rem;
  color: var(--brand-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-card h4 { font-size: 0.85rem; margin-bottom: 2px; }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Gallery Grid (Masonry) ── */
.gallery-grid {
  columns: 3;
  column-gap: var(--space-md);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-light);
}
.gallery-item img { width: 100%; display: block; }

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].revealed { transform: translateX(0); }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 170px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: var(--text-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top::after {
  content: '↑';
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--text-secondary); transform: translateY(-2px); }

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Image Lazy Load ── */
.lazy-img { opacity: 0; transition: opacity var(--dur-med); }
.lazy-img.loaded { opacity: 1; }

/* ── Responsive ── */
/* Archive-driven sections: Product Advantages (products.html) & Production Process (technology.html) */
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr) !important; }
  .process-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .adv-list[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr 1fr !important; }
  .process-gallery { grid-template-columns: 1fr !important; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero-visual { display: none; }
  .products-showcase { grid-template-columns: 1fr 1fr; }
  .product-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .alt-feature { grid-template-columns: 1fr; }
  .alt-feature.reverse { direction: ltr; }
  .scenarios-grid { grid-template-columns: 1fr 1fr; }
  .scenario-card:first-child { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  /* Responsive inline grids on detail pages */
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* Tablet hero & gallery */
  .page-hero.has-banner { padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-lg); }
  .page-hero.has-banner h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  .page-hero.has-banner p { font-size: 0.9rem; }
  .product-gallery-main { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .hero-categories { gap: 8px; }
  .hero-cat-item { min-width: 80px; padding: 12px 8px 10px; }
  .hero-cat-icon { width: 40px; height: 40px; }
  .hero-cat-label { font-size: 0.65rem; }
  .products-showcase { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: var(--space-xs); }
  .filter-tab { font-size: 0.72rem; padding: 4px 12px; }
  .brand-intro-grid { grid-template-columns: 1fr; }
  .brand-highlights { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .alt-features { gap: var(--space-xl); }
  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .page-hero { padding: calc(var(--header-h) + var(--space-xs)) 0 var(--space-md); }
  .page-hero.has-banner { padding: calc(var(--header-h) + var(--space-xs)) 0 var(--space-md); }
  .page-hero.has-banner h1 { font-size: 1.5rem; }
  .page-hero.has-banner p { font-size: 0.82rem; }
  .section { padding: var(--space-lg) 0; }
  /* Detail page: stack buttons vertically on mobile */
  .product-detail-grid .btn { white-space: normal; text-align: center; justify-content: center; }
  .product-detail-grid > div:last-child > div:last-child { flex-direction: column !important; }
  .product-detail-grid > div:last-child > div:last-child .btn { width: 100%; }
  .gallery-grid { columns: 1; }
  /* Detail page responsive inline grids */
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* Product card improvements */
  .product-card-tags span { font-size: 0.6rem; padding: 1px 6px; }
  .product-card-body { padding: var(--space-sm); }
  .product-card-body p { font-size: 0.78rem; }
  .product-gallery-thumbs .thumb { width: 56px; height: 40px; }
  .product-gallery-main { aspect-ratio: 16/9; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 96px; right: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-tags { gap: var(--space-sm); }
  .hero-categories { gap: 6px; }
  .hero-cat-item { min-width: 60px; padding: 10px 6px 8px; }
  .hero-cat-icon { width: 36px; height: 36px; border-width: 1.5px; }
  .hero-cat-label { font-size: 0.6rem; }
  .qc-steps { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + var(--space-xs)) 0 var(--space-sm); }
  .page-hero.has-banner { padding: calc(var(--header-h) + var(--space-xs)) 0 var(--space-sm); }
  .page-hero h1 { font-size: 1.4rem; }
  .page-hero.has-banner h1 { font-size: 1.3rem; }
  .page-hero.has-banner p { font-size: 0.78rem; }
  .container { padding: 0 var(--space-sm); }
  /* Detail page grids - single column on very small screens */
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; gap: var(--space-sm) !important; }
  /* Product card full width adjustments */
  .product-card-image { aspect-ratio: 3/2; }
  .product-card-actions { flex-direction: column; }
  .product-card-actions .btn { width: 100%; text-align: center; }
  /* Product gallery on small phones */
  .product-gallery-main { aspect-ratio: 4/3; }
  .product-gallery-thumbs .thumb { width: 48px; height: 36px; }
  /* WhatsApp smaller on mobile */
  .whatsapp-float { width: 44px; height: 44px; bottom: 96px; right: 16px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
  /* Filter tabs compact */
  .filter-tabs { gap: 3px; }
  .filter-tab { font-size: 0.65rem; padding: 3px 8px; }
}

/* ── Product List Page ── */
.category-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.category-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
}
.category-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(31,73,125,0.12);
  border-color: var(--brand-400);
}
.category-nav-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border-light);
  transition: all var(--dur-med);
  flex-shrink: 0;
}
.category-nav-card:hover .category-nav-icon {
  border-color: var(--brand-400);
  transform: scale(1.08);
}
.category-nav-card span {
  font-family: var(--alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}
.category-header h2 {
  margin-bottom: var(--space-xs);
}
.category-header .section-sub {
  margin-bottom: 0;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.product-list-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
}
.product-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31,73,125,0.12);
  border-color: var(--border-med);
}
.product-list-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-cream);
}
.product-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med);
}
.product-list-card:hover .product-list-image img {
  transform: scale(1.05);
}
.product-list-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 3px 10px;
  background: var(--brand-600);
  color: #fff;
  font-family: var(--alt);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
}
.product-list-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-list-body h3 {
  font-family: var(--alt);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.product-list-body > p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  flex: 1;
}
.product-list-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px var(--space-md);
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
}
.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.spec-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--alt);
}
.spec-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--mono);
}
.product-list-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.product-list-tags span {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: var(--bg-cream);
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.product-list-body .btn {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .category-nav-grid { grid-template-columns: repeat(4, 1fr); }
  .product-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .category-nav-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .category-nav-card { padding: var(--space-md); }
  .category-nav-icon { width: 56px; height: 56px; }
  .category-nav-card span { font-size: 0.7rem; }
  .category-header { flex-direction: column; align-items: flex-start; }
  .product-list-grid { grid-template-columns: 1fr; }
  .product-list-specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .category-nav-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
  .category-nav-card { padding: var(--space-sm); }
  .category-nav-icon { width: 48px; height: 48px; }
  .product-list-specs { grid-template-columns: 1fr; }
}

/* ══ Series Catalog — Product List Page ══
   Compact, table-based catalog for product families with many SKUs.
   Series overview bar + comparison table replaces heavy image cards. */
.series-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.series-strip-label {
  font-family: var(--alt);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-right: var(--space-xs);
  padding: 0 var(--space-xs);
}
.series-pill {
  font-family: var(--alt);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--dur-fast);
  cursor: pointer;
}
.series-pill:hover {
  background: var(--brand-glow);
  border-color: var(--brand-400);
  color: var(--brand-600);
}

.series-block {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  scroll-margin-top: calc(var(--header-h) + var(--space-lg));
}
.series-block:last-child { margin-bottom: 0; }
.series-cap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.series-cap-thumb {
  width: 104px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.series-cap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.series-cap-title {
  font-family: var(--alt);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.series-cap-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand-600);
  padding: 2px 9px;
  border-radius: 100px;
  font-family: var(--alt);
  line-height: 1.4;
}
.series-cap-badge.new { background: var(--green-eco); }
.series-cap-meta {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.series-cap-actions { margin-left: auto; }
.series-cap-actions .btn { font-size: 0.78rem; padding: 6px 14px; }

.product-table-wrap { overflow-x: auto; }
.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 720px;
}
.product-table th {
  text-align: left;
  font-family: var(--alt);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px var(--space-md);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.product-table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}
.product-table tbody tr { scroll-margin-top: calc(var(--header-h) + var(--space-lg)); transition: background var(--dur-fast); }
.product-table tbody tr:last-child td { border-bottom: none; }
.product-table tbody tr:hover td { background: var(--bg-cream); }
.product-table .pt-model {
  font-family: var(--alt);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.product-table .pt-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--brand-glow);
  color: var(--brand-600);
  margin-left: 6px;
  vertical-align: 1px;
  line-height: 1.4;
}
.product-table .pt-tag.green { background: rgba(45,106,79,0.12); color: var(--green-eco); }
.product-table .pt-spec { font-family: var(--mono); font-size: 0.76rem; color: var(--text-primary); white-space: nowrap; }
.product-table .pt-note { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.product-table .pt-link {
  font-family: var(--alt);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-600);
  white-space: nowrap;
}
.product-table .pt-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .series-cap { padding: var(--space-md); }
  .series-cap-thumb { width: 80px; height: 60px; }
  .series-cap-actions { margin-left: 0; width: 100%; }
  .series-cap-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .series-strip { padding: var(--space-sm); gap: 6px; }
  .series-pill { font-size: 0.7rem; padding: 4px 10px; }
}

/* ══ Product Catalog — Image Grid + Pagination ══
   Mainstream e-commerce style catalog: responsive image cards,
   category filter tabs and real pagination. */
.catalog-section { padding-top: var(--space-xl); }
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.catalog-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--alt);
}
.catalog-count strong {
  color: var(--text-primary);
  font-family: var(--mono);
  font-weight: 600;
}
.catalog-filter {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med), border-color var(--dur-med);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(31,73,125,0.14);
  border-color: var(--brand-400);
}
.cat-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-cream);
}
.cat-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0.55s var(--ease-out);
}
.cat-card:hover .cat-card-img > img:not(.cat-card-img-detail) { transform: scale(1.06); }
.cat-card.has-dual:hover .cat-card-img > img:not(.cat-card-img-detail) { opacity: 0; }
.cat-card-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(31,73,125,0.88);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--alt);
  line-height: 1.4;
}
.cat-card-tag.eco { background: rgba(45,106,79,0.88); }
.cat-card-body {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border-top: 1px solid var(--border-light);
}
.cat-card-body h3 {
  font-family: var(--alt);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
  line-height: 1.3;
}
.cat-card-model {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.cat-card-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--brand-600);
  font-size: 0.72rem;
  transition: all var(--dur-fast);
}
.cat-card:hover .cat-card-arrow { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.cat-card.hidden { display: none; }

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0 var(--space-xl);
}
.catalog-pagination .page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
}
.catalog-pagination .page-info-ellipsis {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 var(--space-xs);
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cat-grid { gap: var(--space-sm); }
  .cat-card-body { padding: var(--space-sm); }
  .cat-card-body h3 { font-size: 0.78rem; }
  .cat-card-tag { font-size: 0.56rem; padding: 2px 8px; }
}

/* Dual-image cards — smooth crossfade + subtle zoom to detail on hover */
.cat-card-img .cat-card-img-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0.55s var(--ease-out);
}
.cat-card.has-dual:hover .cat-card-img-detail {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ══ Factory Gallery Carousel — about.html ══ */
.factory-carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.fc-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
}
.fc-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
}
.fc-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}
.fc-viewport .fc-slide {
  aspect-ratio: 16/8;
}
.fc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fc-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(20,16,12,0.82), transparent);
  color: #fff;
  font-family: var(--alt);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-light);
  color: var(--brand-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--dur-fast) var(--ease-out);
  z-index: 5;
  cursor: pointer;
}
.fc-nav:hover {
  background: var(--brand-600);
  color: #fff;
}
.fc-prev { left: -58px; }
.fc-next { right: -58px; }
.fc-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.fc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-med);
  cursor: pointer;
  padding: 0;
  transition: all var(--dur-fast);
}
.fc-dot.active {
  background: var(--brand-600);
  transform: scale(1.25);
}
@media (max-width: 1100px) {
  .fc-prev { left: 10px; }
  .fc-next { right: 10px; }
  .fc-nav { background: rgba(255,255,255,0.85); }
}
@media (max-width: 768px) {
  .fc-viewport .fc-slide { aspect-ratio: 4/3; }
  .fc-caption { font-size: 0.8rem; padding: var(--space-sm) var(--space-md); }
  .fc-nav { width: 38px; height: 38px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .fc-nav { width: 34px; height: 34px; }
  .fc-caption { font-size: 0.72rem; }
}

/* about.html — Production Base & R&D Center: single column on small screens */
@media (max-width: 768px) {
  .facility-grid { grid-template-columns: 1fr !important; gap: var(--space-lg) !important; }
}

/* ===================================================
   Top Sellers — Infinite Scroll Carousel
   =================================================== */
.ts-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: var(--space-sm) 0;
}

.ts-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: ts-scroll 40s linear infinite;
  padding: var(--space-sm) 0;
}

.ts-carousel:hover .ts-track {
  animation-play-state: paused;
}

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

.ts-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

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

.ts-card:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ts-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.ts-card:hover .ts-card-img img,
.ts-card:focus-visible .ts-card-img img {
  transform: scale(1.08);
}

.ts-card-body {
  padding: var(--space-md);
  text-align: center;
}

.ts-card-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-500);
  background: var(--brand-glow);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: var(--space-xs);
}

.ts-card-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  color: var(--text-primary);
}

.ts-card-model {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Focus highlight — when any card receives focus, dim others */
.ts-carousel:focus-within .ts-card:not(:focus) {
  opacity: 0.6;
  filter: grayscale(0.3);
}

.ts-carousel:focus-within .ts-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-400);
}

@media (max-width: 768px) {
  .ts-card { flex: 0 0 170px; }
  .ts-track { gap: var(--space-md); }
  @keyframes ts-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

@media (max-width: 480px) {
  .ts-card { flex: 0 0 145px; }
  .ts-card-body { padding: var(--space-sm); }
  .ts-card-body h3 { font-size: 0.82rem; }
  .ts-card-model { font-size: 0.7rem; }
}

/* ===================================================
   Product Detail — Color & Texture Selector
   =================================================== */
.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-sm);
}

.finish-item {
  position: relative;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--bg-card);
}

.finish-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.finish-item:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
}

.finish-item.active {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px var(--brand-glow);
}

.finish-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-family: var(--mono);
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .finish-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
}

/* ===================================================
   Lightbox Modal — Product Image Enlarge
   =================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-modal.open {
  display: flex;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: opacity var(--dur-fast);
  z-index: 2;
}
.lightbox-close:hover {
  opacity: 0.7;
}

/* Gallery zoom hint */
.gallery-zoom-hint {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-med);
}
.product-gallery-main:hover .gallery-zoom-hint {
  opacity: 1;
}

/* ===== 分页（归档页 the_posts_pagination）2026-08-06 ===== */
.navigation.pagination {
  margin-top: var(--space-xl);
  text-align: center;
}
.navigation.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 8px);
  background: var(--bg-primary, #fff);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.navigation.pagination a.page-numbers:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}
.navigation.pagination .page-numbers.current {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  cursor: default;
}
.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: 20px;
  padding: 0;
  color: var(--text-muted);
}
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  font-weight: 600;
}

/* 屏幕阅读器文本隐藏（WP 标准，防止 "Posts pagination" 等 h2 显示出来） */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ===== 社交分享栏（产品/文章详情页） ===== */
.yilian-share { margin: 40px 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.yilian-share-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.yilian-share-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.yilian-share-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-light);
  background: #fff; color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; cursor: pointer; text-decoration: none; transition: all .2s ease; padding: 0;
}
.yilian-share-btn:hover { border-color: var(--sc, var(--brand-600)); color: var(--sc, var(--brand-600)); background: color-mix(in srgb, var(--sc, var(--brand-600)) 8%, #fff); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.yilian-share-btn:active { transform: translateY(0); }
.yilian-share-btn.copied { border-color: #25D366; color: #25D366; }
/* 二维码弹窗 */
.yilian-qr-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.yilian-qr-modal[hidden] { display: none; }
.yilian-qr-box { position: relative; background: #fff; border-radius: 14px; padding: 26px 26px 20px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: 92vw; }
.yilian-qr-box img { width: 220px; height: 220px; border-radius: 8px; border: 1px solid var(--border-light); }
.yilian-qr-hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.yilian-qr-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--bg-secondary); color: var(--text-primary); cursor: pointer; font-size: 0.8rem; }
.yilian-qr-close:hover { background: var(--border-light); }
/* 复制成功提示 */
.yilian-toast { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); background: #2b2b2b; color: #fff; padding: 9px 20px; border-radius: 100px; font-size: 0.82rem; z-index: 10000; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.yilian-toast[hidden] { display: none; }
/* 移动端分享栏 */
@media (max-width: 768px) {
  .yilian-share { justify-content: flex-start; }
  .yilian-share-btn { width: 40px; height: 40px; }
}

/* 联系表单留言框：合理高度 + 可拖拽 */
.form-group textarea { min-height: 140px; resize: vertical; }
