/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f0f0f0;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.game-list {
    width: 250px;
    position: relative;
    padding: 20px;
    color: white;
    overflow: hidden;
    z-index: 1000;
}

.game-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/sidebar-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.6);
}

.game-list::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.game-list h2,
.game-list ul {
    position: relative;
    z-index: 2;
}

.game-list h2 {
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-list ul {
    list-style: none;
    padding-left: 0;
}

.game-list li {
    margin-bottom: 12px;
}

.game-list a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 2;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-list a:hover {
    background-color: rgba(52, 73, 94, 0.7);
    color: #ecf0f1;
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.game-list .active {
    background-color: rgba(52, 152, 219, 0.9) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 2px 2px 10px rgba(52, 152, 219, 0.5);
}

.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    position: relative;
    z-index: 1;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.content iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 40px);
    border: none;
    background-color: #fff;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .game-list {
        width: 100%;
        padding: 15px;
    }

    .game-list h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .game-list a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .content {
        padding: 15px;
        min-height: auto;
    }

    .content iframe {
        min-height: 500px;
    }
}

@media screen and (max-width: 480px) {
    .game-list {
        padding: 10px;
    }

    .game-list h2 {
        font-size: 1.2em;
    }

    .game-list li {
        margin-bottom: 8px;
    }

    .content {
        padding: 10px;
    }
}