:root {
    --primary-color: #6200EA;
    --secondary-color: #00E5FF;
    --accent-color: #FFC400;
    --background-color: #F5F5F5;
    --text-color: #212121;
    --light-text: #FFFFFF;
    --card-bg: #FFFFFF;
    --hover-color: #B388FF;
    --nav-bg: #2c3e50;
    --btn-bg: #e67e22;
    --btn-hot: #e74c3c;
    --btn-new: #2ecc71;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

header {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    background-image: linear-gradient(45deg, var(--primary-color), #4A0080);
}

header p {
    margin: 1rem 0 0;
    font-size: 1.4rem;
    color: var(--light-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--accent-color);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5), -2px -2px 0 rgba(0,0,0,0.5),
                 2px -2px 0 rgba(0,0,0,0.5), -2px 2px 0 rgba(0,0,0,0.5);
    font-weight: bold;
    letter-spacing: 2px;
    padding: 20px 0;
}

.sponsored-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.sponsored-content li {
    display: inline-block;
    margin: 0 0.5rem;
}

.sponsored-content a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

.sponsored-content a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}

.top-nav, .site-footer {
    background-color: var(--nav-bg);
    color: var(--light-text);
    padding: 10px 20px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    flex-shrink: 0;
}

.nav-links, .language-switcher, .footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn, .footer-nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--btn-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn:hover, .footer-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    background-color: var(--hover-color);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn.hot { background-color: var(--btn-hot); }
.btn.new { background-color: var(--btn-new); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.section {
    background-color: var(--card-bg);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}
.domain-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 1); /* 深色背景，可以调整透明度 */
    color: white;
    text-align: center;
    padding: 9px;
    font-size: 14px;
}
.section.full-width {
    padding: 0;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h2 {
    margin-top: 0;
    font-size: 2.2rem;
}

.game-container {
    width: 100%;
    height: 75vh; /* 或者您想要的任何固定高度 */
    position: relative;
    border-radius: 15px;



}
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.game-card h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.play-btn {
    padding: 10px 30px;
    font-size: 18px;
    background-color: #00a8ff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.play-btn:hover {
    background-color: #0097e6;
}

.play-btn:active {
    transform: scale(0.98);
}

.emulatorContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 15px;

}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.expand-btn, .fullscreen-btn {
    padding: 5px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.expand-btn:hover, .fullscreen-btn:hover {
    background-color: #45a049;
}

.fullscreen-btn {
    background-color: transparent;
    color: #333;
    padding: 5px;
}

.fullscreen-btn:hover {
    background-color: #ddd;
}

.fullscreen-btn svg {
    width: 24px;
    height: 24px;
}

.game-recommendations-section {
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.game-recommendations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.game-item {
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-item:hover .game-image {
    transform: scale(1.1);
}

.game-title {
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    background-color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer {
    padding: 40px 20px;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.partner-links {
    margin: 20px 0;
}

.partner-links a {
    display: inline-block;
    margin: 0 10px 10px 0;
    color: #3498db;
    text-decoration: none;
}

.partner-links a:hover {
    text-decoration: underline;
}

.disclaimer, .copyright {
    font-size: 14px;
    margin: 10px 0;
}

@media (max-width: 1200px) {
    .game-recommendations {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .game-recommendations {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: -290px;
        width: 250px;
        height: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links .btn {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .game-recommendations {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-title {
        font-size: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}