/* 基础样式 */
.main-content {
    padding-bottom: 2rem;
    
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.crumb-wrap {
    /* padding: 10px 0; */
    color: #666;
    font-size: 14px;
}

.crumb-wrap a {
    color: #666;
    text-decoration: none;
}

.crumb-wrap a:hover {
    color: #e74c3c;
}

/* 商品布局 */
.product-layout {
    display: flex;
    gap: 20px;
    margin-top: 0px;
}

/* 左侧热卖商品 */
.hot-products-sidebar {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-title .iconfont {
    color: #e74c3c;
    margin-right: 5px;
    font-size: 20px;
}

.hot-product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-product-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
    background: #fafafa;
}

.hot-product-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hot-product-rank {
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.hot-product-item:nth-child(2) .hot-product-rank {
    background: #f39c12;
}

.hot-product-item:nth-child(3) .hot-product-rank {
    background: #3498db;
}

.hot-product-item:nth-child(4) .hot-product-rank {
    background: #2ecc71;
}

.hot-product-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

.hot-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-product-info {
    flex: 1;
    min-width: 0;
}

.hot-product-name {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.hot-product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.hot-product-sales {
    color: #999;
    font-size: 12px;
}

/* 右侧商品详情 */
.product-main-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 商品基本信息 */
.product-basic-info {
    display: flex;
    gap: 30px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-gallery {
    width: 400px;
    flex-shrink: 0;
}

.main-image {
    border-radius: 6px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.product-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-meta .iconfont {
    margin-right: 3px;
}

.price-section {
    margin-bottom: 20px;
}

.current-price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
}

.delivery-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.delivery-info p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.delivery-info .iconfont {
    margin-right: 8px;
    color: #e74c3c;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}

.product-actions {
    margin-top: 25px;
}

.add-to-cart {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.add-to-cart:hover {
    background: #c0392b;
}

.add-to-cart .iconfont {
    margin-right: 5px;
    font-size: 18px;
}

/* 商品选项卡 */
.product-tabs {
    margin-top: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
}

.tab-item:hover {
    color: #e74c3c;
}

.tab-item.active {
    color: #e74c3c;
    font-weight: bold;
}

.tab-item.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e74c3c;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 商品详情样式 */
.product-description {
    line-height: 1.8;
    color: #666;
}

.product-description h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.product-description img {
    max-width: 100%;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* 配送说明 */
.delivery-details {
    line-height: 1.8;
    color: #666;
}

.delivery-details p {
    margin-bottom: 10px;
}

/* 常见问题 */
.faq-list {
    margin-top: 15px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.faq-question {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.faq-answer {
    color: #666;
    line-height: 1.7;
    padding-left: 15px;
}

/* #region  评论开始  */

    /* 评论容器样式 */
    .comments-container {
        margin: 20px 0;
        padding: 0 10px;
    }

    .comments-title {
        font-size: 1.25rem;
        color: #333;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    /* 评论列表样式 */
    .comment-list {
        margin: 1rem 0;
    }

    .comment-item {
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .comment-user {
        font-weight: bold;
        color: #333;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .comment-content {
        color: #333;
        line-height: 1.6;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    .comment-meta {
        color: #999;
        font-size: 0.8rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .no-comments {
        text-align: center;
        padding: 2rem;
        color: #666;
        font-size: 1rem;
    }

    /* 分页样式 - 响应式设计 */
    .pagination {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 1.5rem 0;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .pagination a, 
    .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0 0.5rem;
        margin: 0;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #333;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .pagination a:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }

    .pagination .current {
        background: #e74c3c;
        color: #fff;
        border-color: #e74c3c;
        font-weight: bold;
    }

    .pagination .disabled {
        color: #ccc;
        pointer-events: none;
        background: #f9f9f9;
    }

    .pagination .ellipsis {
        border: none;
        pointer-events: none;
    }

    /* 锚点定位调整 */
    .comments-anchor {
        position: relative;
        top: -80px;
    }

/* #endregion  评论结束  */


/* 响应式设计 */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column;
    }
    
    .hot-products-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .hot-product-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .hot-product-item {
        min-width: 200px;
    }
    
    .product-basic-info {
        flex-direction: column;
    }
    
    .product-gallery {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .product-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-to-cart {
        width: 100%;
        justify-content: center;
    }
    
    .tab-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}
/* 响应式调整 */
@media (max-width: 768px) {
    .comments-container {
        padding: 0;
    }
    
    .comment-item {
        padding: 0.8rem 0;
    }
    
    .comment-user {
        font-size: 0.95rem;
    }
    
    .comment-content {
        font-size: 0.9rem;
    }
    
    .comment-meta {
        font-size: 0.75rem;
    }
    
    .pagination {
        gap: 0.2rem;
    }
    
    .pagination a, 
    .pagination span {
        min-width: 2.2rem;
        height: 2.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .comments-title {
        font-size: 1.1rem;
    }
    
    .comment-item {
        padding: 0.7rem 0;
    }
    
    .pagination {
        gap: 0.1rem;
    }
    
    .pagination a, 
    .pagination span {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .pagination .ellipsis {
        display: none;
    }
    
    .comments-anchor {
        top: -60px;
    }
}

/* 移动端小屏幕优化 */
@media (max-width: 360px) {
    .pagination a, 
    .pagination span {
        min-width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }
    
    .comment-user {
        font-size: 0.9rem;
    }
    
    .comment-content {
        font-size: 0.85rem;
    }
}