/* ========== 基础样式 ========== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    margin: 20px;
}

/* ========== 游戏容器样式（保持原样） ========== */
#games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
}

.game-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.game-item h3 {
    font-size: 18px;
    margin: 10px 0;
}

.game-item p {
    font-size: 14px;
    color: #555;
}

.free-tag {
    background-color: #28a745;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    margin: 5px 0;
}

.original-price {
    text-decoration: line-through;
    color: #888;
}

.price {
    font-weight: bold;
    color: #e74c3c;
}

/* ========== 新闻区域样式 ========== */
#news-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#news-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: #e9e9e9;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.tab-btn:hover {
    background: #ddd;
}

.tab-btn.active {
    background: #007bff;
    color: #fff;
}

#news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.news-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    width: 350px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
}

.news-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
}

.news-content h4 a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 12px;
    color: #888;
}

#news-update-time {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ========== 导航栏样式 ========== */
#nav-links {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#nav-links h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.nav-item:hover {
    background: #0056b3;
}

.nav-icon {
    font-size: 20px;
    margin-right: 8px;
}

.nav-title {
    font-size: 14px;
}