@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Logo Styling */
.logo {
    font-weight: 700;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

/* Game Container */
.game-container {
    aspect-ratio: 16/9;
    max-height: 80vh;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

/* Star Rating System */
.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #FFD700;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

/* Play Button */
.btn-play {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

/* Navigation */
.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4facfe;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    z-index: 100;
    padding: 2rem;
}

.mobile-menu.active {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .game-container {
        aspect-ratio: 4/3;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .star-rating label {
        font-size: 1.5rem;
        padding: 0 0.25rem;
    }
}

/* Review Cards */
.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    background-color: #141428;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #4facfe;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Ad Containers */
.ad-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: auto; /* 确保广告可点击 */
    box-sizing: border-box;
    opacity: 1;
}

.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ad-left {
    left: 10px;
}

.ad-right {
    right: 10px;
}

.ad-container-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-content {
    background-color: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.ad-container-center .ad-content {
    max-width: 728px;
    width: 100%;
    margin: 0 auto;
}

.ad-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    text-align: center;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 20px 10px;
    width: 100%;
    height: 300px;
    color: #4facfe;
    text-align: center;
}

/* 中间广告位特定样式 */
.ad-container-center .ad-placeholder {
    height: 150px;
}

/* Responsive Ad Containers */
/* Large screens (1401px and above) - full size ads */
@media (min-width: 1401px) {
    .ad-container {
        width: 160px;
    }
    
    .ad-placeholder {
        height: 300px;
    }
}

/* Medium-large screens (1201px-1400px) - slightly smaller ads with adjusted layout */
@media (min-width: 1201px) and (max-width: 1400px) {
    .ad-container {
        width: 120px;
    }
    
    .ad-placeholder {
        height: 250px;
    }
    
    .container {
        max-width: calc(100% - 260px); /* Account for both ad containers */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Medium screens (992px-1200px) - smaller ads positioned closer to edges */
@media (min-width: 992px) and (max-width: 1200px) {
    .ad-container {
        width: 100px;
    }
    
    .ad-placeholder {
        height: 200px;
    }
    
    .ad-left {
        left: 5px;
    }
    
    .ad-right {
        right: 5px;
    }
    
    .container {
        max-width: calc(100% - 220px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small screens (768px-991px) - even smaller ads */
@media (min-width: 768px) and (max-width: 991px) {
    .ad-container {
        width: 80px;
    }
    
    .ad-placeholder {
        height: 160px;
    }
    
    .ad-left {
        left: 0;
    }
    
    .ad-right {
        right: 0;
    }
    
    .container {
        max-width: calc(100% - 170px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile devices (below 768px) - hide ads completely */
@media (max-width: 767px) {
    .ad-container {
        display: none;
    }
}