/* ===== 手机版全局样式 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#f5f5f7; --surface:#fff; --border:#e5e5e7;
  --text:#1d1d1f; --text-2:#6e6e73; --text-3:#aeaeb2;
  --primary:#6366f1; --primary-d:#4f46e5;
  --success:#22c55e; --warn:#f59e0b; --danger:#ef4444;
}
html { font-size:16px; -webkit-text-size-adjust:100%; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); line-height:1.5; -webkit-font-smoothing:antialiased; }
a { color:var(--primary); text-decoration:none; }
a:active { opacity:.7; }
img { display:block; max-width:100%; }

/* ===== 顶部头部 ===== */
.m-header { position:sticky; top:0; z-index:100; display:flex; align-items:center; justify-content:space-between; height:48px; padding:0 14px; background:#1a1a2e; color:#fff; box-shadow:0 1px 4px rgba(0,0,0,.12); }
.m-logo { display:flex; align-items:center; gap:6px; color:#fff; font-size:16px; font-weight:600; }
.m-logo-ic { font-size:20px; }
.m-user { font-size:13px; color:#c7c7d1; white-space:nowrap; }
.m-user:active { color:#fff; }

/* ===== 底部 Tab 导航栏 ===== */
.m-tabbar { position:fixed; bottom:0; left:0; right:0; z-index:100; display:flex; height:54px; background:#fff; border-top:1px solid var(--border); box-shadow:0 -1px 4px rgba(0,0,0,.06); }
.m-tabbar a { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--text-3); font-size:11px; }
.m-tabbar a.active { color:var(--primary); }
.m-tab-ic { font-size:18px; }
.m-tab-tx { font-size:11px; }

/* ===== 页脚 ===== */
.m-footer { text-align:center; padding:16px 14px 70px; color:var(--text-3); font-size:12px; line-height:1.8; }
.m-footer a { color:var(--text-2); }
.m-footer-sep { margin:0 8px; color:var(--text-3); }

/* ===== 通用区块 ===== */
.m-section { background:var(--surface); margin-bottom:8px; }
.m-sec-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; }
.m-sec-title { font-size:16px; font-weight:600; }
.m-sec-more { font-size:13px; color:var(--text-2); }
.m-sec-body { padding:0 14px 14px; }

/* ===== 轮播图 ===== */
.m-banner { position:relative; width:100%; height:160px; overflow:hidden; background:#1a1a2e; }
.m-banner-track { display:flex; width:100%; height:100%; transition:transform .4s ease; }
.m-banner-slide { flex:0 0 100%; height:100%; position:relative; }
.m-banner-slide img { width:100%; height:100%; object-fit:cover; }
.m-banner-slide .m-banner-cap { position:absolute; bottom:0; left:0; right:0; padding:10px 14px; background:linear-gradient(transparent,rgba(0,0,0,.65)); color:#fff; font-size:14px; font-weight:600; }
.m-banner-dots { position:absolute; bottom:6px; left:50%; transform:translateX(-50%); display:flex; gap:4px; z-index:2; }
.m-banner-dots span { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.4); }
.m-banner-dots span.active { background:#fff; }

/* ===== 游戏卡片 ===== */
.m-game-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.m-game-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.m-game-cover { position:relative; width:100%; padding-top:56.25%; overflow:hidden; }
.m-game-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.m-game-tag { position:absolute; top:6px; right:6px; background:var(--danger); color:#fff; font-size:10px; padding:2px 6px; border-radius:99px; font-weight:600; }
.m-game-info { padding:8px 10px; }
.m-game-name { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-game-meta { font-size:11px; color:var(--text-3); margin-top:2px; display:flex; gap:6px; }

/* ===== 横向滚动游戏列表 ===== */
.m-game-hlist { display:flex; gap:10px; overflow-x:auto; padding:0 14px 14px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.m-game-hlist::-webkit-scrollbar { display:none; }
.m-game-hcard { flex:0 0 96px; }
.m-game-hcover { width:96px; height:96px; border-radius:12px; overflow:hidden; border:1px solid var(--border); }
.m-game-hcover img { width:100%; height:100%; object-fit:cover; }
.m-game-hname { font-size:12px; font-weight:600; margin-top:6px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-game-hmeta { font-size:10px; color:var(--text-3); text-align:center; }

/* ===== 开服列表 ===== */
.m-server-list { list-style:none; }
.m-server-list li { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--border); }
.m-server-list li:last-child { border-bottom:none; }
.m-server-date { font-size:12px; color:var(--text-2); flex-shrink:0; min-width:60px; }
.m-server-name { flex:1; min-width:0; font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-server-btn { flex-shrink:0; background:var(--primary); color:#fff; font-size:12px; padding:4px 12px; border-radius:6px; border:none; }
.m-server-btn:active { background:var(--primary-d); }

/* ===== 新闻列表 ===== */
.m-news-list { list-style:none; }
.m-news-list li { padding:10px 0; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.m-news-list li:last-child { border-bottom:none; }
.m-news-dot { width:6px; height:6px; border-radius:50%; background:var(--primary); flex-shrink:0; }
.m-news-title { flex:1; min-width:0; font-size:14px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-news-date { font-size:12px; color:var(--text-3); flex-shrink:0; }

/* ===== 账号卡片 ===== */
.m-acct-card { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; padding:16px 14px; margin-bottom:8px; }
.m-acct-name { font-size:16px; font-weight:600; }
.m-acct-balance { font-size:13px; margin-top:8px; opacity:.9; }
.m-acct-balance b { font-size:18px; }
.m-acct-actions { display:flex; gap:8px; margin-top:12px; }
.m-acct-btn { flex:1; text-align:center; background:rgba(255,255,255,.18); color:#fff; padding:8px 0; border-radius:8px; font-size:13px; border:1px solid rgba(255,255,255,.2); }
.m-acct-btn:active { background:rgba(255,255,255,.28); }

/* ===== 登录表单 ===== */
.m-form { padding:20px 16px; }
.m-form-row { margin-bottom:16px; }
.m-form-label { display:block; font-size:14px; color:var(--text-2); margin-bottom:6px; }
.m-input { width:100%; height:44px; border:1px solid var(--border); border-radius:8px; padding:0 12px; font-size:15px; background:var(--surface); color:var(--text); }
.m-input:focus { border-color:var(--primary); outline:none; }
.m-btn { display:block; width:100%; height:44px; border:none; border-radius:8px; font-size:15px; font-weight:600; text-align:center; cursor:pointer; }
.m-btn-primary { background:var(--primary); color:#fff; }
.m-btn-primary:active { background:var(--primary-d); }
.m-btn-ghost { background:var(--surface); color:var(--text-2); border:1px solid var(--border); }
.m-form-foot { text-align:center; margin-top:16px; font-size:13px; color:var(--text-3); }
.m-form-foot a { color:var(--primary); }

/* ===== 游戏详情 ===== */
.m-detail-top { background:var(--surface); padding:16px 14px; }
.m-detail-name { font-size:20px; font-weight:700; }
.m-detail-tags { display:flex; gap:6px; margin-top:8px; }
.m-badge { font-size:11px; padding:2px 8px; border-radius:99px; font-weight:600; }
.m-badge-info { background:#e0e7ff; color:#4f46e5; }
.m-badge-success { background:#dcfce7; color:#16a34a; }
.m-detail-actions { display:flex; gap:10px; margin-top:14px; }
.m-detail-btn { flex:1; height:44px; border:none; border-radius:10px; font-size:15px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:6px; }
.m-detail-play { background:var(--primary); color:#fff; }
.m-detail-play:active { background:var(--primary-d); }
.m-detail-pay { background:var(--warn); color:#fff; }
.m-detail-servers { background:var(--surface); margin-top:8px; }
.m-server-row { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--border); }
.m-server-row:last-child { border-bottom:none; }
.m-server-info { flex:1; min-width:0; }
.m-server-sname { font-size:14px; font-weight:600; }
.m-server-stime { font-size:12px; color:var(--text-3); margin-top:2px; }
.m-detail-section { background:var(--surface); margin-top:8px; padding:14px; }
.m-detail-section h3 { font-size:15px; font-weight:600; margin-bottom:10px; }
.m-detail-intro { font-size:14px; color:var(--text-2); line-height:1.7; }
.m-detail-shots { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.m-detail-shots img { width:100%; border-radius:8px; }

/* ===== 用户中心 ===== */
.m-uc-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; background:var(--surface); }
.m-uc-item { text-align:center; padding:16px 4px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }
.m-uc-item:nth-child(4n) { border-right:none; }
.m-uc-item:active { background:var(--bg); }
.m-uc-ic { font-size:24px; display:block; }
.m-uc-tx { font-size:12px; color:var(--text-2); margin-top:4px; }
.m-uc-sec { background:var(--surface); margin-top:8px; }
.m-uc-sec-body { padding:0 14px 14px; }
.m-log-item { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.m-log-item:last-child { border-bottom:none; }
.m-log-name { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-2); }
.m-log-time { color:var(--text-3); font-size:11px; flex-shrink:0; margin-left:8px; }

/* ===== 提示消息 ===== */
.m-alert { padding:12px 14px; border-radius:8px; font-size:14px; margin-bottom:12px; }
.m-alert-error { background:#fef2f2; color:var(--danger); border:1px solid #fecaca; }
.m-alert-ok { background:#f0fdf4; color:var(--success); border:1px solid #bbf7d0; }

/* ===== 空状态 ===== */
.m-empty { text-align:center; padding:40px 20px; color:var(--text-3); font-size:14px; }

/* ===== 面包屑 ===== */
.m-breadcrumb { padding:10px 14px; font-size:12px; color:var(--text-3); }
.m-breadcrumb a { color:var(--text-2); }
.m-breadcrumb span { margin:0 4px; }

/* ===== 分页 ===== */
.m-pager { display:flex; justify-content:center; gap:6px; padding:16px; }
.m-pager a { min-width:36px; height:36px; line-height:34px; text-align:center; border:1px solid var(--border); border-radius:8px; font-size:14px; color:var(--text-2); }
.m-pager a.cur { background:var(--primary); color:#fff; border-color:var(--primary); }
