/* landing.css */

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

/* ---------- 变量定义 ---------- */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --border-color: #ddd;
  --white: #fff;
  --black: #000;
  
  /* 间距 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
}

/* ---------- 全局样式 ---------- */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

/* ---------- 布局容器 ---------- */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-width {
  width: 100%;
  padding: var(--spacing-md) 0;
}

/* ---------- 栅格系统 ---------- */
.col-raw {
  display: flex;
  margin: 0 -15px;
}

.col-n {
  padding: 0 15px;
}

.col-7 { width: 58.333333%; }
.col-5 { width: 41.666667%; }
.col-4 { width: 33.333333%; }



.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; /* 贴合hero-section顶部 */
  left: 0;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* 保持左对齐 */
  color: #fff;
  padding-left: 10%; /* 添加左侧内边距，可以根据需要调整百分比 */
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px; /* 可选：限制标题最大宽度 */
}


.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* 或者设置固定高度，如 600px */
    overflow: hidden;
    margin-top: 70px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    object-position: center; /* 图片居中显示 */
}

/* 如果需要响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh; /* 移动端可以设置较小高度 */
    }
}


.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.4);*/
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.button1 {
  background-color: #007bff; /* 主要颜色，可以根据你的品牌色调整 */
  color: #ffffff;
  border: 2px solid #007bff;
}

.button1:hover {
  background-color: transparent;
  color: #007bff;
}

/* 如果在深色背景上（比如视频背景）使用按钮，可以添加这个特殊样式 */
.hero-section .button1 {
  background-color: #ffffff;
  color: #007bff;
  border-color: #ffffff;
}

.hero-section .button1:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}



/* ---------- 面包屑导航 ---------- */
#top-breadcrumbs {
  border-bottom: 1px solid var(--border-color);
}

#breadcrumbs {
  font-size: 16px;
  color: var(--secondary-color);
}

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

#breadcrumbs a:hover {
  color: darken(var(--primary-color), 10%);
}

#breadcrumbs i {
  margin: 0 var(--spacing-sm);
}

/* ---------- 产品介绍区域 ---------- */
.entry-content-product {
  padding: var(--spacing-lg) 0;
}

.entry-content-product h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-md);
}

.entry-content-product p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

/* ---------- 图片区域 ---------- */
.product-image-wrapper {
  width: 250px;
  margin: 0 auto;
  margin-top: 30px; /* 增加顶部间距，可以根据需要调整数值 */
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content-product p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ---------- 按钮样式 ---------- */
.button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.button1:hover {
  background-color: darken(var(--primary-color), 10%);
}

.button-small {
  padding: 8px 15px;
  font-size: 14px;
}

/* ---------- Tab导航 ---------- */
.tab-list {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.tab-item {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-item.current {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ---------- Tab内容区域 ---------- */
.tab-content {
  display: none;
  padding: var(--spacing-lg) 0;
}

.tab-content.current {
  display: block;
}

/* ---------- 产品特性 ---------- */
.product-feature-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  transition: transform 0.3s ease;
}

.product-feature-item:hover {
  transform: translateY(-5px);
}

.icon-product-feature {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
}

.product-feature-item h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
}

/* ---------- 表格样式 ---------- */
/* 规格表样式 */
.spec-title {
  color: #cc0000;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: bold;
  position: relative;
  padding-left: 15px;
}

.red-title {
  color: #cc0000;  /* 红色 */
}

.spec-title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #cc0000;
}

.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

/* 表头样式 */
.specs-table thead th {
  color: #c8161d;
  font-size: 15px;
  font-weight: bold;
  padding: 15px;
  background-color: #f5f5f5;
  text-align: center;
  border: 1px solid #e0e0e0;
}

/* 表格内容样式 */
.specs-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}

/* 第一列样式 */
.specs-table td:first-child {
  text-align: center;  /* 水平居中 */
  vertical-align: middle;  /* 垂直居中 */
  /*background-color: #f9f9f9;*/
  font-weight: 500;
  font-size: 14px;
  padding: 12px 15px;
}

/* 型号列样式 */
.model-column {
  width: 20%;
}

.model-column img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.model-name {
  color: #cc0000;
  font-weight: bold;
  font-size: 16px;
}

/* 间隔行底色 */
.specs-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.specs-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* 鼠标悬停效果 */
.specs-table tr:hover td {
  background-color: #f5f5f5;
}

/* 高亮值样式 */
.specs-table td[data-highlight="true"] {
  color: #cc0000;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .specs-table {
    font-size: 13px;
  }
  
  .specs-table thead th {
    font-size: 14px;
    padding: 8px;
  }
  
  .specs-table td {
    padding: 8px;
    font-size: 13px;
  }
  
  .model-name {
    font-size: 14px;
  }
  
  .model-column img {
    width: 70px;
  }
}

.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 30px;
}

/* 左侧样式 */
.advantages-list {
  flex: 0 0 250px;
}

.advantages-title {
  color: #D32F2F;
  font-size: 18px;
  margin-bottom: 20px;
}

.advantage-item {
  background: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantage-text {
  color: #666;
  font-size: 14px;
}

/* 右侧样式 */
.wiring-section {
  flex: 1;
}

.recommendation-tag {
  background: #D32F2F;
  color: white;
  padding: 6px 15px;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.wiring-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  min-height: 200px; /* 增加高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wiring-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.wiring-images img {
  width: 100%; /* 修改为100% */
  height: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .advantages-container {
      flex-direction: column;
  }

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

/* ---------- 底部相关链接 ---------- */
.product-more-item {
  padding: var(--spacing-md);
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
}

.product-more-item:hover {
  background: darken(var(--light-gray), 5%);
}

.product-more-item h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
}

.product-more-item p {
  margin-bottom: var(--spacing-md);
  color: var(--secondary-color);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 992px) {
  .col-7,
  .col-5 {
      width: 100%;
  }
  
  .entry-content-product {
      margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .col-4 {
      width: 50%;
  }
  
  .tab-list {
      flex-wrap: wrap;
  }
  
  .tab-item {
      flex: 1 1 auto;
      text-align: center;
  }
}

@media (max-width: 576px) {
  .col-4 {
      width: 100%;
  }
  
  .tab-list {
      flex-direction: column;
  }
  
  .tab-item {
      width: 100%;
      text-align: center;
  }
  
  .entry-content-product h3 {
      font-size: 24px;
  }
}

/* ---------- 动画效果 ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-content.current {
  animation: fadeIn 0.5s ease-in-out;
}

/* ---------- 辅助类 ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 标题样式 */
.section-headers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.title-group {
  flex: 1;
}

.section-title {
  color: #dc2626; /* 红色标题 */
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

/* 内容容器 */
.content-wrapper {
  display: flex;
  gap: 2rem;
}

/* 左侧样式 */
.left-content {
  flex: 1;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.image-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.image-item img {
  width: 80%;      /* 调小宽度，比如80% */
  max-width: 120px; /* 或者设置最大宽度，比如120px */
  height: auto;
  object-fit: cover;
}

.image-title {
  display: block;
  margin-top: 0.5rem;
  color: #333;
  font-size: 14px;
}

/* 右侧样式 */
.right-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-content img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
}

.bottom-extra {
  margin-top: 40px;
  text-align: center;
}
.bottom-extra .section-title {
  margin-bottom: 20px;
}
.bottom-extra .dimensions-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .section-headers {
    flex-direction: column;
    gap: 1rem;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

.drawing-content img {
    width: 500px;
    height: 700px;
    object-fit: contain; /* 保证图片完整显示，可能有留白 */
    background: #fff;    /* 可以设置背景色填充空白 */
    margin: 10px;
}



/* Download section styles */
.drawing-content,
.download-content {
    padding: 20px 0;
}

.product-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.product-model {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
}

.download-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #d32f2f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.download-icon:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.download-icon i {
    font-size: 16px;
}

.download-icon span {
    font-size: 14px;
}

/* Download animation */
.download-clicked {
    transform: scale(0.95) !important;
    transition: transform 0.15s ease;
}

/* Card hover effect */
.card-hover {
    border-color: #d32f2f;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

/* Tab content styles */
.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.current {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .product-download-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .download-icon {
        padding: 10px 16px;
        font-size: 14px;
    }
}


