/* product.css - 仅单产品页需要的样式 */
/* 产品顶部通栏 */
.product-top-banner {
    height: 20vh;
    min-height: 150px;
    background: #1A1A1A;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-top-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2; /* 标题行间距 */
}

.product-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 产品核心内容区 */
.product-core {
    padding: var(--section-padding);
}
/* CAT同款一体化白色圆角卡片 */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 50px;
}
.product-core-wrapper {
    display:grid !important;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
	 align-items: stretch;
}

/* 左侧参数侧边栏 */
.product-specs.sidebar {
    background: #f7f7f7;
    padding: 30px 25px;
    border-radius: 8px;
}

.specs-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.specs-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.specs-list {
    margin-bottom: 20px;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.specs-label-left {
    font-weight: 500;
    color: var(--gray-color);
}

.specs-value-left {
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-fullwidth {
    display: block;
    width: 100%;
    margin-top: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 12px 0;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-default);
}

.btn-fullwidth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* 右侧产品详情 */
.product-detail {
    width: 100%;
}

/* 产品图片画廊 */
.product-gallery {
    margin-bottom: 50px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 100px;
    height: 80px;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-default);
}

.gallery-thumb.active {
    border: 2px solid var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.detailed-specs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.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);
}

/* 产品概述 */
.product-overview {
    margin-bottom: 50px;
}

.product-overview .section-heading,
.product-specs-table .section-heading,
.product-scenarios .section-heading {
    text-align: left;
    margin-bottom: 20px;
}

.product-overview .section-heading::after,
.product-specs-table .section-heading::after,
.product-scenarios .section-heading::after {
    left: 0;
    transform: none;
}

.overview-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* 技术参数表格 */
.product-specs-table {
    margin-bottom: 50px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    table-layout: fixed;
}

.specs-row.header-row {
    background: var(--light-color);
}

.specs-label {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    width: 40%;
}

.specs-value {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    width: 60%;
}

.specs-row:nth-child(even) {
    background: #F9F9F9;
}

/* 应用场景 */
.product-scenarios {
    margin-bottom: 50px;
}

.scenarios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.scenario-tag {
    padding: 10px 20px;
    background: var(--light-color);
    color: var(--secondary-color);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-default);
}

.scenario-tag:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.scenario-tag i {
    color: var(--primary-color);
    margin-right: 8px;
}

.scenario-tag:hover i {
    color: var(--secondary-color);
}

/* 官方链接模块 */
.application-link-module {
	display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.application-link-module div {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}



.scenario-link {
  	background: transparent;
    color: #000000;
    padding: 8px 12px 8px 6px;;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color 0.25s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    min-height: calc(1.5rem + 16px);
    /* 分隔线放右侧 */
    border-right: 1px solid #cccccc;
}
.scenario-link:last-child {
    border-right: none;
}


.scenario-link:hover {
    background: var(--primary-color); 
    color: #000;
    transform: none;
    box-shadow: none;
}

/* 单产品页响应式 */
@media (max-width: 992px) {
    .product-core-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gallery-main {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-top-banner {
        margin-top: 70px;
        height: 50vh;
    }
    .product-title {
        font-size: 2rem;
    }
    .gallery-main {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .product-top-banner {
        height: 60vh;
    }
    .gallery-thumb {
        width: 80px;
        height: 60px;
    }
    .specs-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .scenario-link {
        display: block;
        margin-left: 0 !important; 
        margin-top: 10px !important;
        width: 100%; 
        text-align: center; 
    }

    .scenario-link:first-child {
        margin-top: 0 !important;
    }
}