/* PIEEG 网站主样式表 */

:root {
  /* 主色调 */
  --color-primary: #1A365D;
  --color-secondary: #00B4D8;
  --color-accent: #FF7D00;
  --color-dark: #333333;
  --color-light: #F5F7FA;
  --color-white: #FFFFFF;
  
  /* 频带颜色 */
  --color-delta: #4361EE;
  --color-theta: #3A0CA3;
  --color-alpha: #7209B7;
  --color-beta: #F72585;
  --color-gamma: #4CC9F0;
  
  /* 字体 */
  --font-heading: 'Montserrat', 'Source Han Sans SC', sans-serif;
  --font-body: 'Open Sans', 'Source Han Sans SC', sans-serif;
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* 圆角 */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.375rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 导航栏 */
.navbar {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-menu li {
  margin-left: var(--spacing-lg);
}

.navbar-menu a {
  color: var(--color-dark);
  font-weight: 500;
  position: relative;
}

.navbar-menu a:hover {
  color: var(--color-secondary);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

/* 英雄区 */
.hero {
  padding: 70px 0 0 0;
  background-image: url('/images/hero-background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.6) 0%, rgba(42, 67, 101, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hero-text {
  max-width: 800px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}



.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

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

/* 锚点跳转修复 - 避免固定导航栏遮挡 */
section[id] {
  scroll-margin-top: 90px; /* 导航栏高度70px + 20px间距 */
}

/* 为较老浏览器提供兼容性支持 */
section[id]::before {
  content: '';
  display: block;
  height: 90px; /* 导航栏高度70px + 20px间距 */
  margin-top: -90px;
  visibility: hidden;
}

/* 部分标题 */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
}

.section-title p {
  max-width: 700px;
  margin: var(--spacing-sm) auto 0;
  color: var(--color-dark);
  opacity: 0.8;
}

/* 产品卡片 */
.products {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-content {
  padding: var(--spacing-md);
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.product-content p {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.product-features {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.product-features li {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
  padding-left: 1.5rem;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* 图表容器 */
.chart-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-light);
}

.chart-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

/* Plotly图表样式优化 */
.chart-container .plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
}

.chart-container .js-plotly-plot {
  width: 100% !important;
  height: auto !important;
  min-height: 350px !important;
}

/* 隐藏所有Plotly的模式栏和工具提示 */
.chart-container .modebar,
.chart-container .modebar-group,
.chart-container .modebar-btn {
  display: none !important;
}

/* 确保图表完全适应容器 */
.chart-container .main-svg {
  width: 100% !important;
  height: auto !important;
}

.chart-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.chart-col {
  flex: 1;
  min-width: 300px;
}

.chart-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.chart-controls select,
.chart-controls button {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
  margin: 0 0.25rem;
}

.chart-controls button {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
}

.chart-controls button:hover {
  background-color: var(--color-accent);
}

/* 应用场景 */
.applications {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.application-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.application-card:hover {
  transform: translateY(-5px);
}

.application-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 2rem;
}

.application-content {
  padding: var(--spacing-md);
}

.application-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.application-content p {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.8;
}

/* 页脚 */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-secondary);
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

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

.footer-social a:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-xl);
  gap: var(--spacing-sm);
}

.pagination-link {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-white);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.pagination-link.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 联系我们部分 */
.contact-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
}

.contact-content h3 {
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.contact-content p {
  color: #666;
  margin-bottom: var(--spacing-md);
}

.contact-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-secondary);
}

/* 微信二维码样式 */
.wechat-qr {
  text-align: center;
  margin-top: var(--spacing-md);
}

.qr-code {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

/* 联系项目样式 */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.contact-item i {
  margin-right: var(--spacing-sm);
  color: var(--color-secondary);
  min-width: 20px;
}

/* 活动导航链接 */
.navbar-menu a.active {
  color: var(--color-secondary);
  font-weight: 600;
}

.navbar-menu a.active::after {
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .navbar-menu li {
    margin: 0;
    text-align: center;
    padding: var(--spacing-sm) 0;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    height: 100vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .chart-row {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .product-grid,
  .application-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Pages Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Page Container for non-hero pages */
.page-container {
    padding-top: calc(70px + 2rem);
}

/* Content Page Styles */
.content-page {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
}

.content-header h1 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.content-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-body {
    line-height: 1.8;
}

.content-body h2 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body h3 {
    color: var(--color-secondary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-body ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
}

/* Product List Page Container */
.products-page {
    padding-top: calc(70px + 2rem);
}



/* Products page specific styles */
.products-page .product-image {
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.products-page .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.products-page .product-content {
    padding: 2rem;
}

.products-page .product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.products-page .product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Product Detail Page */
.product-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: calc(70px + 2rem);
}

.product-header {
    margin-bottom: 3rem;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

/* Product Gallery Styles */
.product-gallery {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.gallery-main {
    position: relative;
    background: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: white;
}

.main-image.active {
    opacity: 1;
    z-index: 1;
}

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

/* Gallery Indicators */
.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 0 0 15px 15px;
}

.thumbnail {
    width: 90px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

/* Responsive Gallery Styles */
@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-thumbnails {
        padding: 10px;
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .gallery-indicators {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }
    
    .gallery-thumbnails {
        padding: 8px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

.product-image-large {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.product-info .product-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Product detail page content */
.product-detail .product-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.product-detail .product-content h2 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.product-detail .product-content h3 {
    color: var(--color-secondary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.product-detail .product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-detail .product-content table th,
.product-detail .product-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-detail .product-content table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.product-detail .product-content table tr:last-child td {
    border-bottom: none;
}

.product-detail .product-content table tr:hover {
    background: #f8f9fa;
}

/* Product detail content lists */
.product-detail .product-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.product-detail .product-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.product-detail .product-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.product-detail .product-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Products Comparison Table */
.products-comparison {
    margin: 4rem 0;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.products-comparison h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

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

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Product Navigation */
.product-navigation {
    margin-top: 3rem;
    padding: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.nav-links .nav-link {
    flex: 1;
    max-width: 45%;
}

.nav-links .nav-link.next {
    margin-left: auto;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-direction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
  }
  
.nav-title {
    font-weight: 600;
}

/* Responsive Design for Product Pages */
@media (max-width: 768px) {
    .page-container,
    .products-page,
    .product-detail {
        padding-top: calc(70px + 1rem);
    }
    
    .content-page {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-large {
        min-height: 300px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-actions {
        justify-content: center;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-link.prev .nav-direction::before {
        content: "← ";
    }
    
    .nav-link.next .nav-direction::after {
        content: " →";
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-content,
    .products-comparison {
        padding: 2rem;
    }
    
    /* Mobile list adjustments */
    .product-content ul,
    .product-content ol {
        padding-left: 1rem;
  }
}

/* 确保主内容区域与footer之间有适当间距 */
main {
    margin-bottom: var(--spacing-xl);
}

/* 针对单页面内容（如关于我们、免责声明等）添加额外底部间距 */
.content-page {
    margin-bottom: var(--spacing-xl);
}

/* 移动端调整 */
@media (max-width: 768px) {
    main {
        margin-bottom: var(--spacing-lg);
    }
    
    .content-page {
        margin-bottom: var(--spacing-lg);
    }
}
