
:root {
    --bg-color: #ffffff;       /* 整体背景改为纯白 */
    --card-bg: #f8fafc;        /* 卡片改为极浅的灰蓝色，增加层次感 */
    --text-main: #1e293b;      /* 主文字改为深灰黑，保证清晰度 */
    --text-muted: #64748b;     /* 辅助文字改为中灰色 */
    --primary-color: #3b82f6;  /* 蓝色主色调保持不变 */
    --accent-color: #ef4444;   /* 红色高亮保持不变 */
    --tag-mod-bg: #d97706;     /* 修改版标签文字加深，提升浅色底下的可读性 */
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px 10px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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


.site-header {
    text-align: center;
    margin-bottom: 25px;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #1d4ed8, #6d28d9, #b91c1c); /* 渐变色略微加深以适应白底 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.site-header .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.search form {
    display: flex;
    background-color: #f1f5f9;  /* 搜索框背景改为浅灰 */
    border: 1px solid #e2e8f0;  /* 浅色边框 */
    border-radius: 30px;
    padding: 6px 6px 6px 18px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 阴影调淡 */
}

.search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);    /* 输入框文字改为深色 */
    font-size: 1rem;
    outline: none;
}

.search input::placeholder {
    color: #94a3b8;             /* 占位符颜色微调 */
}

.search button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}


.hot-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hot-tags a {
    background-color: #f1f5f9;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

.hot-tags a:hover {
    background-color: #e2e8f0;
    color: var(--text-main);
}

.hot-tags a.highlight {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border: none;
}


.featured-banner {
    margin-bottom: 30px;
}

.banner-item {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 浅色柔和阴影 */
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* 稍微提高一点亮度，白底下更通透 */
    transition: var(--transition);
}

.banner-item:hover img {
    transform: scale(1.03);
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    /* 渐变遮罩改为更自然的半透明黑，确保白字看得清 */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #ffffff; /* 推荐位里的文字强制保持白色 */
}

.banner-info .badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.banner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.banner-info p {
    color: #e2e8f0;
    font-size: 0.85rem;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.section-header .update-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0; /* 浅色卡片边框 */
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06); /* 悬浮时淡淡的阴影 */
}

.game-icon-box {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.game-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.game-meta {
    flex: 1;
    min-width: 0;
}

.game-meta h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta h3 a:hover {
    color: var(--primary-color);
}

.game-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.game-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.game-tags .tag {
    background-color: #e2e8f0; /* 游戏分类标签改为浅灰底 */
    color: #475569;            /* 暗色字 */
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.game-tags .tag-mod {
    background-color: rgba(245, 158, 11, 0.1); /* 修改版标签采用淡橙色底 */
    color: var(--tag-mod-bg);                  /* 醒目的深橙色字 */
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.75rem;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: bold;
}

.game-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
}

.game-action .views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.btn-download:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}


.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 30px 0;
}

.page-item .page-link {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: default;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}


@media (max-width: 576px) {
    body {
        padding: 15px 8px;
    }
    .site-header h1 {
        font-size: 1.6rem;
    }
    .banner-item {
        aspect-ratio: 16 / 9;
    }
    .banner-info h3 {
        font-size: 1.1rem;
    }
    .game-card {
        padding: 12px;
        gap: 12px;
    }
    .game-icon-box {
        width: 60px;
        height: 60px;
    }
    .btn-download {
        padding: 5px 14px;
        font-size: 0.8rem;
    }
}