/* ===== 全局重置 & 炫酷主题 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: #fff;
    padding: 16px 12px 80px;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.container { max-width: 600px; margin: 0 auto; }

/* ===== 毛玻璃卡片 ===== */
.glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.2s, border-color 0.3s;
}
.glass:hover { border-color: rgba(255,255,255,0.3); }

/* ===== 头部 ===== */
header {
    text-align: center;
    padding: 10px 0 20px;
}
header h1 {
    font-size: 2.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
header p { color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ===== 统计小标签 ===== */
.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 10px 16px;
    flex: 1;
    min-width: 70px;
    backdrop-filter: blur(4px);
}
.stat-item .num {
    font-size: 1.6em;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item .label { font-size: 0.7em; opacity: 0.7; margin-top: 2px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1em;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 20px rgba(102,126,234,0.3);
}
.btn:active { transform: scale(0.96); }
.btn-danger { background: linear-gradient(135deg, #f093fb, #f5576c); box-shadow: 0 4px 20px rgba(245,87,108,0.3); }
.btn-success { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #1a1a2e; box-shadow: 0 4px 20px rgba(67,233,123,0.3); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.3); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== 游戏网格 ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}
.game-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
}
.game-card:active { transform: scale(0.94); background: rgba(255,255,255,0.12); }
.game-card .icon { font-size: 2.4em; display: block; margin-bottom: 4px; }
.game-card .name { font-size: 0.75em; opacity: 0.8; }

/* ===== 投票区 ===== */
.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vote-item:last-child { border: none; }
.vote-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
}
.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: rgba(30,30,60,0.95);
    border-radius: 28px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}
.modal .close {
    float: right;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8em;
    cursor: pointer;
}
.modal .close:hover { color: #fff; }
.modal input, .modal textarea, .modal select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.95em;
    margin-bottom: 12px;
    outline: none;
    transition: border 0.3s;
}
.modal input:focus, .modal textarea:focus { border-color: #667eea; }
.modal textarea { resize: vertical; min-height: 80px; }

/* ===== 工具类 ===== */
.flex { display: flex; gap: 10px; flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.op-6 { opacity: 0.6; }
.badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.7em;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(20,20,40,0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 16px;
    z-index: 100;
}
.nav-item {
    text-align: center;
    font-size: 0.7em;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.2s;
    padding: 4px 12px;
}
.nav-item .nav-icon { font-size: 1.8em; display: block; }
.nav-item.active { color: #fff; }
.nav-item:active { transform: scale(0.9); }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-row .stat-item { padding: 8px 10px; }
    .stat-item .num { font-size: 1.2em; }
}