>
:root {
    --neon-blue: #00f2ff;
    --neon-pink: #ff00ff;
    --star-gold: #ffcc00;
    /* 更加鲜艳明亮的紫红蓝渐变 */
    --main-bg: linear-gradient(160deg, #41228e 0%, #911dcc 50%, #221dcc 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: #2a0845;
    background-image: var(--main-bg);
    background-attachment: fixed;
    color: #fff;
    font-family: 'PingFang SC', sans-serif;
    min-height: 100vh;
}

/* 导航栏 */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 10px 15px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo { font-size: 18px; font-weight: 900; color: var(--neon-blue); text-decoration: none; }

.search-form {
    flex: 1; display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.15); border-radius: 20px;
    padding: 4px 12px;
}
.search-form input {
    background: none; border: none; color: #fff; width: 100%;
    padding: 6px; font-size: 13px; outline: none;
}
.search-form button { background: none; border: none; color: #fff; }

.cat-trigger {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--neon-pink); border: none; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer;
}

/* 游戏网格 */
.game-grid {
    display: grid; padding: 15px 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 1024px) {
    .game-grid { grid-template-columns: repeat(7, 1fr); max-width: 1300px; margin: 0 auto; gap: 15px; }
}

.game-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px; overflow: hidden;
    text-decoration: none; color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
}

.img-box { position: relative; width: 100%; aspect-ratio: 1 / 1.35; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }

.badge-star {
    position: absolute; top: 4px; left: 4px;
    background: rgba(0,0,0,0.7); padding: 1px 4px; border-radius: 3px;
    font-size: 9px; color: var(--star-gold);
}
.badge-online {
    position: absolute; top: 4px; right: 4px;
    background: #00ff88; color: #000; padding: 1px 4px; border-radius: 3px;
    font-size: 8px; font-weight: bold;
}

.info { padding: 6px; }
.info h4 { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .desc { font-size: 9px; color: #ddd; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .tag { font-size: 8px; color: var(--neon-blue); font-weight: bold; display: block; margin-top: 4px; }

/* --- 核心调整：网站描述区块 --- */
.site-intro {
    margin: 20px 10px; padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
@media (min-width: 1024px) {
    .site-intro { max-width: 1300px; margin: 40px auto; }
}
.site-intro h2 { font-size: 18px; color: var(--neon-blue); margin-bottom: 10px; }
.site-intro p { font-size: 13px; line-height: 1.8; color: #eee; }

/* 弹出分类 */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(30, 0, 60, 0.98);
    display: none; flex-direction: column; align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 80%; }
.modal-link {
    padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--neon-blue);
    border-radius: 12px; text-align: center; text-decoration: none; color: #fff; font-weight: bold;
}

/* 页脚（仅剩链接和版权） */
.footer {
    padding: 30px 15px; text-align: center; background: rgba(0,0,0,0.3);
}
.footer-links { margin-bottom: 15px; display: flex; justify-content: center; gap: 20px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 12px; }
.copyright { font-size: 10px; color: #666; }

.titles{
    text-align:center;
    margin-top:5px;
}
