/* 全局基础 */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------- */
/* 页面头部 */
/* -------------------------- */
.reviews-page {
    padding: 60px 0;
}
.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}
.rating-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.rating-score {
    font-size: 48px;
    font-weight: bold;
    color: #28a745;
}
.stars {
    color: #ffd700;
    font-size: 24px;
}
.total-reviews {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 0px!important;
}

/* -------------------------- */
/* 评论卡片网格 */
/* -------------------------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.review-card {
    background-color: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* 优化后的用户头像（红色→高级质感） */
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}
.user-details .user-name {
    font-size: 16px;
    color: #fff;
    margin: 0 0 4px;
}
.review-date {
    font-size: 12px;
    color: #777;
    margin: 0;
}
.review-stars {
    color: #ffd700;
    font-size: 16px;
}

.review-product {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 10px;
}
.review-text {
    font-size: 15px;
    color: #ddd;
    line-height: 1.5;
    margin: 0;
}

/* -------------------------- */
/* 分页样式（适配 Laravel 默认分页） */
/* -------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.pagination li a:hover {
    background-color: #28a745;
    border-color: #28a745;
}
.pagination li.active span {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}
.pagination li.disabled span {
    color: #555;
    cursor: not-allowed;
}
.avatar-box-layout{
    position: relative;
    width: 64px;
    height: 64px;
}
.avatar-box-layout img.avatar {
    width: 70%;
    left: 15%;
    top: 15%;
}

.avatar-box-layout img {
    position: absolute;
    top: 0;
    left: 0;
}

/* -------------------------- */
/* 移动端适配 */
/* -------------------------- */
@media (max-width: 768px) {
    .reviews-page {
        padding: 40px 0;
    }
    .page-title {
        font-size: 28px;
    }
    .rating-score {
        font-size: 36px;
    }
    .stars {
        font-size: 20px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        padding: 16px;
    }

    /* 移动端分页优化：更大、更清晰、不拥挤 */
    .pagination ul {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination li a,
    .pagination li span {
        min-width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: 8px;
    }
}