/* 自定义分页样式，模仿 Bootstrap Pagination */

/* 分页容器 */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
}

/* 分页项 */
.pagination li {
    margin-left: -1px; /* Collapse border-spacing */
}

.pagination li:first-child {
    margin-left: 0;
}

/* 分页链接 */
.pagination li a,
.pagination li span {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff; /* Bootstrap primary color */
    background-color: #fff;
    border: 1px solid #dee2e6; /* Bootstrap border color */
    text-decoration: none;
}

.pagination li:first-child a,
.pagination li:first-child span {
    margin-left: 0;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

/* 鼠标悬停和焦点状态 */
.pagination li a:hover,
.pagination li a:focus,
.pagination li span:hover,
.pagination li span:focus {
    color: #0056b3; /* Darker primary color */
    text-decoration: none;
    background-color: #e9ecef; /* Light gray */
    border-color: #dee2e6;
    z-index: 2; /* Bring to front on hover/focus */
}

/* 当前活动页 */
.pagination li.active a,
.pagination li.active span {
    z-index: 3; /* Bring to front */
    color: #fff;
    background-color: #007bff; /* Primary color */
    border-color: #007bff; /* Primary color */
}

/* 禁用状态 */
.pagination li.disabled a,
.pagination li.disabled span {
    color: #6c757d; /* Muted color */
    pointer-events: none; /* Disable clicks */
    background-color: #fff;
    border-color: #dee2e6;
}

/* 如果分页容器或列表有特定的类，可以根据实际情况调整选择器 */
/* 例如，如果分页容器是 <div class="page">...</div> */
/* .page ul { ... } */
/* .page li { ... } */
/* .page a, .page span { ... } */

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab Button Styles */
.tab-button {
    position: relative;
}

.tab-button.active {
    color: #3b82f6; /* blue-500 */
    border-bottom-color: #3b82f6 !important;  /* blue-500 */
}

/* Debug Outline for tab content */
.tab-content {
    border: 1px dashed transparent;
}

/* .tab-content.active {
    border: 1px dashed green;
}  */

/* ===== 星星评分样式 ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-rating .star {
    font-size: 18px;
    transition: all 0.2s ease;
    cursor: default;
}

/* 大尺寸星星 - 用于主要评分显示 */
.star-rating.large .star {
    font-size: 24px;
    gap: 3px;
}

/* 小尺寸星星 - 用于评论列表 */
.star-rating.small .star {
    font-size: 14px;
    gap: 1px;
}

/* 已填充的星星 */
.star-rating .star.filled {
    color: #fbbf24; /* amber-400 */
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

/* 空星星 */
.star-rating .star:not(.filled) {
    color: #d1d5db; /* gray-300 */
}

/* 星星悬停效果 */
.star-rating .star:hover {
    transform: scale(1.1);
}

/* 评分统计区域优化 */
.rating-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

/* 评分进度条优化 */
.rating-bar {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.rating-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 评分标签优化 */
.rating-label {
    font-weight: 500;
    color: #64748b;
    min-width: 60px;
}

.rating-count {
    font-weight: 600;
    color: #475569;
    min-width: 32px;
    text-align: right;
}

/* 评论卡片优化 */
.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 用户头像优化 */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.user-avatar-placeholder i {
    color: #64748b;
    font-size: 20px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .rating-number {
        font-size: 2.5rem;
    }
    
    .star-rating.large .star {
        font-size: 20px;
    }
    
    .rating-summary {
        padding: 16px;
    }
    
    .review-card {
        padding: 16px;
    }
}