/* 游戏详情页样式 */

/* 游戏详情区域 */
.game-detail-section {
    margin-bottom: 3rem;
}

.game-info {
    padding: 2rem;
}

.game-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.game-info .badge {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: var(--bs-primary);
    color: #fff;
}

.game-info .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-info .rating .stars {
    color: var(--bs-warning);
    font-size: 1.25rem;
}

.game-info .rating .count {
    font-size: 0.875rem;
    color: #6c757d;
}

.game-info .developer-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.game-info .developer-info a {
    color: var(--bs-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.game-info .developer-info a:hover {
    color: var(--bs-primary-dark);
    text-decoration: none;
}

.game-info .game-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.game-info .game-price .unit {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.game-info .game-description {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.game-info .game-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.game-info .game-description p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.625;
}

.game-info .game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.game-info .game-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.game-info .game-actions .btn-primary {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.25);
}

.game-info .game-actions .btn-primary:hover {
    background-color: var(--bs-primary-dark);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.35);
}

.game-info .game-actions .btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.game-info .game-actions .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-0.25rem);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.25);
}

/* 游戏评论区域 */
.game-reviews-section {
    margin-bottom: 3rem;
}

/* 评论统计卡片 */
.game-reviews-section .review-stats {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(108, 117, 125, 0.05));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .review-stats h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.game-reviews-section .review-stats p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 评论统计 */
.game-reviews-section .review-stats-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .game-reviews-section .review-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 总体评分 */
.game-reviews-section .overall-rating {
    text-align: center;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-reviews-section .overall-rating:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .overall-rating .rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.game-reviews-section .overall-rating .stars {
    color: var(--bs-warning);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.game-reviews-section .overall-rating .count {
    color: #6c757d;
}

/* 评分分布 */
.game-reviews-section .rating-distribution {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .game-reviews-section .rating-distribution {
        grid-column: span 3;
    }
}

.game-reviews-section .rating-distribution .rating-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-reviews-section .rating-distribution .rating-bar-item {
    display: flex;
    align-items: center;
}

.game-reviews-section .rating-distribution .rating-bar-label {
    width: 4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #343a40;
}

.game-reviews-section .rating-distribution .rating-bar-container {
    flex: 1;
    height: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    margin: 0 1rem;
}

.game-reviews-section .rating-distribution .rating-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-warning), rgba(255, 193, 7, 0.8));
    border-radius: 0.375rem;
    transition: width 0.7s ease-out;
}

.game-reviews-section .rating-distribution .rating-bar-percentage {
    width: 3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #343a40;
    text-align: right;
}

/* 评论排序 */
.game-reviews-section .review-sort {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.game-reviews-section .review-sort select {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-primary);
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
}

.game-reviews-section .review-sort select:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transform: translateY(-0.125rem);
}

/* 评论列表 */
.game-reviews-section .review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* 评论卡片 */
.game-reviews-section .review-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.game-reviews-section .review-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.2);
}

.game-reviews-section .review-card .review-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .game-reviews-section .review-card .review-header {
        flex-direction: row;
    }
}

.game-reviews-section .review-card .user-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark));
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.game-reviews-section .review-card .review-content {
    flex: 1;
}

.game-reviews-section .review-card .review-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.game-reviews-section .review-card .user-info {
    display: flex;
    flex-direction: column;
}

.game-reviews-section .review-card .user-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
}

.game-reviews-section .review-card .review-date {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-reviews-section .review-card .review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.game-reviews-section .review-card .review-rating .stars {
    color: var(--bs-warning);
    font-size: 1.125rem;
}

.game-reviews-section .review-card .review-rating .rating-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-primary);
}

.game-reviews-section .review-card .review-text {
    font-size: 1.125rem;
    color: #495057;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.game-reviews-section .review-card .review-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.game-reviews-section .review-card .review-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-reviews-section .review-card .review-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.game-reviews-section .review-card .review-stat i {
    color: var(--bs-primary);
}

.game-reviews-section .review-card .review-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-reviews-section .review-card .review-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
}

.game-reviews-section .review-card .review-action-btn:hover {
    color: var(--bs-primary);
    background-color: rgba(0, 123, 255, 0.05);
}

/* 分页 */
.game-reviews-section .review-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

/* 评论表单 */
.game-reviews-section .review-form {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .review-form .form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-reviews-section .review-form .form-header .user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark));
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .review-form .form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
}

.game-reviews-section .review-form .form-header p {
    color: #6c757d;
}

/* 评分 */
.game-reviews-section .review-form .rating-section {
    margin-bottom: 2rem;
}

.game-reviews-section .review-form .rating-section label {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 1rem;
}

.game-reviews-section .review-form .rating-stars {
    display: flex;
    gap: 1rem;
}

.game-reviews-section .review-form .rating-stars label {
    font-size: 2.25rem;
    color: #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline;
    margin-bottom: 0;
}

.game-reviews-section .review-form .rating-stars label:hover {
    color: var(--bs-warning);
    transform: scale(1.1);
}

/* 评价内容 */
.game-reviews-section .review-form .content-section {
    margin-bottom: 2rem;
}

.game-reviews-section .review-form .content-section label {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 1rem;
}

.game-reviews-section .review-form .content-section textarea {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #343a40;
    line-height: 1.625;
    resize: none;
    transition: all 0.2s ease;
}

.game-reviews-section .review-form .content-section textarea:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.game-reviews-section .review-form .content-section .textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.game-reviews-section .review-form .content-section .textarea-footer .char-count {
    font-size: 0.875rem;
    color: #6c757d;
}

.game-reviews-section .review-form .content-section .textarea-footer .form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-reviews-section .review-form .content-section .textarea-footer .form-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.game-reviews-section .review-form .content-section .textarea-footer .form-action-btn:hover {
    color: var(--bs-primary);
}

/* 游玩信息 */
.game-reviews-section .review-form .play-info-section {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .game-reviews-section .review-form .play-info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-reviews-section .review-form .play-info-section .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 0.75rem;
}

.game-reviews-section .review-form .play-info-section .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #343a40;
    transition: all 0.2s ease;
}

.game-reviews-section .review-form .play-info-section .form-group select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 提交按钮 */
.game-reviews-section .review-form .submit-section {
    display: flex;
    justify-content: flex-end;
}

.game-reviews-section .review-form .submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.game-reviews-section .review-form .submit-btn:hover {
    transform: translateY(-0.25rem) scale(1.05);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* 未登录提示 */
.game-reviews-section .login-prompt {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(108, 117, 125, 0.05));
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .login-prompt .login-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.game-reviews-section .login-prompt .login-icon i {
    font-size: 2.25rem;
    color: var(--bs-primary);
}

.game-reviews-section .login-prompt h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.game-reviews-section .login-prompt p {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.game-reviews-section .login-prompt .login-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 576px) {
    .game-reviews-section .login-prompt .login-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.game-reviews-section .login-prompt .login-actions .btn {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.game-reviews-section .login-prompt .login-actions .btn-primary {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.25);
}

.game-reviews-section .login-prompt .login-actions .btn-primary:hover {
    background-color: var(--bs-primary-dark);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.35);
}

.game-reviews-section .login-prompt .login-actions .btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    background-color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.game-reviews-section .login-prompt .login-actions .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.25);
}

/* 相关游戏推荐样式 */
.related-games-section {
    margin-bottom: 3rem;
}

.related-games-section .related-games-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.related-games-section .related-games-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.related-games-section .related-games-header p {
    color: #6c757d;
    margin-bottom: 0;
}

.related-games-section .related-games-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-info {
        padding: 1.5rem;
    }
    
    .game-info h1 {
        font-size: 2rem;
    }
    
    .game-info .game-price {
        font-size: 2rem;
    }
    
    .game-info .game-actions {
        flex-direction: column;
    }
    
    .game-info .game-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .game-reviews-section {
        padding: 1rem;
    }
    
    .game-reviews-section .review-stats {
        padding: 1.5rem;
    }
    
    .game-reviews-section .review-card {
        padding: 1.5rem;
    }
    
    .game-reviews-section .review-form {
        padding: 1.5rem;
    }
    
    .game-reviews-section .login-prompt {
        padding: 2rem;
    }
    
    .related-games-section {
        padding: 1rem;
    }
    
    .related-games-section .related-games-header {
        padding: 1.25rem;
    }
    
    .related-games-section .related-games-grid {
        padding: 1.25rem;
    }
}
