/* 详情页特定样式 */

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 游戏标题区域 */
.game-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-icon-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.game-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

/* 游戏主要内容区域 */
.game-main-content {
    margin-bottom: 2rem;
}

.game-content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.game-banner-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-banner-container:hover .banner-overlay {
    opacity: 1;
}

.play-btn-overlay {
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.play-btn-overlay:hover {
    background-color: #c0392b;
}

/* 游戏信息卡片 */
.game-info-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.rating-stars i {
    color: #f1c40f;
    font-size: 1.2rem;
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.game-meta {
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.game-meta p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-meta i {
    color: #3498db;
    width: 1rem;
}

.play-btn-main, .back-btn {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.play-btn-main {
    background-color: #3498db;
    color: white;
}

.play-btn-main:hover {
    background-color: #2980b9;
}

.back-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.back-btn:hover {
    background-color: #e9ecef;
}

/* 游戏描述 */
.game-description {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-description h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-description h2 i {
    color: #3498db;
}

.game-description ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.game-description li {
    margin-bottom: 0.5rem;
}

/* 评论区域 */
.reviews-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviews-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-section h2 i {
    color: #3498db;
}

/* 评论表单 */
.review-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rating-input {
    display: flex;
    gap: 0.3rem;
}

.rating-input i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input i:hover,
.rating-input i.active {
    color: #f1c40f;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* 评论列表 */
.reviews-list h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.review-count {
    color: #7f8c8d;
    font-weight: normal;
}

.review-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

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

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h4 {
    margin: 0;
    color: #2c3e50;
}

.review-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.review-content {
    padding-left: 3rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.review-rating i {
    color: #f1c40f;
    font-size: 0.9rem;
}

.review-rating span {
    margin-left: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.page-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number, .ellipsis {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-number:hover {
    background-color: #f1f2f6;
}

.page-number.active {
    background-color: #3498db;
    color: white;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .game-content-row {
        grid-template-columns: 1fr;
    }

    .game-banner {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .game-icon-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-banner {
        height: 300px;
    }

    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-content {
        padding-left: 0;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .game-header, .game-info-card, .game-description, .reviews-section {
        padding: 1rem;
    }

    .game-banner {
        height: 250px;
    }

    .play-btn-overlay {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .review-form {
        padding: 1rem;
    }
}