/* yla7.css - YLA7产品页面专属样式 */

.page-banner {
    position: relative;
    margin-top: 80px;
    padding: 120px 0;
    text-align: center;
    color: white;
    background-image: url('img/hero-bg.jpg'); /* 可替换为实际图片路径 */
    background-size: cover;
    background-position: 0 60%;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* 产品中间内容区最大宽度1300px */
.product-detail {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 顶部产品介绍区（左右两栏） */
.product-showcase {
     display: flex; /* 保持原有flex，但增加对齐方式 */
    align-items: stretch;
    /* 其余不变 */
}

.product-gallery {
    flex: 1.2;
    min-width: 280px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
}

.product-specs {
    flex: 1;
    background: #f9fafb;
    padding: 24px;
    border-radius: 20px;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 0.9;
    background-color: #f5f7fa;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
}

.main-image img {
    width: 100%;
    height: 105%;
    object-fit: contain;
}
/* 产品描述和特点列表 */
.product-desc {
    margin-bottom: 20px;
}
.product-desc p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray);
    margin-bottom: 12px;
}
.thumbnail-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.product-specs h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.product-specs .sub {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.specs-table th,
.specs-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table th {
    font-weight: 600;
    color: var(--secondary);
    width: 45%;
}

.specs-table td {
    color: var(--gray);
}

/* 详细属性与资料下载 */
.product-details {
    margin-bottom: 60px;
}

.details-header {
    display: flex;
    border-bottom: 2px solid var(--primary);
    margin-top: 66px;
    margin-bottom: 24px;
}

.details-tab {
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    background: #f3f4f6;
    border-radius: 30px 30px 0 0;
    margin-right: 8px;
    transition: 0.2s;
}

.details-tab.active {
    background: var(--primary);
    color: white;
}

.details-content {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

.param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
    row-gap: 12px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #edf2f7;
    gap: 8px;
}

.param-label {
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.param-value {
    color: var(--gray);
    text-align: right;
    word-break: break-word;
}

.download-area {
    margin-top: 30px;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 其他产品推荐 */
.related-products {
    margin-top: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #eef2f6;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f7fa;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .product-showcase {
        flex-direction: column;
    }
    .product-specs {
        margin: 0 24px 24px 24px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}