/*
Theme Name: Chantong Fan (禅通风机)
Theme URI: https://www.fochan.cn
Description: 佛山市禅通风机制造有限公司官方网站主题
Version: 1.0.0
Text Domain: chantong
*/

/* =============================================
   禅通风机 - Corporate Website Styles
   Design System: Based on tfzl.com layout
   Colors: Professional Blue + Steel Accent (brand)
   ============================================= */

/* ---- CSS Variables (Design Tokens) ---- */
:root {
  /* Brand Colors */
  --color-primary: #1A3A6B;         /* Deep navy blue */
  --color-primary-dark: #102850;    /* Darker navy */
  --color-primary-light: #2A5298;   /* Lighter blue */
  --color-accent: #3B8DD6;          /* Steel blue accent */
  --color-accent-light: #6BB0E6;    /* Light steel blue */
  --color-accent-dark: #2670B5;     /* Dark steel blue */

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-bg: #F8F8F8;
  --color-bg-alt: #F0F0F0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-border: #E0E0E0;
  --color-border-light: #EEEEEE;

  /* Typography */
  --font-primary: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
  --font-heading: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-english: 'Arial', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Header */
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-primary);
}

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  transition: box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-desktop .nav-item {
  position: relative;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-desktop .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.nav-desktop .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-desktop .nav-item:hover::after,
.nav-desktop .nav-item.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
}

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

.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--color-text);
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  padding-left: 24px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-normal);
}

.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 Navigation Drawer */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--color-white);
  z-index: 1060;
  overflow-y: auto;
  transition: right var(--transition-normal);
  padding-top: var(--header-height);
  pointer-events: none;
}

.nav-mobile.active {
  right: 0;
  pointer-events: auto;
}

.nav-mobile .mobile-nav-item {
  border-bottom: 1px solid var(--color-border-light);
}

.nav-mobile .mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 15px;
  color: var(--color-text);
}

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

.nav-mobile .mobile-subnav {
  display: none;
  background: var(--color-bg);
}

.nav-mobile .mobile-subnav.open {
  display: block;
}

.nav-mobile .mobile-subnav a {
  display: block;
  padding: 12px 24px 12px 40px;
  font-size: 14px;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border-light);
}

.nav-mobile .mobile-subnav a:hover {
  color: var(--color-primary);
}

.mobile-nav-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

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

/* ---- Section Heading (tfzl.com dual-layer style) ---- */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading .heading-cn {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 4px;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.section-heading .heading-en {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-lighter);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-english);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.85), rgba(16, 40, 80, 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-title {
  font-size: 76px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 12px;
  text-align: center;
  margin-bottom: 28px;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 32px;
  color: var(--color-accent-light);
  letter-spacing: 10px;
  text-align: center;
  margin-bottom: 44px;
}

.hero-desc {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 750px;
  line-height: 1.8;
}

/* Hero Pagination */
.hero-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ---- Page Banner (for inner pages) ---- */
.page-banner {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner::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.05'%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") repeat;
}

.page-banner-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.page-banner-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.page-banner-subtitle {
  font-size: 16px;
  color: var(--color-accent-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-english);
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb-inner a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-text-lighter);
}

/* ---- Section Styles ---- */
.section {
  padding: var(--section-padding);
}

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

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.card-meta {
  font-size: 13px;
  color: var(--color-text-lighter);
  margin-top: 12px;
}

/* ---- Product Category Card ---- */
.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

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

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

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 58, 107, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card-overlay span {
  color: var(--color-white);
  font-size: 14px;
  padding: 8px 24px;
  border: 1px solid var(--color-white);
  border-radius: 4px;
}

.product-card-info {
  padding: 20px;
  text-align: center;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.product-card-models {
  font-size: 13px;
  color: var(--color-text-lighter);
}

/* ---- Product Detail Section ---- */
.product-detail-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.product-detail-section:last-child {
  border-bottom: none;
}

.product-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-detail-num {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.product-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 16px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.product-detail-text p,
.product-detail-text li {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.product-detail-text ul {
  padding-left: 20px;
}

.product-detail-text ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.product-detail-text ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.product-detail-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-detail-images img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.product-detail-images img:hover {
  transform: scale(1.02);
}

.product-models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-model-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.product-model-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ---- Product Model Gallery ---- */
.product-model-gallery {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.product-model-gallery-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.product-model-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-model-gallery-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-model-gallery-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-model-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #e8f0f8;
  padding: 8px;
  cursor: pointer;
}

.product-model-gallery-item figcaption {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
}

/* ---- Individual Product Detail Cards ---- */
.product-model-details {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: grid;
  gap: 20px;
}

.product-model-detail-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.product-model-detail-img {
  flex-shrink: 0;
  width: 200px;
}

.product-model-detail-img img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
  cursor: pointer;
}

.product-model-detail-body {
  flex: 1;
  min-width: 0;
}

.product-model-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.product-model-detail-content {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.product-model-detail-content p {
  margin-bottom: 8px;
}

.product-model-detail-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 8px 0;
}

.product-spec-tables {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.product-spec-tables h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.product-spec-tables img {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
}

.spec-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .product-model-detail-item {
    flex-direction: column;
    padding: 16px;
  }

  .product-model-detail-img {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .product-model-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-model-gallery-item img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .product-model-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ---- Product Catalog Two-Panel Layout ---- */
.product-catalog {
  padding: 40px 0 0;
  background: var(--color-bg);
}

.product-catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 600px;
}

/* -- Sidebar -- */
.product-catalog-sidebar {
  min-width: 0;
}

.product-catalog-sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  flex-direction: column;
}

.product-catalog-sidebar-title {
  padding: 18px 20px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.product-catalog-nav {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.product-catalog-nav::-webkit-scrollbar {
  width: 4px;
}

.product-catalog-nav::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.product-catalog-nav-item {
  border-bottom: 1px solid var(--color-border-light);
}

.product-catalog-nav-item:last-child {
  border-bottom: none;
}

.product-catalog-nav-link {
  position: relative;
  display: block;
  padding: 13px 16px 13px 20px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.product-catalog-nav-link::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background var(--transition-fast);
}

.product-catalog-nav-link:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  padding-left: 24px;
}

.product-catalog-nav-item.active .product-catalog-nav-link {
  background: rgba(26, 58, 107, 0.06);
  color: var(--color-primary);
  font-weight: 700;
  padding-left: 24px;
}

.product-catalog-nav-item.active .product-catalog-nav-link::before {
  background: var(--color-primary);
}

/* -- Sidebar Subnav -- */
.product-catalog-nav-item.has-sub .product-catalog-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-expand-icon {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  opacity: 0.5;
}

.product-catalog-nav-item.has-sub.open .nav-expand-icon {
  transform: rotate(180deg);
}

.product-catalog-subnav {
  display: none;
  padding: 0 0 8px 16px;
}

.product-catalog-nav-item.has-sub.open .product-catalog-subnav {
  display: block;
}

.product-catalog-subnav-item {
  border-bottom: none;
}

.product-catalog-subnav-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-text-light);
  border-radius: 4px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.product-catalog-subnav-link:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.product-catalog-subnav-item.active .product-catalog-subnav-link {
  background: rgba(26, 58, 107, 0.06);
  color: var(--color-primary);
  font-weight: 600;
}

/* -- Product Panel Back Link -- */
.product-catalog-panel-header--sub {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-panel-back {
  font-size: 13px;
  color: var(--color-accent);
  cursor: pointer;
}

.product-panel-back:hover {
  color: var(--color-primary);
}

/* -- Content Panels -- */
.product-catalog-content {
  min-width: 0;
  min-height: 500px;
}

.product-catalog-panel {
  display: none;
  animation: panelFadeIn 0.3s ease;
}

.product-catalog-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.product-catalog-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--color-primary);
}

.product-catalog-panel-num {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.product-catalog-panel-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.product-catalog-panel-models {
  font-size: 13px;
  color: var(--color-text-lighter);
  margin-top: 4px;
}

/* Panel body */
.product-catalog-panel-body {
  padding: 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-sm);
}

/* Category text: full width, no two-column */
.product-cat-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.product-cat-text h4:first-child {
  margin-top: 0;
}

.product-cat-text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Product page: hero image centered */
.product-page-hero-img {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.product-page-hero-img img {
  max-width: 450px;
  max-height: 350px;
  width: auto;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
}

.product-page-content {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-page-content p {
  margin-bottom: 10px;
}

.product-page-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 10px 0;
}

/* Keep old two-column for backward compat but unused now */
.product-catalog-panel-body .product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.product-catalog-panel-body .product-detail-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.product-catalog-panel-body .product-detail-text h4:first-child {
  margin-top: 0;
}

.product-catalog-panel-body .product-detail-text p,
.product-catalog-panel-body .product-detail-text li {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.product-catalog-panel-body .product-detail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.product-catalog-panel-body .product-detail-images img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-catalog-panel-body .product-detail-images img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* Single image: full width */
.product-catalog-panel-body .product-detail-images img:only-child {
  grid-column: 1 / -1;
  max-width: 400px;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
  .product-catalog {
    padding: 30px 0 0;
  }

  .product-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .product-catalog-panel-header {
    padding: 20px 24px;
  }

  .product-catalog-panel-body {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .product-catalog {
    padding: 20px 0 0;
  }

  .product-catalog-layout {
    grid-template-columns: 1fr;
  }

  .product-catalog-sidebar-inner {
    position: static;
    max-height: none;
  }

  .product-catalog-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-y: visible;
  }

  .product-catalog-nav-item {
    border-bottom: none;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    margin: 3px;
  }

  .product-catalog-nav-link {
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
  }

  .product-catalog-nav-link::before {
    display: none;
  }

  .product-catalog-nav-link:hover,
  .product-catalog-nav-item.active .product-catalog-nav-link {
    padding-left: 12px;
  }

  .product-catalog-panel-body .product-detail-content {
    grid-template-columns: 1fr;
  }

  .product-catalog-panel-body .product-detail-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-catalog-panel-header {
    padding: 16px 20px;
  }

  .product-catalog-panel-body {
    padding: 20px;
  }

  .product-catalog-panel-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .product-catalog-nav {
    grid-template-columns: 1fr;
  }

  .product-catalog-panel-header {
    padding: 14px 16px;
  }

  .product-catalog-panel-body {
    padding: 16px;
  }

  .product-catalog-panel-body .product-detail-images {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .product-catalog-panel-title {
    font-size: 18px;
  }
}

/* ---- Certification Grid ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cert-item {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.cert-item-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg);
}

.cert-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-slow);
  cursor: pointer;
  padding: 8px;
}

.cert-item:hover .cert-item-img img {
  transform: scale(1.03);
}

.cert-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding: 20px 24px 0;
}

.cert-item-info {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  padding: 0 24px 20px;
}

.cert-item-info span {
  display: block;
}

/* ---- Patent Grid (Card Style) ---- */
.patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.patent-item {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.patent-icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-bg);
  cursor: pointer;
}

.patent-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.patent-item:hover .patent-icon img {
  transform: scale(1.03);
}

.patent-info {
  padding: 16px;
}

.patent-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.patent-number {
  font-size: 12px;
  color: var(--color-text-lighter);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 160px;
  top: 8px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary);
  z-index: 2;
}

.timeline-year {
  flex-shrink: 0;
  width: 130px;
  text-align: right;
}

.timeline-year-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-year-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 4px;
  white-space: nowrap;
}

.timeline-content {
  flex: 1;
  padding-left: 20px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ---- Service Section ---- */
.service-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border-light);
}

.service-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 10px;
}

.service-card p,
.service-card li {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 2;
}

.service-card ol {
  padding-left: 24px;
}

.service-card ol li {
  padding-left: 4px;
  margin-bottom: 4px;
  list-style: decimal;
}

/* Troubleshooting Table */
.trouble-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.trouble-table th,
.trouble-table td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.trouble-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  white-space: nowrap;
}

.trouble-table tr:nth-child(even) {
  background: var(--color-bg);
}

.trouble-table td:first-child {
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  width: 160px;
}

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

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

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

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

.contact-qr img {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.contact-qr p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-contact-info p {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-info .label {
  color: var(--color-accent);
  white-space: nowrap;
  font-weight: 500;
}

.footer-qr-group {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

.footer-qr {
  width: 110px;
  height: 110px;
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Utility Classes ---- */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn-white:hover {
  background: transparent;
  color: var(--color-white);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  font-size: 20px;
  color: var(--color-accent);
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-light);
}

/* Features Row */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 40px 30px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
    --header-height: 70px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile-overlay,
  .nav-mobile {
    display: block;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .section-heading .heading-cn {
    font-size: 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .timeline-year {
    width: 80px;
  }

  .timeline-dot {
    left: 100px;
  }

  .timeline-item {
    gap: 30px;
  }

  .timeline-year-num {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
    --header-height: 60px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .page-banner {
    height: 200px;
  }

  .page-banner-title {
    font-size: 26px;
  }

  .section-heading .heading-cn {
    font-size: 22px;
  }

  .section-heading .heading-en {
    font-size: 13px;
  }

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

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

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .trouble-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

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

/* ---- Timeline (Development History) ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-accent);
  z-index: 1;
}

.timeline-year {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.timeline-year span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-accent-dark);
  margin-left: 8px;
}

.timeline-content {
  background: var(--color-white);
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-accent);
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ---- Philosophy Cards ---- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.philosophy-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-top: 3px solid var(--color-primary);
}

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

.philosophy-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.philosophy-card h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 15px;
}

.highlight-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

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

.highlight-item .hl-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.highlight-item .hl-number span {
  font-size: 16px;
  color: var(--color-accent-dark);
  font-weight: 400;
}

.highlight-item .hl-label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ---- Expansion Stats ---- */
.expansion-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.8;
}

.expansion-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.expansion-stat-item {
  background: var(--color-white);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.expansion-stat-item:hover {
  transform: translateY(-3px);
}

.expansion-stat-item .exp-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.expansion-stat-item .exp-unit {
  font-size: 14px;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
}

.expansion-stat-item .exp-label {
  font-size: 13px;
  color: var(--color-text-light);
}

.expansion-closing {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.8;
}

/* ---- Responsive: Timeline, Philosophy, Expansion ---- */
@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .highlight-row {
    gap: 30px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-year {
    width: auto;
    text-align: left;
  }

  .timeline-content {
    padding-left: 0;
  }

  .timeline-year-num {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .expansion-stats {
    grid-template-columns: 1fr;
  }

  .highlight-row {
    gap: 20px;
  }

  .timeline-year {
    font-size: 18px;
  }

  .timeline-content {
    padding: 18px 20px;
  }
}

/* ===========================
   Language Switcher (中 / EN)
   =========================== */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  margin-left: 24px;
  border: 1px solid var(--color-border, #dfe3e8);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  line-height: 1;
  flex-shrink: 0;
}

.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-text, #333);
  text-decoration: none;
  background: transparent;
  transition: background var(--transition-fast, 0.2s), color var(--transition-fast, 0.2s);
  white-space: nowrap;
}

.lang-switcher-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-primary, #c8102e);
}

.lang-switcher-link.active {
  background: var(--color-primary, #c8102e);
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.lang-switcher-link + .lang-switcher-link {
  border-left: 1px solid var(--color-border, #dfe3e8);
}

/* Move switcher above hamburger on small screens, push it before the hamburger */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 12px;
  }
}

/* Spec table fallback note (3a) shown on English product pages */
.product-spec-note {
  font-size: 14px;
  color: var(--color-text-light, #666);
  background: #fff8ed;
  border-left: 3px solid #f0a500;
  padding: 10px 14px;
  margin: 0 0 16px;
  line-height: 1.6;
}
