/* 基础样式重置与变量定义 */
:root {
  --primary-color: #000000;
  --primary-light: #333333;
  --primary-dark: #111111;
  --secondary-color: #C8102E;
  --secondary-light: #E5324F;
  --accent-color: #FFFFFF;
  --dark-color: #212121;
  --light-color: #F5F5F5;
  --gray-color: #757575;
  --light-gray: #E0E0E0;
  
  --header-height: 80px;
  --section-padding: 60px 0;
  --container-width: 1200px;
  --transition-default: all 0.3s ease;
  
  --font-main: 'Inter', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Montserrat', 'Microsoft YaHei', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

/* 通用样式 */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition-default);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* 全局超链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* 链接样式例外处理 */
.nav a::after,
.btn::after,
.btn-secondary::after,
.social-links a::after,
.product-img a::after {
  display: none;
}

/* 产品列表核心样式 */
.single-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* 初始隐藏产品样式 */
.single-product-item.hidden {
  display: none;
}

/* 产品卡片样式 */
.single-product-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.single-product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.single-product-img {
  height: 200px;
  overflow: hidden;
}

.single-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.single-product-item:hover .single-product-img img {
  transform: scale(1.05);
}

.single-product-info {
  padding: 20px;
  padding-bottom: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.single-product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* 产品名称链接基础样式 */
.single-product-name a {
  color: var(--primary-color); /* 未点击时的文字颜色，与整体协调 */
  text-decoration: none; /* 去掉默认下划线 */
  font-weight: 600;
  transition: all 0.3s ease; /* 过渡动画，让效果更柔和 */
}

/* 鼠标悬浮时的效果 */
.single-product-name a:hover {
  color: var(--secondary-color); /* 悬浮时换为品牌强调色（如红色） */
  text-decoration: none; /* 悬浮时显示下划线，提示可点击 */
}

/* 点击后的效果（若需区分已访问） */
.single-product-name a:visited {
  color: var(--primary-color); /* 已访问后换为灰色，区分状态 */
}


.single-product-excerpt {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.single-product-info .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* 产品过滤标签 */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-default);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* 加载更多按钮容器 */
.load-more-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

/* 头部样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-default);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: var(--transition-default);
}

.header.scrolled .logo img {
  height: 40px;
}

.nav {
  transition: var(--transition-default);
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav li {
  margin-left: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition-default);
  position: relative;
  padding: 5px 0;
}

.nav a:hover {
  color: var(--secondary-color);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-default);
}

.nav a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Banner 区域样式 */
.banner {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
}

.banner-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-position: center;
  background-size: cover;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.banner-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* 品牌优势区样式 */
.advantage-section {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.advantage-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%23000000' 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");
  z-index: 0;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.advantage-item {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-default);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-default);
}

.advantage-item:hover .advantage-icon {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.advantage-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition-default);
}

.advantage-item:hover .advantage-icon i {
  color: white;
}

.advantage-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.advantage-desc {
  color: var(--gray-color);
  font-size: 0.95rem;
}

/* 底部样式 */
.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: white;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-info {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-right: 10px;
  margin-top: 4px;
  width: 20px;
  text-align: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-default);
}

.footer-contact a:hover {
  color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-default);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-default);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 备案链接样式 */
.beian-link {
  color: inherit !important;
  font-size: inherit !important;
  text-decoration: none !important;
  transition: none !important;
}

.beian-link:hover {
  color: inherit !important;
  transform: none !important;
}

.beian-link::after {
  display: none !important;
}

/* 单产品详情列表区样式 */
.single-products {
    background-color: white;
    padding: var(--section-padding);
    padding-top: calc(var(--section-padding) + 40px);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 产品页专属样式 */
:root {
    --product-gap: 40px;
    --specs-width: 300px;
    --light-gray: #f5f5f5;
    --dark-color: #333;
    --gray-color: #666;
}

/* 顶部通栏 */
.product-top-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: var(--header-height);
}

.product-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
}

.product-subtitle {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* 核心内容区 */
.product-core {
    padding: 50px 0;
    background-color: white;
}

.product-core-wrapper {
    display: grid;
    grid-template-columns: var(--specs-width) 1fr;
    gap: var(--product-gap);
    align-items: flex-start;
}

/* 左侧参数栏 */
.product-specs {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    width: 100%; 
    max-width: 320px;
    box-sizing: border-box; 
}

.specs-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 16px; 
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.specs-list {
    margin-bottom: 16px;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px; 
    padding-bottom: 6px; 
    border-bottom: 1px dashed var(--light-gray);
    align-items: center; 
}

.specs-label {
    color: var(--gray-color);
    white-space: nowrap; 
    margin-right: 8px; 
    flex-shrink: 0; 
}

.specs-value {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0; 
}

.btn-fullwidth {
    width: 100%;
    padding: 12px 0;
}

/* 左侧参数栏 - 专属样式（避免和表格冲突） */
.specs-label-left {
  color: var(--primary-color);
  white-space: nowrap;
}

.specs-value-left {
  font-weight: 600;
  color: var(--gray-color);
}

/* 右侧产品详情 */
.product-detail {
    width: 100%;
}

/* 产品图库 */
.product-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border: 2px solid var(--secondary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品概述 */
.product-overview {
    margin-bottom: 40px;
	max-width: 1200px; /* 与表格容器宽度统一 */
	  margin-left: auto;
	  margin-right: auto;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.overview-text {
    color: var(--dark-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 技术参数表格（最终优化版） */
.product-specs-table {
    margin-bottom: 40px;
	overflow-x :auto;
	max-width: 1200px; /* 与上方容器宽度统一 */
	margin-left: auto;
	margin-right: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--light-gray);
    background-color: var(--light-color);
	table-layout: auto;
}

.specs-row {
    border-bottom: 1px solid var(--light-gray);
}

.header-row {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
}

.specs-label {
    padding: 12px 15px;
    text-align: center;
    color: var(--primary-color);
	width: 250px;
	white-space: nowrap; 
}

.specs-value {
    width: auto;
    padding: 12px 15px;
    text-align: center;
    color: var(--gray-color);
	white-space: normal;
	word-break: break-all;
}

.specs-value[colspan] {
  text-align: center;
  /* 若需调整宽度，可结合 table-layout: fixed 进行细化 */
}

.specs-row:not(.header-row) {
    background-color: #fff;
}

.specs-row:hover {
    background-color: inherit;
}

.specs-row:last-child {
    border-bottom: none;
}

/* 应用场景 */
.product-scenarios {
    margin-bottom: 20px;
}

.scenarios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.scenario-tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 对应WME官网产品链接 */
.application-link-module {
  margin-top: 40px; /* 与上方模块保持间距 */
  margin-bottom: 0px;
  max-width: 1200px; /* 与页面其他模块宽度统一 */
  margin-left: auto;
  margin-right: auto;
}

/* 链接样式（与整体风格匹配） */
.scenario-link {
  color: #666; /* 主色，与标题/按钮颜色一致 */
  font-size: 0.9em;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.6;
  position: static;
}

.scenario-link::after {
  display: none !important; /* 完全隐藏下划线 */
}

.scenario-link:hover::after {
  display: none !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .banner-content h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .product-core-wrapper {
    grid-template-columns: 1fr;
  }

  .advantages-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 40px 0;
  }
  
  .banner {
    min-height: 500px;
  }
  
  .banner-content h1 {
    font-size: 2.2rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  /* 移动端导航 */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    z-index: 999;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  .nav li {
    margin: 0;
    padding: 10px 20px;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .single-product-list,
  .advantage-list {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .product-title {
    font-size: 1.7rem;
  }

  .gallery-main {
    height: 300px;
  }
  
  .product-specs {
    position: static;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .single-product-img {
    height: 180px;
  }
}