/* wx_games 游戏大厅样式（F11：自 wx_games_show.php 外移，两处重复 @media 已合并为一处） */

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
     background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);min-height:100vh;color:#fff}
.hub-header{text-align:center;padding:30px 20px 12px}
.hub-header h1{font-size:2rem;margin-bottom:8px;font-weight:800}
.hub-header h1 .emoji{display:inline-block;font-size:2rem;vertical-align:middle;margin-right:6px;-webkit-text-fill-color:initial;background:none}
.hub-header h1 .title{background:linear-gradient(135deg,#e17055,#fdcb6e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hub-header p{color:rgba(255,255,255,0.6);font-size:0.95rem}
.hub-nav{display:flex;align-items:center;justify-content:space-between;max-width:800px;margin:0 auto 16px;padding:10px 20px;background:rgba(255,255,255,0.05);border-radius:12px;font-size:0.9rem}
.hub-nav-left{display:flex;align-items:center;gap:10px}
.hub-nav-avatar{width:34px;height:34px;border-radius:50%;border:2px solid #fdcb6e;object-fit:cover}
.hub-nav-user{color:#fdcb6e;font-weight:600}
.hub-nav-right{display:flex;align-items:center;gap:14px}
.hub-nav-link{color:rgba(255,255,255,0.7);text-decoration:none;font-size:0.85rem;padding:4px 10px;border-radius:8px;transition:background .2s}
.hub-nav-link:hover{background:rgba(255,255,255,0.1);color:#fff}
.hub-nav-stat{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:rgba(225,112,85,0.15);border-radius:8px;color:#fdcb6e;font-size:0.8rem;font-weight:600}
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
           gap:20px;max-width:800px;margin:0 auto;padding:0 20px 60px}
.game-card{background:rgba(255,255,255,0.08);backdrop-filter:blur(10px);
           border-radius:16px;padding:28px;cursor:pointer;
           transition:transform 0.2s,box-shadow 0.2s;border:1px solid rgba(255,255,255,0.1)}
.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,0.3);
                 border-color:#e17055}
.game-card .icon{font-size:2.5rem;margin-bottom:12px;color:#fdcb6e;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla","EmojiOne Color",sans-serif;line-height:1}
.game-card h3{font-size:1.2rem;margin-bottom:6px;color:#fdcb6e}
.game-card p{color:rgba(255,255,255,0.6);font-size:0.85rem;line-height:1.5;margin-bottom:14px;max-height:60px;overflow:hidden}
.game-card .stats{display:flex;gap:12px;margin-bottom:14px;padding:8px 0;border-top:1px solid rgba(255,255,255,0.08);border-bottom:1px solid rgba(255,255,255,0.08)}
.game-card .stat-item{flex:1;text-align:center}
.game-card .stat-item .num{font-size:1rem;font-weight:700;color:#fdcb6e;display:block}
.game-card .stat-item .lbl{font-size:0.7rem;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:.5px}
.game-card .stats-none{font-size:0.8rem;color:rgba(255,255,255,0.4);text-align:center;padding:10px 0;margin-bottom:14px;border-top:1px solid rgba(255,255,255,0.08);border-bottom:1px solid rgba(255,255,255,0.08)}
.game-card .btn-play{display:inline-block;padding:8px 28px;border-radius:8px;
                      background:linear-gradient(135deg,#e17055,#fdcb6e);color:#1a1a2e;
                      font-weight:600;text-decoration:none;font-size:0.9rem;
                      transition:opacity 0.2s}
.game-card .btn-play:hover{opacity:0.9}
.hub-footer{text-align:center;padding:20px;color:rgba(255,255,255,0.3);font-size:0.8rem}
.hub-footer a{color:#e17055;text-decoration:none}
.hub-footer a:hover{text-decoration:underline}
@media(max-width:600px){.hub-header h1{font-size:1.5rem}.game-grid{grid-template-columns:1fr;padding:0 16px 40px}.game-card{padding:20px}.hub-nav{flex-direction:column;gap:8px}}

/* ====== 播放器开关 ====== */
.player-toggle-wrap{display:inline-flex;align-items:center;gap:6px;margin-left:12px;cursor:pointer;vertical-align:middle;user-select:none}
.player-toggle-label{font-size:0.8rem;color:rgba(255,255,255,0.4);transition:color 0.3s}
.player-toggle-label.on{color:#55efc4}
.player-switch{position:relative;display:inline-block;width:36px;height:20px;flex-shrink:0}
.player-switch input{opacity:0;width:0;height:0}
.player-slider{position:absolute;cursor:pointer;inset:0;background:rgba(255,255,255,0.15);border-radius:20px;transition:0.3s}
.player-slider::before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;background:#fff;border-radius:50%;transition:0.3s}
.player-switch input:checked+.player-slider{background:linear-gradient(135deg,#00b894,#55efc4)}
.player-switch input:checked+.player-slider::before{transform:translateX(16px)}
