/* MuMu模拟器官网模板 - 严格按照官网设计 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.nav-item:hover {
    color: #0066ff;
}

.download-btn-header {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.download-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    padding: 60px 20px 40px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

.hero-desc {
    font-size: 16px;
    color: #666;
    display: flex;
    gap: 10px;
}

.download-btn-hero {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.download-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.version-info {
    font-size: 14px;
    color: #999;
}

.hero-image {
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Platform Selector */
.platform-selector {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-btn {
    background: #fff;
    border: 2px dashed #ffcc00;
    padding: 20px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.platform-btn:hover,
.platform-btn.active {
    background: #fff;
    border-color: #0066ff;
    color: #0066ff;
}

/* Features Section */
.features {
    background: #2c3e50;
    color: #fff;
    padding: 80px 20px;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #0066ff;
}

.feature-card p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: #f5f7fa;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.games-section h2,
.news-section h2,
.faq-section h2,
.partners-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: #000;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.game-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-item span {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
}

.search-btn {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.more-games {
    display: block;
    text-align: center;
    color: #0066ff;
    font-weight: bold;
    margin-top: 20px;
}

/* News Section */
.news-section {
    padding: 80px 20px;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.view-more {
    display: block;
    text-align: center;
    color: #0066ff;
    font-weight: bold;
}

/* Download Section */
.download-section {
    padding: 60px 20px;
    background: #f5f7fa;
}

.download-platforms {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.platform-link {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px 50px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.platform-link:hover {
    border-color: #0066ff;
    color: #0066ff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: #f5f7fa;
}

.faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
}

.faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.faq-item a {
    color: #0066ff;
    font-weight: bold;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Partners Section */
.partners-section {
    padding: 80px 20px;
    background: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partners-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #999;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-container {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .platform-selector {
        flex-direction: column;
        align-items: center;
    }

    .platform-btn {
        width: 100%;
    }
}
