/* ========================================
   武汉金本威工贸 - 企业站样式系统
   现代工业风 B2B 风格
   ======================================== */

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-dark: #1A2A3A;
  --primary-gray: #333333;
  --primary-light: #2D3E50;

  /* Accent Colors */
  --accent-orange: #FF6B35;
  --accent-blue: #0A8FFF;
  --accent-glow: rgba(255, 107, 53, 0.3);

  /* Neutral */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Text */
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: #FFFFFF;

  /* Background */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-dark: #111827;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 960px;
}

.container-lg {
  max-width: 1440px;
}

/* Section Spacing */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #E85A2A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

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

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

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

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

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

.card-dark h3 {
  color: var(--text-light);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-orange), #FF8F35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-orange);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-fast);
}

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

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

/* Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: '▾';
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-item-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--primary-dark);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1001;
  margin-top: 8px;
}

.nav-item-dropdown:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--primary-dark);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Active state for current page */
.nav-dropdown-item.active {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  /* Mobile dropdown */
  .nav-item-dropdown {
    position: static;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 20px;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-item-dropdown.active > .nav-dropdown {
    display: block;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown-item {
    padding: 8px 16px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-gray) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://minimax-algeng-chat-tts.oss-cn-wulanchabu.aliyuncs.com/ccv2%2F2026-04-11%2FMiniMax-M2.7%2F2039216878575952731%2F6ac8166c890dccbcb531146ac1e956e840e4f8c9eb9f894a3ee04bcd1d35c411..jpeg?Expires=1775960130&OSSAccessKeyId=LTAI5tGLnRTkBjLuYPjNcKQ8&Signature=4VEbRFa%2B7hKaDazoc8pmPwXADjU%3D');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  color: var(--text-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 100px;
  font-size: 14px;
  color: var(--accent-orange);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-light);
}

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

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero-bg {
    background-size: cover;
    background-position: center center;
  }

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

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-value {
    font-size: 2rem;
  }

  body.page-products .page-header {
    height: 200px;
    background-size: contain;
    background-position: center center;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

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

.section-header-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Feature Cards */
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-orange), #FF8F35);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* Product Cards */
.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.product-image {
  height: 280px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray-400);
  overflow: hidden;
}

.product-info {
  padding: 24px;
}

.product-category {
  font-size: 12px;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.category-tab {
  padding: 10px 20px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary-dark);
  color: var(--white);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: var(--text-light);
  margin-bottom: 16px;
}

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

.footer h4 {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-gray));
  padding: 160px 0 80px;
  text-align: center;
  color: var(--text-light);
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--accent-orange);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--gray-100);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-icon {
  font-size: 20px;
}

.toast-success .toast-icon {
  color: #10B981;
}

.toast-error .toast-icon {
  color: #EF4444;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }
.bg-light { background: var(--gray-50); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ========================================
   增强型页面头部背景 - 各页面主题化
   ======================================== */

/* 通用半透明遮罩 */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 42, 58, 0.88) 0%,
    rgba(26, 42, 58, 0.75) 100%
  );
  z-index: 0;
}

/* 子页面 Banner 统一布局 */
.page-header {
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

/* 首页 Banner - 大气企业形象：沉稳庄重，品牌感强 */
body.page-home .page-header {
  background:
    linear-gradient(160deg, rgba(26, 42, 58, 0.95) 0%, rgba(26, 42, 58, 0.85) 60%, rgba(255, 107, 53, 0.3) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="g" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.8" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect fill="url(%23g)" width="200" height="200"/></svg>');
  background-size: cover, 40px 40px;
}

body.page-home .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(26, 42, 58, 0.92) 0%,
    rgba(26, 42, 58, 0.8) 100%
  );
}

/* 产品中心 Banner */
body.page-products .page-header {
  background-image: url('https://minimax-algeng-chat-tts.oss-cn-wulanchabu.aliyuncs.com/ccv2%2F2026-04-11%2FMiniMax-M2.7%2F2039216878575952731%2Ff2df0e69dbc91d2d8783804f53aa3e57a4f92b7f9ca03ff128657ca9694f6456..png?Expires=1775960129&OSSAccessKeyId=LTAI5tGLnRTkBjLuYPjNcKQ8&Signature=UHrpzE2MTkinhy3T5S4uwnZMe44%3D');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
  height: 400px;
}

body.page-products .page-header::before {
  display: none;
}

/* 产品目录 Banner */
body.page-catalog .page-header {
  height: 80px;
}

body.page-catalog .page-header::before {
  display: none;
}

/* 企业服务 Banner - 服务工程：技术支持感 */
body.page-enterprise .page-header {
  background:
    linear-gradient(160deg, rgba(26, 42, 58, 0.95) 0%, rgba(26, 42, 58, 0.82) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="e" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,107,53,0.06)"/></pattern></defs><rect fill="url(%23e)" width="80" height="80"/></svg>');
  background-size: cover, 20px 20px;
}

body.page-enterprise .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(26, 42, 58, 0.9) 0%,
    rgba(26, 42, 58, 0.82) 100%
  );
}

/* 关于我们 Banner - 企业实力：品牌积淀感 */
body.page-about .page-header {
  background:
    linear-gradient(160deg, rgba(26, 42, 58, 0.95) 0%, rgba(45, 62, 80, 0.9) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="a" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M12.5 0 L25 12.5 L12.5 25 L0 12.5 Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect fill="url(%23a)" width="100" height="100"/></svg>');
  background-size: cover, 25px 25px;
}

body.page-about .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(26, 42, 58, 0.92) 0%,
    rgba(45, 62, 80, 0.88) 100%
  );
}

/* 新闻动态 Banner - 资讯清爽：简洁现代 */
body.page-news .page-header {
  background:
    linear-gradient(160deg, rgba(45, 62, 80, 0.92) 0%, rgba(26, 42, 58, 0.88) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="n" width="30" height="30" patternUnits="userSpaceOnUse"><line x1="0" y1="15" x2="30" y2="15" stroke="rgba(255,255,255,0.025)" stroke-width="1"/><line x1="15" y1="0" x2="15" y2="30" stroke="rgba(255,255,255,0.025)" stroke-width="1"/></pattern></defs><rect fill="url(%23n)" width="60" height="60"/></svg>');
  background-size: cover, 30px 30px;
}

body.page-news .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(45, 62, 80, 0.9) 0%,
    rgba(26, 42, 58, 0.88) 100%
  );
}

/* 联系我们 Banner - 服务对接：清晰直观 */
body.page-contact .page-header {
  background:
    linear-gradient(160deg, rgba(26, 42, 58, 0.95) 0%, rgba(45, 62, 80, 0.88) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><defs><pattern id="c" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.6" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect fill="url(%23c)" width="50" height="50"/></svg>');
  background-size: cover, 10px 10px;
}

body.page-contact .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(26, 42, 58, 0.9) 0%,
    rgba(45, 62, 80, 0.88) 100%
  );
}

/* 产品详情 Banner - 产品聚焦 */
body.page-product .page-header {
  background:
    linear-gradient(160deg, rgba(26, 42, 58, 0.95) 0%, rgba(26, 42, 58, 0.85) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><pattern id="pd" width="16" height="16" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="8" height="8" fill="rgba(255,107,53,0.05)"/><rect x="8" y="8" width="8" height="8" fill="rgba(255,107,53,0.03)"/></pattern></defs><rect fill="url(%23pd)" width="40" height="40"/></svg>');
  background-size: cover, 16px 16px;
}

body.page-product .page-header::before {
  background: linear-gradient(
    160deg,
    rgba(26, 42, 58, 0.9) 0%,
    rgba(26, 42, 58, 0.85) 100%
  );
}

/* Header 导航栏背景增强 - 各页面微调 */
body.page-home .header {
  background: rgba(26, 42, 58, 0.98);
  border-bottom-color: rgba(255, 107, 53, 0.3);
}

body.page-products .header {
  background: rgba(26, 42, 58, 0.98);
  border-bottom-color: rgba(10, 143, 255, 0.3);
}

body.page-enterprise .header {
  background: rgba(26, 42, 58, 0.98);
  border-bottom-color: rgba(255, 107, 53, 0.3);
}

body.page-about .header,
body.page-news .header {
  background: rgba(26, 42, 58, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.page-contact .header {
  background: rgba(26, 42, 58, 0.98);
  border-bottom-color: rgba(10, 143, 255, 0.3);
}

body.page-product .header {
  background: rgba(26, 42, 58, 0.98);
  border-bottom-color: rgba(255, 107, 53, 0.3);
}

/* 导航链接颜色适配各页面 */
body.page-home .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

body.page-home .nav-links a:hover,
body.page-home .nav-links a.active {
  color: #FF6B35;
}

body.page-products .nav-links a,
body.page-contact .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

body.page-products .nav-links a:hover,
body.page-products .nav-links a.active,
body.page-contact .nav-links a:hover,
body.page-contact .nav-links a.active {
  color: #FF6B35;
}

body.page-enterprise .nav-links a,
body.page-product .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

body.page-enterprise .nav-links a:hover,
body.page-enterprise .nav-links a.active,
body.page-product .nav-links a:hover,
body.page-product .nav-links a.active {
  color: #FF6B35;
}

body.page-about .nav-links a,
body.page-news .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

body.page-about .nav-links a:hover,
body.page-about .nav-links a.active,
body.page-news .nav-links a:hover,
body.page-news .nav-links a.active {
  color: rgba(255, 255, 255, 1);
}

/* Logo 颜色适配 */
body.page-home .logo,
body.page-products .logo,
body.page-enterprise .logo,
body.page-about .logo,
body.page-news .logo,
body.page-contact .logo,
body.page-product .logo {
  color: var(--white);
}

/* 移动端菜单按钮颜色 */
body.page-home .mobile-menu-btn span,
body.page-products .mobile-menu-btn span,
body.page-enterprise .mobile-menu-btn span,
body.page-about .mobile-menu-btn span,
body.page-news .mobile-menu-btn span,
body.page-contact .mobile-menu-btn span,
body.page-product .mobile-menu-btn span {
  background: var(--white);
}

/* 页面切换过渡效果 */
.page-header {
  animation: pageHeaderFadeIn 0.6s ease;
}

@keyframes pageHeaderFadeIn {
  from {
    opacity: 0.5;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 深色页面 Header 滚动后效果 */
.header.scrolled {
  background: rgba(26, 42, 58, 0.98) !important;
  border-bottom-color: rgba(255, 107, 53, 0.3) !important;
}
