/* 游戏详情页面样式 */

/* 游戏标题区域 */
.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.game-title-area {
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* 游戏内容区域 */
.game-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* 游戏媒体内容 */
.game-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-screenshot-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-screenshot-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.game-screenshot-main img:hover {
    transform: scale(1.02);
}

.game-screenshots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.screenshot-item:hover,
.screenshot-item.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.game-video {
    margin-top: 2rem;
}

.game-video h3 {
    margin-bottom: 1rem;
    color: #333;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
}

/* 游戏信息区域 */
.game-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.game-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.game-info > div {
    margin-bottom: 2rem;
}

.game-info > div:last-child {
    margin-bottom: 0;
}

.game-description p {
    line-height: 1.6;
    color: #666;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.game-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.game-features li:last-child {
    border-bottom: none;
}

.specs-grid {
    display: grid;
    gap: 1rem;
}

.spec-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item strong {
    color: #333;
}

.spec-item span {
    color: #666;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* 详细信息区域 */
.game-detailed-info {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.game-detailed-info h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.game-detailed-info > div {
    margin-bottom: 3rem;
}

.game-detailed-info > div:last-child {
    margin-bottom: 0;
}

.game-detailed-info p {
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.game-detailed-info ul {
    color: #333;
}

.game-detailed-info li {
    color: #333;
    margin-bottom: 0.5rem;
}

/* 用户评价区域 */
.game-reviews {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.game-reviews h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating .stars {
    color: #ffd700;
}

.review-content p {
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }

    .game-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-info {
        position: static;
    }

    .game-screenshots {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .game-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .game-detailed-info,
    .game-reviews {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 100px 0 40px 0;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-content {
        padding: 2rem 0;
    }

    .game-detailed-info,
    .game-reviews {
        padding: 1.5rem;
    }

    .game-info {
        padding: 1.5rem;
    }
}
