/* Game Page Specific Styles */

.game-page {
    background: var(--dark-bg);
    min-height: 100vh;
}

/* Game Header */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

.game-nav,
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
}

.game-logo h1 {
    font-size: 1.8rem;
    background: var(--explosion-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.game-title {
    font-size: 1.8rem;
    background: var(--explosion-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    color: var(--secondary-color);
}

.game-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Main Game Area */
.game-main {
    padding: 80px 0 20px;
    min-height: calc(100vh - 100px);
}

.game-wrapper,
.game-layout {
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start; /* 左对齐 */
}

.game-frame {
    position: relative;
    width: 900px;
    height: 542px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
    background: var(--darker-bg);
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-frame iframe,
.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game Info Panel */
.game-info,
.game-info-panel {
    flex: 0 0 auto;
    width: 900px; /* 改为与游戏界面一样的宽度 */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 69, 0, 0.3);
    backdrop-filter: blur(10px);
    max-height: 600px;
    overflow-y: auto;
}

.game-info h2,
.game-info-panel h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.game-info h3,
.game-info-panel h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 游戏描述 */
.game-description {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
}

.game-description h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.game-description p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

/* 游戏控制信息 */
.game-controls-info {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
}

.game-controls-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.controls-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 控制说明网格 */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.control-item .key {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.control-item .desc {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 游戏信息面板内的特色功能列表 */
.features-list {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 69, 0, 0.4);
    transform: translateX(5px);
}

.feature-item .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 游戏技巧 */
.game-tips {
    margin-bottom: 20px;
}

.game-tips ul {
    list-style: none;
    padding: 0;
}

.game-tips li {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.game-tips li:before {
    content: "🔥";
    position: absolute;
    left: 0;
    top: 0;
}

/* Help Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--dark-bg);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: var(--text-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.help-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.help-section ul {
    list-style: none;
    padding-left: 0;
}

.help-section li {
    color: var(--text-gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.help-section li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Game Footer */
.game-footer {
    background: var(--darker-bg);
    padding: 30px 0 15px;
    border-top: 2px solid var(--primary-color);
    margin-top: 50px;
}

.game-footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.game-stats h4,
.related-games h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.game-stats p {
    color: var(--text-gray);
    margin-bottom: 5px;
}

.related-games a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.related-games a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-wrapper,
    .game-layout {
        flex-direction: column;
        align-items: center;
    }

    .game-frame {
        width: 100%;
        max-width: 900px;
        height: auto;
        aspect-ratio: 900/542;
    }

    .game-info,
    .game-info-panel {
        width: 100%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .game-nav,
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .game-controls {
        order: -1;
    }

    .game-frame {
        height: 300px;
    }

    .controls-grid,
    .controls-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        max-width: none;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 15px 0;
    }
    
    .game-logo h1 {
        font-size: 1.5rem;
    }
    
    .game-frame {
        height: 250px;
    }
    
    .game-info {
        padding: 15px;
    }
} 