/**
 * Free Mini Games - 样式覆盖文件
 * 确保所有样式被正确应用
 * 2024-03-31
 */

/* 重置所有可能影响标题和搜索框的样式 */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, "Microsoft YaHei", sans-serif !important;
}

/* 强制重置标题样式 */
a[href="index.html"] h1 {
    display: block !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
    text-transform: none !important;
    position: static !important;
}

/* 强制标题容器样式 */
.logo {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.logo a {
    text-decoration: none !important;
    color: white !important;
}

/* 强制头部布局 */
.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
    height: auto !important;
    min-height: 60px !important;
}

/* 强制搜索框样式 */
.search-bar {
    width: 280px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.search-bar form {
    display: flex !important;
    width: 100% !important;
    height: 38px !important;
}

.search-bar input[type="text"] {
    width: 100% !important;
    height: 38px !important;
    border-radius: 4px 0 0 4px !important;
    padding: 0 15px !important;
    background-color: #2d2d2d !important;
    border: 1px solid #404040 !important;
    color: white !important;
}

.search-bar button {
    width: 40px !important;
    height: 38px !important;
    background-color: #0078D7 !important;
    border-radius: 0 4px 4px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.search-bar button i {
    color: white !important;
}

/* 强制导航样式 */
.categories-nav {
    background-color: #222 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    padding: 10px 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.categories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.categories-list button {
    background-color: #333 !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    border: none !important;
    margin: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.categories-list button.active {
    background-color: #0078D7 !important;
}

/* 移除所有可能干扰布局的伪元素 */
.site-header::before, .site-header::after,
.logo::before, .logo::after,
.search-bar::before, .search-bar::after,
.categories-nav::before, .categories-nav::after {
    display: none !important;
    content: none !important;
}

/* 游戏详情页深色主题样式 */
.game-detail-page .game-description,
.game-detail-page .game-description p {
    color: #ccc !important;
}

.game-detail-page .similar-games h2 {
    color: #fff !important;
}

.game-detail-page .breadcrumbs,
.game-detail-page .breadcrumbs span {
    color: #999 !important;
}

.game-detail-page .breadcrumbs a {
    color: #0078D7 !important;
}

.game-detail-page .game-header h1 {
    color: #fff !important;
}

/* 确保游戏控制区文本颜色 */
.game-detail-page .game-controls .game-info-box span {
    color: #ccc !important;
}

/* 调整游戏卡片样式 */
.game-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #2d2d2d !important;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 游戏缩略图样式 */
.game-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.game-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

/* 游戏卡片信息样式 */
.game-info {
    padding: 12px;
    background-color: #1e1e1e !important;
    border-radius: 0 0 8px 8px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.game-category {
    color: #0078D7 !important;
    font-weight: 500;
}

.game-rating {
    color: #ccc !important;
}

.game-rating i {
    color: #FFD700 !important;
    margin-right: 3px;
} 