/* ============================================================
   鹿枫堂网页版 · 全局样式（移动端优先）
   ============================================================ */
:root {
  --primary: #FF6B6B;
  --primary-d: #e85a5a;
  --primary-rgb: 255,107,107;
  --ad: #ff9f43;
  --bg: #F5F6F8;
  --card: #ffffff;
  --text: #222;
  --sub: #999;
  --line: #eee;
  --tab-h: 56px;
  --maxw: 750px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
#app { max-width: var(--maxw); margin: 0 auto; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea { font-family: inherit; outline: none; }
img { display: block; max-width: 100%; }

.lf-app { min-height: 100vh; background: var(--bg); }

/* 页面容器，留出底部 tab 高度 */
.lf-page { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
.lf-page.no-nav { padding-bottom: 0; }
.page { padding: 12px; }

/* 启动动画 */
.app-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; color: var(--sub); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 底部导航 */
.lf-tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--maxw);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; background: #fff; border-top: 1px solid var(--line); z-index: 50;
}
.lf-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sub); font-size: 11px; }
.lf-tab.active { color: var(--primary); }
.lf-tab-icon { width: 24px; height: 24px; object-fit: contain; margin-bottom: 2px; }

/* 悬浮按钮组：签到 + 返回顶部 垂直排列、水平居中（容器统一固定定位） */
.lf-fab-group {
  position: fixed; right: 14px;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 60;
}
/* 签到浮窗按钮（定位交给 .lf-fab-group，自身不再 fixed） */
.lf-sign-float { position: static; display: flex; flex-direction: column; align-items: center; }
.lf-sign-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; position: relative;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,107,0.38); font-size: 11px;
}
.lf-sign-btn::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  opacity: 0.5; filter: blur(8px); z-index: -1;
}
.lf-sign-btn:active { transform: scale(0.9); }
.lf-sign-icon { font-size: 18px; animation: lf-bounce 2s ease-in-out infinite; }
@keyframes lf-bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* 遮罩 / 弹窗 */
.lf-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lf-sign-panel, .lf-ad-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 320px; padding: 20px; }
.lf-sign-title { font-size: 18px; font-weight: 700; text-align: center; }
.lf-sign-sub { color: var(--sub); font-size: 12px; text-align: center; margin: 6px 0 14px; }
.lf-sign-progress { font-size: 13px; margin-bottom: 6px; }
.lf-sign-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.lf-sign-bar-in { height: 100%; background: linear-gradient(90deg, var(--primary), var(--ad)); transition: width 0.3s; }
.lf-sign-done { text-align: center; color: var(--primary); margin: 8px 0; }

/* 签到按钮上方：今日积分概览 x/y（样式对齐小程序签到按钮「次数」：白字、小号、半透明） */
.lf-sign-countup {
  font-size: 11px; line-height: 1; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.28); padding: 3px 9px; border-radius: 10px;
  margin-bottom: 6px; white-space: nowrap; letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* 每日积分任务弹窗（等同 #/tasks 页面） */
.lf-task-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 340px; padding: 18px 16px 14px; max-height: 78vh; overflow-y: auto; }
.lf-task-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lf-task-title { font-size: 17px; font-weight: 700; }
.lf-task-close { color: var(--sub); font-size: 18px; padding: 0 4px; cursor: pointer; }
.lf-task-tip { color: var(--sub); font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.lf-task-loading, .lf-task-empty { text-align: center; color: var(--sub); padding: 20px 0; font-size: 13px; }
.lf-task-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lf-task-item:last-child { border-bottom: none; }
.lf-task-main { flex: 1; min-width: 0; }
.lf-task-name { font-size: 14px; font-weight: 600; }
.lf-task-desc { color: var(--sub); font-size: 12px; margin: 2px 0 6px; }
.lf-task-extra { color: var(--ad); font-size: 11px; margin-bottom: 4px; }
.lf-task-progress { display: flex; align-items: center; gap: 8px; }
.lf-task-bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.lf-task-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--ad)); }
.lf-task-pt { font-size: 11px; color: var(--sub); white-space: nowrap; }
.lf-task-btn { flex: none; padding: 7px 14px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 13px; }
.lf-task-item.done .lf-task-name { color: var(--sub); }
.lf-task-done-badge { flex: none; font-size: 12px; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* 账号关联弹窗 */
.lf-bind-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 320px; padding: 22px 20px; text-align: center; }
.lf-bind-title { font-size: 18px; font-weight: 700; }
.lf-bind-sub { color: var(--sub); font-size: 12px; margin: 8px 0 16px; line-height: 1.6; }
.lf-bind-qr { display: flex; justify-content: center; min-height: 160px; align-items: center; }
.lf-bind-qr img { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 8px; }
.lf-bind-status { font-size: 13px; color: #1677ff; font-weight: 600; margin: 12px 0 4px; }
.lf-mine-menu-tag { font-size: 12px; color: var(--primary); background: rgba(var(--primary-rgb, 255,107,107), 0.12); padding: 2px 8px; border-radius: 10px; }

/* 账号登录弹窗 */
.lf-login-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 320px; padding: 20px 20px 16px; text-align: center; }
.lf-login-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.lf-login-tabs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.lf-login-tab { flex: 1; padding: 9px 0; font-size: 14px; color: var(--sub); background: #fafafa; }
.lf-login-tab.active { background: #fff; color: var(--primary); font-weight: 700; }
.lf-login-pwd { display: flex; flex-direction: column; gap: 10px; }
.lf-input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; text-align: left; }
.lf-input:focus { border-color: var(--primary); }
.lf-login-err { color: #e85a5a; font-size: 13px; text-align: left; min-height: 16px; }
.lf-login-hint { color: var(--sub); font-size: 12px; line-height: 1.6; margin: 6px 0 2px; text-align: left; }
.lf-login-hint.lf-reg-hint { text-align: center; margin-top: 12px; }
.lf-login-scan .lf-bind-qr { margin: 4px 0; }
.lf-reg-captcha-row { display: flex; gap: 10px; align-items: stretch; }
.lf-reg-captcha-input { flex: 1; min-width: 0; }
.lf-reg-captcha-img { width: 120px; height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #f5f6fa; object-fit: cover; }
.lf-login-guest { color: #1677ff; font-size: 13px; margin: 12px 0 4px; text-decoration: underline; cursor: pointer; }
.lf-login-guest:active { color: #0e5fd8; }

/* 按钮 */
.lf-btn { display: block; width: 100%; padding: 11px; border-radius: 10px; font-size: 15px; margin: 8px 0; background: #f0f0f0; color: #333; }
.lf-btn-primary { background: var(--primary); color: #fff; }
.lf-btn-primary:active { background: var(--primary-d); }
.lf-btn-ad { background: linear-gradient(135deg, var(--ad), #ffbe76); color: #fff; }
.lf-btn-ghost { background: transparent; color: var(--sub); border: 1px solid var(--line); }
.lf-btn-mini { display: inline-block; width: auto; padding: 6px 14px; font-size: 13px; margin: 6px 0; }
.lf-btn-danger { background: #ffe3e3; color: #e74c3c; }
.lf-btn:disabled { opacity: 0.5; }

/* 广告弹窗 */
.lf-ad-modal { max-width: 340px; }
.lf-ad-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.lf-ad-close { color: var(--sub); font-size: 16px; }
.lf-ad-creative { height: 160px; border-radius: 10px; background: linear-gradient(135deg, #6a89cc, #4a69bd); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lf-ad-logo { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.lf-ad-count { text-align: center; color: var(--sub); margin: 14px 0; }

/* Toast */
.lf-toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; font-size: 14px; max-width: 80%; text-align: center; }
.lf-toast-success { background: rgba(46,204,113,0.92); }
.lf-toast-error { background: rgba(231,76,60,0.92); }
.lf-fade-enter-active, .lf-fade-leave-active { transition: opacity 0.25s; }
.lf-fade-enter-from, .lf-fade-leave-to { opacity: 0; }

/* 星级 */
.lf-stars { display: inline-flex; gap: 2px; font-size: 22px; color: #ddd; }
.lf-stars .lf-star.on { color: #ffb400; }
.lf-stars.readonly .lf-star { cursor: default; }

/* 通用区块 */
.block { background: var(--card); border-radius: 12px; padding: 12px; margin: 12px 0; }
.block-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; }
.block-more { color: var(--primary); font-size: 12px; font-weight: 400; }

/* 首页 */
.home-hero { background: linear-gradient(135deg, var(--primary), var(--ad)); color: #fff; border-radius: 14px; padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.home-points { font-size: 30px; font-weight: 800; }
.home-points-label { font-size: 12px; opacity: 0.9; }
.home-sign-btn { background: #fff; color: var(--primary); padding: 8px 14px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.cat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.cat-quick-item { flex: 0 0 auto; background: var(--card); border-radius: 18px; padding: 8px 14px; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.home-bottom-tip { text-align: center; color: var(--sub); font-size: 12px; margin: 20px 0 10px; }

/* 商品卡片 */
.goods-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.goods-card { flex: 0 0 110px; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goods-card-img { width: 100%; height: 110px; object-fit: cover; background: #f2f2f2; }
.goods-card-title { font-size: 12px; padding: 6px 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-card-point { font-size: 12px; color: var(--primary); padding: 0 8px 8px; font-weight: 600; }
.goods-card-foot { display: flex; justify-content: space-between; padding: 0 8px 8px; }
.goods-tag { font-size: 11px; color: #2ecc71; background: #eafaf1; border-radius: 4px; padding: 0 4px; }

/* 搜索 */
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; background: #fff; }
.search-btn { background: var(--primary); color: #fff; border-radius: 20px; padding: 0 18px; }

/* 分类 tabs */
.cat-tabs, .rank-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.cat-tab, .rank-tab { flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; background: #fff; font-size: 13px; color: #555; }
.cat-tab.active, .rank-tab.active { background: var(--primary); color: #fff; }

/* 详情页 */
.detail-topbar { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.detail-topbar .back { color: var(--primary); font-size: 16px; }
.detail-loading, .list-state, .detail-loading { text-align: center; color: var(--sub); padding: 30px 0; }
.detail-banner { width: 100%; border-radius: 12px; }
.detail-title { font-size: 18px; font-weight: 700; margin: 10px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--sub); font-size: 12px; margin-bottom: 12px; }
.detail-redeem { background: var(--card); border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 12px; }
.detail-cost { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.detail-tip { color: var(--sub); font-size: 12px; margin-top: 8px; }
.detail-links .link-item { display: flex; justify-content: space-between; align-items: center; background: #fafafa; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.link-label { font-weight: 600; }
.rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-content { font-size: 14px; line-height: 1.7; word-break: break-word; }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.lf-textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 70px; resize: vertical; }

/* 我的 */
.mine-head { background: linear-gradient(135deg, var(--primary), var(--ad)); color: #fff; border-radius: 14px; padding: 22px; text-align: center; }
.mine-head.mine-head-clickable { cursor: pointer; }
.mine-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid rgba(255,255,255,0.6); object-fit: cover; }
.mine-avatar-default { background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.mine-name { font-size: 17px; font-weight: 700; }
.mine-point { font-size: 13px; opacity: 0.9; margin-top: 2px; }
.mine-sign { background: var(--card); border-radius: 12px; padding: 14px; margin: 12px 0; text-align: center; font-weight: 600; color: var(--primary); }
.mine-menu { background: var(--card); border-radius: 12px; overflow: hidden; }
.mine-menu-item { display: flex; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-icon { font-size: 18px; width: 28px; }
.mine-menu-text { flex: 1; }
.mine-menu-arrow { color: var(--sub); }

/* 我的兑换 / 积分明细 */
.mg-list, .jf-list { background: var(--card); border-radius: 12px; overflow: hidden; }
.mg-item, .jf-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.mg-item:last-child, .jf-item:last-child { border-bottom: none; }
.mg-img, .rank-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; margin-right: 12px; background: #f2f2f2; }
.mg-info, .jf-info { flex: 1; }
.mg-title, .jf-title { font-weight: 600; }
.mg-sub, .jf-time { color: var(--sub); font-size: 12px; }
.jf-num { font-weight: 700; font-size: 16px; }
.jf-num.plus { color: #2ecc71; }
.jf-num.minus { color: var(--primary); }

/* 文章 */
.art-list { background: var(--card); border-radius: 12px; overflow: hidden; }
.art-item { display: flex; padding: 12px; border-bottom: 1px solid var(--line); }
.art-item:last-child { border-bottom: none; }
.art-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; margin-right: 12px; background: #f2f2f2; }
.art-title { font-weight: 600; }
.art-sub { color: var(--sub); font-size: 12px; margin-top: 4px; }
.ad-title { font-size: 20px; font-weight: 800; margin: 6px 0; }
.ad-time { color: var(--sub); font-size: 12px; margin-bottom: 12px; }
.ad-content { font-size: 14px; line-height: 1.7; word-break: break-word; }
.ad-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.ad-content h1, .ad-content h2, .ad-content h3,
.ad-content h4, .ad-content h5, .ad-content h6 { margin: 16px 0 8px; line-height: 1.4; font-weight: 700; }
.ad-content h1 { font-size: 22px; } .ad-content h2 { font-size: 19px; }
.ad-content h3 { font-size: 17px; } .ad-content h4 { font-size: 15px; }
.ad-content p { margin: 8px 0; }
.ad-content ul, .ad-content ol { padding-left: 22px; margin: 8px 0; }
.ad-content li { margin: 4px 0; }
.ad-content blockquote { margin: 10px 0; padding: 8px 12px; border-left: 4px solid var(--primary); background: #fff7f5; color: #555; border-radius: 0 8px 8px 0; }
.ad-content pre { background: #2d2d2d; color: #f8f8f2; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.ad-content code { background: #f3f3f3; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.ad-content pre code { background: none; padding: 0; }
.ad-content table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.ad-content th, .ad-content td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.ad-content a { color: var(--primary); text-decoration: none; }

/* 留言区 */
.ad-comment-section { margin-top: 16px; background: var(--card); border-radius: 12px; padding: 14px; }
.ad-comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ad-comment-title { font-size: 16px; font-weight: 700; }
.ad-comment-count { font-size: 12px; color: var(--sub); }

.comment-list { margin-top: 4px; }
.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex: none; width: 38px; height: 38px; }
.comment-avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.comment-user-name { font-size: 13px; font-weight: 600; color: var(--primary); }
.comment-time { font-size: 11px; color: var(--sub); flex: none; }
.comment-text { font-size: 14px; line-height: 1.6; margin-top: 4px; color: #333; word-break: break-word; white-space: pre-wrap; }

.comment-empty { text-align: center; padding: 26px 0 14px; color: var(--sub); }
.comment-empty-emoji { font-size: 30px; opacity: 0.5; margin-bottom: 6px; }
.comment-empty p { margin: 0; font-size: 13px; }

/* 留言输入区 */
.comment-editor { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment-editor-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.comment-input {
  flex: 1; min-height: 38px; max-height: 120px; resize: none;
  border: 1px solid var(--line); border-radius: 19px; padding: 9px 14px; font-size: 14px;
  background: #f7f7f9; line-height: 1.4;
}
.comment-input:focus { background: #fff; border-color: var(--primary); }
.comment-send {
  flex: none; height: 38px; padding: 0 18px; border-radius: 19px; background: #e6e6e6; color: #fff; font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.comment-send.active { background: linear-gradient(135deg, var(--primary), var(--ad)); }
.comment-send:disabled { opacity: 0.7; cursor: not-allowed; }


/* 排行榜（与小程序端一致） */
.ranking-content { padding: 4px 2px; }
.ranking-list { background: var(--card); border-radius: 12px; overflow: hidden; }
.ranking-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.ranking-item:last-child { border-bottom: none; }
.rank-number { width: 30px; flex: 0 0 auto; text-align: center; font-weight: 800; font-size: 16px; color: var(--sub); }
.rank-number.top { color: var(--primary); font-size: 19px; }
.game-info { flex: 1; display: flex; align-items: center; min-width: 0; }
.img-wrapper { position: relative; width: 52px; height: 52px; flex: 0 0 auto; margin-right: 12px; border-radius: 8px; overflow: hidden; }
.game-img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f2f2f2; }
.img-shine { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 55%); pointer-events: none; }
.game-details { flex: 1; min-width: 0; }
.game-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 4px; }
.meta-item { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: #f0f1f5; color: #888; }
.lang-tag { background: rgba(255,107,107,0.12); color: var(--primary); }
.type-tag { background: rgba(255,138,101,0.14); color: #ff7a45; }
.date-tag { background: #eef1f6; color: #97a0b0; }
.game-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--sub); }
.stat-item.highlight { color: var(--primary); font-weight: 600; }
/* 兼容旧 rank-* 类名（防止其它地方引用） */
.rank-list { background: var(--card); border-radius: 12px; overflow: hidden; }
.rank-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: none; }
.rank-no { width: 26px; font-weight: 800; color: var(--sub); text-align: center; }
.rank-no.top { color: var(--primary); }
.rank-info { flex: 1; }
.rank-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { color: var(--primary); font-weight: 700; }

/* 推荐测试 */
.rec-intro { text-align: center; color: var(--sub); margin-bottom: 14px; }
.rec-q { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.rec-q-title { font-weight: 600; margin-bottom: 10px; }
.rec-opts { display: flex; flex-direction: column; gap: 8px; }
.rec-opt { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.rec-opt.on { border-color: var(--primary); background: #fff0f0; color: var(--primary); font-weight: 600; }
.rec-result { text-align: center; background: var(--card); border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.rec-result-img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; }
.rec-result-name { font-size: 18px; font-weight: 800; color: var(--primary); }
.rec-result-desc { color: var(--sub); font-size: 13px; margin-top: 6px; }

/* 更新记录 */
.ul-list { background: var(--card); border-radius: 12px; padding: 6px 14px; }
.ul-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ul-item:last-child { border-bottom: none; }
.ul-date { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ul-content { font-size: 14px; }

/* 关于（与小程序端一致） */
.about-header { background: linear-gradient(135deg, #FF6B8B 0%, #FF4A75 100%); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; }
.about-header .logo { font-size: 60px; margin-bottom: 12px; }
.about-header .app-name { font-size: 20px; font-weight: 600; color: #fff; }
.about-header .version { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 6px; }
.about-content { padding: 16px; }
.about .section { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.about .section-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.about .section-content { font-size: 14px; color: #666; line-height: 1.8; }
.about .wechat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.about .wechat-item:last-child { border-bottom: none; }
.about .wechat-info { display: flex; align-items: center; gap: 10px; }
.about .social-icon { width: 28px; height: 28px; }
.about .social-desc { font-size: 14px; color: #333; }
.about .social-name { font-size: 12px; color: #999; }
.about .wechat-qrcode .qrcode-img { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line); }
.about .qrcode-center { display: flex; flex-direction: column; align-items: center; }
.about .qrcode-img-large { width: 160px; height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.about .qrcode-label { font-size: 12px; color: #999; margin-top: 8px; }
.about .contact-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.about .contact-icon { font-size: 18px; }
.about .contact-info { display: flex; flex-direction: column; }
.about .contact-label { font-size: 12px; color: #999; }
.about .contact-value { font-size: 14px; color: #333; }
.about-footer { text-align: center; padding: 20px; }
.about .copyright { font-size: 12px; color: #999; }

/* 编辑资料 */
.profile-box { background: var(--card); border-radius: 12px; padding: 18px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.profile-avatar-default { background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.profile-field { margin-bottom: 16px; }
.profile-field label { display: block; color: var(--sub); font-size: 12px; margin-bottom: 6px; }
.profile-field input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.avatar-list { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-opt { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; }
.avatar-opt.on { border-color: var(--primary); }

/* 合集 */
.coll-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.coll-item { background: var(--card); border-radius: 12px; padding: 16px; }
.coll-title { font-weight: 700; }
.coll-sub { color: var(--sub); font-size: 12px; margin-top: 4px; }

.load-more { display: block; width: 100%; padding: 12px; background: transparent; color: var(--sub); font-size: 13px; text-align: center; }

/* ============================================================
   小程序风格 · H5 首页 / 我的（复刻小程序布局）
   PC 端仅做轻量换肤，见下方媒体查询。
   ============================================================ */

/* 顶部搜索栏（复刻小程序） */
.search-bar {
  display: flex; align-items: center;
  background-color: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); margin-bottom: 12px;
  min-width: 0;
}
.search-input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 3px 8px 0 8px; font-size: 14px;
  color: #333; border: none; outline: none; background-color: transparent;
}
.search-input::placeholder { color: #999; }
.search-btn {
  flex: 0 0 auto; min-width: 56px; height: 36px; padding: 0 12px; background: linear-gradient(135deg, #FF5D66 0%, #FF8A65 100%);
  color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; margin-left: 8px;
}

/* banner 轮播 */
.banner_box {
  width: 100%; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); margin-bottom: 10px; position: relative;
}
.banner-swiper {
  width: 100%; display: flex; overflow: hidden;
  transition: transform 0.45s ease;
}
.banner-item { flex: 0 0 100%; width: 100%; height: 160px; position: relative; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.banner-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.6);
  cursor: pointer; transition: background 0.2s, width 0.2s;
}
.banner-dot.on { background: #fff; width: 18px; border-radius: 4px; }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-title-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; padding: 0 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.banner-title { font-size: 14px; color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 游戏入口宫格（图标+文字，图标自适应大小） */
.index_list { width: 100%; box-sizing: border-box; display: flex; align-items: stretch; margin-top: 10px; gap: 6px; background: var(--card); border-radius: 12px; padding: 8px; overflow: hidden; }
.index_list .idx_li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; cursor: pointer; min-width: 0; }
.index_list .idx_icon { width: clamp(36px, 13vw, 56px); height: clamp(36px, 13vw, 56px); max-width: 70%; object-fit: contain; display: block; margin-bottom: 6px; transition: transform 0.2s; }
.index_list .idx_icon:active { transform: scale(0.92); }
.index_list .idx_label { font-size: 12px; color: #333; text-align: center; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.index_list .libg { display: none; } /* 旧整图块样式保留，未使用 */

/* 玩家推荐（转置自小程序 pages/recommendations） */
.page.recommendations-page { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); min-height: 100vh; padding-bottom: 24px; }
.recommendations-page .detail-topbar, .recommendations-page .detail-topbar .back { color: #fff; }
.rec-header { position: relative; padding: 12px 16px 24px; text-align: center; overflow: hidden; }
.rec-bg { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.3; pointer-events: none; }
.rec-bg-1 { width: 200px; height: 200px; background: linear-gradient(135deg,#667eea,#764ba2); top: -50px; right: -50px; }
.rec-bg-2 { width: 150px; height: 150px; background: linear-gradient(135deg,#f093fb,#f5576c); bottom: 40px; left: -50px; }
.rec-bg-3 { width: 175px; height: 175px; background: linear-gradient(135deg,#4facfe,#00f2fe); bottom: -50px; right: 50px; }
.rec-title { position: relative; font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(255,74,117,0.3); background: linear-gradient(135deg,#fff 0%,#ffd1dc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
.rec-subtitle { position: relative; font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }
.rec-random { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; padding: 6px 12px; background: rgba(100,100,100,0.25); backdrop-filter: blur(6px); border-radius: 20px; border: 1px solid rgba(128,128,128,0.45); font-size: 12px; color: rgba(200,200,200,0.9); font-weight: 600; cursor: pointer; z-index: 2; transition: all 0.25s; }
.rec-random.on { background: linear-gradient(135deg,rgba(255,107,139,0.35),rgba(255,74,117,0.35)); border-color: #FF6B8B; color: #FFD1DC; box-shadow: 0 0 14px rgba(255,107,139,0.4); }
.rec-list-wrap { padding: 0 0 20px; }
.rec-loading, .rec-empty { background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); border-radius: 12px; padding: 50px 20px; text-align: center; color: rgba(255,255,255,0.85); margin-top: 12px; }
.rec-spinner { position: relative; width: 40px; height: 40px; margin: 0 auto 14px; }
.rec-spinner div { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid transparent; border-top-color: #FF6B8B; animation: rec-spin 1s linear infinite; box-sizing: border-box; }
.rec-spinner div:nth-child(2) { width: 70%; height: 70%; top: 15%; left: 15%; border-top-color: #667eea; animation-duration: 0.8s; animation-direction: reverse; }
.rec-spinner div:nth-child(3) { width: 40%; height: 40%; top: 30%; left: 30%; border-top-color: #FFD700; animation-duration: 0.6s; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
.rec-loading-text { font-size: 14px; }
.rec-empty-icon { font-size: 48px; margin-bottom: 14px; }
.rec-empty-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.rec-empty-hint { font-size: 13px; color: rgba(255,255,255,0.7); }
.rec-item { background: rgba(255,255,255,0.96); border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: transform 0.15s; }
.rec-item:active { transform: scale(0.985); }
.rec-game { display: flex; align-items: flex-start; margin-bottom: 10px; }
.rec-img { position: relative; width: 68px; height: 68px; border-radius: 8px; margin-right: 10px; flex-shrink: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.15); background: #eee; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.rec-game-info { flex: 1; min-width: 0; }
.rec-game-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 6px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.rec-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.rec-tag.tag-lang { color: #ff0000; background: linear-gradient(135deg,#fff0f0,#ffe0e0); }
.rec-tag.tag-type { color: #5c6bc0; background: linear-gradient(135deg,#e8eaf6,#c5cae9); }
.rec-tag.tag-date { color: #666; background: linear-gradient(135deg,#f0f1f5,#e4e6eb); font-size: 12px; padding: 3px 7px; }
.rec-stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rec-stat { font-size: 12px; color: #666; background: #f7f8fc; padding: 3px 7px; border-radius: 10px; }
.rec-stat.stat-rating { background: linear-gradient(135deg,#FFF3E0,#FFE0B2); color: #E65100; border-radius: 4px; }
.rec-content { position: relative; background: linear-gradient(135deg,#f8f9ff,#f0f2ff); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.rec-quote { position: absolute; font-size: 28px; color: #FF6B8B; opacity: 0.3; font-family: Georgia, serif; line-height: 1; }
.rec-quote:not(.close) { top: 4px; left: 8px; }
.rec-quote.close { bottom: -2px; right: 8px; }
.rec-text { font-size: 14px; color: #444; line-height: 1.7; padding: 0 10px; word-break: break-all; }
.rec-footer { display: flex; justify-content: space-between; align-items: center; }
.rec-user { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rec-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#FF6B8B,#FF4A75); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(255,74,117,0.3); flex-shrink: 0; }
.rec-username { font-size: 13px; color: #FF4A75; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-time { font-size: 11px; color: #999; flex-shrink: 0; }

/* PC 端：金刚区图标更大 + 玩家推荐列表居中 */
@media (min-width: 768px) {
  .index_list .idx_icon { width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); }
  .index_list .idx_label { font-size: 14px; }
  .rec-list-wrap { max-width: none; margin: 0; }
}
@media (min-width: 1200px) {
  .index_list .idx_icon { width: 60px; height: 60px; }
  .rec-list-wrap { max-width: none; }
}


/* 内容标签页 */
.content-tabs-container { background: #fff; border-radius: 16px; margin: 16px 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); overflow: hidden; }
.tabs-header { display: flex; align-items: center; padding: 0 12px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.tabs-nav { display: flex; align-items: center; width: 100%; }
.tab-item { position: relative; padding: 14px 0; margin-right: 22px; flex: 1; text-align: center; }
.tab-item:last-child { margin-right: 0; }
.tab-text { font-size: 15px; color: #666; }
.tab-item.active .tab-text { color: #FF5D66; font-weight: 600; }
.tab-line { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; background: linear-gradient(135deg, #FF5D66 0%, #FF8A65 100%); border-radius: 2px; }
.tab-content { background: #fff; padding: 4px 0; }

/* 文章列表（复刻小程序 article-item） */
.article-list { display: flex; flex-direction: column; }
.article-item { display: flex; align-items: flex-start; padding: 12px; border-bottom: 1px solid #f5f5f5; position: relative; cursor: pointer; }
.article-item:last-child { border-bottom: none; }
.article-item.top-article { background: #fffaf5; }
.article-item .top-badge { position: absolute; left: 6px; top: 6px; z-index: 2; width: 34px; height: 34px; object-fit: contain; }
.article-item-cover { width: 110px; height: 74px; border-radius: 8px; overflow: hidden; flex-shrink: 0; margin-right: 12px; background: #f2f2f2; }
.article-cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-item-title { margin-bottom: 6px; }
.article-item-title .title-text { font-size: 15px; font-weight: 600; color: #333; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item-summary { font-size: 12px; color: #999; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-info { flex: 1; min-width: 0; }

/* 游戏竖向列表（复刻小程序 game-item） */
.game-list { display: flex; flex-direction: column; }
.game-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.game-item:last-child { border-bottom: none; }
.game-item .img-wrapper { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; margin-right: 12px; flex-shrink: 0; background: #f2f2f2; }
.game-img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; display: block; background: #f2f2f2; }
.game-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.game-title { font-size: 15px; font-weight: 500; color: #333; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; margin-right: 8px; }
.match-rate { display: flex; align-items: center; flex-shrink: 0; }
.match-icon { color: #FF5D66; font-size: 12px; margin-right: 2px; }
.match-value { font-size: 12px; color: #FF5D66; }
.game-eng-title { font-size: 12px; color: #999; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.game-tags .point-tag { display: inline-flex; align-items: center; background: #fff4f0; border-radius: 4px; padding: 1px 6px; }
.game-tags .point-icon { width: 14px; height: 14px; margin-right: 3px; }
.game-tags .point-value { font-size: 12px; color: #FF5D66; font-weight: 600; }
.game-tags .lang-tag { font-size: 11px; color: #2f9e44; background: #ebfbee; border-radius: 4px; padding: 1px 6px; }
.game-tags .type-tag { font-size: 11px; color: #4A90E2; background: #eef5ff; border-radius: 4px; padding: 1px 6px; }
.game-tags .date-tag { font-size: 11px; color: #999; background: #f5f5f5; border-radius: 4px; padding: 1px 6px; }

/* 触底加载哨兵（IntersectionObserver 观察，无需视觉；所有列表页复用） */
.home-sentinel, .dynamic-sentinel { min-height: 1px; }

/* 资源库 / 合集 · 分类 tab（复刻小程序 tabs-container） */
.tabs-container { display: flex; align-items: center; overflow-x: auto; gap: 4px; padding: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.tabs-container::-webkit-scrollbar { display: none; }
.tabs-container .tab-item { flex: 0 0 auto; margin-right: 0; padding: 5px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
/* 资源库 / 合集 · 列表白色卡片背景（对齐"我的"页 menu-list），与页面背景区分 */
.goods-list .game-list { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); overflow: hidden; }
.tabs-container .tab-item .tab-text { font-size: 13px; color: #666; }
.tabs-container .tab-item.active { background: linear-gradient(135deg, #FF5D66 0%, #FF8A65 100%); border-color: transparent; }
.tabs-container .tab-item.active .tab-text { color: #fff; font-weight: 500; }

/* 我的 · 用户卡（复刻小程序 mine user-section） */
.user-section { background: linear-gradient(135deg, #FF6B8B 0%, #FF4A75 100%); padding: 30px 16px 20px; }
.user-header { display: flex; align-items: center; }
.avatar-container { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-id-row { display: flex; align-items: center; margin-bottom: 4px; line-height: 1.4; }
.user-id-label { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin-right: 4px; }
.user-id-label-bold { font-weight: 600; }
.user-id { font-size: 13px; color: rgba(255, 255, 255, 0.95); font-family: 'Courier New', monospace; }
.copy-btn { height: 20px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.2); border-radius: 6px; margin-left: 8px; padding: 0 8px; }
.copy-text { font-size: 11px; color: #fff; }
.user-nickname { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.user-level-row { display: flex; align-items: center; }
.user-level { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.user-level-label-bold { font-weight: 600; }
.edit-profile-btn { flex-shrink: 0; margin-left: auto; padding: 4px; }
.edit-profile-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.login-btn { background: rgba(255, 255, 255, 0.2); padding: 8px 18px; border-radius: 18px; flex-shrink: 0; }
.login-btn span { font-size: 13px; color: #fff; }

/* 我的 · 积分 & 兑换（复刻小程序 points-section） */
.points-section { margin: 12px; background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); }
.points-item { flex: 1; display: flex; align-items: center; }
.points-icon-wrap { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-right: 10px; }
.points-icon { width: 30px; height: 30px; }
.points-emoji { font-size: 26px; }
.points-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.points-value { font-size: 20px; font-weight: 700; color: #FF6B8B; line-height: 1.2; white-space: nowrap; }
.points-label { font-size: 12px; color: #999; margin-top: 2px; }
.points-arrow { font-size: 18px; color: #ccc; margin-left: 6px; }
.points-divider { width: 1px; height: 40px; background: #f0f0f0; margin: 0 16px; }

/* 我的 · 菜单列表（复刻小程序 menu-section） */
.menu-section { padding: 12px; }
.menu-list { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); }
.menu-item { padding: 16px; display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; }
.menu-item:last-child { border-bottom: none; }
.menu-icon-img { width: 22px; height: 22px; margin-right: 12px; }
.menu-icon { font-size: 20px; margin-right: 12px; }
.menu-text { flex: 1; font-size: 15px; color: #333; }
.menu-arrow { font-size: 18px; color: #ccc; }
.logout-item .menu-text { color: #e74c3c; }

/* ============================================================
   游戏库 / 更新日志 · 表格 + 筛选 + 弹窗（复刻小程序 game-list.wxss）
   rpx→px 按 750 视口≈750 容器 近似 1:1
   ============================================================ */

/* 搜索栏内的重置 / 筛选按钮 */
.gl-search .reset-btn { width: 52px; height: 36px; background-color: #6c757d; color: #fff; border: none; border-radius: 8px; font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.gl-search .filter-btn { min-width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; margin-left: 8px; padding: 0 10px; background: #f5f5f5; border-radius: 8px; color: #FF5D66; font-size: 13px; font-weight: 500; flex-shrink: 0; cursor: pointer; }

/* 表头 */
.log-header { display: flex; background-color: #f5f5f5; padding: 10px 0; font-weight: 600; border-bottom: 1px solid #eee; border-radius: 8px 8px 0 0; }
/* 列表 */
.log-list { display: flex; flex-direction: column; background: #fff; border-radius: 0 0 8px 8px; overflow: hidden; }
.log-item { display: flex; width: 100%; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.log-item:last-child { border-bottom: none; }
.bg-white { background-color: #ffffff; }
.bg-gray { background-color: #f8f9fa; }
/* 列 */
.col { font-size: 13px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; box-sizing: border-box; color: #333; }
.col-id { width: 70px; flex: none; padding-left: 12px; }
.col-name { width: 40%; flex: none; padding-left: 12px; }
.col-en-name { width: 34%; flex: none; }
.col-time { flex: 1; min-width: 70px; }

/* 空状态 / 加载更多 */
.log-list .empty-tip { padding: 30px 0; text-align: center; font-size: 14px; color: #999; }
.log-list .load-more { text-align: center; font-size: 12px; color: #999; padding: 15px 0; }
.load-more-btn { display: block; width: 100%; padding: 12px; background: transparent; color: var(--sub); font-size: 13px; border: none; cursor: pointer; }

/* 筛选弹窗 */
.filter-modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 998; }
.filter-modal { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); max-height: 60vh; background-color: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 999; display: flex; flex-direction: column; animation: gl-slideDown 0.3s ease-out; }
@keyframes gl-slideDown { from { transform: translate(-50%, -100%); } to { transform: translate(-50%, 0); } }
.filter-modal-header { display: flex; justify-content: center; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eee; background-color: #f5f5f5; position: relative; }
.filter-modal-title { font-size: 15px; font-weight: 600; color: #333; }
.filter-modal-close { position: absolute; top: 6px; right: 10px; font-size: 22px; color: #666; width: 30px; height: 30px; line-height: 30px; text-align: center; cursor: pointer; }
.filter-modal-content { flex: 1; padding: 12px 16px; overflow-y: auto; }
.filter-section { margin-bottom: 14px; }
.filter-label { display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 8px; }
.filter-options, .filter-type-options { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-option, .filter-type-option { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 7px 14px; font-size: 12px; color: #333; text-align: center; box-sizing: border-box; cursor: pointer; }
.filter-option.active, .filter-type-option.active { background-color: #FF5D66; color: #fff; border-color: #FF5D66; }
.filter-date { display: flex; align-items: center; gap: 10px; }
.date-picker { flex: 1; height: 34px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; font-size: 12px; background: #fff; color: #333; }
.date-separator { font-size: 12px; color: #666; white-space: nowrap; }
.filter-tip { font-size: 11px; color: #999; margin-top: 6px; display: block; }
.filter-modal-footer { padding: 12px 16px; border-top: 1px solid #eee; background-color: #f5f5f5; display: flex; gap: 10px; }
.filter-action-btn { flex: 1; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; }
.filter-action-btn.reset { background-color: #f0f0f0; color: #333; border: 1px solid #ddd; }
.filter-action-btn.apply { background-color: #FF5D66; color: #fff; }

/* 详情弹窗 */
.modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; }
.modal-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88%; max-width: 400px; background-color: #fff; border-radius: 12px; z-index: 1000; overflow: hidden; }
.modal-header { display: flex; justify-content: center; align-items: center; background-color: #FF5D66; color: #fff; height: 44px; position: relative; }
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close { position: absolute; right: 0; top: 0; width: 44px; height: 44px; line-height: 44px; text-align: center; background: transparent; color: #fff; border: none; font-size: 22px; cursor: pointer; }
.modal-content { padding: 14px; max-height: 60vh; overflow-y: auto; }
.detail-item { display: flex; flex-wrap: wrap; margin-bottom: 10px; align-items: flex-start; }
.detail-label { font-size: 13px; color: #666; min-width: 76px; margin-right: 8px; }
.detail-label.bold { font-weight: bold; }
.detail-value { font-size: 13px; color: #333; flex: 1; }
.all-logs-list { width: 100%; margin-top: 8px; background-color: #f8f9fa; padding: 10px; border-radius: 8px; }
.log-item-detail { margin-bottom: 8px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; }
.log-item-detail:last-child { margin-bottom: 0; }
.log-bg-white { background-color: #ffffff; }
.log-bg-gray { background-color: #f0f0f0; }
.log-time { font-size: 12px; color: #FF5D66; font-weight: 500; }
.log-content { font-size: 12px; color: #333; }
.no-log-tip { text-align: center; font-size: 12px; color: #999; padding: 12px 0; }
.modal-footer { padding: 14px; border-top: 1px solid #eee; text-align: center; }
.nav-btn { width: 100%; height: 42px; line-height: 42px; background-color: #FF5D66; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.nav-btn:active { background-color: #E04F58; }

/* ============================================================
   响应式 · PC 宽屏适配
   移动端布局完全不变；仅在 ≥768px 宽屏下增强为桌面布局。
   ============================================================ */

/* 平板及以上：进入 PC 增强 */
@media (min-width: 768px) {
  :root { --maxw: 1000px; }

  body { background: #e9ebf0; }

  /* 居中「窗口」卡片，两侧留白 + 阴影，更像桌面应用 */
  #app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.10);
    min-height: 100vh;
  }

  /* PC：导航仍在底部（与手机一致），仅加宽容器 + 底部留白 */
  .lf-page { padding-bottom: calc(var(--tab-h) + 16px); padding-top: 0; }
  .lf-page.no-nav { padding-top: 0; }

  /* 签到悬浮按钮保持在底部导航之上 */
  .lf-sign-float { right: 20px; bottom: calc(var(--tab-h) + 20px); }

  /* 商品网格 4 列 */
  .goods-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .goods-card-img { height: 150px; }

  /* 合集 3 列 */
  .coll-list { grid-template-columns: repeat(3, 1fr); }

  /* 弹窗 / 模态加宽 */
  .lf-sign-panel, .lf-ad-modal, .lf-bind-modal, .lf-login-modal { max-width: 440px; padding: 26px; }
  .lf-bind-qr img { width: 200px; height: 200px; }

  /* 首页 hero 更舒展 */
  .home-hero { padding: 28px; }
  .home-points { font-size: 40px; }

  /* 正文中线宽限制，避免长行难读 */
  .detail-content, .ad-content { max-width: 820px; margin-left: auto; margin-right: auto; }

  /* PC 鼠标交互 */
  .lf-btn { transition: filter .15s, transform .1s; }
  .lf-btn:hover { filter: brightness(1.03); }
  .lf-btn:active { transform: translateY(1px); }
  .goods-card { transition: box-shadow .15s, transform .1s; }
  .goods-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
  .cat-quick-item:hover, .cat-tab:hover, .rank-tab:hover,
  .mine-menu-item:hover, .art-item:hover, .mg-item:hover, .jf-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  /* PC 轻量换肤：顶部导航门户化（参考 ns45 视觉，不重排结构） */
  .lf-tabbar {
    background: linear-gradient(135deg, #FF5D66 0%, #FF4A75 100%);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
  .lf-tab { color: rgba(255, 255, 255, 0.85); }
  .lf-tab.active { color: #fff; }
  .lf-tab-text { font-size: 15px; }
  .lf-tab-icon { filter: brightness(0) invert(1); opacity: 0.85; }
  .lf-tab.active .lf-tab-icon { opacity: 1; }

  /* 首页 banner / 入口在 PC 上更舒展 */
  .banner-item { height: 240px; }

  /* 区块标题加品牌色点缀（ns45 风） */
  .tabs-header { border-bottom: 2px solid #f0f0f0; }
  .tab-item { padding: 16px 0; }
  .tab-text { font-size: 16px; }

  /* 卡片轻阴影增强（金刚区项除外——不要单独卡片框，整体一个外框就够了） */
  .goods-card, .art-item, .game-item, .menu-list, .points-section, .banner_box {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

/* 桌面大屏：进一步加宽、网格 5 列 */
@media (min-width: 1200px) {
  :root { --maxw: 1200px; }
  .goods-grid { grid-template-columns: repeat(5, 1fr); }
  .coll-list { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   游戏详情页（完全对齐小程序 goods_xq，rpx ÷ 2 = px）
   ============================================================ */

/* 轮播 + 游戏表现栏 合并为同一背景框（hero-card） */
.hero-card {
  background: #fff;
  border-radius: 8px;            /* 16rpx */
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);  /* 2rpx 12rpx */
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 10px;           /* 20rpx */
}
/* 游戏详情页内 banner 不单独成卡，融入 hero-card */
.gd-page .banner_box { background: transparent; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }

/* 截图轮播 */
.gd-swiper { width: 100%; height: 210px; position: relative; overflow: hidden; }
.gd-swiper-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.gd-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); transition: background .2s, width .2s; }
.gd-dot.on { background: #fff; width: 18px; border-radius: 4px; }

/* 标题 + 标签栏（goodstmsg，融入 hero-card，透明背景） */
.goodstmsg { width: 100%; background: transparent; padding: 12px; box-sizing: border-box; }
.title_box { display: flex; line-height: 25px; }
.goods_name { font-size: 17px; font-weight: bold; color: #333; display: flex; align-items: center; }
.goods_num { font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.goods_num img.link_img { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; margin-right: 0; }
.point-tag { font-size: 14px; color: #5c6bc0; background: #e8eaf6; padding: 3px 8px; border-radius: 4px; display: inline-flex; align-items: center; height: 20px; box-sizing: border-box; }
.point-tag .point-icon { width: 14px; height: 14px; margin-right: 4px; }
.type-tag { font-size: 11px; color: #5c6bc0; background: #e8eaf6; padding: 0 6px; border-radius: 4px; height: 20px; display: inline-flex; align-items: center; box-sizing: border-box; }
.lang-tag { font-size: 11px; color: #ff0000; background: #fff0f0; padding: 0 6px; border-radius: 4px; height: 20px; display: inline-flex; align-items: center; box-sizing: border-box; }

/* 基本信息 / 简介卡片（info-card） */
.info-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); padding: 12px; margin-bottom: 10px; box-sizing: border-box; }
.text_left { width: 100%; text-align: left; line-height: 1.7; font-size: 14px; color: #333; margin-bottom: 12px; padding: 0; word-break: break-word; }
.gd-info { margin-top: 0; }
.gd-info > div { margin-bottom: 6px; font-size: 14px; line-height: 1.7; color: #333; }
.gd-info-label { font-weight: bold; color: #333; margin-right: 4px; }

/* 居中装饰标题（— 文字 —） */
.hidden-section-title-center { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.hidden-section-title-line { font-size: 14px; color: #999; margin: 0 6px; }
.hidden-section-title-text { font-size: 15px; font-weight: 600; color: #333; }

/* 隐藏内容标题：与其他标题同尺寸，仅用主题色区分 */
.hidden-section-title-accent { margin: 4px 0 18px; }
.hidden-section-title-accent .hidden-section-title-text { color: #FF5D66; }
.hidden-section-title-accent .hidden-section-title-line { color: #FF5D66; }

/* 隐藏内容区域（白卡框体） */
.hidden-content-area { margin-top: 10px; background: #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); padding: 16px 12px; box-sizing: border-box; }
.expanded-content { padding-top: 8px; }

/* 折叠提示（未兑换） */
.collapsed-content { padding: 14px 12px; background: #fafafa; border-radius: 8px; text-align: center; }
.collapsed-hint { margin-bottom: 8px; }
.collapsed-hint-sub { margin-bottom: 0; }
.collapsed-text { font-size: 14px; line-height: 1.6; }
.collapsed-text-primary { color: #ff5d66; }
.collapsed-text-sub { color: #ff5d66; font-size: 13px; }
.expand-link { display: inline-block; margin-top: 8px; font-size: 14px; color: #FF5D66; text-decoration: underline; font-weight: 500; cursor: pointer; }

/* 隐藏内容内小节白卡框体（用户评分 / 版本信息 / 下载链接） */
.hidden-section { margin-bottom: 8px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.hidden-section-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }

/* 评分 */
.rating_box { margin: 10px 0; padding: 10px; background-color: #f9f9f9; border-radius: 5px; }
.average_rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.average_rating > span:first-child { font-weight: bold; color: #FF5D66; }
.gd-stars { position: relative; display: inline-block; font-size: 20px; line-height: 1; white-space: nowrap; }
.gd-stars-bg { color: #E0E0E0; }
.gd-stars-fg { position: absolute; top: 0; left: 0; color: #FFD700; overflow: hidden; white-space: nowrap; }
.rating_text { font-size: 13px; font-weight: bold; color: #999; }
.rating_tip { color: #999; font-size: 13px; font-weight: bold; }
.rating-tip-click { cursor: pointer; color: #FF5D66; }
.recommend_btn { width: 100%; height: 42px; background: linear-gradient(135deg, #FF6B8B 0%, #FF4A75 100%); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-top: 12px; box-shadow: 0 4px 12px rgba(255,74,117,0.2); cursor: pointer; }
.recommend_btn_disabled { background: #E5E5E5; color: #999; box-shadow: none; cursor: default; }

/* 版本信息 */
.version_info { background: #F5F5F5; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.version-item { display: flex; align-items: center; margin-bottom: 8px; }
.version-item:last-of-type { margin-bottom: 10px; }
.version-label { font-size: 14px; font-weight: 600; color: #333; margin-right: 5px; }
.version-value { font-size: 14px; color: #666; background: #fff; padding: 3px 8px; border-radius: 4px; flex: 1; }
.link_btn_wrapper { display: flex; justify-content: center; padding: 6px 0; }
.link_btn { font-size: 13px; color: #FF5D66; text-decoration: underline; cursor: pointer; }

/* 反馈卡片 */
.feedback-card { background: linear-gradient(135deg, #fffbe6 0%, #fff8dc 100%); border: 1px solid #ffe066; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.feedback-card-content { display: flex; align-items: flex-start; gap: 8px; }
.feedback-icon { width: 24px; height: 24px; background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feedback-icon-text { font-size: 14px; }
.feedback-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.feedback-link { font-size: 14px; color: #1989fa; font-weight: 500; cursor: pointer; }
.feedback-tip { font-size: 12px; color: #999; line-height: 1.5; }

/* 下载链接卡片 */
.link-card { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.link-card-header { display: flex; align-items: center; padding: 10px 12px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.link-icon { width: 24px; height: 24px; margin-right: 8px; border-radius: 4px; }
.link-name { font-size: 15px; font-weight: 600; color: #333; }
.link-card-body { display: flex; align-items: center; padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
.link-label { font-size: 13px; color: #999; flex-shrink: 0; }
.link-url { font-size: 13px; color: #666; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 90px); }
.copy-button { background: linear-gradient(135deg, #07c160 0%, #52d59b 100%); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 12px; flex-shrink: 0; cursor: pointer; }
.copy-button:active { transform: scale(0.96); }
.no-link-tip { background: #fff; border-radius: 8px; border: 1px solid #e8e8e8; padding: 12px; font-size: 13px; color: #666; line-height: 1.6; }

/* 正文结束提示 */
.article-end-tip { text-align: center; padding: 24px 0; margin-top: 16px; border-top: 1px solid #f0f0f0; }
.article-end-text { font-size: 13px; color: #999; font-style: italic; }

/* 游戏详情页整体背景严格对齐小程序 wrap_box（#f5f5f5） */
.gd-page { background: #f5f5f5; min-height: 100vh; }

/* 评分弹窗星星（可点击，支持半星） */
.rating_section { padding: 18px 0; text-align: center; }
.rating_label { display: block; font-size: 14px; margin-bottom: 12px; }
.rating_stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.gd-star { position: relative; display: inline-block; width: 1em; height: 1em; font-size: 30px; line-height: 1; cursor: pointer; }
.gd-star-bg { color: #E0E0E0; }
.gd-star-fg { position: absolute; top: 0; left: 0; color: #FFD700; overflow: hidden; white-space: nowrap; }
.rating_text { font-size: 14px; font-weight: 700; color: #999; }

/* 推荐弹窗 */
.recommend_section { padding: 12px 0; }
.recommend_label { display: block; font-size: 14px; margin-bottom: 10px; color: #333; }
.recommend_input { width: 100%; height: 120px; padding: 10px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 14px; line-height: 1.5; resize: none; box-sizing: border-box; margin-bottom: 6px; font-family: inherit; }
.recommend_count { font-size: 13px; color: #999; text-align: right; display: block; }

/* 兑换确认内容 */
.confirm_content { text-align: center; padding: 12px 0; font-size: 14px; font-weight: 700; color: #fa7f0c; }

/* 推荐询问 */
.rec-ask { padding: 14px 0; }
.rec-ask .text_top { text-align: center; padding: 6px 0; font-size: 15px; color: #090909; }
.rec-ask .text_buttom { color: #fa7f0c; font-weight: 700; }
.modal_footer_1 { padding: 14px; border-top: 1px solid #eee; display: flex; flex-direction: row; justify-content: space-between; }
.nav_btn_1 { height: 42px; line-height: 42px; color: #fff; border: none; border-radius: 8px; font-size: 14px; text-align: center; cursor: pointer; }

/* 更新记录弹窗列表（下划线命名，独立于页面列表） */
.all_logs_list { width: 100%; margin-top: 8px; background-color: #f8f9fa; padding: 10px; border-radius: 8px; }
.log_item_detail { margin-bottom: 8px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; }
.log_item_detail:last-child { margin-bottom: 0; }
.log_bg_white { background-color: #ffffff; }
.log_bg_gray { background-color: #f0f0f0; }
.log_time { font-size: 12px; color: #FF5D66; font-weight: 500; }
.log_content { font-size: 12px; color: #333; }
.no_log_tip { text-align: center; font-size: 12px; color: #999; padding: 12px 0; }

/* 游戏详情页内联返回栏间距 */
.gd-page .detail-topbar { margin-bottom: 12px; }

/* ============ 用户反馈页 ============ */
.feedback-page { padding: 12px; }
.fb-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.fb-block { margin-bottom: 18px; }
.fb-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.fb-req { color: #FF5D66; margin-left: 2px; }
.fb-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.fb-radio {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}
.fb-radio input { margin-right: 5px; accent-color: #FF5D66; }
.fb-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  outline: none;
}
.fb-input:focus { border-color: #FF8A65; }
.fb-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}
.fb-submit {
  width: 100%;
  margin-top: 4px;
}
.fb-submit[disabled] { opacity: .6; }


/* ============ 仅微信打开遮罩 ============ */
.wx-gate {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(135deg, #2b2f3a, #1c1f27);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.wx-gate-box { text-align: center; color: #fff; max-width: 300px; }
.wx-gate-icon { font-size: 56px; margin-bottom: 18px; }
.wx-gate-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.wx-gate-sub { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.wx-gate-loading { background: var(--bg); }
.wx-gate-spinner {
  width: 34px; height: 34px; border: 3px solid var(--line);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ 全局返回顶部按钮（在 .lf-fab-group 内，位于签到下方、尺寸小 1/3） ============ */
.lf-backtop {
  position: static;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,107,0.3);
  transition: opacity .2s, transform .2s;
}
.lf-backtop:active { transform: scale(0.95); }

/* ============ 京东转链失败常驻提示横幅 ============ */
.jd-error-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9999;
  display: flex; align-items: flex-start; gap: 8px;
  background: #fff3f3; border-bottom: 2px solid #ff4d4f;
  color: #cf1322; padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(255,77,79,0.25);
  font-size: 13px; line-height: 1.5;
}
.jd-error-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.jd-error-body { flex: 1; min-width: 0; }
.jd-error-title { font-weight: 700; margin-bottom: 2px; }
.jd-error-reason {
  word-break: break-all; white-space: pre-wrap;
  background: #fff; border: 1px solid #ffccc7; border-radius: 6px;
  padding: 6px 8px; color: #a8071a; font-size: 12px;
  max-height: 120px; overflow-y: auto;
}
.jd-error-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.jd-error-btn {
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
  background: #ff4d4f; color: #fff; font-weight: 600;
}
.jd-error-close { background: #fff; color: #cf1322; border: 1px solid #ffccc7; }

/* ============ 全局站点底部备案号（所有页面底部） ============ */
.web-site-footer {
  text-align: center;
  padding: 14px 16px 18px;
  font-size: 12px;
  color: #9aa0a6;
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--line, #eee);
  line-height: 1.5;
}
.web-site-footer .beian-no { letter-spacing: 0.2px; }
/* 有底部 tabBar 时给 footer 留出空间，避免被遮挡 */
.lf-app:has(.lf-tabbar) .web-site-footer { padding-bottom: calc(18px + 56px); }

/* PC 宽屏适配 */
@media (min-width: 768px) {
  .web-site-footer { font-size: 13px; padding: 18px 16px 22px; }
}

/* ===================== 文章详情页标题区美化 ===================== */
.ad-article-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.ad-article-cover {
  width: 100%;
  height: 184px;
  overflow: hidden;
  background: #f0f2f5;
}
.ad-article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-article-header {
  position: relative;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}
/* 顶部主色渐变装饰条 */
.ad-article-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FF6B6B, #FF8A65);
}
.ad-article-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
  color: #1f2329;
  letter-spacing: 0.2px;
}
.ad-title-text {
  flex: 1;
  min-width: 0;
}
/* 置顶胶囊标签 */
.ad-top-tag {
  flex-shrink: 0;
  align-self: center;
  background: linear-gradient(135deg, #FF6B6B, #FF8A65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(255,107,107,0.32);
}
.ad-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--sub);
  font-size: 13px;
}
.ad-meta-item { display: inline-flex; align-items: center; }
.ad-meta-dot { color: #d8d8d8; }
.ad-article-body { padding: 4px 16px 16px; }
/* 公众号引用提示条 */
.ad-wechat-tip {
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: #fff7f0;
  border: 1px solid #ffe2cc;
  border-radius: 10px;
  font-size: 13px;
  color: #c9702b;
}
.ad-wechat-link { color: var(--primary); font-weight: 600; cursor: pointer; }

/* PC 宽屏：封面图更高、标题更大 */
@media (min-width: 768px) {
  .ad-article-cover { height: 240px; }
  .ad-article-title { font-size: 24px; }

  /* CPS 好物推荐：宽屏 4 列、标题更大 */
  .cps-grid { grid-template-columns: repeat(4, 1fr); }
  .cps-title { font-size: 24px; }
}

/* ===================== CPS 好物推荐栏目 ===================== */
.lf-tab-emoji { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.cps-mall { padding-bottom: 30px; }
.cps-header { padding: 16px 16px 0; }
.cps-title { font-size: 20px; font-weight: 700; color: #222; }
.cps-sub { font-size: 13px; color: #888; margin-top: 4px; line-height: 1.5; }
.cps-tip {
  margin: 12px 16px;
  padding: 10px 12px;
  background: #fff7e6;
  border: 1px solid #ffe7ba;
  border-radius: 8px;
  font-size: 12px;
  color: #ad6800;
  line-height: 1.6;
}
.cps-task-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 4px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #e6f7ff 0%, #f0f9ff 100%);
  border: 1px solid #bae0ff;
  border-radius: 10px;
  font-size: 12px;
  color: #0958d9;
  line-height: 1.5;
}
.cps-task-tip .ct-icon { font-size: 16px; }
.cps-task-tip b { color: #1677ff; font-weight: 700; }
.cps-task-tip .ct-count { color: #d4380d; }
.cps-task-tip .ct-ok { color: #389e0d; font-weight: 700; }
.cps-task-tip .ct-login-prompt { color: #0958d9; font-weight: 600; cursor: pointer; text-decoration: underline dotted; }
.cps-task-tip .ct-login-prompt:active { opacity: .7; }
.cps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}
.cps-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cps-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cps-thumb-ph { font-size: 48px; }
.cps-platform {
  position: absolute;
  left: 8px; top: 8px;
  font-size: 11px;
  color: #fff;
  background: #ff6b6b;
  padding: 2px 6px;
  border-radius: 4px;
}
.pf-京东 { background: #e1251b; }
.pf-淘宝 { background: #ff5000; }
.pf-拼多多 { background: #e02e24; }
.cps-tag {
  position: absolute;
  right: 8px; top: 8px;
  font-size: 11px;
  color: #fff;
  background: #ff9500;
  padding: 2px 6px;
  border-radius: 4px;
}
.cps-info { padding: 10px; }
.cps-name {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
}
.cps-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.cps-price { color: #ff4d4f; font-size: 17px; font-weight: 700; }
.cps-origin { color: #bbb; font-size: 12px; text-decoration: line-through; }
.cps-coupon {
  color: #ff5000;
  font-size: 11px;
  border: 1px solid #ffd6cc;
  border-radius: 3px;
  padding: 0 4px;
}
.cps-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #ff5d66, #ff8a65);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
  border-radius: 20px;
  cursor: pointer;
}
.cps-empty { grid-column: 1 / -1; text-align: center; color: #999; padding: 40px 0; }
.cps-footer-note { margin: 16px; font-size: 11px; color: #aaa; line-height: 1.6; }
.cps-loading { text-align: center; color: #999; padding: 40px 0; }

/* 固定商品展示位（精选橱窗，横向滚动） */
.cps-showcase { margin: 14px 14px 0; background: var(--card); border-radius: 14px; padding: 12px; }
.cps-showcase-head { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.cps-showcase-scroll { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.cps-showcase-scroll::-webkit-scrollbar { height: 0; }
.cps-showcase-item { flex: 0 0 96px; width: 96px; cursor: pointer; }
.cps-showcase-thumb { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #f3f3f3; display: flex; align-items: center; justify-content: center; }
.cps-showcase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cps-showcase-name { font-size: 11px; color: var(--text); margin-top: 6px; line-height: 1.3; height: 28px; overflow: hidden; }
.cps-showcase-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; }

/* 循环推广位（列表内每 N 个插入） */
.cps-slot { position: relative; background: linear-gradient(135deg, #fff7ed 0%, #fff1f0 100%); border: 1px dashed #ffb4a2; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; }
.cps-slot-badge { position: absolute; top: 6px; left: 6px; background: #ff6b6b; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.cps-slot-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f3f3f3; display: flex; align-items: center; justify-content: center; }
.cps-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cps-slot-name { font-size: 11px; color: var(--text); margin-top: 6px; line-height: 1.3; max-height: 28px; overflow: hidden; }
.cps-slot-price { font-size: 13px; font-weight: 700; color: #ff6b6b; margin-top: 2px; }
.cps-slot-go { font-size: 11px; color: #ff6b6b; margin-top: 4px; }

/* 每日积分任务中心 */
.task-center { padding-bottom: 30px; }
.tc-summary { display: flex; gap: 12px; margin: 14px; }
.tc-point { flex: 1; background: var(--card); border-radius: 14px; padding: 16px; text-align: center; }
.tc-point-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.tc-point-label { font-size: 12px; color: var(--sub); margin-top: 4px; }
.tc-tip { margin: 0 14px 12px; font-size: 12px; color: var(--sub); line-height: 1.6; }
.tc-loading { text-align: center; color: #999; padding: 40px 0; }
.tc-list { margin: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.tc-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px; }
.tc-item.done { opacity: 0.72; }
.tc-item-main { flex: 1; min-width: 0; }
.tc-item-title { font-size: 15px; font-weight: 600; color: var(--text); }
.tc-item-desc { font-size: 12px; color: var(--sub); margin: 4px 0 8px; }
.tc-item-extra { display: inline-block; font-size: 11px; color: #0958d9; background: #e6f4ff; border: 1px solid #bae0ff; border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.tc-progress { display: flex; align-items: center; gap: 8px; }
.tc-bar { flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.tc-progress-text { font-size: 11px; color: var(--sub); white-space: nowrap; }
.tc-btn { flex: 0 0 auto; background: var(--primary); color: #fff; border: none; border-radius: 18px; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.tc-done-badge { flex: 0 0 auto; font-size: 12px; color: #2bb673; font-weight: 600; }
.tc-empty { text-align: center; color: #999; padding: 30px 0; }

/* ============================================================
   发现模块（discover 及关联页）
   ============================================================ */
.disc-page { padding-bottom: 20px; }
.disc-header { position: relative; padding: 28px 16px 22px; overflow: hidden; }
.disc-header-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }
.disc-header-inner { position: relative; }
.disc-title { font-size: 22px; font-weight: 700; color: #fff; }
.disc-sub { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.85); }

.disc-entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.disc-card { background: var(--card); border-radius: 14px; padding: 16px 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.disc-card-icon { font-size: 26px; margin-bottom: 8px; }
.disc-card-title { font-size: 14px; font-weight: 600; }
.disc-card-desc { margin-top: 4px; font-size: 11px; color: var(--sub); }

.disc-section { margin: 4px 14px 0; }
.disc-section-head, .pref-section-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 10px; }
.disc-section-title, .pref-section-title { font-size: 15px; font-weight: 700; }
.disc-refresh { font-size: 12px; color: var(--primary); }
.disc-loading, .disc-empty { text-align: center; color: var(--sub); padding: 30px 0; font-size: 13px; }

.disc-games { display: flex; flex-direction: column; gap: 10px; }
.disc-game { display: flex; background: var(--card); border-radius: 12px; padding: 10px; align-items: center; }
.disc-game-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: 0 0 56px; background: #f1f2f5; display: flex; align-items: center; justify-content: center; }
.disc-game-img img { width: 100%; height: 100%; object-fit: cover; }
.disc-game-ph { font-size: 24px; }
.disc-game-info { margin-left: 12px; flex: 1; min-width: 0; }
.disc-game-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-game-tags { margin-top: 4px; }
.disc-tag { display: inline-block; font-size: 10px; color: var(--primary); background: rgba(255,107,107,0.1); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.disc-game-match { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.disc-match-bar { flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.disc-match-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.disc-match-num { font-size: 12px; color: var(--sub); min-width: 36px; text-align: right; }

/* 无偏好：开始测试卡片 + 四种玩家预览（对齐小程序 test-card-section） */
.disc-test { margin-top: 6px; }
.disc-testcard { background: var(--card); border-radius: 14px; padding: 18px 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.disc-feat { display: flex; justify-content: space-around; text-align: center; }
.disc-feat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.disc-feat-icon { font-size: 22px; }
.disc-feat-text { font-size: 12px; color: var(--sub); }
.disc-divider { height: 1px; background: #eee; margin: 16px 0; }
.disc-test-desc { font-size: 13px; color: var(--sub); line-height: 1.6; text-align: center; }
.disc-btn { margin-top: 16px; width: 100%; border: none; border-radius: 24px; padding: 12px 0; background: var(--primary, #FF6B6B); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.disc-sample { margin-top: 18px; }
.disc-sample-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.disc-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.disc-type { background: var(--card); border-radius: 12px; padding: 14px 4px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.disc-type-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.disc-type-name { font-size: 12px; font-weight: 600; }

/* 系统推荐 */
.pref-empty { text-align: center; padding: 60px 20px; }
.pref-empty-icon { font-size: 48px; }
.pref-empty-text { font-size: 16px; font-weight: 600; margin-top: 12px; }
.pref-empty-hint { font-size: 13px; color: var(--sub); margin: 6px 0 18px; }
.pref-type-card { margin: 14px; border-radius: 16px; padding: 20px; text-align: center; }
.pref-type-icon { font-size: 46px; }
.pref-type-name { font-size: 20px; font-weight: 700; margin-top: 8px; }
.pref-type-desc { font-size: 13px; color: var(--sub); margin: 10px 0 16px; line-height: 1.6; }
.pref-type-actions { display: flex; gap: 10px; }
.pref-type-actions .lf-btn { flex: 1; }

/* 测试介绍 */
.gpi-card { margin: 14px; background: var(--card); border-radius: 16px; padding: 22px; text-align: center; }
.gpi-banner { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.gpi-icon { font-size: 50px; margin: 8px 0; }
.gpi-title { font-size: 20px; font-weight: 700; }
.gpi-sub { font-size: 13px; color: var(--sub); margin-top: 6px; }
.gpi-desc { font-size: 13px; color: #555; margin: 14px 0; line-height: 1.7; }
.gpi-stats { display: flex; justify-content: space-around; margin: 16px 0; }
.gpi-stat { display: flex; flex-direction: column; align-items: center; }
.gpi-stat b { font-size: 18px; color: #333; }
.gpi-stat span { font-size: 11px; color: var(--sub); margin-top: 2px; }
.gpi-start { width: 100%; }

/* 测试列表 */
.gpl-list { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.gpl-item { display: flex; align-items: center; background: var(--card); border: 1px solid #eee; border-radius: 14px; padding: 14px; }
.gpl-banner { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.gpl-icon { width: 48px; height: 48px; border-radius: 10px; background: #f1f2f5; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.gpl-info { flex: 1; margin-left: 12px; min-width: 0; }
.gpl-title { font-size: 15px; font-weight: 600; }
.gpl-desc { font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.gpl-go { color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 16px; white-space: nowrap; }

/* 答题页 */
.gpt-progress { height: 6px; background: #eee; margin: 12px 14px 0; border-radius: 3px; overflow: hidden; }
.gpt-progress-bar { display: block; height: 100%; border-radius: 3px; transition: width 0.3s; }
.gpt-count { text-align: center; font-size: 12px; color: var(--sub); margin-top: 8px; }
.gpt-questions { padding: 12px 14px; }
.gpt-q { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.gpt-q-text { font-size: 15px; font-weight: 600; line-height: 1.6; margin-bottom: 12px; }
.gpt-options { display: flex; flex-direction: column; gap: 10px; }
.gpt-opt { border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; font-size: 14px; background: #fff; transition: all 0.15s; }
.gpt-opt.on { font-weight: 600; }
.gpt-nav { display: flex; gap: 10px; padding: 0 14px 20px; }
.gpt-nav .lf-btn { flex: 1; }
.gpt-hint { text-align: center; font-size: 12px; color: var(--sub); padding-bottom: 20px; }

/* 结果页（对齐小程序 game-preference-result / -simple） */
.gpr-page, .gprs-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f6f8ff 0%, #f0f2ff 100%);
  padding: 14px 12px 120px;
  box-sizing: border-box;
}

.result-card {
  background: #fff;
  margin: 14px 0;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.type-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.icon-img { width: 100%; height: 100%; object-fit: cover; }
.icon-text {
  width: 100%;
  height: 100%;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.type-name { font-size: 20px; font-weight: 700; color: #222; display: block; margin-bottom: 10px; }
.type-description { font-size: 14px; color: #666; line-height: 1.6; display: block; margin-bottom: 18px; }

.stats-row { display: flex; justify-content: space-around; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.stat-item { text-align: center; }
.stat-value { font-size: 22px; font-weight: 700; display: block; }
.stat-label { font-size: 12px; color: #999; display: block; margin-top: 4px; }

.recommend-section { padding: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 6px; }
.section-title { font-size: 16px; font-weight: 700; color: #222; }
.refresh-btn { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; cursor: pointer; }
.refresh-icon { font-size: 14px; }
.refresh-text { font-weight: 500; }

.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.img-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.game-img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.img-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  opacity: 0;
}
.game-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  flex: 1;
  margin-right: 8px;
}
.match-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
  flex-shrink: 0;
}
.match-icon { font-size: 11px; animation: gpr-pulse 1.5s ease-in-out infinite; color: #FF6B6B; }
.match-value { font-size: 12px; font-weight: 700; color: #FF6B6B; }
@keyframes gpr-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.game-eng-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
.game-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.type-tag { font-size: 11px; color: #5c6bc0; background: #e8eaf6; padding: 2px 6px; border-radius: 4px; }
.date-tag { font-size: 11px; color: #888; background: #f0f1f5; padding: 2px 6px; border-radius: 4px; }
.lang-tag { font-size: 11px; color: #ff0000; background: #fff0f0; padding: 2px 6px; border-radius: 4px; }

.empty-state { text-align: center; padding: 30px; background: #fff; border-radius: 14px; margin: 0 6px; }
.empty-text { font-size: 14px; color: #999; }

.button-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #f6f8ff 60%, transparent);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.retest-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}
.save-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

/* 简单结果页专属（对齐小程序 -simple） */
.gprs-page .stats-row { background: linear-gradient(135deg, #f8f9ff 0%, #f0f1ff 100%); border-radius: 12px; padding: 14px 0; border-top: none; }
.gprs-page .button-area { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); }

/* 简单结果页 loading */
.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; }
.loading-icon { font-size: 40px; animation: gpr-spin 1s linear infinite; }
@keyframes gpr-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: #999; margin-top: 12px; }

/* 游戏详情页 / 文章页：后台配置模块 + 站内跳转链接 */
.backend-config-block {
  margin: 10px 0 0;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.config-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding-left: 8px;
  border-left: 3px solid #ff7a45;
  margin-bottom: 8px;
  line-height: 1.4;
}
.config-content {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  word-break: break-word;
}
.config-content img { max-width: 100%; border-radius: 6px; }

/* 站内跳转链接（[跳转:] 生成） */
.in-site-jump {
  cursor: pointer;
  color: #3b7cff;
  text-decoration: none;
}
.in-site-jump--link {
  border-bottom: 1px solid rgba(59,124,255,.4);
}
.in-site-jump--button {
  display: inline-block;
  margin: 6px 4px 0 0;
  padding: 6px 14px;
  background: linear-gradient(135deg,#ff9a44,#ff7a45);
  color: #fff;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
}
.in-site-jump--button:hover { opacity: .92; }

/* ============================================================
   资源库 / 合集 顶部「搜索栏 + 分类标签栏」
   对齐小程序 custom-game-list：
   search-header(sticky 固定) → search-container(白卡)
   → search-bar(灰底) + tabs-container(文字 + 红色下划线)
   数值按小程序 rpx÷2 精确映射
   ============================================================ */
/* 抵消 .page 的 12px padding，让顶部贴边（对齐小程序 fixed 的 10rpx 边距） */
.goods-list .search-header {
  margin: -12px -12px 0;
}
.search-header {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 5px 10px 0;
  background: var(--bg);
}
.search-container {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.search-container .search-bar {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 0;
  gap: 0;
}
.search-container .search-input {
  flex: 1;
  height: 30px;
  padding: 2px 8px 0 4px;
  font-size: 13px;
  color: #333;
  border: none;
  background: transparent;
}
.search-container .search-input::placeholder { color: #999; }
.search-container .search-btn {
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #FF5D66 0%, #FF8A65 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  flex-shrink: 0;
  cursor: pointer;
}
.search-container .reset-btn {
  height: 30px;
  padding: 0 12px;
  background: #ececec;
  color: #666;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 5px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.search-container .tabs-container {
  display: flex;
  margin-top: 3px;
  border-top: 1px solid #f5f5f5;
  white-space: nowrap;
  overflow-x: auto;
  padding: 0;
  gap: 0;
}
.search-container .tabs-container::-webkit-scrollbar { display: none; }
.search-container .tabs-container .tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 7px;
  position: relative;
  margin-right: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
.search-container .tabs-container .tab-item .tab-text {
  font-size: 15px;
  font-weight: 500;
  color: #666;
}
.search-container .tabs-container .tab-item.active { background: transparent; }
.search-container .tabs-container .tab-item.active .tab-text { color: #FF5D66; }
.search-container .tabs-container .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, #FF5D66 0%, #FF8A65 100%);
  border-radius: 3px;
}

/* 首页顶部搜索栏固定（不随页面滚动，样式与资源库一致：白色卡片 + 灰底搜索框 + 红渐变按钮） */
.home .search-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: -12px -12px 0;
  padding: 12px 12px 10px;
}

/* 资源库 / 合集：分类标签与下方游戏列表之间留出更大间距 */
.goods-list .search-container,
.collection .search-container {
  margin-bottom: 14px;
}
/* 搜索页：卡片与结果之间留白（与资源库一致 = 14px） */
.search-page .search-container {
  margin-bottom: 14px;
}
/* 搜索页顶部搜索栏固定（不随页面滚动，与资源库一致） */
.search-page .search-header {
  margin: -12px -12px 0;
  padding: 12px 12px 0;
}

/* ============ 文章自动目录（方案B：右下角浮动按钮 + 右侧抽屉） ============ */
.toc-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tab-h) + 124px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FF5D66;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 93, 102, .4);
  cursor: pointer;
  transition: transform .2s ease;
}
.toc-fab:active { transform: scale(.94); }
.toc-fab-icon { font-size: 20px; line-height: 1; }
.toc-fab-text { font-size: 12px; margin-top: 2px; }

.toc-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 70;
}
.toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 82vw;
  background: #fff;
  z-index: 80;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
  animation: tocSlideIn .22s ease;
}
@keyframes tocSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.toc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.toc-drawer-title { font-size: 16px; font-weight: 600; color: #333; }
.toc-drawer-close { font-size: 22px; color: #999; cursor: pointer; line-height: 1; }
.toc-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.toc-drawer-item {
  padding: 9px 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  cursor: pointer;
  border-left: 3px solid transparent;
  word-break: break-word;
}
.toc-drawer-item:hover { background: #f6f6f6; color: #FF5D66; border-left-color: #FF5D66; }

/* 锚点滚动留白：防顶部吸顶栏遮挡 */
.ad-content h2[id], .ad-content h3[id], .ad-content h4[id] { scroll-margin-top: 72px; }

/* ===== 商品广告位（按广告规格随机展示配置的商品） ===== */
.ad-slot { margin: 12px; }
.ad-slot-head { font-size: 14px; font-weight: 600; color: #333; margin: 4px 2px 8px; }
/* 自适应网格：列数随容器宽度自动增减（移动端 2 列起，宽屏自动变多列） */
.ad-slot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 600px)  { .ad-slot-list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (min-width: 1000px) { .ad-slot-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .ad-slot-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.ad-slot-item {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 8px; cursor: pointer;
  transition: box-shadow .15s;
}
.ad-slot-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ad-slot-img { width: 100%; max-width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f3f3f3; flex-shrink: 0; }
.ad-slot-meta { flex: 1; min-width: 0; }
.ad-slot-name { font-size: 13px; color: #333; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-slot-go { font-size: 12px; color: #FF5D66; margin-top: 4px; }
.ad-slot-badge { position: absolute; top: 4px; right: 4px; font-size: 10px; color: #bbb; background: #f3f3f3; border-radius: 3px; padding: 0 4px; }

/* 全局底部广告条（bar 规格，紧凑横向） */
.global-ad-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h, 56px) + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 0 8px; }
@media (min-width: 1000px) { .global-ad-bar { left: 50%; right: auto; transform: translateX(-50%); max-width: 1000px; } }
@media (min-width: 1200px) { .global-ad-bar { max-width: 1200px; } }
.ad-slot-bar .ad-slot-list { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; }
.ad-slot-bar .ad-slot-item { flex: 1 0 auto; min-width: 200px; }
.ad-slot-bar .ad-slot-img { width: 48px; height: 48px; }
.ad-slot-bar .ad-slot-badge { display: none; }
