/* download.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微软雅黑', sans-serif;
}

body {
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.game-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #00ff9d;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.download-section {
    background: #2d2d2d;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: #333;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 220px;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-5px);
    background: #3d3d3d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.normal-download { border-color: #2196F3; }
.thunder-download { border-color: #FF9800; }
.baidu-download { border-color: #2932E1; }
.google-download { border-color: #EA4335; }
.platform-download { border-color: #9C27B0; }

.normal-download i { color: #2196F3; }
.thunder-download i { color: #FF9800; }
.baidu-download i { color: #2932E1; }
.google-download i { color: #EA4335; }
.platform-download i { color: #9C27B0; }

.btn-text h3 {
    margin-bottom: 0.3rem;
}

.btn-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.problem-solving {
    margin-top: 2rem;
    background: #2d2d2d;
    border-radius: 15px;
    padding: 2rem;
}

.problem-solving h2 {
    color: #00ff9d;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.problem-btn {
    background: #3a3a3a;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.problem-btn:hover {
    background: #4a4a4a;
    transform: translateX(10px);
}

.problem-btn i:first-child {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.problem-btn span {
    flex: 1;
}

.problem-btn .fa-chevron-down {
    transition: transform 0.3s;
}

.solution-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 3rem;
    color: #ccc;
}

.solution-active {
    max-height: 2000px;
}

.solution-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.solution-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.solution-images img:hover {
    transform: translateY(-3px);
}

.game-config {
    margin: 2rem 0;
    background: #2d2d2d;
    border-radius: 15px;
    padding: 2rem;
}

.config-table {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1rem;
    background: #3a3a3a;
    border-radius: 8px;
}

.config-row.header {
    background: #4a4a4a;
    font-weight: bold;
}

.config-row div {
    padding: 0.5rem;
}

.directx-download-btn {
    display: inline-flex;
    align-items: center;
    background: #0078D4;
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s;
    vertical-align: middle;
}

.directx-download-btn i {
    margin-right: 6px;
    font-size: 0.9em;
}

.directx-download-btn:hover {
    background: #006cbd;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,120,212,0.3);
}

@media (max-width: 768px) {
    .download-btn {
        width: 100%;
    }

    .config-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .config-row div {
        text-align: center;
    }

    .solution-images {
        grid-template-columns: 1fr;
    }
    
    .solution-content {
        padding-left: 1rem;
    }
}