/* 产品详情页样式 */
.product-detail-section {
    padding: 40px 0 60px;
    background-color: #f5f5f5;
}

.product-detail-back {
    margin: 20px 0;
    padding-top: 80px;
}

.product-detail-back a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    transition: color 0.3s;
}

.product-detail-back a:hover {
    color: #4A5DFF;
}

.product-detail-layout {
    display: flex;
    gap: 30px;
}

.product-detail-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f4ff;
    color: #4A5DFF;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.product-detail-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

.product-detail-image {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* 产品图库 - 大图+特性缩略图（去除重复图） */
.product-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
}

.gallery-main img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.gallery-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

/* 缩略图样式 */
.gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.gallery-thumb:hover {
    border-color: #4A5DFF;
}

.gallery-thumb.active {
    border-color: #4A5DFF;
}

.gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: #f8f9fc;
    border: 1px solid #e8ebf2;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.gallery-feature:hover {
    background: #eef1f8;
    border-color: #4A5DFF;
    transform: translateY(-2px);
}

.gallery-feature i {
    font-size: 28px;
    color: #4A5DFF;
    margin-bottom: 8px;
}

.gallery-feature .gf-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.gallery-feature .gf-desc {
    font-size: 12px;
    color: #888;
}

@media (max-width: 576px) {
    .gallery-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-detail-features {
    margin-bottom: 30px;
}

.product-detail-features h3,
.product-detail-section-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #4A5DFF;
}

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

.feature-list li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.feature-list li i {
    color: #4A5DFF;
    margin-right: 8px;
    font-size: 14px;
}

.product-detail-warranty {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.warranty-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4A5DFF;
    font-size: 14px;
}

.warranty-item i {
    font-size: 24px;
}

.product-detail-action {
    text-align: center;
    margin-bottom: 30px;
}

.product-detail-action .btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background-color: #4A5DFF;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.product-detail-action .btn-primary:hover {
    background-color: #3a4ad9;
}

.product-detail-model {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.product-detail-section-block {
    margin-bottom: 40px;
}

/* 产品描述 */
.product-description {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    background: #f8f9fc;
    border-left: 4px solid #4A5DFF;
    padding: 18px 22px;
    border-radius: 4px;
    text-indent: 2em;
}

@media (max-width: 576px) {
    .product-description {
        font-size: 14px;
        padding: 15px 18px;
    }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
    border-radius: 4px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

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

.specs-table td {
    padding: 14px 20px;
    font-size: 14px;
}

.spec-name {
    width: 30%;
    color: #999;
    background: #f5f5f5;
}

.spec-value {
    color: #333;
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.module-item {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #4A5DFF;
}

.module-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.module-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.product-detail-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-block {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.sidebar-block h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A5DFF;
}

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

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: block;
    padding: 10px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: #f0f4ff;
    color: #4A5DFF;
}

.category-list a.active {
    background: #4A5DFF;
    color: #fff;
}

.contact-block {
    text-align: center;
}

.contact-phone {
    font-size: 22px;
    font-weight: 700;
    color: #4A5DFF;
    margin: 10px 0 15px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #4A5DFF;
    color: #4A5DFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #4A5DFF;
    color: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
    .product-detail-layout {
        flex-direction: column;
    }

    .product-detail-sidebar {
        width: 100%;
    }

    .modules-list {
        grid-template-columns: 1fr;
    }

    .product-detail-warranty {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .product-detail-main {
        padding: 20px;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .product-detail-subtitle {
        font-size: 15px;
    }

    .product-detail-warranty {
        flex-direction: column;
        gap: 12px;
    }
}
