/* 咪噜游戏 全站样式(外链版) - 动态个性化CSS由模板内 <style>{:global_style_css()}</style> 注入 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f5f7; color: #333; font-size: 14px; }
a { text-decoration: none; color: #333; transition: color .2s; }
a:hover { color: #e74c3c; }
.container { max-width: 1200px; margin: 0 auto; padding-inline: 15px; }
/* Discount tags */
.tag-discount { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 12px; color: #fff; font-weight: bold; line-height: 18px; }
.tag-01 { background: linear-gradient(135deg, #ff4d4f, #e74c3c); }
.tag-005 { background: linear-gradient(135deg, #ff6600, #e65100); }
.tag-bt { background: linear-gradient(135deg, #7b1fa2, #9c27b0); }
.tag-gm { background: linear-gradient(135deg, #00695c, #00897b); }
/* 游戏特色标签(yxtsbq): 游戏名括号内特色词 */
.tag-feature { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; line-height: 16px; font-weight: bold; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; vertical-align: middle; }
/* 首页游戏墙左右行布局: 左侧自适应网格 + 右侧文章栏, 等高 */
.wall-row { display: flex; gap: 24px; align-items: stretch; margin-bottom: 26px; }
.wall-row .wall-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.wall-row .wall-aside { flex: 0 0 320px; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 900px) { .wall-row { flex-direction: column; } .wall-row .wall-aside { flex: none; } }
.game-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px 12px; align-content: start; }
.g-card { display: block; cursor: pointer; transition: transform .2s; min-width: 0; }
.g-card:hover { transform: scale(1.04); }
.g-cover { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #ececf0; }
.g-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #ececf0; }
/* 卡片文字与排行榜板块统一: 名称14px/500, 特色标签12px */
.g-name { margin-top: 6px; font-size: 14px; color: #333; font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-feature { display: block; width: max-content; max-width: 100%; margin: 4px auto 0; font-size: 12px; line-height: 18px; padding: 0 6px; border: 1px solid #ffa940; border-radius: 3px; color: #ff6600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .25s; }
.g-card:hover .g-feature { background: linear-gradient(90deg, #ff6b35, #ff3d00); color: #fff; border-color: transparent; transform: scale(1.05); }
.tag-zk { background: linear-gradient(135deg, #1976d2, #2196f3); }
.tag-free { background: linear-gradient(135deg, #388e3c, #4caf50); }
/* Game icon placeholder */
.game-icon { width: 80px; height: 80px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; overflow: hidden; }
.game-icon-sm { width: 50px; height: 50px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; overflow: hidden; }
.game-icon-lg { width: 100px; height: 100px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 42px; flex-shrink: 0; overflow: hidden; }
/* Card styles */
.card { background: #fff; border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
/* 主导航 Background Fill 点击特效 */
#mainNav { display: flex; align-items: center; gap: 4px; height: 52px; }
.nav-item { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; font-size: 15px; font-weight: 500; color: #ccc; border-radius: 8px; transition: color .25s ease; cursor: pointer; white-space: nowrap; }
.nav-item .fill { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #ff4d4f, #e74c3c); border-radius: 8px; transform: scale(0); opacity: 0; transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }
.nav-item:hover { color: #fff; }
.nav-item.active { color: #fff; }
.nav-item.active .fill { transform: scale(1); opacity: 1; }
/* Tab active */
.tab-btn { border-bottom: 2px solid transparent; }
.tab-btn.active { color: #e74c3c; border-bottom: 2px solid #e74c3c; background: #fff5f5; }
/* Filter tag(选中高亮与导航栏一致: 红色渐变填充+白字) */
.filter-tag { padding: 2px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 18px; color: #666; background: #fff; border: 1px solid #e5e5e5; transition: all .25s; display: inline-block; }
.filter-tag:hover { color: #e74c3c; border-color: #ffccc7; background: #fff5f5; }
.filter-tag.active { color: #fff; background: linear-gradient(135deg, #ff4d4f, #e74c3c); border-color: transparent; box-shadow: 0 2px 8px rgba(231, 76, 60, .35); }
/* 游戏库题材筛选"更多"按钮: 醒目 + 同步全局风格色 */
#themeMore { color: var(--gs-primary, #e74c3c); border-color: color-mix(in srgb, var(--gs-primary, #e74c3c) 45%, #fff); background: color-mix(in srgb, var(--gs-primary, #e74c3c) 6%, #fff); font-weight: bold; }

/* 详情页头部卡片: 按游戏ID随机柔和背景(与手机端topbg一致) */
.card.topbg-1 { background: linear-gradient(160deg, #eaefff, #f2eafa); }
.card.topbg-2 { background: linear-gradient(160deg, #fdeaf5, #feecec); }
.card.topbg-3 { background: linear-gradient(160deg, #e8f5ff, #e5fbfd); }
.card.topbg-4 { background: linear-gradient(160deg, #e8fdee, #e4fcf8); }
.card.topbg-5 { background: linear-gradient(160deg, #feebf2, #fff8e1); }
.card.topbg-6 { background: linear-gradient(160deg, #f1ecfa, #fceef7); }
.card.topbg-7 { background: linear-gradient(160deg, #fff3e1, #f8ecfb); }
.card.topbg-8 { background: linear-gradient(160deg, #f5eefd, #ebf4fe); }
.card.topbg-9 { background: linear-gradient(160deg, #feecee, #fdebeb); }
.card.topbg-10 { background: linear-gradient(160deg, #eaefff, #e8fdee); }
/* 页底热门游戏库: 5色随机标签(风格同特色标签) */
.hot-link { display: inline-block; padding: 2px 12px; border: 1px solid; border-radius: 3px; font-size: 12px; line-height: 20px; transition: all .2s; }
.hot-link:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.fl-c1 { color: #ff6600; border-color: #ffa940; background: #fff7ed; }
.fl-c2 { color: #e74c3c; border-color: #ff7875; background: #fff1f0; }
.fl-c3 { color: #1976d2; border-color: #64b5f6; background: #e3f2fd; }
.fl-c4 { color: #388e3c; border-color: #81c784; background: #e8f5e9; }
.fl-c5 { color: #9c27b0; border-color: #ce93d8; background: #f3e5f5; }
/* Rank number */
.rank-num { width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #fff; flex-shrink: 0; }
.rank-1 { background: #ff4d4f; }
.rank-2 { background: #ff7a45; }
.rank-3 { background: #ffa940; }
.rank-other { background: #d9d9d9; color: #999; }
/* 排行榜页: TAG分类榜单(图示样式) */
.rank-tabs { display: flex; flex-wrap: wrap; }
/* TAB+榜单一体板块: tabs贴卡顶, active白底与卡内衔接 */
.rank-board { padding: 16px; }
.rank-board .rank-tabs { margin: -16px -16px 0; }
.rank-tab { padding: 14px 34px; font-size: 16px; font-weight: bold; color: #555; background: #f2f3f5; border: 1px solid #e8e8e8; border-bottom: none; border-top: 3px solid transparent; cursor: pointer; }
.rank-tab + .rank-tab { border-left: none; }
.rank-tab:hover { color: #e74c3c; }
.rank-tab.active { background: #fff; color: #333; border-top-color: #ff6600; }
.rank-panel { padding-top: 16px; }
html.dark .rank-tab { background: #26262a; border-color: #2d2d31; color: #a1a1aa; }
html.dark .rank-tab.active { background: #1f1f23; color: #e4e6eb; }
.rank-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 58px; margin-bottom: 12px; }
.rank-corner { position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 50px solid #d9d9d9; border-right: 50px solid transparent; }
.rank-corner.rc-1 { border-top-color: #ff4d4f; }
.rank-corner.rc-2 { border-top-color: #a7b1c2; }
.rank-corner.rc-3 { border-top-color: #ffa940; }
.rank-corner .n { position: absolute; top: -46px; left: 9px; color: #fff; font-weight: bold; font-size: 15px; }
.rank-plain { position: absolute; top: 14px; left: 20px; width: 24px; text-align: center; font-weight: bold; font-size: 18px; color: #c0c0c0; }
.rank-medal { font-size: 24px; width: 30px; text-align: center; flex-shrink: 0; }
.rank-cover { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #ececf0; }
.rank-label { display: inline-block; border: 1px solid #ffa940; color: #ff6600; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 3px; white-space: nowrap; }
.rank-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-tag { display: inline-block; border: 1px solid #e5e5e5; color: #999; background: #f7f7f9; font-size: 12px; line-height: 20px; padding: 0 10px; border-radius: 3px; white-space: nowrap; }
.rank-more { display: inline-block; padding: 8px 40px; border: 1px solid #e5e5e5; border-radius: 20px; color: #666; background: #fff; font-size: 14px; transition: all .2s; }
.rank-more:hover { color: #e74c3c; border-color: #ff7875; }
/* 首页专题卡封面图 */
.topic-card .topic-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 游戏库筛选项 */
.filter-label { width: 80px; flex-shrink: 0; font-size: 13px; color: #999; padding-top: 4px; white-space: nowrap; }
.filter-clamp { overflow: hidden; }
/* 礼包领取按钮(跟随主色) */
.gift-claim { display: inline-block; border: 1px solid var(--gs-primary, #e74c3c); color: var(--gs-primary, #e74c3c); background: #fff; border-radius: 14px; white-space: nowrap; transition: all .2s; }
.gift-claim:hover { background: var(--gs-primary, #e74c3c); color: #fff; }
/* 右侧悬浮工具条 */
.side-widget { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 6px; }
.sw-btn { position: relative; width: 46px; height: 46px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #666; cursor: pointer; transition: all .2s; }
.sw-btn:hover { color: var(--gs-primary, #e74c3c); border-color: var(--gs-primary, #e74c3c); background: color-mix(in srgb, var(--gs-primary, #e74c3c) 5%, #fff); }
.sw-qr { display: none; position: absolute; right: 54px; top: 50%; transform: translateY(-50%); width: 166px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.sw-qr img { width: 150px; height: 150px; display: block; }
.sw-hasqr:hover .sw-qr { display: block; }
/* 首页弹出公告 */
.popup-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; }
.popup-box { width: 440px; max-width: 92vw; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.popup-close-row { display: flex; justify-content: flex-end; gap: 14px; padding: 10px 14px 0; }
.popup-close-row a { font-size: 12px; color: #999; }
.popup-close-row a:hover { color: var(--gs-primary, #e74c3c); }
.popup-text { padding: 4px 20px 14px; font-size: 14px; color: #444; line-height: 1.8; white-space: pre-line; }
.popup-img { display: block; }
.popup-img img { width: 100%; display: block; }
/* Button styles */
.btn-download { display: inline-block; padding: 8px 24px; border-radius: 20px; color: #fff; font-size: 14px; font-weight: bold; cursor: pointer; transition: opacity .2s; border: none; text-align: center; }
.btn-download:hover { opacity: .85; color: #fff; }
.btn-android { background: linear-gradient(135deg, #4caf50, #388e3c); }
.btn-ios { background: linear-gradient(135deg, #2196f3, #1976d2); }
.btn-orange { background: linear-gradient(135deg, #ff6600, #e74c3c); }
/* 详情页顶部下载按钮(与手机端同步: 主色+深色, 宽度随内容不拉伸) */
.btn-dl { display: inline-block; padding: 10px 42px; border-radius: 8px; font-weight: bold; font-size: 15px; text-align: center; text-decoration: none; }
.btn-dl-primary { background: var(--gs-primary, #e74c3c); color: #fff; }
.btn-dl-dark { background: #333; color: #fff; }
.btn-dl:hover { opacity: .88; color: #fff; }
/* Section title */
.section-title { font-size: 20px; font-weight: bold; color: #333; padding: 20px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title .more { font-size: 13px; color: #999; font-weight: normal; cursor: pointer; }
.section-title .more:hover { color: #e74c3c; }
/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb span.sep { margin: 0 6px; }
/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 4px; border: 1px solid #ddd; font-size: 14px; color: #333; cursor: pointer; transition: all .2s; }
.pagination a:hover, .pagination span.current { background: #e74c3c; color: #fff; border-color: #e74c3c; }
/* Scrollbar hide */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* Banner */
.banner-slide { width: 100%; height: 300px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; color: #fff; position: relative; overflow: hidden; }
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 首页Banner: 对称网格(2行3列隐式网格, 中央大图纵向跨两行, 左右各两个标准图) */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; gap: 12px; }
.banner-cell { display: block; border-radius: 12px; position: relative; overflow: hidden; height: 100%; }
.cell-1 { grid-column: 1; grid-row: 1; }
.cell-2 { grid-column: 2; grid-row: 1 / 3; } /* 中央大图跨两行 */
.cell-3 { grid-column: 1; grid-row: 2; }
.cell-4 { grid-column: 3; grid-row: 1; }
.cell-5 { grid-column: 3; grid-row: 2; }
.banner-inner { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #2c2c2c; }
.banner-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; }
.banner-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.banner-shade { position: absolute; inset: 0; z-index: 1; opacity: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 10%, rgba(0,0,0,.35) 55%, transparent); transition: opacity .5s ease; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; color: #fff; transform: translateY(100%); opacity: 0; transition: transform .5s ease, opacity .5s ease; }
/* 悬浮: 图片放大1.12倍+降亮度, 底部黑色渐变遮罩浮现, 标签标题从下方滑入 */
.banner-cell:hover .banner-inner img { transform: scale(1.12); filter: brightness(.55); }
.banner-cell:hover .banner-shade { opacity: 1; }
.banner-cell:hover .banner-text { transform: translateY(0); opacity: 1; }
.banner-text .bt-tag { display: inline-block; padding: 2px 10px; margin-bottom: 6px; border-radius: 10px; font-size: 12px; font-weight: bold; background: linear-gradient(135deg, #ff4d4f, #e74c3c); }
.banner-text .t1 { font-size: 17px; font-weight: bold; line-height: 1.3; }
.cell-2 .banner-text .t1 { font-size: 24px; }
.banner-text .t2 { font-size: 12px; opacity: .85; margin-top: 3px; }
/* Sidebar card */
.sidebar-card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
/* 详情页侧栏卡片: 白底圆角; 行悬停与内容区行一致(中性灰背景, 不改文字色) */
.sidebar-card a { transition: background .15s; border-radius: 6px; }
.sidebar-card a:hover { background: #f3f4f6; }
html.dark .sidebar-card { background: #1f1f23; }
html.dark .sidebar-card a:hover { background: #26262a; }
/* 夜间: 侧栏内部元素统一(标签chips/行文字/分隔线/悬停残留), 与暗色卡#1f1f23一致 */
html.dark .sidebar-card .bg-gray-100 { background: #26262a; color: #a1a1aa; }
html.dark .sidebar-card .text-gray-600 { color: #a1a1aa; }
html.dark .sidebar-card .text-gray-400 { color: #71717a; }
html.dark .sidebar-card .bg-orange-50 { background: rgba(255,150,50,.14); }
html.dark .sidebar-card .border-gray-100 { border-color: #2d2d31; }
html.dark .sidebar-title { border-bottom-color: #2d2d31; }
.sidebar-title { font-size: 16px; font-weight: bold; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
/* Comment */
.comment-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
/* Footer */
.footer { background: #2c2c2c; color: #aaa; padding: 30px 0; margin-top: 30px; font-size: 13px; text-align: center; }
.footer a { color: #ccc; margin: 0 10px; }
.footer a:hover { color: #fff; }
/* 备案行: ICP与公安备案并排, 用间隔线分隔 */
.footer .record-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.footer .record-line a { margin: 0; }
.footer .record-line a + a { padding-left: 14px; position: relative; }
.footer .record-line a + a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: #555; }
.footer .police-record { display: inline-flex; align-items: center; gap: 4px; }
.footer .police-badge { font-size: 13px; line-height: 1; }
/* Gradient backgrounds for icons */
.grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.grad-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.grad-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.grad-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.grad-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.grad-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.grad-7 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.grad-8 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.grad-9 { background: linear-gradient(135deg, #f5576c, #ff6600); }
.grad-10 { background: linear-gradient(135deg, #667eea, #43e97b); }
/* Search box */
.search-box { display: flex; align-items: center; background: #f5f5f5; border-radius: 20px; padding: 6px 14px; border: 1px solid #eee; }
.search-box input { border: none; background: transparent; outline: none; font-size: 13px; width: 160px; }
/* Gift card */
.gift-card { border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; transition: background .2s, border-color .2s; }
.gift-card:hover { background: color-mix(in srgb, var(--gs-primary, #e74c3c) 4%, #fff); border-color: color-mix(in srgb, var(--gs-primary, #e74c3c) 25%, #fff); }
html.dark .gift-card:hover { background: color-mix(in srgb, var(--gs-primary, #e74c3c) 8%, #1f1f23); border-color: #2d2d31; }
/* 页底安全认证图片位(一行5个, 后台系统设置可上传图片/链接/说明) */
.cert-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cert-item { display: block; width: 106px; height: 40px; }
.cert-item img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.cert-ph { width: 100%; height: 100%; border: 1px dashed #d8d8de; border-radius: 4px; background: #f7f7f9; display: flex; align-items: center; justify-content: center; gap: 4px; color: #a0a4ad; font-size: 11px; }
.cert-ph .s { font-size: 14px; line-height: 1; }
html.dark .cert-ph { border-color: #2d2d31; background: #1f1f23; color: #6b7080; }
/* Topic card */
.topic-card { border-radius: 8px; overflow: hidden; position: relative; height: 140px; display: flex; align-items: flex-end; cursor: pointer; }
.topic-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.topic-card .title { position: relative; z-index: 1; color: #fff; padding: 12px; font-weight: bold; font-size: 15px; }
/* Video card */
.video-card { border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 16/9; cursor: pointer; }
.video-card .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 40px; color: #fff; opacity: .8; }
.video-card .vtitle { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font-size: 13px; }
/* Trade card */
.trade-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.price { color: #e74c3c; font-weight: bold; font-size: 16px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 截图自适应: 横版矮宽/竖版高窄, 由JS按图片原始宽高比切换portrait类 */
.screenshot-img { height: 180px; width: auto; max-width: 420px; border-radius: 8px; flex-shrink: 0; cursor: zoom-in; background: #f0f0f0; object-fit: cover; }
.screenshot-img.portrait { height: 300px; max-width: 200px; }

/* ================= 夜间模式 (html.dark, 由右侧工具条按钮切换) ================= */
html.dark body { background: #141416; color: #d4d4d8; }
html.dark a { color: #d4d4d8; }
html.dark img { filter: brightness(.9); }
html.dark .bg-white { background: #1f1f23 !important; }
html.dark header div[style*="color:#222"] { color: #e4e4e7 !important; }
html.dark header div[style*="color:#999"] { color: #a1a1aa !important; }
html.dark .text-gray-400 { color: #71717a; }
html.dark .text-gray-500 { color: #a1a1aa; }
html.dark .text-gray-600 { color: #b8b8c0; }
html.dark .bg-gray-100 { background: #26262a; }
html.dark .bg-gray-50 { background: #1c1c20; }
html.dark .card { background: #1f1f23; border-color: #2d2d31; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
html.dark .section-title { color: #e4e4e7; }
html.dark .section-title .more { color: #a1a1aa; }
html.dark .breadcrumb, html.dark .breadcrumb a { color: #8b8b93; }
html.dark .search-box { background: #26262a; border-color: #3f3f46; }
html.dark .search-box input { color: #e4e4e7; }
html.dark input[type=text], html.dark input[type=password], html.dark select, html.dark textarea { background: #26262a; color: #e4e4e7; border-color: #3f3f46; }
html.dark .tab-btn { color: #b8b8c0; border-bottom-color: #2d2d31; }
html.dark .tab-btn.active { color: var(--gs-primary, #e74c3c); border-bottom-color: var(--gs-primary, #e74c3c); background: color-mix(in srgb, var(--gs-primary, #e74c3c) 12%, #1f1f23); }
html.dark .filter-tag { background: #1f1f23; border-color: #3f3f46; color: #c9c9d1; }
html.dark .filter-tag:hover { color: var(--gs-primary, #e74c3c); border-color: color-mix(in srgb, var(--gs-primary, #e74c3c) 45%, #1f1f23); background: color-mix(in srgb, var(--gs-primary, #e74c3c) 8%, #141416); }
/* 选中/悬停态显式恢复主色渐变(避免被 html.dark 基础规则特异性压制) */
html.dark .filter-tag.active { background: linear-gradient(135deg, var(--gs-primary, #e74c3c), var(--gs-secondary, #ff4d4f)); color: #fff; border-color: transparent; box-shadow: 0 2px 8px color-mix(in srgb, var(--gs-primary, #e74c3c) 35%, transparent); }
html.dark .rank-more:hover { color: var(--gs-primary, #e74c3c); border-color: var(--gs-primary, #e74c3c); }
html.dark .g-name { color: #e4e4e7; }
html.dark .g-feature, html.dark .tag-feature { background: #26262a; border-color: #5b5b64; color: #e8a33d; }
html.dark .rank-tag { background: #26262a; border-color: #3f3f46; color: #a1a1aa; }
html.dark .g-card:hover .g-feature { background: linear-gradient(90deg, var(--gs-primary), var(--gs-secondary)); color: #fff; border-color: transparent; }
html.dark .rank-more { background: #1f1f23; border-color: #3f3f46; color: #b8b8c0; }
html.dark .pagination a, html.dark .pagination span { background: #1f1f23; border-color: #3f3f46; color: #b8b8c0; }
html.dark .sw-btn { background: #1f1f23; border-color: #3f3f46; color: #b8b8c0; }
html.dark .sw-btn:hover { color: var(--gs-primary, #e74c3c); border-color: var(--gs-primary, #e74c3c); background: color-mix(in srgb, var(--gs-primary, #e74c3c) 12%, #1f1f23); }
html.dark .sw-qr { background: #1f1f23; border-color: #3f3f46; }
html.dark .popup-box { background: #1f1f23; }
html.dark .popup-text { color: #c9c9d1; }
html.dark .popup-close-row a { color: #8b8b93; }
html.dark .gift-card { background: #1f1f23; border-color: #2d2d31; }
html.dark .app-feat-item { background: #1f1f23; }
html.dark .app-feat-item .d { color: #8b8b93; }
html.dark .app-step .d { color: #b8b8c0; }
html.dark .app-btns .btn-white { background: #fff; color: var(--gs-primary, #e74c3c); }

/* ---- 盒子APP下载页 ---- */
.app-hero { position: relative; overflow: hidden; border-radius: 12px; padding: 46px 20px 40px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--gs-primary, #e74c3c), var(--gs-secondary, #ff4d4f)); }
.app-hero::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); top: -140px; left: -100px; }
.app-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); bottom: -130px; right: -80px; }
.app-icon { width: 92px; height: 92px; border-radius: 22px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.app-hero h1 { font-size: 26px; font-weight: bold; margin: 14px 0 6px; }
.app-slogan { font-size: 14px; opacity: .92; }
.app-btns { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.app-btns .btn-download { padding: 12px 38px; font-size: 15px; }
.app-btns .btn-white { background: #fff; color: var(--gs-primary, #e74c3c); }
.app-meta { position: relative; z-index: 1; font-size: 12px; opacity: .85; margin-top: 16px; }
.app-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-feat-item { background: #fff; border-radius: 10px; padding: 20px 12px; text-align: center; }
.app-feat-item .ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.app-feat-item .t { font-size: 14px; font-weight: bold; }
.app-feat-item .d { font-size: 12px; color: #999; margin-top: 4px; }
.app-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.app-step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--gs-primary, #e74c3c); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-step .d { font-size: 13px; color: #555; line-height: 1.7; }
@media (max-width: 768px) { .app-feat { grid-template-columns: repeat(2, 1fr); } }

/* 盒子APP推广卡(首页侧栏, 信息与app.html同步, 固定橙/绿/蓝色不随全局风格) */
.app-promo { text-align:center; padding:14px 12px; border:1px solid #f0f0f2; border-radius:12px; background:#fff; }
.app-promo .ap-icon { width:64px; height:64px; border-radius:16px; background:linear-gradient(135deg,#ff9a3d,#ff5f2e); display:flex; align-items:center; justify-content:center; font-size:32px; margin:0 auto 10px; overflow:hidden; }
.app-promo .ap-icon img { width:100%; height:100%; object-fit:cover; border-radius:16px; }
.app-promo .ap-name { font-size:16px; font-weight:700; color:#222; }
.app-promo .ap-desc { font-size:12px; color:#999; margin:4px 0 12px; }
.app-promo .ap-btns { display:flex; gap:10px; justify-content:center; }
.app-promo .ap-btn { flex:1; max-width:96px; color:#fff; font-size:13px; font-weight:600; padding:8px 0; border-radius:999px; text-align:center; }
.app-promo .ap-android { background:#22c55e; }
.app-promo .ap-ios { background:#3b82f6; }
.app-promo .ap-disabled { opacity:.45; cursor:not-allowed; }
html.dark .app-promo { background:#1f1f23; border-color:#2d2d31; }
html.dark .app-promo .ap-name { color:#e4e6eb; }

/* app.html盒子图标支持图片(后台自定义图标) */
.app-hero .app-icon img { width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }

/* 详情页平台推荐角标(内联胶囊, 位于版块/折扣标签之后, 固定橙色系) */
.rec-badge { display:inline-flex; align-items:center; background:linear-gradient(135deg,#ff9a3d,#ff5f2e); color:#fff; font-size:11px; font-weight:700; padding:2px 10px; border-radius:999px; line-height:18px; }

/* 首页游戏墙板块 推荐/最新切换 */
.st-wrap { display:inline-flex; align-items:center; gap:12px; }
.wall-tabs { display:inline-flex; gap:4px; }
.ws-btn { font-size:12px; line-height:18px; padding:2px 12px; border-radius:999px; color:#888; background:#f2f2f4; cursor:pointer; font-weight:400; }
.ws-btn.active { background:var(--gs-primary,#e74c3c); color:#fff; font-weight:600; }
html.dark .ws-btn { background:#26262a; color:#a1a1aa; }
html.dark .ws-btn.active { color:#fff; }

/* 板块卡片内页头(与首页TAB区一致: 标题+操作在卡片内部, 底部细分隔线) */
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; margin-bottom:16px; border-bottom:1px solid #f0f0f0; }
.panel-head > span { font-size:18px; font-weight:bold; color:#333; }
.panel-head .more { font-size:13px; color:#999; cursor:pointer; white-space:nowrap; }
.panel-head .more:hover { color:var(--gs-primary,#e74c3c); }
html.dark .panel-head { border-bottom-color:#2a2d3a; }
html.dark .panel-head > span { color:#e4e4e7; }
html.dark .panel-head .more { color:#a1a1aa; }

/* 热门标签云(8色随机多彩, 固定配色不随全局风格) */
.hot-tag { display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:4px 12px; border-radius:999px; line-height:16px; }
.hot-tag .hc { font-size:10px; opacity:.7; }
.hot-tag.tc1 { background:#fff1f0; color:#e84118; }
.hot-tag.tc2 { background:#fff7e6; color:#d48806; }
.hot-tag.tc3 { background:#f6ffed; color:#389e0d; }
.hot-tag.tc4 { background:#e6f7ff; color:#096dd9; }
.hot-tag.tc5 { background:#f9f0ff; color:#722ed1; }
.hot-tag.tc6 { background:#e6fffb; color:#08979c; }
.hot-tag.tc7 { background:#fff0f6; color:#c41d7f; }
.hot-tag.tc8 { background:#fef3e2; color:#ad4e00; }
html.dark .hot-tag.tc1 { background:rgba(232,65,24,.16); }
html.dark .hot-tag.tc2 { background:rgba(212,136,6,.16); }
html.dark .hot-tag.tc3 { background:rgba(56,158,13,.16); }
html.dark .hot-tag.tc4 { background:rgba(9,109,217,.16); }
html.dark .hot-tag.tc5 { background:rgba(114,46,209,.16); }
html.dark .hot-tag.tc6 { background:rgba(8,151,156,.16); }
html.dark .hot-tag.tc7 { background:rgba(196,29,127,.16); }
html.dark .hot-tag.tc8 { background:rgba(173,78,0,.16); }

/* VIP等级表(游戏详情页) */
.wall-empty { grid-column: 1 / -1; padding: 28px 0; text-align: center; color: #999; font-size: 13px; }
.vip-table-wrap { overflow-x: auto; border: 1px solid #eee; border-radius: 8px; }
.vip-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.vip-table th, .vip-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; white-space: nowrap; }
.vip-table thead th { background: #fafafa; font-weight: bold; color: #333; }
.vip-table tbody tr:last-child td { border-bottom: none; }
.vip-table tbody tr:hover { background: #fafafa; }
html.dark .vip-table-wrap { border-color: #2d2d31; }
html.dark .vip-table th, html.dark .vip-table td { border-bottom-color: #2d2d31; }
html.dark .vip-table thead th { background: #26262a; color: #e4e4e7; }
html.dark .vip-table tbody tr:hover { background: #26262a; }

/* ===== 202609241 首页语义结构(H2/H3标签复用原视觉样式, 重置浏览器默认margin) ===== */
.panel-head > h2, .panel-head > h3 { margin: 0; font-size: 18px; font-weight: bold; color: #333; }
h2.st-wrap { margin: 0; font-size: 18px; line-height: 1.4; }
html.dark .panel-head > h2, html.dark .panel-head > h3 { color: #e4e4e7; }

/* 首页H1-SEO介绍板块: 与栏目页seo-page-head同一视觉语言(浅主色渐变卡+左侧强调条) */
.home-intro { margin: 0 0 16px; padding: 16px 22px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gs-primary, #e74c3c) 14%, #fff); border-left: 4px solid var(--gs-primary, #e74c3c); background: linear-gradient(120deg, color-mix(in srgb, var(--gs-primary, #e74c3c) 7%, #fff), #fff 58%); }
.home-intro-title { margin: 0 0 8px; font-size: 19px; font-weight: bold; color: #1f1f1f; line-height: 1.5; }
.home-intro-desc { margin: 0; font-size: 13px; color: #777; line-height: 1.9; }
html.dark .home-intro { background: linear-gradient(120deg, color-mix(in srgb, var(--gs-primary, #e74c3c) 16%, #1f1f23), #1f1f23 58%); border-color: #3a2c2a; }
html.dark .home-intro-title { color: #e4e4e7; }
html.dark .home-intro-desc { color: #a1a1aa; }

/* 首页友情链接板块 */
.friend-links { background: #fff; border-radius: 10px; padding: 14px 20px; margin-bottom: 16px; }
.friend-links .fl-title { margin: 0 0 10px; font-size: 13px; font-weight: bold; color: #999; }
.friend-links .fl-list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.friend-links .fl-item { font-size: 13px; color: #888; line-height: 20px; transition: color .2s; }
a.fl-item:hover { color: var(--gs-primary, #e74c3c); }
.friend-links .fl-text { color: #b5b5b5; }
html.dark .friend-links { background: #1f1f23; }
html.dark .friend-links .fl-title { color: #71717a; }
html.dark .friend-links .fl-item { color: #a1a1aa; }
html.dark .friend-links .fl-text { color: #666; }

.home-faq-item h3 { line-height: 1.5; }
.home-faq-item p { margin: 0; }

/* 栏目页SEO头部: 浅主色渐变卡片 + 左侧主色强调条(与全站卡片风格统一) */
.seo-page-head { margin: 0 0 16px; padding: 16px 22px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gs-primary, #e74c3c) 14%, #fff); border-left: 4px solid var(--gs-primary, #e74c3c); background: linear-gradient(120deg, color-mix(in srgb, var(--gs-primary, #e74c3c) 7%, #fff), #fff 58%); }
.seo-page-head .seo-h1 { margin: 0 0 8px; font-size: 20px; font-weight: bold; color: #1f1f1f; line-height: 1.4; }
.seo-page-head .seo-page-desc { margin: 0; font-size: 13px; color: #777; line-height: 1.85; }
html.dark .seo-page-head { background: linear-gradient(120deg, color-mix(in srgb, var(--gs-primary, #e74c3c) 16%, #1f1f23), #1f1f23 58%); border-color: #3a2c2a; }
html.dark .seo-page-head .seo-h1 { color: #e4e4e7; }
html.dark .seo-page-head .seo-page-desc { color: #a1a1aa; }

/* 图片宽高比占位(配合width/height属性消除CLS, 容器已有固定尺寸时由容器约束) */
img { max-width: 100%; }

/* 单页正文(关于/协议/隐私等, 内容来自后台HTML片段) */
.page-body h2 { font-size: 17px; font-weight: bold; margin: 22px 0 10px; color: #222; }
.page-body h3 { font-size: 15px; font-weight: bold; margin: 16px 0 8px; color: #333; }
.page-body p { margin: 8px 0; }
.page-body ul { margin: 8px 0 8px 20px; list-style: disc; }
.page-body ul li { margin: 4px 0; }
.page-body a { color: var(--gs-primary, #e74c3c); }
.page-body strong { color: #222; }
html.dark .page-body h2, html.dark .page-body h3, html.dark .page-body strong { color: #e4e4e7; }
