/* Hero Section - Import from home.css */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 0 3rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Game Details */
.game-details {
    max-width: 1000px;
    margin: 0 auto;
}

.game-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.game-info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}


.game-meta {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem; */
    margin-bottom: 2rem;
}

.genre, .rating, .release-date {
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.rating {
    background: #f39c12;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.rating-number {
    font-weight: bold;
    font-size: 0.9rem;
}

.play-button {
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.play-button:hover {
    background: #229954;
}

/* Game Description */
.game-description {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-description h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.game-description p {
    line-height: 1.8;
    color: #34495e;
}

/* Screenshots */
.game-screenshots {
    margin-bottom: 3rem;
}

.game-screenshots h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* Similar Games */
.similar-games h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.similar-game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.similar-game-card:hover {
    transform: translateY(-5px);
}

.similar-game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.similar-game-info {
    padding: 1rem;
}

.similar-game-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.similar-game-genre {
    color: #7f8c8d;
    font-size: 0.9rem;
}
.game-meta .genre-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(68, 160, 141, 0.15));
    color: var(--primary-color);
    border-color: rgba(78, 205, 196, 0.4);
    font-weight: 600;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    /* line-height:3; */
}
.game-meta .genre-tag:hover {
    background: var(--primary-color);
    color: rgb(255, 255, 255);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat {
        padding: 1rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .game-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-main-image {
        height: 250px;
    }
    
    .game-info h1 {
        font-size: 2rem;
    }
    
    .game-meta {
        justify-content: center;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .similar-games .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .game-info h1 {
        font-size: 1.8rem;
    }
    
    .play-button {
        width: 100%;
        padding: 12px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-games .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Screen Styles */
.skeleton-screen {
    padding: 2rem 0;
    display: block; /* 确保默认显示 */
}

.actual-content {
    display: none; /* 确保默认隐藏 */
}

.skeleton-game-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.skeleton-game-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 15px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-game-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-title {
    width: 60%;
    height: 2.5rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-developer {
    width: 40%;
    height: 1.2rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.skeleton-genre,
.skeleton-rating,
.skeleton-date {
    width: 80px;
    height: 1.5rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-play-btn {
    width: 150px;
    height: 3rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-loading 1.5s infinite;
    margin-top: 1rem;
}

.skeleton-description {
    margin-bottom: 3rem;
}

.skeleton-section-title {
    width: 200px;
    height: 2rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 1.5rem;
}

.skeleton-text {
    width: 100%;
    height: 1.2rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 0.8rem;
}

.skeleton-text.short {
    width: 70%;
}

.skeleton-similar-games {
    margin-bottom: 2rem;
}

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

.skeleton-game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skeleton-game-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 150px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-game-card::after {
    content: '';
    display: block;
    width: 80%;
    height: 1.2rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-loading 1.5s infinite;
    margin: 1rem auto;
}

/* Skeleton Screen */
.skeleton-screen {
    display: block !important;
}

.skeleton-screen.hidden {
    display: none !important;
}

/* Game Details Skeleton */
.skeleton-game-details {
    max-width: 1000px;
    margin: 0 auto;
}

.skeleton-game-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skeleton-game-main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-game-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-game-title {
    width: 70%;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-game-developer {
    width: 50%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-game-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.skeleton-genre {
    width: 80px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 14px;
}

.skeleton-rating {
    width: 100px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 14px;
}

.skeleton-release-date {
    width: 120px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 14px;
}

.skeleton-play-button {
    width: 200px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Game Description Skeleton */
.skeleton-game-description {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.skeleton-description-title {
    width: 200px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.skeleton-description-text {
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.skeleton-description-text:last-child {
    width: 80%;
    margin-bottom: 0;
}

/* Similar Games Skeleton */
.skeleton-similar-games {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skeleton-similar-title {
    width: 180px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 2rem;
}

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

.skeleton-game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skeleton-game-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-game-info {
    padding: 1rem;
}

.skeleton-game-title {
    width: 80%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-game-genre {
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

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

.skeleton-stars {
    width: 60px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-rating-number {
    width: 25px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-play-btn {
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Screen Responsive */
@media (max-width: 768px) {
    .skeleton-game-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skeleton-game-image {
        height: 250px;
    }
    
    .skeleton-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .skeleton-title {
        width: 80%;
    }
    
    .skeleton-developer {
        width: 60%;
    }
    
    .skeleton-meta {
        flex-wrap: wrap;
    }
    
    .skeleton-games-grid {
        grid-template-columns: 1fr;
    }
}