/* 游戏详情页特有样式 */

/* 游戏头部 */
.game-header {
    background-color: #111827;
    color: #FFFFFF;
    padding: 40px 0;
    margin-bottom: 30px;
}

.game-header-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.game-cover {
    position: relative;
    flex-shrink: 0;
}

.game-cover img {
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-info-main {
    flex: 1;
}

.game-info-main h1 {
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.game-info-main .game-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.game-info-main .rating {
    font-size: 24px;
    font-weight: 700;
    color: #F59E0B;
}

.game-info-main .rating-stars {
    font-size: 18px;
    color: #F59E0B;
}

.rating-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.game-info-main .game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.game-tagline {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.game-info-main .game-actions {
    display: flex;
    gap: 15px;
}

/* 游戏详情内容 */
.game-detail-content {
    flex: 1;
}

.game-section {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1E3A8A;
    padding-bottom: 10px;
    border-bottom: 2px solid #1E3A8A;
}

.game-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #374151;
}

.game-sysreq-content,
.game-info-detail-content {
    color: #374151;
    line-height: 1.7;
}

.game-sysreq-content h3,
.game-info-detail-content h3 {
    margin: 16px 0 10px;
    font-size: 16px;
    color: #1F2937;
}

.game-sysreq-content ul,
.game-info-detail-content ul {
    padding-left: 18px;
    margin: 8px 0 14px;
}

.game-sysreq-content li,
.game-info-detail-content li {
    margin-bottom: 6px;
}

.game-sysreq-content p,
.game-info-detail-content p {
    margin: 8px 0 12px;
}

.data-state-loading,
.data-state-error,
.data-state-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.data-state-loading {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

.data-state-error {
    background-color: #FEF2F2;
    color: #B91C1C;
}

.data-state-empty {
    background-color: #F9FAFB;
    color: #6B7280;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: currentColor;
    animation: game-detail-pulse 1s ease-in-out infinite;
}

@keyframes game-detail-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 游戏截图 */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.screenshot-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.02);
}

/* 系统要求 */
.system-requirements {
    margin-top: 20px;
}

.req-tab {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.req-tab.active {
    background-color: #1E3A8A;
    color: #FFFFFF;
    border-color: #1E3A8A;
}

.req-content {
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    background-color: #FFFFFF;
}

.req-content ul {
    list-style: none;
}

.req-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 游戏信息网格 */
.game-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item strong {
    font-weight: 600;
    color: #111827;
}

/* 相关内容 */
.related-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-news h3,
.related-guides h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #1E3A8A;
}

.related-news ul,
.related-guides ul {
    list-style: none;
}

.related-news li,
.related-guides li {
    margin-bottom: 10px;
}

.related-news a,
.related-guides a {
    font-size: 14px;
    line-height: 1.4;
}

/* 游戏评分摘要 */
.game-rating-summary {
    margin-top: 20px;
}

.rating-overall {
    text-align: center;
    margin-bottom: 20px;
}

.rating-number {
    font-size: 32px;
    font-weight: 700;
    color: #1E3A8A;
    display: block;
}

.rating-overall .rating-stars {
    font-size: 20px;
    color: #F59E0B;
    margin-top: 5px;
}

.rating-score-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6B7280;
}

.rating-breakdown {
    margin-top: 20px;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.rating-item span:first-child {
    width: 50px;
    font-size: 14px;
    color: #374151;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: #1E3A8A;
    transition: width 0.3s ease;
}

.rating-item span:last-child {
    width: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #1E3A8A;
    text-align: right;
}

/* 相似游戏 */
.similar-games {
    list-style: none;
}

.similar-games li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.similar-games li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.similar-games img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.similar-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.similar-game-info a {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.similar-game-info .game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.similar-game-info .rating {
    font-size: 12px;
    font-weight: 600;
    color: #1E3A8A;
}

.similar-game-info .rating-stars {
    font-size: 12px;
    color: #F59E0B;
}

/* 用户评论 */
.user-reviews {
    margin-top: 20px;
}

.review-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #111827;
}

.review-rating {
    color: #F59E0B;
    font-size: 14px;
}

.review-content {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 10px;
}

.review-date {
    font-size: 12px;
    color: #9CA3AF;
}

.more-reviews {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #1E3A8A;
}

/* 购买链接 */
.purchase-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.purchase-btn {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.purchase-btn.steam {
    background-color: #1B2838;
    color: #FFFFFF;
}

.purchase-btn.epic {
    background-color: #2A2A2A;
    color: #FFFFFF;
}

.purchase-btn.psn {
    background-color: #0070F3;
    color: #FFFFFF;
}

.purchase-btn.xbox {
    background-color: #107C10;
    color: #FFFFFF;
}

.purchase-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .game-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .game-info-main .game-actions {
        justify-content: center;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .game-info-grid {
        grid-template-columns: 1fr;
    }
    
    .related-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .game-cover img {
        width: 200px;
    }
    
    .game-info-main h1 {
        font-size: 24px;
    }
    
    .game-section {
        padding: 20px;
    }
    
    .game-info-main .game-actions {
        flex-direction: column;
    }
}