/* 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);
}

.product-core-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 40px;
}

/* 左侧参数侧边栏 */
.product-specs.sidebar {
    background: var(--light-color);
    padding: 35px;
    border-radius: 8px;
    height: fit-content;
}

.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;
}

/* 产品概述 */
.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 {
    margin-bottom: 20px;
    margin-top: 25px; /* 替代内联的margin-top:25px */
}

.scenario-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--white-color);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-default);
}

.scenario-link:nth-child(2) {
    margin-left: 15px; /* 替代内联的margin-left:15px */
    margin-top: 10px;  /* 替代内联的margin-top:10px */
}

.scenario-link:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 单产品页响应式 */
@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;
    }
}