﻿.container-2 {
    max-width: 1200px;
    margin: 0 auto;
}

.product-container {
    display: flex;
    margin-bottom: 30px;
}

.product-left {
    width: 520px;
    margin-right: 20px;
}

.product-right {
    width: 680px;
    padding-left: 58px;
}

.main-image {
    width: 100%;
    height: 520px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-image img {
        width: 100%;
        height: 100%;
    }

.thumbnails {
    display: flex;
    gap: 20px;
    padding: 0px 20px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .thumbnail img {
        width: 100%;
        height: 100%;
    }

.active {
    border-color: #d83a65;
}

.product-name {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-price {
    background-color: #f3f3f3;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.current-price {
    color: #ff0f23;
    font-size: 28px;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.wechat-qrcode-detail {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

    .wechat-qrcode-detail img {
        width: 100px;
        height: 100px;
        margin-left: 10px;
    }

.product-details {
    margin-top: 20px;
}

/* 产品参数样式 */
.product-params {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.params-title {
    width: 80px;
    font-size: 14px;
    color: #71797F;
    font-weight: 500;
}

.params-content {
    flex: 1;
}

.param-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #232628;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    width: 198px;
    height: 56px;
    margin-right: 30px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.add-to-cart {
    background-color: #ff9900;
    color: white;
}

.buy-now {
    background-color: #e4393c;
    color: white;
}

.collect {
    background-color: #f3f3f3;
    color: #333;
}

    .collect:hover {
        color: #d83a65 !important
    }

.bottom-container {
    display: flex;
}

.recommend-left {
    width: 218px;
    margin-right: 20px;
}

.recommend-title {
    font-size: 16px;
    font-weight: bold;
    padding: 15px 20px;
}

.recommend-item {
    margin-bottom: 10px;
}

    .recommend-item img {
        width: 100%;
    }

    .recommend-item p {
        margin: 5px;
        text-align: center
    }

.tabs {
    width: calc(100% - 220px);
}

.tab-nav {
    display: flex;
    background-color: #F3F5F7;
    padding: 0px 38px;
    border-radius: 5px;
}

.recommend-title {
    font-size: 16px;
    color: #232628;
    font-weight: 400;
}

.tab-nav a {
    text-decoration: none;
    padding: 15px 18px 10px 18px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #232628;
    font-weight: 400;
}

.tab-nav button {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
}

.tab-nav a.active {
    border-bottom: 2px solid #d83a65;
    color: #232628;
}


.tab-content {
    padding-top: 20px;
}

#tab1 {
    padding: 0px 0px 0px;
    border-top: none;
    text-align: center;
}

    #tab1 img {
        max-width: 100%
    }

.tab-pane {
    /*display: none;*/
}

    .tab-pane.active {
        display: block;
    }

.review {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
    display: flex;
}

/* 用户评价布局优化 */
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; /* 确保头像不被压缩 */
}

.review-main {
    flex: 1; /* 占据剩余空间 */
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom:6px;
    font-size: 13px;
}


.review-username {
    color: rgba(35,38,40,0.7);
    margin-right: 10px;
}

.review-stars {
    color: #ff9900;
}

.review-date {
    color: #B4BABF;
    font-size: 12px;
    margin-top: 5px;
}

/* 评价图片容器样式优化 */
.review-images {
    display: flex;
    gap: 8px; /* 图片之间的间距 */
    margin: 10px 0; /* 上下间距 */
}

.review-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover; /* 保持图片比例并填充容器 */
    border-radius: 4px; /* 轻微圆角 */
    border: 1px solid #f0f0f0; /* 细边框 */
    transition: transform 0.2s ease; /* 悬停动画效果 */
}

    .review-image:hover {
        transform: scale(1.03); /* 悬停时轻微放大 */
    }

#tab2, #tab3, #tab4 {
    /*margin-top: 20px;*/
}

.product-details div {
    margin-top: 18px
}

.product-details span {
    width: 80px;
    display: inline-block;
    font-size: 14px;
    vertical-align: top;
    color: #71797F
}

.product-details p {
    display: inline-block;
    width: 520px;
    vertical-align: top;
    font-size: 14px;
    color: #232628
}

.review-images {
    width: 100px;
}
