* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #121212; color: #eee; padding-bottom: 80px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 20px 0; border-bottom: 1px solid #333; margin-bottom: 20px; }
nav { margin: 20px 0; text-align: center; }
nav a { margin: 0 15px; color: #00aaff; text-decoration: none; font-weight: bold; }
nav a:hover { text-decoration: underline; }

/* 卡片网格 */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px;}
.game-card { background: #1e1e1e; padding: 20px; border-radius: 8px; text-align: center; transition: transform 0.2s; border: 1px solid #333;}
.game-card:hover { transform: translateY(-5px); background: #2a2a2a; }
.btn-buy { display: inline-block; margin-top: 10px; padding: 10px 20px; background: #ff4757; color: white; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: bold; }
.btn-buy:hover { background: #ff6b81; }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #333; }
th { background-color: #2c2c2c; color: #fff; }
.btn-buy-small { padding: 5px 10px; font-size: 14px; background: #ff4757; color: white; text-decoration: none; border-radius: 4px; }

/* ========== 首页美化样式 ========== */

/* 英雄横幅 (顶部欢迎语) */
.hero-banner {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-banner h2 {
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}
.hero-banner p {
    color: #f1f1f1;
    font-style: italic;
    font-size: 14px;
}

/* 游戏网格布局 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 游戏卡片 */
.game-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

/* 鼠标悬停放大效果 */
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 167, 255, 0.2);
    border-color: #00aaff;
}

/* 游戏图片样式 */
.game-image {
    width: 100%;
    height: 170px; /* 固定高度，保证整齐 */
    overflow: hidden;
}
.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片裁剪以填满容器 */
    transition: transform 0.5s ease;
}

/* 鼠标悬停时图片放大一点点 */
.game-card:hover .game-image img {
    transform: scale(1.1);
}

/* 游戏信息区域 */
.game-info {
    padding: 15px;
}

.game-info h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 价格样式 */
.game-price {
    color: #00d284; /* 亮绿色价格 */
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* 购买按钮 (GTA 风格) */
.btn-buy {
    display: inline-block;
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn-buy:hover {
    background: #c44569;
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr; /* 手机端变为一列 */
    }
    .hero-banner {
        padding: 20px 10px;
    }
}