/* 产品详情页样式 */
.goodsdetail-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 0;
    padding-top: 0px;
    background: #F4F1EB;
}

.goodsdetail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品详情主要内容 */
.goods-detail-main {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 50px;
}

/* 左侧图片区域 */
.goods-images-section {
    flex: 1;
    max-width: 700px;
}

.main-image-container {
    width: 100%;
    height: 900px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail-item {
    width: 100%;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #E11111;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息区域 */
.goods-info-section {
    flex: 1;
    max-width: 600px;
}

.goods-title {
    font-size: 34px;
    color: #343434;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.goods-price {
    font-size: 36px;
    color: #343434;
    font-weight: 700;
    margin-bottom: 25px;
}

/* SKU选择区域 */
.sku-section {
    margin-bottom: 30px;
}

.sku-item {
    margin-bottom: 15px;
}

.sku-name {
    font-size: 16px;
    color: #9393A6;
    margin-bottom: 8px;
}

.sku-value {
    font-size: 18px;
    color: #343434;
    font-weight: 500;
}

/* 同类产品选择 */
.related-goods-section {
    margin-bottom: 30px;
}

.related-title {
    font-size: 16px;
    color: #343434;
    margin-bottom: 15px;
    font-weight: 600;
}

.related-goods-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.related-goods-item {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.related-goods-item:hover,
.related-goods-item.active {
    border-color: #FE231B;
}

.related-goods-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.add-to-cart-btn-detail {
    background: #fff;
    color: #343434;
    border: 5px solid #D7D2C9;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.add-to-cart-btn-detail:hover {
    background: #E11111;
    color: #fff;
    border-color: #E11111;
    transform: translateY(-2px);
}

.favorite-icon-detail {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #D7D2C9;
}

.favorite-icon-detail:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-icon-detail i {
    color: #D7D2C9;
    font-size: 20px;
    transition: color 0.3s ease;
}

.favorite-icon-detail.favorited i,
.favorite-icon-detail:hover i {
    color: #ff4757;
}

/* 商品描述 */
.goods-description-section {
    margin-bottom: 40px;
}

.description-title {
    font-size: 30px;
    color: #343434;
    font-weight: 700;
    margin-bottom: 15px;
}

.description-content {
    font-size: 24px;
    line-height: 1.6;
    color: #343434;
    max-height: 900px;
    overflow-y: auto;
    padding-right: 10px;
}

.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb {
    background: #D7D2C9;
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: #9A958D;
}

/* 基本信息部分 */
.basic-info-section {
    background: #FBFAF8;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
    
}

.basic-info-title {
    font-size: 24px;
    color: #343434;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 5px solid #F4F1EB;
}

.param-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.param-category {
    margin-bottom: 25px;
}

.param-category-title {
    font-size: 18px;
    color: #343434;
    font-weight: 600;
    margin-bottom: 15px;
}

.param-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E8E8E8;
}

.param-name {
    flex: 0 0 350px;
    color: #9393A6;
    font-size: 14px;
    padding-right: 20px;
    position: relative;
}

.param-name::after {
    content: '--------';
    position: absolute;
    right: 10px;
    color: #D7D2C9;
    letter-spacing: 2px;
}

.param-value {
    flex: 1;
    color: #343434;
    font-size: 14px;
    line-height: 1.4;
}

/* 配送和评价部分 */
.info-cards-section {
    display: flex;
    gap: 20px;
}

.info-card {
    flex: 1;
    background: #FBFAF8;
    border-radius: 15px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-size: 18px;
    color: #343434;
    font-weight: 600;
}

.card-icon {
    color: #343434;
    font-size: 16px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #FFD700;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-image-container {
        height: 700px;
    }
    
    .thumbnail-item {
        height: 160px;
    }

    .description-content {
        max-height: 600px;
    }
}

@media (max-width: 1200px) {
    .goods-detail-main {
        gap: 40px;
    }
    
    .main-image-container {
        height: 600px;
    }
    
    .thumbnail-item {
        height: 140px;
    }

    .goods-title {
        font-size: 32px;
    }

    .description-content {
        max-height: 400px;
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .goods-detail-main {
        flex-direction: column;
    }
    
    .goods-images-section,
    .goods-info-section {
        max-width: 100%;
    }
    
    .main-image-container {
        height: 500px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .info-cards-section {
        flex-direction: column;
    }

    .description-title {
        font-size: 24px;
    }

    .description-content {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .goods-title {
        font-size: 28px;
    }
    .goodsdetail-page {
        padding: 40px 0;
        padding-top: 0px;
    }
    
    .goodsdetail-container {
        padding: 0 15px;
    }
    
    .main-image-container {
        height: 400px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-item {
        height: 120px;
    }
    
    .basic-info-section {
        padding: 20px;
    }
    
    .info-card {
        padding: 15px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .add-to-cart-btn-detail {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail-item {
        height: 80px;
    }
    
    .goods-title {
        font-size: 24px;
    }
    
    .goods-price {
        font-size: 28px;
    }
    
    .param-item {
        flex-direction: column;
    }
    
    .param-name {
        flex: none;
        margin-bottom: 5px;
    }
    
    .param-name::after {
        display: none;
    }
}