/* ========================================
   EGAN BATTERY - Industrial B2B Website
   工业制造极简商务风格
   ======================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Colors - Industrial Deep Blue + Metal */
  --primary-dark: #0a1628;
  --primary: #0c2340;
  --primary-light: #1a3a5c;
  --secondary: #2d3436;
  --metal-dark: #1e272e;
  --metal: #636e72;
  --metal-light: #b2bec3;
  --metal-pale: #dfe6e9;
  --accent: #c9a962;
  --accent-hover: #b8944f;
  --danger: #c0392b;
  --success: #27ae60;
  --warning: #e67e22;

  /* Backgrounds */
  --bg-body: #f5f6f7;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-section: #f0f1f2;
  --bg-dark: #0a1628;
  --bg-metal: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7f8c8d;
  --text-light: #ffffff;
  --text-accent: #c9a962;

  /* Typography */
  --font-display: 'Oswald', 'Noto Sans SC', sans-serif;
  --font-body: 'Lora', 'Noto Sans SC', serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-metal: 0 2px 8px rgba(10, 22, 40, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.lang-en {
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.lang-zh h1, body.lang-zh h2, body.lang-zh h3,
body.lang-zh h4, body.lang-zh h5, body.lang-zh h6 {
  text-transform: none;
  letter-spacing: 0.05em;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-display);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--metal-pale);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

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

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

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

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

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-xs) auto 0;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.section-header.light h2,
.section-header.light p {
  color: var(--text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

body.lang-zh .btn {
  text-transform: none;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-dark:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Top Bar ---- */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: var(--space-md);
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.top-bar-contact a:hover {
  color: var(--accent);
}

.top-bar-contact svg,
.top-bar-contact i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  font-size: 14px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher button {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.lang-switcher button.active {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-switcher button:hover:not(.active) {
  color: var(--text-light);
}

/* ---- Header ---- */
.header {
  background-color: var(--bg-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.logo-text .tagline {
  font-size: 0.65rem;
  color: var(--metal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

body.lang-zh .logo-text .tagline {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color var(--transition-fast);
}

body.lang-zh .nav-menu a {
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

.nav-cta .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition-base);
}

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

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

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

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 37px);
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(12, 35, 64, 0.9) 50%, rgba(10, 22, 40, 0.95) 100%),
    url('../images/factory/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 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.02'%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");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero-text h1 .accent {
  color: var(--accent);
}

.hero-text .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
  font-weight: 400;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.lang-zh .hero-stat .label {
  text-transform: none;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
}

/* ---- Brand Bar ---- */
.brand-bar {
  background-color: var(--bg-white);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--metal-pale);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.brand-card {
  text-align: center;
  padding: var(--space-md);
  border-right: 1px solid var(--metal-pale);
  transition: all var(--transition-base);
}

.brand-card:last-child {
  border-right: none;
}

.brand-card:hover {
  background-color: var(--bg-section);
}

.brand-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background-color: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--metal-pale);
}

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

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--bg-section);
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-info {
  padding: var(--space-sm);
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.product-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.product-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-meta span svg,
.product-meta span i {
  width: 14px;
  height: 14px;
  font-size: 14px;
  flex-shrink: 0;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: var(--space-xs) 0;
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--metal-pale);
}

.product-spec {
  font-size: 0.8rem;
}

.product-spec .label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-spec .value {
  color: var(--text-primary);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.product-actions .btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* ---- Category Section ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.category-card {
  position: relative;
  background-color: var(--primary);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 60%, transparent 100%);
  z-index: 1;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.category-card .link {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.lang-zh .category-card .link {
  text-transform: none;
  letter-spacing: 0.05em;
}

/* ---- Features / Trust ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  background-color: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
  background-color: var(--primary);
  color: var(--accent);
}

.feature-icon svg,
.feature-icon i {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

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

/* ---- Certifications ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.cert-item {
  background-color: var(--bg-white);
  border: 1px solid var(--metal-pale);
  border-radius: 4px;
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
}

.cert-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cert-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
  object-fit: contain;
}

.cert-item h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

/* ---- Factory Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-xs);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

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

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

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c9a962' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-content h2 {
  color: var(--text-light);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-text .brand {
  color: var(--text-light);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.lang-zh .footer-title {
  text-transform: none;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact svg,
.footer-contact i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

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

/* ---- Page Header ---- */
.page-header {
  background-color: var(--primary);
  padding: calc(var(--space-xl) + var(--header-height)) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  color: var(--text-light);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-xs);
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

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

.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.breadcrumb .current {
  color: var(--accent);
}

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.about-images img {
  border-radius: 4px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-images img.large {
  grid-column: span 2;
  height: 260px;
}

.timeline {
  position: relative;
  padding-left: var(--space-md);
}

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

.timeline-item {
  position: relative;
  padding-bottom: var(--space-md);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin: 0.25rem 0;
  color: var(--primary);
}

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

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--bg-metal);
  padding: var(--space-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-box {
  text-align: center;
  padding: var(--space-sm);
}

.stat-box .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-box .label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.lang-zh .stat-box .label {
  text-transform: none;
  letter-spacing: 0.05em;
}

/* ---- Product Filter ---- */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--metal-pale);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

body.lang-zh .filter-btn {
  text-transform: none;
  letter-spacing: 0.02em;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  margin-left: auto;
}

.search-box input {
  padding-left: 2.5rem;
  width: 100%;
}

.search-box svg,
.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--metal);
}

/* ---- Product Detail ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.product-gallery {
  position: relative;
}

.product-gallery-main {
  background-color: var(--bg-section);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.product-gallery-main img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-xs);
}

.product-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
  border-color: var(--accent);
}

.product-detail-info h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--metal-pale);
}

.product-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-detail-meta .tag {
  background-color: var(--bg-section);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--metal-pale);
  font-size: 0.9rem;
}

.specs-table th {
  background-color: var(--bg-section);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

body.lang-zh .specs-table th {
  text-transform: none;
  letter-spacing: 0.02em;
}

.specs-table td {
  color: var(--text-secondary);
}

/* ---- Tabs ---- */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--metal-pale);
  margin-bottom: var(--space-md);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

body.lang-zh .tab-btn {
  text-transform: none;
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---- OEM Page ---- */
.oem-process {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

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

.oem-step::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--metal-pale);
  z-index: 0;
}

.oem-step:last-child::after {
  display: none;
}

.oem-step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  position: relative;
  z-index: 1;
}

.oem-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info-box {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--space-lg);
  border-radius: 4px;
}

.contact-info-box h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info-item svg,
.contact-info-item i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 24px;
}

.contact-info-item h4 {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.contact-form .form-group {
  margin-bottom: var(--space-sm);
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.lang-zh .contact-form label {
  text-transform: none;
  letter-spacing: 0.02em;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* ---- Form Success ---- */
.form-success {
  text-align: center;
  padding: var(--space-lg);
}

.form-success svg,
.form-success i {
  width: 64px;
  height: 64px;
  font-size: 64px;
  color: var(--success);
  margin-bottom: var(--space-sm);
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

/* ---- Cases ---- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.case-card {
  background-color: var(--bg-white);
  border: 1px solid var(--metal-pale);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.case-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-card-content {
  padding: var(--space-md);
}

.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.case-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--metal-pale);
  padding-top: var(--space-sm);
}

/* ---- Mobile Bottom Bar ---- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 0.5rem;
}

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.8rem;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --space-xl: 3rem;
    --space-lg: 2rem;
  }

  .top-bar {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--metal-pale);
    font-size: 1rem;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-sm);
  }

  .nav-cta .btn {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }

  .hero-image {
    display: none;
  }

  .hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-text .subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .hero-stat {
    flex: 1 1 calc(50% - var(--space-sm));
    text-align: center;
    padding: var(--space-sm) 0;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

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

  .brand-card {
    border-right: none;
    border-bottom: 1px solid var(--metal-pale);
  }

  .brand-card:last-child {
    border-bottom: none;
  }

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

  .category-card:nth-child(3) {
    grid-column: span 2;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .feature-item {
    padding: var(--space-sm);
  }

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

  .stat-box .number {
    font-size: 1.75rem;
  }

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

  .about-images {
    order: -1;
  }

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

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

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

  .oem-process {
    flex-direction: column;
  }

  .oem-step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
    margin-left: 0;
  }

  .mobile-bottom-bar {
    display: flex;
    gap: 0.5rem;
  }

  body {
    padding-bottom: 60px;
  }

  .page-header {
    padding-top: calc(var(--space-lg) + var(--header-height));
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

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

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-stat {
    flex: 1 1 auto;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: var(--space-xs) 0;
  }

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

  .category-card:nth-child(3) {
    grid-column: span 1;
  }

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

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

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

/* ---- Utility Classes ---- */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--metal-pale) 25%, #e8e8e8 50%, var(--metal-pale) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-section);
}

::-webkit-scrollbar-thumb {
  background: var(--metal-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--metal);
}
