/* 评论区域 */
.comments-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.comments-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.comments-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #E21111, #F19090);
    border-radius: 2px;
}

/* 评论内容布局 */
.comments-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 100%;
    box-sizing: border-box;
}

/* 左边评论主体区域 */
.comments-main {
    flex: 1;
    max-width: 600px;
    min-width: 0;
    position: relative;
}

/* 星级区域 */
.stars-rating {
    text-align: center;
    margin-bottom: 40px;
}

.stars-container {
    display: inline-flex;
    gap: 8px;
}

.stars-container .fa-star {
    font-size: 2rem;
    color: #FBA85D;
}

/* 评论轮播区域 */
.comments-slider {
    position: relative;
    max-width: 100%;
    padding: 0 0px;
    box-sizing: border-box;
}

.comments-swiper {
    width: 100%;
    height: 300px;
    position: relative;
}

.comment-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    height: 100%;
}

.comment-content {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 5px solid #C2C2C2;
    width: 100%;
    max-width: 600px;
    word-break: break-word;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
}

.comment-meta {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* 轮播导航按钮 */
.comment-button-prev,
.comment-button-next {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'FontAwesome', sans-serif;
    color: #E21111;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

.comment-button-prev:hover,
.comment-button-next:hover {
    color: #F19090;
    transform: translateY(-50%) scale(1.2);
}

.comment-button-prev::after,
.comment-button-next::after {
    content: '';
}

.comment-button-prev .fa,
.comment-button-next .fa {
    font-size: 24px;
    font-weight: bold;
}

.comment-button-prev {
    left: 0;
}

.comment-button-next {
    right: 0;
}

/* 右边评论图片区域 */
.comments-images {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    width: 680px;
    height: 530px;
    max-width: 100%;
    box-sizing: border-box;
}

.image-main {
    flex: 1;
    height: 100%;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-main:hover .main-img {
    transform: scale(1.05);
}

.image-secondary {
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.secondary-top,
.secondary-bottom {
    flex: 1;
    position: relative;
}

.secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.secondary-top:hover .secondary-img,
.secondary-bottom:hover .secondary-img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .comments-container {
        padding: 0 40px;
    }
    
    .comments-content {
        gap: 40px;
    }
    
    .comments-images {
        width: 600px;
        height: 470px;
    }
    
    .image-secondary {
        flex: 0 0 240px;
    }
    
    .comments-slider {
        padding: 0 15px;
    }
    
    .comment-button-prev,
    .comment-button-next {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .comment-button-prev .fa,
    .comment-button-next .fa {
        font-size: 22px;
    }
}

@media (max-width: 1200px) {
    .comments-content {
        gap: 40px;
    }
    
    .comments-images {
        width: 550px;
        height: 430px;
    }
    
    .image-secondary {
        flex: 0 0 220px;
        gap: 15px;
    }
    
    .comments-slider {
        padding: 0 20px;
    }
    
    .comments-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .comment-content {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .comments-section {
        padding: 60px 0;
    }
    
    .comments-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .comments-main {
        max-width: 100%;
        order: 2;
    }
    
    .comments-images {
        width: 100%;
        max-width: 600px;
        height: 500px;
        order: 1;
    }
    
    .image-secondary {
        flex: 0 0 250px;
        gap: 20px;
    }
    
    .comments-slider {
        padding: 0 45px;
    }
    
    .comments-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .stars-container .fa-star {
        font-size: 1.8rem;
    }
    
    .comment-content {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .comment-meta {
        font-size: 1rem;
    }
    
    .comment-button-prev,
    .comment-button-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .comment-button-prev .fa,
    .comment-button-next .fa {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .comments-container {
        padding: 0 20px;
    }
    
    .comments-images {
        height: 450px;
        gap: 15px;
    }
    
    .image-secondary {
        flex: 0 0 200px;
        gap: 15px;
    }
    
    .comments-slider {
        padding: 0 40px;
    }
    
    .comments-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .stars-rating {
        margin-bottom: 30px;
    }
    
    .stars-container .fa-star {
        font-size: 1.6rem;
    }
    
    .comments-swiper {
        height: 250px;
    }
    
    .comment-slide {
        padding: 0 15px;
    }
    
    .comment-content {
        font-size: 1rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom-width: 3px;
    }
    
    .comment-meta {
        font-size: 0.9rem;
    }
    
    .comment-button-prev,
    .comment-button-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .comment-button-prev .fa,
    .comment-button-next .fa {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .comments-images {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .image-main {
        height: 350px;
        flex: none;
    }
    
    .image-secondary {
        flex-direction: row;
        flex: none;
        height: 180px;
        gap: 15px;
    }
    
    .secondary-top,
    .secondary-bottom {
        flex: 1;
        height: 100%;
    }
    
    .image-main {
        height: calc(180px + 180px + 15px);
    }
    
    .comments-slider {
        padding: 0 35px;
    }
}

@media (max-width: 576px) {
    .comments-section {
        padding: 40px 0;
    }
    
    .comments-container {
        padding: 0 15px;
    }
    
    .comments-images {
        gap: 10px;
    }
    
    .image-main {
        height: calc(160px + 160px + 10px);
    }
    
    .image-secondary {
        height: 160px;
        gap: 10px;
    }
    
    .comments-slider {
        padding: 0 30px;
    }
    
    .comments-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .stars-container .fa-star {
        font-size: 1.4rem;
    }
    
    .comments-swiper {
        height: 220px;
    }
    
    .comment-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .comment-meta {
        font-size: 0.85rem;
    }
    
    .comment-button-prev,
    .comment-button-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .comment-button-prev .fa,
    .comment-button-next .fa {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .image-main {
        height: calc(140px + 140px + 10px);
    }
    
    .image-secondary {
        height: 140px;
    }
    
    .comments-swiper {
        height: 200px;
    }
    
    .comments-slider {
        padding: 0 25px;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .comments-container {
        padding: 0 40px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.comments-content {
    animation: fadeIn 0.8s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .comments-section {
        background: #2c3e50;
    }
    
    .comments-title {
        color: #ecf0f1;
    }
    
    .comment-content {
        color: #ecf0f1;
    }
    
    .comment-meta {
        color: #bdc3c7;
    }
    
    .comment-button-prev,
    .comment-button-next {
        color: #3498db;
    }
    
    .comment-button-prev:hover,
    .comment-button-next:hover {
        color: #5dade2;
    }
}

/* 无障碍支持 */
.comment-button-prev:focus,
.comment-button-next:focus {
    outline: 3px solid #E21111;
    outline-offset: 2px;
}

/* 防止横向滚动条 */
body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}