html {
    background: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', 'Heiti SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    text-decoration: none;
}

body {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.header {
    background: #3F51B5;
    padding: 20px;
    color: #fff;
}

.header-content {
    text-align: center;
    margin-bottom: 15px;
}

.header-content h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.header-content p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-item {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.main {
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #3F51B5 0%, #7B1FA2 100%);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.section-title {
    font-size: 18px;
    color: #3F51B5;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3F51B5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.game-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.game-icon {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.game-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version {
    font-size: 12px;
    color: #999;
}

.status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

.status-online {
    background: #e8f5e9;
    color: #4caf50;
}

.status-testing {
    background: #fff3e0;
    color: #ff9800;
}

.game-action {
    padding: 0 15px 15px;
}

.btn-play, .btn-detail {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-play {
    background: #3F51B5;
    color: #fff;
}

.btn-play:hover {
    background: #303f9f;
}

.btn-detail {
    background: #f0f0f0;
    color: #3F51B5;
}

.btn-detail:hover {
    background: #e0e0e0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.link-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.link-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .nav {
        gap: 10px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hero {
        padding: 30px 15px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}