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

.product-detail-container {
    display: flex;
    gap: 30px;
    margin: auto;
    max-width: 1200px;
}

/* 左侧：产品图片区域 */
.product-images {
    flex: 0 0 40%;
    max-width: 40%;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-wrapper {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

.thumbnail-swiper {
    width: 100%;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px !important;
    padding-bottom: 80px;
    margin-right: 10px !important;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-sizing: border-box;
    height: 0 !important;
    background-color: #fff;
}

.thumbnail-item:last-child {
    margin-right: 0;
}

.thumbnail-item:hover {
    border-color: #ccc;
}

.thumbnail-item.active {
    border-color: #333;
}

.thumbnail-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 右侧：产品信息区域 */
.product-info {
    flex: 1;
}

.product-tags {
    margin-bottom: 20px;
}

.product-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 12px;
    border-radius: 2px;
}

.product-title {
    font-size: 30px;
    font-weight: 100;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 产品参数表格 */
.product-params {
    margin-bottom: 30px;
}

.params-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
}

.params-table-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.params-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

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

.params-table .param-name {
    width: 30%;
    padding: 15px 20px;
    background-color: #f8f8f8;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
}

.params-table .param-value {
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
}

.product-price {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* 产品选项 */
.product-option {
    margin-bottom: 25px;
}

.option-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #333;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: block;
}

.color-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.size-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.size-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-item {
    display: inline-block;
    min-width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.size-item:hover {
    border-color: #333;
}

.size-item.active {
    border-color: #333;
    background-color: #333;
    color: #fff;
}

.product-material,
.product-shoe-type {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 15px;
}

/* 产品内容 */
.product-content {
    margin-bottom: 30px;
    padding: 20px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.product-content img {
    max-width: 100%;
    height: auto;
}

.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.product-content table td,
.product-content table th {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

.product-content p {
    margin-bottom: 15px;
}

/* 产品附件下载 */
.product-attachments {
    margin-bottom: 30px;
}

.attachments-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
}

.attachments-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
}

.attachment-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.attachment-item:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

.attachment-icon {
    margin-right: 6px;
    font-size: 14px;
}

.attachment-name {
    color: #333;
}

/* 购买按钮 */
.product-action {
    margin-top: 40px;
}

.btn-buy-now {
    width: 100%;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now:hover {
    background-color: #555;
}

/* 推荐产品区域 */
.related-products {
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-title {
    font-size: 30px;
    font-weight: 100;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.related-list {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.related-item {
    flex: 0 0 calc(16.666% - 20px);
    max-width: calc(16.666% - 20px);
    min-width: 0;
}

.related-image {
    display: block;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    position: relative;
}

.related-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.related-item:hover .related-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.related-info {
    text-align: left;
}

.related-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-price {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .product-images {
        flex: 1;
        max-width: 100%;
    }
    
    .main-image {
        border: none;
        padding: 0;
    }
    
    .thumbnail-item {
        width: 70px !important;
        padding-bottom: 70px;
        height: 0 !important;
    }
    
    .params-table .param-name {
        width: 35%;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .params-table .param-value {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .related-list {
        gap: 15px;
    }
    
    .related-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: 20px 10px;
    }
    
    .thumbnail-item {
        width: 60px !important;
        padding-bottom: 60px;
        height: 0 !important;
    }
    
    .params-table .param-name {
        width: 40%;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .params-table .param-value {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .related-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

