/* 全局重置 & 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #FFFFFF;
  color: #222831;
  line-height: 1.6;
  font-size: 16px;
  padding-top: 0; 
  margin: 0;
}

.container {
  max-width: 1600px;
  margin: 0 auto; 
  padding: 0 3rem; 
  width: 100%;
}

/* 固定头部容器 - 滚动时粘在顶部 */
.fixed-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 标题通用样式 */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222831;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222831;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #F5B041;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222831;
  margin-bottom: 1rem;
}

/* 产品头部Hero区域*/
.product-hero {
  background-color: #222831;
  padding: 1.2rem 0;
  border-bottom: 1px solid #EEEEEE;
  width: 100%;
  margin: 0; 
}


.product-hero h1,
.product-hero .hero-subtitle {
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1rem;
  color: #FFFFFF; 
  margin-bottom: 1rem;
  text-align: center;
}

.hero-tags {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0; 
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background-color: #F5B041;
  color: #222831;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

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

/* 核心：参数+图片一体化卡片*/
.product-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  background-color: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2rem auto 0; 
  width: 100%;
  height: 700px;
  max-width: calc(100% - 6rem);
  border: none; 
  transform: translateZ(0);
  -webkit-backface-visibility: hidden; 
}

/* 卡片左侧参数区域 */
.card-specs {
  background-color: #f9f9f9;
  padding: 2rem;
  border-right: 1px solid #EEEEEE;
  height: 100%; 
  overflow-y: auto; 
}

.card-specs h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #EEEEEE;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-label {
  font-weight: 600;
  color: #393E46;
}

/* 参数值颜色（橙色） */
.specs-value {
  color: #E67E22;
  font-weight: 700;
}

/* 卡片右侧图片区域  */
.card-gallery {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 主图区域 */
.gallery-main {
  width: 100%;
  height: 550px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  flex-shrink: 0; 
}

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

.gallery-main img:hover {
  transform: scale(1.02);
}

/* 缩略图区域 */
.gallery-thumbs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #F5B041 #EEEEEE;
  height: 80px; 
  flex-shrink: 0; 
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: #EEEEEE;
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background-color: #F5B041;
  border-radius: 3px;
}

.gallery-thumbs img {
  width: 120px;
  height: 100%; 
  object-fit: cover; 
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.thumb-active {
  opacity: 1;
  border-color: #F5B041;
  transform: scale(1.05);
}



/* 数值列单独右对齐 */
.specs-table-cell:last-child {
  text-align: right;
}

/* 新增：Detailed Specifications上方的描述文字样式 */
.specs-description {
  margin-bottom: 2rem;
  padding: 0 3rem;
  color: #393E46;
  line-height: 1.8;
}

.specs-description p {
  margin-bottom: 1rem;
}

/* 详细参数面板 */
.detailed-specs-section {
  padding: 3rem 0; 
  background-color: #FFFFFF;
  width: 100%;
  margin: 0;
}

.detailed-specs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 3rem; 
}

.detailed-specs-header h2 {
  margin-bottom: 0;
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.expand-all-btn {
  background-color: #222831;
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expand-all-btn:hover {
  background-color: #F5B041;
  color: #222831;
}

.inline-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #222831;
  color: #FFFFFF;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1; 
  height: auto; 
}

.inline-pdf-btn:hover {
  background-color: #F5B041;
  color: #222831; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.specs-accordion {
  border-top: 1px solid #EEEEEE;
  margin-bottom: 3rem;
  padding: 0 3rem; 
}

.accordion-item {
  border-bottom: 1px solid #EEEEEE;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f9f9f9;
}

.accordion-header h3 {
  margin: 0;
  color: #222831;
  font-size: 1.4rem;
  font-weight: 600;
}

.accordion-icon {
  color: #F5B041;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

/* ==================== 详细参数表格样式 ==================== */

.specs-table-container {
    margin-bottom: 3rem;
    padding: 0 3rem;
}

.specs-category {
    margin-bottom: 2.5rem;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.specs-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-title {
    background-color: #222831;
    color: #FFFFFF;
    padding: 1.2rem 1.5rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 3px solid #F5B041;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.specs-table tr:hover {
    background-color: #f9f9f9;
}

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

.specs-label-cell {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #393E46;
    width: 50%;
    vertical-align: top;
    border-right: 1px solid #f0f0f0;
}

.specs-value-cell {
    padding: 1rem 1.5rem;
    color: #E67E22;
    font-weight: 500;
    width: 50%;
    text-align: left;
    vertical-align: top;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .specs-table-container {
        padding: 0 1rem;
    }
    
    .specs-table {
        display: block;
    }
    
    .specs-table tr {
        display: flex;
        flex-direction: column;
        padding: 0.8rem 0;
    }
    
    .specs-label-cell,
    .specs-value-cell {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        border-right: none;
        text-align: left;
    }
    
    .specs-label-cell {
        font-size: 0.9rem;
        color: #666;
        padding-bottom: 0.2rem;
    }
    
    .specs-value-cell {
        font-size: 1rem;
        padding-top: 0.2rem;
        padding-bottom: 0.8rem;
    }
    
    .category-title {
        padding: 1rem 1.2rem;
        font-size: 1.2rem;
    }
}


/* 内部型号模块样式 */
.models-section-inner {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #EEEEEE;
  padding: 0 3rem; 
}

.models-section-inner h2 {
  color: #222831;
  margin-bottom: 1.5rem;
}

.models-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.model-link {
  background-color: #393E46;
  color: #FFFFFF;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 4px solid #F5B041;
}

.model-link:hover {
  background-color: #0071CE;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 页脚样式*/
.product-footer {
  background-color: #222831;
  color: #FFFFFF;
  padding: 1.5rem 0;
  width: 100%;
  margin: 0;
  position: relative; 
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* 左侧联系信息 */
.footer-info {
  text-align: left;
  flex: 0 1 auto;
  min-width: 350px;
}

.footer-info h3 {
  color: #F5B041;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid #F5B041;
  padding-bottom: 0.6rem;
  display: inline-block;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  font-size: 1rem;
}

.contact-list li i {
  color: #F5B041;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* 右侧图标按钮（无改动） */
.footer-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  flex: 0 1 auto;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.8rem;
  background-color: #393E46;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 180px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  justify-content: flex-start; 
}

.icon-btn.whatsapp-btn {
  border-left: 3px solid #25D366;
}
.icon-btn.email-btn {
  border-left: 3px solid #EA4335;
}

.icon-btn:hover {
  background-color: #F5B041;
  color: #222831;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.icon-btn i {
  font-size: 1.4rem;
}

/* 新增：全屏分割线 */
.footer-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; /* 视口宽度100%，铺满页面 */
  height: 1px;
  background-color: #444;
  transform: translateX(-50%); /* 居中对齐 */
  left: 50%;
}

.footer-copyright p {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .product-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 400px;
    max-width: calc(100% - 3rem); /* 移动端保留两侧留白 */
  }
  
  .card-specs {
    border-right: none;
    border-bottom: 1px solid #EEEEEE;
    max-height: 250px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .specs-detail-list {
    grid-template-columns: 1fr;
  }
  
  .detailed-specs-header, .specs-accordion, .models-section-inner {
    padding: 0 1.5rem; /* 移动端两侧留白缩小 */
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem; /* 移动端两侧留白1.5rem */
  }
  
  .product-hero {
    padding: 1rem 0;
  }
  
  .detailed-specs-section {
    padding: 2rem 0;
  }
  
  .gallery-main {
    height: 250px;
  }
  
  .card-specs, .card-gallery {
    padding: 1rem;
  }
  
  .footer-wrapper {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-info, .footer-copyright {
    text-align: center;
  }
  
  .footer-icons {
    justify-content: center;
  }
  
  .hero-tags {
    gap: 0.6rem;
  }
  
  .tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .gallery-main {
    height: 200px;
  }
  
  .gallery-thumbs img {
    width: 80px;
  }
  
  .icon-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .expand-all-btn, .inline-pdf-btn {
    width: 100%;
    text-align: center;
  }
}