
:root {
    --matrix-glow: #00f2ff;
    --matrix-bg: #05080a;
    --matrix-card: rgba(10, 20, 30, 0.9);
    --matrix-border: rgba(0, 242, 255, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body {
    background: var(--matrix-bg);
    background-image:
            linear-gradient(var(--matrix-border) 1px, transparent 1px),
            linear-gradient(90deg, var(--matrix-border) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #fff;
    min-height: 100vh;
}

/* --- 导航与搜索 (保持原样) --- */
.gm-search-overlay {
    position: fixed; top: -100px; left: 0; width: 100%; height: 80px;
    background: rgba(0, 0, 0, 0.95); z-index: 2000;
    display: flex; align-items: center; padding: 0 20px;
    border-bottom: 2px solid var(--matrix-glow);
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.gm-search-overlay.active { top: 0; }
.gm-search-input {
    flex: 1; background: transparent; border: none; color: var(--matrix-glow);
    font-size: 20px; font-family: monospace;
}

.gm-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(5, 8, 10, 0.9); backdrop-filter: blur(10px);
    height: 60px; display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; border-bottom: 1px solid var(--matrix-border);
}
.gm-logo { height: 24px; filter: drop-shadow(0 0 5px var(--matrix-glow)); }
.gm-nav-icon { font-size: 20px; color: var(--matrix-glow); cursor: pointer; width: 40px; text-align: center; }

/* --- 核心列表布局修改 --- */
.gm-container { padding: 12px; max-width: 1200px; margin: 0 auto; }
.gm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* 跳转链接包装器 */
.gm-item {
    display: flex; flex-direction: column;
    text-decoration: none;
    background: var(--matrix-card);
    border: 1px solid var(--matrix-border);
    border-radius: 4px; overflow: hidden;
    transition: 0.2s;
}
.gm-item:active { transform: scale(0.96); border-color: var(--matrix-glow); }

.gm-img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; position: relative; }
.gm-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

/* 游戏信息区域 */
.gm-info { padding: 6px 4px; display: flex; flex-direction: column; flex-grow: 1; }

.gm-item-title {
    font-size: 13px; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px; letter-spacing: 0.5px;
}

/* 常驻显示的描述文字 */
.gm-item-desc {
    font-size: 10px; color: #8899aa; line-height: 1.3;
    height: 24px; /* 约显示两行 */
    overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

/* 点赞与人数数据条 */
.gm-stats {
    margin-top: auto;
    display: flex; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4px;
    font-size: 12px; font-family: monospace;
    color: var(--matrix-glow);
}
.gm-stats span { display: flex; align-items: center; gap: 2px; }

/* --- 描述与底部 (保持原样) --- */
.gm-seo-box { margin: 30px 0; padding: 20px; border: 1px solid var(--matrix-border); background: rgba(0,242,255,0.02); }
.gm-seo-box h2 { font-size: 16px; color: var(--matrix-glow); margin-bottom: 10px; }
.gm-seo-box p { font-size: 12px; color: #678; line-height: 1.6; }

.gm-core-hub {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 50px; background: #000;
    border: 2px solid var(--matrix-glow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 1500;
}

.gm-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    z-index: 1400; display: none; flex-direction: column;
    align-items: center; justify-content: center;
    clip-path: circle(0% at 50% 90%); transition: 0.5s ease-in-out;
}
.gm-menu-overlay.open { display: flex; clip-path: circle(150% at 50% 90%); }
.gm-menu-item { font-size: 20px; color: #fff; margin: 15px; text-decoration: none; }

.gm-footer { padding: 40px 0 100px; text-align: center; border-top: 1px solid var(--matrix-border); }
.gm-footer-links a { color: #456; font-size: 11px; margin: 0 10px; text-decoration: none; }

@media (min-width: 769px) {
    .gm-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
    .gm-item-title { font-size: 14px; }
    .gm-item-desc { font-size: 12px; height: 32px; }
    .gm-stats { font-size: 11px; }
}