/* 游戏页面样式 */

/* 游戏容器 */
.game-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 600px;
}

.game-frame {
    width: 100%;
    height: 700px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(0, 20, 40, 0.8);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 游戏说明 */
.game-instructions {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 40px;
    padding: 0 20px;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.instructions-header {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
    padding-bottom: 15px;
}

.instructions-header h2 {
    color: #00ffff;
    font-size: 24px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.instructions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.instruction-section {
    padding: 20px;
    background: rgba(0, 40, 80, 0.5);
    border-left: 3px solid rgba(0, 255, 255, 0.7);
    border-radius: 4px;
}

.instruction-section h3 {
    color: #00ffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.instruction-section p {
    color: rgba(200, 220, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.instruction-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-section li {
    color: rgba(200, 220, 255, 0.9);
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.instruction-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00ffff;
}

.instruction-section strong {
    color: #ffff00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-frame {
        height: 400px;
    }

    .game-instructions {
        padding: 20px;
    }

    .instructions-content {
        grid-template-columns: 1fr;
    }

    .instruction-section {
        padding: 15px;
    }

    .instruction-section h3 {
        font-size: 16px;
    }

    .instructions-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 300px;
    }

    .game-container {
        margin: 20px auto;
    }

    .game-instructions {
        margin: 30px auto 20px;
        padding: 15px;
    }

    .instruction-section {
        padding: 12px;
    }

    .instruction-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .instruction-section li {
        font-size: 13px;
        margin: 8px 0;
    }
}

/* 加载动画 */
.game-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 游戏加载中时显示加载动画 */
.game-frame.loading::before {
    opacity: 1;
}
