
:root {
    --bg-color: #05070a;
    --accent-color: #00f2ff;
    --card-bg: #10141d;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --glow: 0 0 20px rgba(0, 242, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 1. 导航栏 --- */
header.site-header {
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: sticky; top: 0; z-index: 1000;
}
.nav-flex { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: 900; text-decoration: none; color: #fff; letter-spacing: -1.5px; }
.logo span { color: var(--accent-color); text-shadow: var(--glow); }

.search-box { position: relative; width: 300px; }
.search-box input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 10px 40px 10px 15px; border-radius: 8px; color: #fff; outline: none;
}
.search-box i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

/* --- 2. 网站描述行 (SEO Hero) --- */
.site-hero {
    background: radial-gradient(circle at 50% -20%, #1a2a3a 0%, var(--bg-color) 70%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.site-hero h1 {
    font-size: 3.5rem; font-weight: 900; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.site-hero p {
    font-size: 1.2rem; color: var(--text-dim);  margin: 0 auto;
    line-height: 1.8;
}

/* --- 3. 游戏分类导航 --- */
.category-nav {
    display: flex; gap: 15px; overflow-x: auto; padding: 30px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.category-nav::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.cat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 15px 30px; border-radius: 12px; text-decoration: none;
    color: var(--text-dim); display: flex; align-items: center; gap: 10px;
    transition: 0.3s; white-space: nowrap; font-weight: 600;
}
.cat-card i { font-size: 18px; color: var(--accent-color); }
.cat-card:hover, .cat-card.active {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--accent-color);
    color: #fff; transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* --- 4. 列表板块 --- */
main { margin-bottom: 80px; }
.section-head { margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.section-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: 2px; }
.section-head .line { flex: 1; height: 1px; background: var(--border); }

.game-list { display: flex; flex-direction: column; gap: 15px; }
.game-entry {
    display: flex; background: var(--card-bg); border-radius: 20px;
    text-decoration: none; color: inherit; border: 1px solid var(--border);
    transition: 0.3s; overflow: hidden;
}
.game-entry:hover {
    border-color: var(--accent-color); background: #161c28;
    transform: scale(1.005);
}

.game-thumb { width: 260px; height: 146px; flex-shrink: 0; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.game-entry:hover .game-thumb img { transform: scale(1.1); }

.game-info { flex: 1; padding: 25px 35px; display: flex; flex-direction: column; justify-content: center; }
.game-info h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.game-info p {
    color: var(--text-dim); font-size: 15px; margin-bottom: 15px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.game-meta { display: flex; align-items: center; justify-content: space-between; }
.tags { display: flex; gap: 8px; }
.tag {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700;
    color: var(--accent-color); text-transform: uppercase;
}
.btn-play { font-weight: 800; color: var(--accent-color); letter-spacing: 1px; font-size: 14px; }

/* --- 5. 页脚 --- */
footer.site-footer {
    background: #020305; padding: 100px 0 50px; border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; }
.footer-brand h4 { font-size: 20px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.8; }
.footer-nav h4 { font-size: 14px; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-nav a:hover { color: var(--accent-color); }

/* 移动端 */
@media (max-width: 900px) {
    .site-hero h1 { font-size: 2.2rem; }
    .game-entry { flex-direction: column; }
    .game-thumb { width: 100%; height: 200px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}