/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--light-blue);
}

.breadcrumb-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-links li {
    margin-right: 10px;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.breadcrumb-links li:not(:last-child):after {
    content: '>';
    margin-left: 10px;
    color: var(--primary-blue);
}

.breadcrumb-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.breadcrumb-links a:hover {
    color: var(--primary-blue);
}

.breadcrumb-links .current {
    color: var(--primary-blue);
    font-weight: 600;
}

/* 产品详情页面样式 */
.product-detail {
    padding: 60px 0;
}

.product-detail-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    flex: 1;
    display: flex;
    gap: 20px;
}

/* 左侧缩略图区域优化 */
.thumbnail-section {
    display: flex;
    flex-direction: column;
    width: 100px;
    position: relative;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--light-gray);
    padding: 5px;
}

/* 自定义滚动条样式 */
.thumbnail-list::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail.active {
    border-color: var(--primary-blue);
}

.thumbnail:hover {
    border-color: var(--secondary-blue);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 缩略图滚动箭头 - 放在头部和尾部 */
.thumbnail-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.thumbnail-controls.bottom {
    margin-top: 15px;
    margin-bottom: 0;
}

.thumbnail-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.thumbnail-arrow:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* 主图片展示区域 */
.main-image-container {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-image {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 主图片控制按钮 - 调整到两侧中间位置 */
.image-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.image-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-control-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.product-info {
    flex: 1;
    padding: 20px;
}

.product-title {
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--dark-blue);
}

.product-description {
    margin-bottom: 25px;
    color: #666;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.product-features {
    margin-bottom: 25px;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary-blue);

    margin-right: 10px;
}

.product-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-blue);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.nav-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* 产品属性部分样式 */
.product-attributes {
    background-color: var(--light-blue);
    padding: 60px 0;
    margin-top: 40px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.attribute-group {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.attribute-group:hover {
    transform: translateY(-5px);
}

.attribute-title {
    font-size: clamp(1, 2vw, 1.5rem);
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.attribute-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-blue);
}

.attribute-content {
    line-height: 1.8;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.attribute-list {
    list-style: none;
    padding-left: 0;
}

.attribute-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.attribute-list li i {
    color: var(--primary-blue);
    margin-right: 10px;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.attribute-label {
    font-weight: 600;
    min-width: 120px;
}

.attribute-value {
    color: #555;
}

.moq-info {
    margin-top: 20px;
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
}

.moq-info h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.shipping-options {
    margin-top: 20px;
}

.shipping-options h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.shipping-options ul {
    list-style-type: none;
    padding-left: 0;
}

.shipping-options li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.shipping-options li:before {
    content: '•';
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 图文描述部分样式 - 优化布局 */
.image-text-description {
    padding: 60px 0;
}

.description-block {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    width: 100%;
}

.description-content {
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.8;
    color: #555;
    width: 100%;
    margin-bottom: 20px;
}

.description-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.description-image {
    width: 80%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
}

.description-image:hover {
    transform: scale(1.02);
}

.description-image img {
    margin-bottom: 10px;
    width: 50%;
    height: auto;
    display: block;
}

/* 相关产品模块 - 优化布局 */
.related-products {
    padding: 60px 0;
    background-color: var(--light-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-height: 520px;
    overflow: hidden;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.product-image img {
    width: 90%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 10px 10px 20px;
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.product-name {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 600;
    margin-bottom: 10px;
}
p {
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-detail-container {
        flex-direction: column;
    }

    .product-images {
        flex-direction: column-reverse;
    }

    .thumbnail-section {
        width: 100%;
    }

    .thumbnail-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        max-height: none;
    }

    .thumbnail {
        flex-shrink: 0;
    }

    .thumbnail-controls {
        display: none;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 1020px;
    }
}

@media (max-width: 768px) {
    .description-image img {
        width: 100%;
    }
    .main-image {
        height: 400px;
    }

    .description-image {
        width: 100%;
        flex-direction: column;
    }

    .image-controls {
        position: absolute;
        bottom: 0px;
        top: auto;
        transform: none;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 2000px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .product-image {
        height: 160px;
    }

    .product-image img {
        width: 90%;
        height: auto;
    }
}
