/* 产品项目页面样式 - 强制刷新: 2025-01-15 12:30:00 */

/* 导航栏滚动后添加白色背景 */
.project-page .header.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后 Logo 变黑色 */
.project-page .header.scrolled .brand-logo img {
  filter: none !important;
}

/* 滚动后导航文字变黑色 */
.project-page .header.scrolled .nav-links .aheader,
.project-page .header.scrolled .nav-dropdown > .aheader {
  color: #000 !important;
}

/* 滚动后悬停仍为橙色 */
.project-page .header.scrolled .nav-links a:hover,
.project-page .header.scrolled .nav-dropdown > a:hover {
  color: #FF6B35 !important;
}

/* 滚动后搜索按钮变黑色 */
.project-page .header.scrolled .search-toggle-btn {
  color: #000 !important;
}

.project-page .header.scrolled .search-toggle-btn:hover {
  background: rgba(255, 107, 53, 0.2) !important;
}

/* 滚动后语言按钮变黑色 */
.project-page .header.scrolled .language-toggle-btn {
  border-color: #000 !important;
  color: #000 !important;
}

/* 滚动后语言按钮悬停仍为橙色 */
.project-page .header.scrolled .language-toggle-btn:hover {
  background: #FF6B35 !important;
  color: #fff !important;
  border-color: #FF6B35 !important;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin-top: 100px !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 上半部分：轮播图背景 + 文案 + 选择按钮 */
.hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  --bg-opacity: 0.5;
}

/* 下半部分：白色背景 + 产品卡片 */
.product-section {
  width: 100%;
  background: #ffffff;
  position: relative;
  z-index: 10;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../图片素材/首页品牌调性图/DSCF8556_optimized.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: var(--bg-opacity, 0.5);
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* 一号线产品背景 */
.hero-section.line1::before {
  background-image: url('../图片素材/首页品牌调性图/DSCF8556_optimized.jpg');
  transition: opacity 0.6s ease-in-out;
}

/* 二号线产品背景 */
.hero-section.line2::before {
  background-image: url('../图片素材/首页品牌调性图/二号线全家福2.png');
  transition: opacity 0.6s ease-in-out;
}

.product-container {
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px;
  background: #ffffff;
  position: relative;
  z-index: 10;
  overflow: visible;
  height: auto;
  max-width: 100%;
  margin-top: 0;
}



.page-title {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  position: relative;
  margin: 0 auto 20px;
  max-width: 1200px;
}

/* 页面标题图片样式 */
.page-title-image {
  text-align: center;
  margin-bottom: 40px;
  z-index: 1000;
  position: relative;
  max-width: 1200px;
  margin: 0 auto 40px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title-image img {
  max-width: 30%;
  height: auto;
  max-height: 84px;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.page-title-image img:hover {
  transform: scale(1.05);
}

/* SYITREN LAB logo 特殊样式 - 60%大小 */
.page-title-image img[src*="S Y I T R E N备份"] {
  max-width: 60%;
  max-height: 50px; /* 84px * 0.6 */
  filter: none;
}

.page-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 1000;
  position: relative;
  margin: 0 auto 20px;
  line-height: 1.4;
  text-shadow: none;
  max-width: 800px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-intro {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 1000;
  position: relative;
  margin-left: 0;
  line-height: 1.6;
  max-width: 400px;
  padding-left: 0;
}

.page-intro-en {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: #777;
  margin-bottom: 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 1000;
  position: relative;
  margin-left: 0;
  line-height: 1.6;
  max-width: 400px;
  font-style: italic;
  padding-left: 0;
}

.text-container {
  width: 100%;
  padding: 60px 0 20px 0;
  background: transparent;
  position: relative;
  z-index: 10;
  margin-bottom: 0;
  margin-top: 0;
  min-height: 260px;
}


/* 文字内容内部容器 */
.text-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* 产品内容内部容器 */
.product-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* 动态背景图样式 */
.text-container.lifestyle-bg {
  background-image: url('../图片素材/产品介绍顶部背景图.png');
}

.text-container.lab-bg {
  background-image: url('../图片素材/底部背景2.0.png');
}

/* 分类选择器 */
.category-selector {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 40px 20px;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  border-radius: 12px;
}

/* 默认状态 - 所有按钮都是白色 */
.category-btn[data-category="lifestyle"],
.category-btn[data-category="lab"] {
  background: white !important;
  color: #000 !important;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.category-btn[data-category="lifestyle"] .brand-name,
.category-btn[data-category="lab"] .brand-name {
  color: #000 !important;
  transition: color 0.4s ease, font-size 0.4s ease, font-weight 0.4s ease, text-shadow 0.4s ease;
}

.category-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #000;
  padding: 20px 30px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, z-index 0.15s ease;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  z-index: 1;
}

/* 第一个按钮 - 左侧圆角 */
.category-btn:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* 第二个按钮 - 右侧圆角 */
.category-btn:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


.category-btn .brand-name {
  font-size: 18px;
  font-weight: 500;
  position: relative;
  z-index: 2;
  font-family: 'Arial', sans-serif;
  text-align: center;
  letter-spacing: 1px;
}

.category-btn[data-category="lifestyle"] .brand-name {
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  color: #000 !important;
}

.category-btn[data-category="lab"] .brand-name {
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  color: #000 !important;
}

/* 悬停效果 - 切换背景图（仅对未激活的按钮） */
.category-btn:not(.active):hover {
  background: white !important;
  color: #000 !important;
  z-index: 10 !important;
  position: relative;
}

.category-btn:not(.active):hover .brand-name {
  color: #000 !important;
}

/* 悬停时的背景图切换类 */
.hero-section.hover-line1::before {
  background-image: url('../图片素材/首页品牌调性图/DSCF8556_optimized.jpg');
  opacity: 0.2;
  transition: opacity 0.6s ease-in-out;
}

.hero-section.hover-line2::before {
  background-image: url('../图片素材/首页品牌调性图/二号线全家福2.png');
  opacity: 0.2;
  transition: opacity 0.6s ease-in-out;
}

/* 激活状态 - 只有激活的按钮变深灰色 */
.category-btn.active {
  background: #333333 !important;
  color: white !important;
  z-index: 5;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-btn.active .brand-name {
  color: white !important;
  font-size: 22px;
  font-weight: 800;
  transition: color 0.4s ease, font-size 0.4s ease, font-weight 0.4s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 确保未悬停且未激活的按钮保持白色 */
.category-btn:not(:hover):not(.active) {
  background: white !important;
  color: #000 !important;
}

.category-btn:not(:hover):not(.active) .brand-name {
  color: #000 !important;
}

/* 产品展示区域 */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 70px;
  margin-top: 40px;
  padding: 0;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

/* 产品项目样式 */
.product-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  text-align: center;
  border: 1px solid #f0f0f0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

/* 第一部分：产品图片区域 */
.product-image {
  padding: 35px 0px 0px;
  width: 100%;
  max-width: 750px;
  aspect-ratio: 655/580;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: #f8f9fa;
  flex-shrink: 0;
}

.product-image img {
  border-radius: 15px;
  width: 75%;
  height: 90%;
  object-fit: cover;
  object-position: center;
}



/* 第二部分：产品名称和品牌区域 */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 30px 0px 20px 0px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.product-brand {
  font-size: 20px;
  color: rgba(102, 102, 102, 0.7);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.product-name {
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin: 0 0 0 0;
  line-height: 1.4;
}

/* 第三部分：了解更多按钮区域 */
.product-link {
  background: #000000 !important;
  background-color: #000000 !important;
  color: white !important;
  padding: 12px 5px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0 0;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  width: 100% !important;
  min-width: 400px;
  z-index: 1;
}

.product-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 75, 30, 0.3);
  text-decoration: none;
  color: white;
}

.product-link:hover {
  background: #C84B1E !important;
  background-color: #C84B1E !important;
}

.product-link::after {
  content: '';
  transition: all 0.3s ease;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-5px);
  position: relative;
  z-index: 1;
}

.product-link:hover::after {
  content: '→';
  opacity: 1;
  transform: translateX(0);
}





.product-subtitle {
  font-size: 14px;
  color: #666;
  text-align: left;
  margin-bottom: 4px;
  margin-top: 0;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 1em;
  display: flex;
  align-items: center;
}



.product-price {
  text-align: center;
  margin-bottom: 25px;
}

.price-main {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.price-sub {
  font-size: 14px;
  color: #666;
}

/* 产品卡片样式 */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  padding: 35px 0px 0px;
  width: 100%;
  aspect-ratio: 655/580;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f8f9fa;
  position: relative;
}

.product-image img {
    border-radius: 15px;
    width: 75%;
   height: 90%;
   object-fit: cover;
}


/* 产品图片悬停覆盖层 */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 8px;
}

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

/* 产品操作区域样式 */
.product-actions {
  padding: 12px 16px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* 了解更多按钮样式 */
.learn-more-btn {
  background: linear-gradient(135deg, #C84B1E, #B83A1A);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 75, 30, 0.3);
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

.learn-more-btn:hover {
  background: linear-gradient(135deg, #B83A1A, #A83216);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 75, 30, 0.4);
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: left;
  margin-bottom: 4px;
  margin-top: 2px;
  line-height: 1.4;
  min-height: 1.6em;
  display: flex;
  align-items: center;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.buy-btn:hover {
  background: #C84B1E;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-container {
    padding: 40px 40px;
  }
  
  .category-selector {
    gap: 10px;
    margin: 25px 0;
    max-width: 700px;
  }
  
  .category-btn {
    padding: 20px 15px;
    min-height: 50px;
  }
  
  .category-btn .brand-name {
    font-size: 16px;
  }
  
  .page-title-image img {
    max-width: 70%;
    max-height: 70px;
  }
  
  .page-title-image img[src*="S Y I T R E N备份"] {
    max-width: 60%;
    max-height: 42px; /* 70px * 0.6 */
  }
  
  .products-showcase {
    padding: 0;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
  
  .product-image {
    max-width: 300px;
    margin-bottom: 27px;
  }
  
  .product-item {
    max-width: 630px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .product-container {
    padding: 25px 20px;
  }
  
  .category-selector {
    gap: 0;
    margin: 20px 0;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }
  
  .category-btn {
    padding: 16px 15px;
    min-height: 45px;
    border-radius: 12px;
    font-size: 14px;
    width: 100%;
  }
  
  /* 移动端产品卡片优化 */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  
  .product-card {
    padding: 20px;
  }
  
  .product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .product-card p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .product-image-container {
    height: 250px;
    margin-bottom: 15px;
  }
  
  /* 移动端了解更多按钮 */
  .learn-more-btn {
    padding: 10px 20px;
    font-size: 13px;
    margin-top: 15px;
    border: none;
    background: transparent;
    z-index: 3;
  }
  
  .category-btn:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .category-btn:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  
  .category-btn .brand-name {
    font-size: 15px;
  }
  
  .page-title-image img {
    max-width: 70%;
    max-height: 56px;
  }
  
  .page-title-image img[src*="S Y I T R E N备份"] {
    max-width: 60%;
    max-height: 34px; /* 56px * 0.6 */
  }
  
  .products-showcase {
    padding: 0;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  }
  
  .product-image {
    max-width: 270px;
    aspect-ratio: 655/580;
    margin-bottom: 24px;
  }
  
  .product-item {
    max-width: 540px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 18px 15px;
  }
  
  .category-selector {
    gap: 0;
    margin: 15px 0;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }
  
  .category-btn {
    padding: 14px 12px;
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
  }
  
  /* 小屏手机产品卡片优化 */
  .product-card {
    padding: 15px;
    border-radius: 12px;
  }
  
  .product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .product-card p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .product-image-container {
    height: 220px;
    margin-bottom: 12px;
  }
  
  .learn-more-btn {
    padding: 8px 18px;
    font-size: 12px;
    margin-top: 12px;
    border: none;
    background: transparent;
    z-index: 3;
  }
  
  .category-btn:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .category-btn:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  
  .category-btn .brand-name {
    font-size: 14px;
  }
  
  .page-title-image img {
    max-width: 70%;
    max-height: 42px;
  }
  
  .page-title-image img[src*="S Y I T R E N备份"] {
    max-width: 60%;
    max-height: 25px; /* 42px * 0.6 */
  }
  
  .products-showcase {
    padding: 0;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .product-image {
    max-width: 210px;
    aspect-ratio: 655/580;
    margin-bottom: 21px;
  }
  
  .product-item {
    max-width: 450px;
    padding: 0;
  }
}



