/* 复盘大师 · 产品首页（大厅）
 *
 * 为什么单独一个文件：app.html 已经 11000 行，首页是「入口层」，跟图表台没有耦合。
 * 全部类名带 hm- 前缀，避免和 app.html 里的 .up / .down / .rec 撞车
 * （app 里 .up / .down 是涨跌色，首页记录卡也要用，所以这里只用 hm-up / hm-down）。
 *
 * 层级：#home = 5000
 *   高于图表台（chartbox 30 / 手机工具抽屉 960）
 *   低于会员弹窗与登录墙（9000）、顶部黑条（10050）、toast（10060）
 * 所以从首页点「登录」时，弹窗能正常盖住首页，不会被吞掉。
 */

#home{
  position:fixed; inset:0; z-index:5000;
  display:flex; flex-direction:column;
  background:
    radial-gradient(120% 72% at 50% -8%, #141B26 0%, #0C1118 46%, #070A0E 100%);
  color:#E9EEF5;
  font:13px/1.45 "PingFang SC","Microsoft YaHei","Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  padding-top:env(safe-area-inset-top);
  overscroll-behavior:contain;
}
#home.hm-hide{display:none;}
#home *{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}

/* 桌面宽屏：内容居中，两侧留黑，不要把卡片拉成一整条 */
#home .hm-wrap{width:100%;max-width:640px;margin:0 auto;}

/* ── 顶栏 ───────────────────────────────────────────── */
.hm-top{
  flex:0 0 auto; display:flex; align-items:center; gap:8px;
  padding:12px 16px 10px;
}
.hm-brand{display:flex; align-items:center; gap:8px; min-width:0;}
.hm-brand img{width:22px; height:22px; border-radius:5px; display:block;}
.hm-brand b{font-size:15px; font-weight:600; letter-spacing:.01em; white-space:nowrap;}
.hm-brand em{
  font:9.5px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  font-style:normal; color:#5A6572; letter-spacing:.06em; margin-left:2px;
}
.hm-top .hm-right{margin-left:auto; display:flex; align-items:center; gap:8px;}
.hm-avatar{
  width:26px; height:26px; border-radius:50%; padding:0; flex:none;
  border:1px solid rgba(216,167,60,.35); cursor:pointer;
  background:linear-gradient(150deg,#20262F,#12161C);
  color:#D8A73C; font:600 11px inherit;
  display:grid; place-items:center;
}
.hm-avatar.hm-guest{border-color:#2A313A; color:#7B8797;}

/* ── 滚动区 ─────────────────────────────────────────── */
.hm-body{
  flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
.hm-body::-webkit-scrollbar{width:0;}
.hm-stack > *{animation:hmRise .52s cubic-bezier(.2,.75,.3,1) both;}
.hm-stack > *:nth-child(1){animation-delay:.02s}
.hm-stack > *:nth-child(2){animation-delay:.07s}
.hm-stack > *:nth-child(3){animation-delay:.12s}
.hm-stack > *:nth-child(4){animation-delay:.17s}
.hm-stack > *:nth-child(5){animation-delay:.22s}
.hm-stack > *:nth-child(6){animation-delay:.27s}
@keyframes hmRise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){ .hm-stack > *{animation:none} }

/* ── 身份区：徽章 + 两侧读数 ─────────────────────────── */
.hm-hero{position:relative; padding:6px 16px 0;}
.hm-hero::before{
  content:""; position:absolute; left:50%; top:-30px; width:300px; height:300px;
  transform:translateX(-50%); pointer-events:none;
  background:radial-gradient(circle at 50% 45%,rgba(216,167,60,.13) 0%,rgba(216,167,60,.05) 34%,transparent 68%);
  background:radial-gradient(circle at 50% 45%,
    color-mix(in srgb,var(--hm-tier,#D8A73C) 13%,transparent) 0%,
    color-mix(in srgb,var(--hm-tier,#D8A73C) 5%,transparent) 34%,
    transparent 68%);
}
.hm-hero-grid{
  position:relative; display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; gap:4px;
}
.hm-side{display:flex; flex-direction:column; gap:3px; min-width:0;}
.hm-side.right{align-items:flex-end; text-align:right;}
.hm-side .hm-k{
  display:flex; align-items:center; gap:4px;
  font-size:10.5px; color:#7B8797; letter-spacing:.04em; white-space:nowrap;
}
.hm-side .hm-k svg{opacity:.75; flex:none;}
.hm-side b{
  font:600 17px/1.15 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.01em;
}
.hm-side .hm-sub{
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#7B8797; letter-spacing:.03em;
}
.hm-medal{filter:drop-shadow(0 6px 24px rgba(216,167,60,.16));}
.hm-medal svg{display:block;}

.hm-tier{
  display:flex; align-items:center; gap:10px;
  margin:8px 16px 0; color:var(--hm-tier,#D8A73C);
}
.hm-tier::before,.hm-tier::after{
  content:""; flex:1; height:1px;
  background:linear-gradient(90deg,transparent,currentColor); opacity:.34;
}
.hm-tier::after{background:linear-gradient(90deg,currentColor,transparent);}
.hm-tier span{font-size:13px; font-weight:600; letter-spacing:.14em; white-space:nowrap;}
.hm-tier span i{
  font:500 10.5px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  font-style:normal; letter-spacing:.1em; opacity:.7; margin-right:5px;
}
.hm-tier-next{
  margin:7px 0 0; text-align:center;
  font-size:10.5px; color:#7B8797; letter-spacing:.03em;
}
.hm-tier-next b{
  font-family:"Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#A6B2C0; font-weight:500;
}

/* ── 双入口（本页主角）──────────────────────────────── */
.hm-entries{
  /* 两卡等宽：之前是 1.28fr / 1fr，本想突出双盲，实际看着像没对齐。
     等宽后两张卡的标题、说明、脚注都落在同一基线上，更像一组选择。 */
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  margin:18px 16px 0;
}
.hm-entry{
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; text-align:left;
  min-height:132px; padding:14px;
  border-radius:5px; text-decoration:none; color:inherit;
  font-family:inherit; cursor:pointer;
  transition:transform .18s cubic-bezier(.2,.75,.3,1),border-color .18s,background .18s;
}
.hm-entry:active{transform:scale(.978);}
.hm-entry h3{margin:0; font-size:15px; font-weight:600; letter-spacing:.02em;}
.hm-entry p{margin:5px 0 0; font-size:10.5px; line-height:1.5; color:#A6B2C0;}
.hm-entry .hm-foot{
  margin-top:auto; display:flex; align-items:center; gap:5px;
  font:10.5px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.04em;
}
.hm-entry .hm-foot svg{margin-left:auto; transition:transform .18s; flex:none;}
.hm-entry:active .hm-foot svg{transform:translateX(2px);}
.hm-entry .hm-spark{
  position:absolute; top:11px; right:11px; width:44px; height:24px;
  opacity:.55; pointer-events:none;
}

.hm-entry.hm-blind{
  border:1px solid rgba(124,134,255,.38);
  background:linear-gradient(158deg,rgba(124,134,255,.17) 0%,rgba(124,134,255,.05) 58%,rgba(124,134,255,.02) 100%);
}
.hm-entry.hm-blind::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background:repeating-linear-gradient(90deg,rgba(124,134,255,.055) 0 1px,transparent 1px 7px);
  mask-image:linear-gradient(180deg,transparent 30%,#000 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 30%,#000 100%);
}
.hm-entry.hm-blind h3{color:#C9CFFF;}
.hm-entry.hm-blind .hm-foot{color:#7C86FF;}
.hm-entry.hm-blind:hover{border-color:rgba(124,134,255,.6);}

.hm-entry.hm-replay{
  border:1px solid rgba(216,167,60,.30);
  background:linear-gradient(158deg,rgba(216,167,60,.11) 0%,rgba(216,167,60,.035) 60%,rgba(216,167,60,.015) 100%);
}
.hm-entry.hm-replay h3{color:#E8C87E;}
.hm-entry.hm-replay .hm-foot{color:#D8A73C;}
.hm-entry.hm-replay:hover{border-color:rgba(216,167,60,.5);}

.hm-quick-replay{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:10px 16px 0; color:#A6B2C0; font-size:12px;
}
.hm-replay-allowance{display:flex;flex-direction:column;gap:3px;min-width:0;}
.hm-quick-replay button{
  min-height:44px; padding:0 15px; color:#1C1607;
  background:#D8A73C; border-color:#D8A73C; font-size:13px; font-weight:600;
}
.hm-quick-replay button:hover{background:#EDC258;border-color:#EDC258}
.hm-quick-replay button:disabled{opacity:.65;cursor:wait;}
#hmReplayReset{color:#8290A0;}
#hmUpgradeReplay{min-height:32px;padding:4px 0;color:var(--accent);background:transparent;border-color:transparent;text-align:left;}
#hmUpgradeReplay:hover{background:transparent;border-color:transparent;text-decoration:underline;}
#hmUpgradeReplay[hidden]{display:none;}
/* ── 数据带 ─────────────────────────────────────────── */
/* 三格而不是四格：原来第 4 格是「净值」，首页摆资金数字容易被当成炒币软件，
   而且没打过双盲的人那里恒为 0，看着像 bug */
.hm-strip{
  display:grid; grid-template-columns:repeat(3,1fr);
  margin:12px 16px 0; padding:11px 0;
  border:1px solid #1A2028; border-radius:5px;
  background:#0E1217;
}
.hm-strip div{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  border-left:1px solid #1A2028; min-width:0;
}
.hm-strip div:first-child{border-left:0;}
.hm-strip b{
  font:600 15px/1 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.02em;
}
.hm-strip span{font-size:9.5px; color:#7B8797; letter-spacing:.05em; white-space:nowrap;}
.hm-strip .hm-hi{color:#D8A73C;}

/* ── 最近训练 ───────────────────────────────────────── */
.hm-recent-head{
  display:flex; align-items:baseline; gap:8px;
  margin:22px 16px 10px;
}
.hm-recent-head h2{margin:0; font-size:14px; font-weight:600; letter-spacing:.02em;}
.hm-recent-head .hm-more{
  margin-left:auto; display:flex; align-items:center; gap:3px;
  font-size:11px; color:#7B8797; text-decoration:none;
  background:none; border:0; padding:0; cursor:pointer; font-family:inherit;
}
.hm-recent-head .hm-more:hover{color:#A6B2C0;}

.hm-rec{
  display:block; width:calc(100% - 32px); text-align:left;
  padding:11px 12px 12px; margin:0 16px 8px;
  border:1px solid #1A2028; border-radius:5px;
  background:#0E1217; color:inherit; font-family:inherit; cursor:pointer;
  transition:border-color .16s,background .16s;
}
.hm-rec:active{background:#11161C; border-color:#242B34;}
.hm-rec-top{display:flex; align-items:center; gap:7px;}
.hm-tag{
  flex:0 0 auto; padding:2px 6px; border-radius:2px;
  font-size:9.5px; letter-spacing:.05em; line-height:1.4;
}
.hm-tag.hm-blind{color:#B3BAFF; background:rgba(124,134,255,.13); border:1px solid rgba(124,134,255,.28);}
.hm-tag.hm-replay{color:#D8A73C; background:rgba(216,167,60,.10); border:1px solid rgba(216,167,60,.26);}
.hm-rec-top .hm-sym{font-size:13px; font-weight:600; letter-spacing:.02em;}
.hm-rec-top .hm-no{
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#5A6572; letter-spacing:.04em;
}
.hm-rec-top .hm-time{
  margin-left:auto;
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#5A6572; letter-spacing:.02em;
}
/* 记录卡是 <button>，内部只能用 span（button 里塞 div 虽然浏览器不报错，
   但语义上不合法，读屏会念成一块）。所以这里的选择器一律走 > span。 */
.hm-rec-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:7px 2px; margin-top:9px;}
.hm-rec-grid > span{display:flex; flex-direction:column; gap:2px; min-width:0;}
.hm-rec-grid > span > b{
  font:600 14px/1.2 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.01em;
}
.hm-rec-grid > span > span{font-size:9.5px; color:#7B8797;}

/* 大厅卡的时间段：比记录页再紧凑一档（卡片整块可点，不设分隔线） */
.hm-rec-span{
  display:flex; align-items:baseline; gap:6px; margin-top:6px; min-width:0;
}
.hm-rec-span > span{font-size:9px; color:#6B7787; flex:none;}
.hm-rec-span > b{
  font:500 10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#A6B2C0; letter-spacing:.02em; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; min-width:0;
}

/* 涨跌色：与 app 主图一致（红涨绿跌） */
.hm-up{color:#F5455C;}
.hm-down{color:#2FBF71;}
.hm-muted{color:#A6B2C0;}

.hm-empty{
  margin:0 16px; padding:22px 16px; text-align:center;
  border:1px dashed #202730; border-radius:5px;
  font-size:11.5px; color:#7B8797; line-height:1.8;
}
.hm-empty b{color:#A6B2C0; font-weight:600;}

.hm-tail{
  padding:10px 16px 14px; text-align:center;
  font-size:10.5px; color:#5A6572; letter-spacing:.06em;
}

/* ══════════════════════════════════════════════════════════════════
   整页视图：训练记录 / 排行榜
   ──────────────────────────────────────────────────────────────
   这两页原来都是 wide 弹窗，手机上一屏四行、里面再套一层滚动条。
   现在挂在 #home 的 .hm-body 里，和 hm-stack 互斥（hm-paging 切换）。
   底部 tab bar 不动 —— 它本来就是这个首页的导航位。
   ══════════════════════════════════════════════════════════════════ */
.hm-page{display:none;}
#home.hm-paging .hm-stack{display:none;}
#home.hm-paging .hm-page.hm-on{
  display:block;
  width:100%; max-width:640px; margin:0 auto;
  padding:4px 16px 8px;
  animation:hmRise .38s cubic-bezier(.2,.75,.3,1) both;
}
@media (prefers-reduced-motion:reduce){ #home.hm-paging .hm-page.hm-on{animation:none;} }

.hm-phead{padding:6px 0 12px;}
.hm-phead h1{margin:0; font-size:19px; font-weight:600; letter-spacing:.02em;}
.hm-phead p{margin:6px 0 0; font-size:11px; line-height:1.6; color:#7B8797;}

/* 分段：回放 / 双盲（两个页面共用） */
.hm-seg{
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  padding:3px; margin:0 0 12px;
  border:1px solid #1A2028; border-radius:6px; background:#0C1015;
}
.hm-seg button{
  padding:8px 0; border:0; border-radius:4px; cursor:pointer;
  background:none; color:#7B8797; font:13px inherit; letter-spacing:.03em;
  transition:background .16s,color .16s;
}
.hm-seg button.on{background:#1A2028; color:#E9EEF5;}
.hm-seg button:active{color:#E9EEF5;}

/* 周期 / 筛选 chips */
.hm-chips{display:flex; gap:7px; margin:0 0 12px; overflow-x:auto; scrollbar-width:none;}
.hm-chips::-webkit-scrollbar{height:0;}
.hm-chips button{
  flex:0 0 auto; padding:5px 12px; border-radius:20px; cursor:pointer;
  border:1px solid #1E252E; background:#0E1217; color:#8B96A4;
  font:11.5px inherit; font-family:inherit; letter-spacing:.03em;
  transition:border-color .16s,color .16s,background .16s;
}
.hm-chips button.on{border-color:rgba(216,167,60,.5); color:#E8C87E; background:rgba(216,167,60,.09);}

/* 卡片（记录） */
.hm-card{
  padding:11px 12px 12px; margin:0 0 8px;
  border:1px solid #1A2028; border-radius:5px;
  background:#0E1217;
  transition:border-color .16s,background .16s;
}
.hm-card:active{background:#11161C; border-color:#242B34;}
.hm-card-top{display:flex; align-items:center; gap:7px; min-height:18px;}
.hm-card-top .hm-sym{font-size:13px; font-weight:600; letter-spacing:.02em;}
.hm-card-top .hm-no{
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#5A6572; letter-spacing:.04em;
}
.hm-card-top .hm-time{
  margin-left:auto;
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#5A6572; letter-spacing:.02em;
}
.hm-card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:7px 2px; margin-top:9px;}
/* 双盲卡只有 4 项（服务端只落汇总，没有胜率 / 盈亏比），排 2×2 比 3 列留两个空格整齐 */
/* 双盲卡也是六项（结算快照里有盈亏比 / 胜率），跟回放卡同一套 3 列，
   不再单开 2 列 —— 两类的指标排布一致，扫一眼就能横向比。 */
.hm-bcard .hm-card-grid{grid-template-columns:repeat(3,1fr); gap:7px 2px;}
.hm-card-grid > span{display:flex; flex-direction:column; gap:2px; min-width:0;}
.hm-card-grid > span > b{
  font:600 14px/1.2 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-card-grid > span > span{font-size:9.5px; color:#7B8797; white-space:nowrap;}

/* 时间段单独一行：塞进 3 列网格会把日期挤成省略号。
   左边标签跟着其它指标的视觉节奏，右边值用等宽数字，日期对齐好看。 */
.hm-card-span{
  /* 不加分隔线：它属于上面那组指标，脚部那条实线才是「指标 / 操作」的分界。
     两条线叠在一起会让卡片显得碎。 */
  display:flex; align-items:baseline; gap:8px;
  margin-top:9px; min-width:0;
}
.hm-card-span > span{font-size:9.5px; color:#7B8797; flex:none;}
.hm-card-span > b{
  font:500 11px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#A6B2C0; letter-spacing:.02em; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; min-width:0;
}
.hm-card-span > i{
  font-style:normal; font-size:9.5px; color:#5A6572; flex:none; margin-left:auto;
}

.hm-card-foot{
  display:flex; align-items:center; gap:8px;
  margin-top:10px; padding-top:9px; border-top:1px solid #161C24;
}
.hm-card-foot .hm-dim{
  flex:1 1 auto; min-width:0;
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#5A6572; letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-acts{display:flex; gap:6px; flex:none;}
.hm-btn{
  padding:4px 10px; border-radius:3px; cursor:pointer;
  border:1px solid #26313F; background:#161B22; color:#A6B2C0;
  font:11px inherit; font-family:inherit; letter-spacing:.03em;
  transition:background .14s,border-color .14s,color .14s;
}
.hm-btn:hover{background:#1C222A; border-color:#3A4551; color:#E9EEF5;}
.hm-btn.gold{border-color:rgba(216,167,60,.4); color:#E8C87E; background:rgba(216,167,60,.08);}

/* 双盲卡：结算结果色块 */
.hm-badge{
  flex:0 0 auto; padding:2px 6px; border-radius:2px; font-size:9.5px; letter-spacing:.05em;
}
.hm-badge.up{color:#FF8A99; background:rgba(245,69,92,.13); border:1px solid rgba(245,69,92,.28);}
.hm-badge.down{color:#63D69A; background:rgba(47,191,113,.12); border:1px solid rgba(47,191,113,.26);}
.hm-badge.flat{color:#A6B2C0; background:rgba(166,178,192,.09); border:1px solid rgba(166,178,192,.22);}

.hm-card-detail{
  margin-top:10px; padding-top:10px; border-top:1px dashed #202730;
  display:grid; grid-template-columns:1fr 1fr; gap:6px 12px;
}
/* 类选择器的 display:grid 会盖掉 UA 的 [hidden]{display:none} —— 明细就永远展开。
   显式补一条，别指望 hidden 属性自己生效。 */
.hm-card-detail[hidden]{display:none;}
.hm-kv{display:flex; align-items:baseline; gap:8px; min-width:0;}
.hm-kv span{font-size:10.5px; color:#7B8797; white-space:nowrap;}
.hm-kv b{
  margin-left:auto;
  font:500 12px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-detail-note{
  grid-column:1 / -1; font-size:10.5px; color:#5A6572; line-height:1.6;
}

/* ── 双盲成交明细（明细区里展开） ─────────────────────────────
   明细区是 2 列 grid，成交表要横跨整行。手机上不做成 7 列表格：
   横向滚动会和卡片竖滑抢手势，改成「主行 + 次行」的行列表。 */
.hm-trades{grid-column:1 / -1; margin-top:4px;}
.hm-trades-nil{padding:8px 0 2px; font-size:10.5px; line-height:1.6;}
.hm-trades-h{
  display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  padding:8px 0 6px; border-top:1px dashed #1B222B; margin-top:2px;
}
.hm-trades-h > span{font-size:10px; color:#7B8797; letter-spacing:.04em;}
.hm-trades-h > b{
  font:500 11px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#A6B2C0; white-space:nowrap;
}
.hm-tlist{display:flex; flex-direction:column; gap:2px;}
.hm-trow{
  padding:6px 8px; border-radius:5px; background:#11161C;
  border:1px solid #171E26;
}
.hm-tmain{display:flex; align-items:baseline; gap:8px;}
.hm-ti{
  font:500 10px ui-monospace,monospace; color:#5A6572;
  min-width:14px; text-align:right; flex:none;
}
.hm-tdir{font-size:11px; font-weight:600; flex:none;}
.hm-tlots{font-size:10.5px; color:#8B96A6; flex:none;}
.hm-tpnl{
  margin-left:auto;
  font:600 12px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  white-space:nowrap;
}
.hm-tsub{
  margin-top:2px; padding-left:22px;
  font:10px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#6B7787; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ── 记录页：筛选 chips → 统计 → 记录 ───────────────────────────
   两种模式共用。chips 是唯一控制器：点「全部」看整体统计，点某个策略
   看这一类的统计 + 只有这一类标注的记录；统计卡随 chip 本地换数。 */
.hm-rf{margin:0 0 10px;}
.hm-rf .hm-chips{margin:0;}
.hm-rf-res{display:flex; align-items:center; gap:8px; margin-top:8px;}
.hm-rf-res > span{flex:0 0 auto; font-size:9.5px; color:#5A6572; letter-spacing:.05em;}
.hm-rf-res .hm-chips button{padding:4px 10px; font-size:10.5px;}
/* 标注未同步提示：只在服务端查不到策略标注时插入，正常态完全不占位 */
.hm-sync{
  display:flex; align-items:center; gap:10px;
  margin:0 0 10px; padding:9px 11px;
  border:1px solid rgba(216,167,60,.28); border-radius:6px;
  background:rgba(216,167,60,.06); color:#C8A96A;
  font-size:11px; line-height:1.6;
}
.hm-sync > span{flex:1 1 auto; min-width:0;}
.hm-sync button{
  flex:0 0 auto; padding:5px 11px; border-radius:4px; cursor:pointer;
  border:1px solid rgba(216,167,60,.45); background:rgba(216,167,60,.10);
  color:#E8C87E; font:inherit; font-size:11px;
}
.hm-sync button:disabled{opacity:.55; cursor:default;}
.hm-sum{
  margin:0 0 12px; padding:11px 12px;
  border:1px solid #1A2028; border-radius:7px;
  background:linear-gradient(180deg,#111820 0%,#0D1218 100%);
}
.hm-sum-h{display:flex; align-items:baseline; gap:8px; margin-bottom:10px;}
.hm-sum-h b{font-size:12.5px; font-weight:600; color:#E9EEF5; white-space:nowrap;}
.hm-sum-h span{
  font-size:10px; color:#6B7787; min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-sum-load{padding:10px 0; text-align:center; font-size:11px; color:#6B7787;}
.hm-sum-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 4px;}
.hm-sum-grid > span{display:flex; flex-direction:column; gap:3px; min-width:0;}
.hm-sum-grid > span > b{
  font:600 15px/1.2 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  letter-spacing:.01em; color:#E9EEF5;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-sum-grid > span > span{font-size:9.5px; color:#7B8797;}
.hm-samples{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;}
.hm-samples b{width:100%;font-size:11px;color:#A6B2C0;}
.hm-sample{min-height:36px;text-align:left;white-space:normal;color:#DDE5EE;}
/* 双盲特有：暴富 / 破产 / 最佳单局压成一行小字，不再单独占一条汇总块 */
.hm-sum-x{
  display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; padding-top:9px;
  border-top:1px solid #1A2028; font-size:10px; color:#7B8797;
}
.hm-sum-x b{
  font:600 11px/1 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#E9EEF5; margin-left:4px;
}
.hm-sum-x .hm-hi{color:#D8A73C;}
.hm-sum-x .hm-up{color:#F5455C;}
.hm-card-tags{display:flex; flex-wrap:wrap; gap:5px; margin-top:8px;}
.hm-card-tags span{
  padding:2px 7px; border-radius:10px; font-size:9.5px;
  border:1px solid rgba(216,167,60,.32); color:#D8B96A; background:rgba(216,167,60,.07);
}
.hm-tst{font-style:normal; color:#D8B96A;}
.hm-tnote{
  margin-top:4px; padding:5px 7px 5px 9px; border-left:2px solid #2C3540;
  font-size:10.5px; line-height:1.6; color:#8B96A4;
  white-space:pre-wrap; word-break:break-word;
}

.hm-more2{
  display:block; width:100%; margin:6px 0 2px; padding:10px 0;
  border:1px dashed #202730; border-radius:5px; background:none;
  color:#8B96A4; font:11.5px inherit; font-family:inherit; cursor:pointer;
  letter-spacing:.04em; text-align:center;
}
.hm-more2:hover{color:#E9EEF5; border-color:#2C3540;}
.hm-more2.hm-done{border-style:none; color:#4A5563; cursor:default;}

/* ── 排行榜 ──
   骨架：概况一行 → 冠军整宽卡 → 二三名半宽卡 → 4 名起列表 → 我的排名 → 怎么上榜 → 规则。
   原来是三段等宽并列，390 宽下每格只有 110px，昵称和段位必然挤成一团，
   2 人榜还会在右边留个空洞；改成一宽两窄，冠军有主场感，人少时也不塌。 */
.hm-rk-sum{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0 0 8px; font-size:10.5px; color:#6E7A88; letter-spacing:.02em;
}
.hm-rk-sum-l{display:inline-flex; align-items:baseline; gap:4px;}
.hm-rk-sum b{
  color:#E8C87E; font-weight:600; font-size:12px;
  font-family:"Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
}
.hm-rk-sum-r{color:#525D6A;}

/* 两列网格：冠军横跨整行，二三名各占一半 */
.hm-podium{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 10px;}
.hm-pod.champ{grid-column:1 / -1;}

.hm-pod{
  position:relative; overflow:hidden; min-width:0;
  padding:12px 13px 13px; border-radius:9px;
  border:1px solid #1E252E; background:#0E1217;
  display:flex; flex-direction:column; gap:5px;
  transition:border-color .16s, background .16s, transform .16s;
}
.hm-pod-top{display:flex; align-items:center; gap:7px; min-width:0;}

/* 冠军卡：左人右数。整块描金会显得廉价，只留顶边一道金线 + 左上角一层很淡的光晕 */
.hm-pod.champ{
  flex-direction:row; align-items:center; gap:10px;
  padding:14px 14px 14px 13px;
  border-color:rgba(216,167,60,.32);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(216,167,60,.15), rgba(216,167,60,.03) 48%, rgba(14,18,23,0) 74%),
    #0E1217;
}
.hm-pod.champ::before{
  content:""; position:absolute; left:12%; right:12%; top:0; height:1px;
  background:linear-gradient(90deg, rgba(216,167,60,0), rgba(232,200,126,.8), rgba(216,167,60,0));
}
.hm-pod.champ.g2{
  border-color:#1E252E;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(168,179,193,.10), rgba(168,179,193,.02) 50%, rgba(14,18,23,0) 74%),
    #0E1217;
}
.hm-pod.champ.g2::before{
  background:linear-gradient(90deg, rgba(168,179,193,0), rgba(168,179,193,.55), rgba(168,179,193,0));
}
.hm-pod.champ.g2 .hm-pod-main{font-size:20px; color:#E9EEF5;}
.hm-pod.champ.g2 .hm-pod-unit{color:#6E7A88;}
.hm-pod-left{display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 auto;}
.hm-pod-id{display:flex; flex-direction:column; gap:4px; min-width:0;}
.hm-pod-right{display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex:0 0 auto;}

.hm-pod-medal{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center;
  font:600 14px/1 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  background:linear-gradient(160deg,#F4DE9D,#C9A24A); color:#231A08;
  box-shadow:0 0 0 3px rgba(216,167,60,.09), 0 3px 10px rgba(216,167,60,.20);
}
.hm-pod-medal.sm{width:20px; height:20px; font-size:11px; box-shadow:none;}
.hm-pod.g2 .hm-pod-medal{
  background:rgba(168,179,193,.14); color:#CBD5E1;
  border:1px solid rgba(168,179,193,.34);
}
.hm-pod.g3 .hm-pod-medal{
  background:rgba(176,118,74,.16); color:#D79B66;
  border:1px solid rgba(176,118,74,.38);
}

.hm-pod-nm{
  font-size:13.5px; font-weight:600; letter-spacing:.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-pod.champ .hm-pod-nm{font-size:15px;}
.hm-pod-meta{display:block; min-height:0; line-height:1;}
.hm-pod-meta .hm-tier-chip{margin-left:0;}
.hm-pod-main{
  font:600 16px/1.05 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#E9EEF5; white-space:nowrap; letter-spacing:.01em;
}
.hm-pod.champ .hm-pod-main{font-size:24px; color:#FFD75E;}
.hm-pod-unit{
  margin-left:5px; font:400 9.5px/1 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#6E7A88; font-style:normal; letter-spacing:.04em;
}
.hm-pod.champ .hm-pod-unit{color:rgba(232,200,126,.6);}
.hm-pod-sub{display:flex; flex-wrap:wrap; gap:4px;}
.hm-pod-tag{
  padding:1px 5px; border-radius:3px; font-size:9.5px; line-height:1.5;
  color:#8B96A4; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.045);
  white-space:nowrap;
}
.hm-pod-tag.up{color:#E8C87E; background:rgba(216,167,60,.10); border-color:rgba(216,167,60,.20);}

.hm-tier-chip{
  display:inline-block; margin-left:5px; padding:1px 5px; border-radius:2px;
  border:1px solid; font-size:9px; letter-spacing:.03em; vertical-align:1px;
  white-space:nowrap;
}
.hm-me-dot{
  display:inline-block; margin-left:4px; padding:0 4px; border-radius:2px;
  background:rgba(216,167,60,.16); color:#E8C87E;
  font:9px "PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-style:normal;
  letter-spacing:.04em; vertical-align:1px;
}

.hm-rk-list{border:1px solid #1A2028; border-radius:9px; overflow:hidden; background:#0E1217;}
.hm-rk-row{
  display:flex; align-items:center; gap:9px;
  padding:11px 12px; border-top:1px solid #141A21;
}
.hm-rk-row:first-child{border-top:0;}
.hm-rk-row.mine{
  background:rgba(216,167,60,.06);
  box-shadow:inset 2px 0 0 rgba(216,167,60,.5);
}
/* 点整行看「玩家档案」：光标 + 悬停底色，否则用户不知道这行能点 */
.hm-click{cursor:pointer;}
.hm-rk-row.hm-click:hover{background:#131A23;}
.hm-pod.hm-click:hover{border-color:rgba(216,167,60,.5);}
.hm-pod.hm-click:active{transform:scale(.995);}
.hm-rk-n{
  flex:0 0 20px; text-align:center;
  font:600 12px/1 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#6E7A88;
}
/* 首字头像：比空圆圈有辨识度，也不依赖任何图片资源 */
.hm-rk-av{
  flex:0 0 auto; width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center; border:1px solid;
  background:rgba(255,255,255,.03);
  font:600 11px "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.hm-rk-main{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px;}
.hm-rk-nm{
  font-size:12.5px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-rk-sym{
  margin-left:5px; font-size:9.5px; font-weight:400; color:#5A6572; letter-spacing:.03em;
}
.hm-rk-sub{font-size:9.5px; color:#75818F; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.hm-rk-val{
  flex:0 0 auto;
  font:600 15px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  color:#E9EEF5; letter-spacing:.01em;
}

/* 我的排名：左侧一道金条做锚点，和上面金色冠军卡呼应 */
.hm-mine{
  position:relative; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:10px 0 0; padding:11px 13px 11px 15px;
  border:1px solid rgba(216,167,60,.24); border-radius:9px;
  background:linear-gradient(100deg, rgba(216,167,60,.09), rgba(14,18,23,0) 64%), #0E1217;
  font-size:11px; color:#A6B2C0; line-height:1.5;
}
.hm-mine::before{
  content:""; position:absolute; left:0; top:8px; bottom:8px; width:2px; border-radius:2px;
  background:linear-gradient(180deg,#F4DE9D,#C9A24A);
}
.hm-mine-t{color:#8B96A4; letter-spacing:.04em;}
.hm-mine-rk{color:#C9D3DF; font-size:11.5px;}
.hm-mine-rk b{
  color:#E8C87E; font:600 15px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace;
  margin:0 1px;
}
.hm-mine-v{
  margin-left:auto; display:inline-flex; align-items:baseline; gap:5px;
  font:600 15px "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace; color:#E9EEF5;
}
.hm-mine-v i{
  font:400 9.5px "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#6E7A88; font-style:normal; letter-spacing:.04em;
}
.hm-mine.is-empty{
  border-style:dashed; border-color:#1E252E; background:#0E1217; color:#75818F;
}
.hm-mine.is-empty::before{display:none;}
.hm-mine .hm-btn{margin-left:auto;}

/* 怎么上榜：榜上人少时下面全是空白，用它补位，顺手解释「整行可点」 */
.hm-rk-guide{
  margin:10px 0 0; padding:12px 13px 13px;
  border:1px solid #161C24; border-radius:9px; background:#0B0F14;
}
.hm-rk-guide-h{
  font-size:9.5px; color:#6E7A88; letter-spacing:.14em; margin:0 0 9px;
}
.hm-rk-guide-i{
  display:flex; align-items:flex-start; gap:8px;
  font-size:11px; color:#A6B2C0; line-height:1.55;
}
.hm-rk-guide-i + .hm-rk-guide-i{margin-top:7px;}
.hm-rk-guide-i i{
  flex:0 0 auto; width:16px; height:16px; margin-top:1px; border-radius:50%;
  display:grid; place-items:center;
  font:600 9px/1 "Bahnschrift","DIN Alternate",Consolas,ui-monospace,monospace; font-style:normal;
  color:#8B96A4; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06);
}

/* 空榜 */
.hm-rk-empty{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:7px;
  padding:32px 20px 28px;
  border:1px solid #161C24; border-radius:11px; background:#0B0F14;
}
.hm-rk-empty-ic{
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  color:#C9A24A; background:rgba(216,167,60,.08); border:1px solid rgba(216,167,60,.20);
  margin-bottom:3px;
}
.hm-rk-empty-t{font-size:13px; font-weight:600; color:#D3DBE5;}
.hm-rk-empty-d{font-size:11px; color:#6E7A88; line-height:1.65; max-width:280px;}
.hm-rk-empty .hm-btn{margin-top:6px;}

/* 载入骨架：比一行「载入中…」稳，页面不会先塌下去再弹开 */
.hm-sk{position:relative; overflow:hidden; background:#0E1217; border:1px solid #161C24;}
.hm-sk::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation:hmSk 1.15s linear infinite;
}
.hm-sk-sum{height:13px; width:54%; border:0; border-radius:4px; margin:0 0 9px; background:#0E1217;}
.hm-sk-a{height:76px;}
.hm-sk-b{height:104px;}
@keyframes hmSk{0%{transform:translateX(-100%);}100%{transform:translateX(100%);}}
@media (prefers-reduced-motion:reduce){ .hm-sk::after{animation:none;} }

.hm-note{
  margin:14px 0 0; padding-top:12px; border-top:1px solid #141A21;
  font-size:10px; color:#5A6572; line-height:1.75;
}

/* ── 底部导航 ───────────────────────────────────────── */
.hm-tabs{
  flex:0 0 auto; display:grid; grid-template-columns:repeat(4,1fr);
  width:100%; max-width:640px; margin:0 auto;
  padding-bottom:env(safe-area-inset-bottom);
  border-top:1px solid #161C24;
  background:rgba(9,12,16,.92);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.hm-tab{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:9px 0 11px; text-decoration:none; color:#7B8797;
  font-size:10px; letter-spacing:.05em; background:none; border:0;
  cursor:pointer; font-family:inherit;
  transition:color .16s;
}
.hm-tab svg{transition:transform .18s;}
.hm-tab:active svg{transform:translateY(-1px);}
.hm-tab.hm-on{color:#D8A73C;}
.hm-tab.hm-on::before{
  content:""; position:absolute; top:-1px; left:50%; transform:translateX(-50%);
  width:20px; height:2px; background:#D8A73C;
}

/* ── 图表台里的「回大厅」按钮 ─────────────────────────
   放在 #top 的品牌后面。桌面显示图标 + 文字，手机压成 30px 方块只留图标
   （手机顶栏一行要塞「品牌 / 首页 / 头像 / 回放 / 双盲」，多 40px 就会掉行）。 */
#hmBack{
  display:inline-flex; align-items:center; gap:5px; flex:none;
  height:26px; padding:0 9px; border-radius:4px; cursor:pointer;
  border:1px solid #26313f; background:#161b22; color:#A6B2C0;
  font:12px "PingFang SC","Microsoft YaHei","Segoe UI",system-ui,sans-serif;
  transition:background .12s,border-color .12s,color .12s;
}
#hmBack:hover{background:#1C222A; border-color:#3A4551; color:#E9EEF5;}
#hmBack svg{width:13px; height:13px; flex:none;}
@media (max-width:900px){
  #hmBack{padding:0; width:30px; min-width:30px; height:30px; justify-content:center;}
  #hmBack span{display:none;}
}

/* 窄屏（<360）：入口两卡改成一横排会挤，把双盲卡放宽、回放卡保底宽度 */
@media (max-width:359px){
  .hm-entries{grid-template-columns:1fr 1fr; gap:8px; margin-left:14px; margin-right:14px;}
  .hm-entry{min-height:124px; padding:12px;}
  .hm-entry h3{font-size:14px;}
  .hm-entry p{font-size:10px;}
  .hm-top{padding:10px 14px 8px;}
  .hm-brand em{display:none;}
  .hm-side b{font-size:15px;}
  .hm-strip{margin-left:14px; margin-right:14px;}
  .hm-rec,.hm-empty{margin-left:14px; margin-right:14px; width:calc(100% - 28px);}
}

/* 横屏 / 矮屏：徽章缩小，避免入口卡被挤到首屏外 */
@media (max-height:680px){
  .hm-medal svg{width:118px; height:118px;}
  .hm-entries{margin-top:12px;}
  .hm-entry{min-height:112px;}
}

/* 桌面：内容本来就只有 640 宽，全部挤在上半屏会显得空。
   这里让内容块在滚动区里垂直居中，上下留白均分。
   注意：≥960 之后会被下面的两栏工作台覆盖，这个只服务 700–960 的平板。 */
@media (min-width:700px) and (max-width:959px) and (min-height:820px){
  #home .hm-body{display:flex; flex-direction:column;}
  #home .hm-body .hm-stack{margin-top:auto; margin-bottom:auto;}
}

/* ══════════════════════════════════════════════════════════════════
   桌面 / 平板横屏（≥960）—— 两栏工作台
   问题：训练台是通栏密集布局，首页如果还是一条 640 的手机界面，
   来回切会像换了另一个产品，两边重量也不对等（一边铺满一边空着）。
   解法：首页也铺开，左边一块身份面板，右边双入口 + 本周档案 + 最近训练，
   最大 1240，两侧留白均分；四个 tab 从底部搬到顶栏下面（桌面上底部吊一条
   手机导航很怪，且顶栏本来就是这个 app 的导航位）。
   ══════════════════════════════════════════════════════════════════ */
@media (min-width:960px){
  #home .hm-wrap{max-width:1320px; padding-left:24px; padding-right:24px;}

  /* 顶栏在最上，tab 条紧贴其下 */
  #home > .hm-top{order:-2; padding-top:16px; padding-bottom:12px;}
  #home > .hm-tabs{order:-1;}
  #home .hm-body{padding:24px 0 26px;}

  .hm-brand img{width:26px; height:26px; border-radius:6px;}
  .hm-brand b{font-size:16px;}
  .hm-avatar{width:28px; height:28px;}

  .hm-tabs{
    display:flex; justify-content:flex-start; gap:2px;
    width:100%; max-width:1320px; margin:0 auto;
    padding:0 24px;
    border-top:none; border-bottom:1px solid #161C24;
    background:none;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  .hm-tab{
    flex:0 0 auto; flex-direction:row; gap:7px;
    height:44px; padding:0 14px;
    font-size:12.5px; letter-spacing:.04em;
  }
  .hm-tab svg{width:16px; height:16px;}
  .hm-tab:active svg{transform:none;}
  .hm-tab.hm-on::before{
    top:auto; bottom:0; left:14px; right:14px;
    width:auto; height:2px; transform:none;
  }

  /* ── 两栏骨架 ──
     内容比视口矮时整体居中（align-content），不要贴顶留一大片空底。
     用 grid-template-areas 而不是 grid-row 数字：hero 要跨到左栏整列，
     用 row 编号会和显式定位的兄弟元素抢行，最后算错高度。 */
  .hm-stack{
    position:relative;
    display:grid;
    grid-template-columns:352px minmax(0,1fr);
    grid-template-areas:
      "hero quick"
      "hero entries"
      "hero strip"
      "hero head"
      "hero recs";
    column-gap:26px; row-gap:0;
    margin-top:0; margin-bottom:0;
    min-height:100%;
    align-content:center;
  }
  .hm-hero{grid-area:hero; align-self:stretch;}
  .hm-entries{grid-area:entries;}
  .hm-quick-replay{grid-area:quick;margin-left:0;margin-right:0;}
  .hm-strip{grid-area:strip;}
  .hm-recent-head{grid-area:head;}
  #hmRecs{grid-area:recs;}
  /* 免责小字不参与两栏的高度分配，否则内容整体会被它往上顶，看着不居中 */
  .hm-tail{position:absolute; left:0; right:0; bottom:0; margin:0;}

  /* ── 左：身份面板 ──
     手机是三列布局（读数 | 徽章 | 读数），塞进 352 宽会挤。
     这里改成徽章独占一行、两组读数在下方平分，同时把整块做成一张面板。 */
  .hm-hero{
    margin:0; padding:32px 22px 26px;
    display:flex; flex-direction:column; justify-content:center;
    border:1px solid #1A2028; border-radius:14px;
    background:
      radial-gradient(120% 62% at 50% 0%,rgba(216,167,60,.05),transparent 72%),
      linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.004));
  }
  .hm-hero::before{top:50%; transform:translate(-50%,-50%); width:380px; height:380px;}
  .hm-hero-grid{grid-template-columns:1fr 1fr; gap:20px 12px;}
  .hm-hero-grid .hm-medal{grid-column:1 / -1; grid-row:1; justify-self:center;}
  .hm-hero-grid .hm-side{grid-row:2; align-items:center; text-align:center;}
  .hm-medal svg{width:206px; height:206px;}
  .hm-side .hm-k{font-size:11px; justify-content:center;}
  .hm-side b{font-size:20px;}
  .hm-side .hm-sub{font-size:10.5px;}
  .hm-tier{margin:20px 2px 0;}
  .hm-tier span{font-size:14px;}
  .hm-tier-next{margin-top:11px; font-size:11.5px;}

  /* ── 右：双入口放大 ── */
  .hm-entries{grid-template-columns:1.18fr 1fr; gap:14px; margin:0;}
  .hm-entry{min-height:186px; padding:22px 22px; border-radius:12px;}
  .hm-entry h3{font-size:18px;}
  .hm-entry p{font-size:12px; line-height:1.6; margin-top:7px;}
  .hm-entry .hm-foot{font-size:11.5px;}
  .hm-entry .hm-spark{width:54px; height:30px; top:18px; right:18px;}

  /* ── 右：本周档案 ── */
  .hm-strip{margin:14px 0 0; padding:18px 0; border-radius:12px;}
  .hm-strip b{font-size:18px;}
  .hm-strip span{font-size:10.5px;}

  /* ── 右：最近训练 ── */
  .hm-recent-head{margin:28px 0 12px;}
  .hm-recent-head h2{font-size:15px;}
  #hmRecs{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
  #hmRecs .hm-rec{
    width:auto; margin:0; padding:14px 16px 15px;
    border-radius:10px; min-height:112px;
    display:flex; flex-direction:column;
  }
  #hmRecs .hm-rec-top .hm-sym{font-size:14px;}
  #hmRecs .hm-rec-grid{margin-top:auto; padding-top:12px;}
  #hmRecs .hm-rec-grid > span > b{font-size:15px;}

  /* 空态：桌面这块很宽，纯文字会被拉成一条。加个图标、把 <br> 收掉让它自然折行 */
  #hmRecs .hm-empty{
    grid-column:1 / -1; margin:0; min-height:192px;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    font-size:12px; line-height:2; padding:20px 24px;
  }
  #hmRecs .hm-empty::before{
    content:""; width:26px; height:26px; margin-bottom:13px; opacity:.85;
    background:center / contain no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414C5A' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M5 4h14M5 10h14M5 16h9M5 20h5'/%3E%3C/svg%3E");
  }
  #hmRecs .hm-empty br{display:none;}
  #hmRecs .hm-empty b{display:block; margin-top:4px;}
  .hm-tail{font-size:11px;}

  /* 有鼠标才有 hover：触屏笔记本的 :hover 会粘住 */
  .hm-entry:hover{transform:translateY(-2px);}
  .hm-rec:hover{border-color:#26303A; background:#11161C;}
}

/* 1240 装不下两栏时（1024 笔记本 + 缩放），把身份面板收窄，别让右侧入口卡被压扁 */
@media (min-width:960px) and (max-width:1140px){
  .hm-stack{grid-template-columns:308px minmax(0,1fr); column-gap:20px;}
  .hm-hero{padding:24px 18px 22px;}
  .hm-medal svg{width:150px; height:150px;}
  .hm-entry{min-height:158px; padding:18px 18px;}
  .hm-entry h3{font-size:16.5px;}
  #hmRecs .hm-rec{padding:12px 13px 13px;}
}

/* ── 整页视图 · 桌面 ──
   首页在宽屏是两栏工作台，这两页也要跟着铺开，否则点进「记录」突然
   退回一条 640 的手机列，像换了个产品。 */
@media (min-width:960px){
  #home.hm-paging .hm-page.hm-on{
    max-width:1320px; padding:6px 24px 30px;
  }
  .hm-phead{padding:4px 0 16px;}
  .hm-phead h1{font-size:22px;}
  .hm-phead p{font-size:11.5px;}
  .hm-seg{display:inline-grid; grid-template-columns:none; grid-auto-flow:column; gap:3px; margin-bottom:16px;}
  .hm-seg button{padding:7px 26px; font-size:12.5px;}
  .hm-chips{margin-bottom:16px;}
  .hm-chips button{padding:6px 14px; font-size:12px;}

  #hmRecBody{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start;}
  #hmRecBody > *{margin-bottom:0;}
  /* 筛选条与统计是整块信息，不是记录卡：宽屏两列布局下必须横跨整行，
     否则它会只占左半列，右边空一大块（记录卡才是一列一张）。 */
  #hmRecBody > .hm-empty,
  #hmRecBody > .hm-rf,
  #hmRecBody > .hm-sync,
  #hmRecBody > .hm-sum,
  #hmRecBody > .hm-chips,
  #hmRecBody > .hm-more2{grid-column:1 / -1;}
  .hm-card{padding:14px 16px 15px; border-radius:9px;}
  .hm-card:hover{border-color:#26303A; background:#11161C;}
  .hm-card-grid > span > b{font-size:15px;}
  /* 宽屏一行铺满 6 项，不再两行 3 项把统计区堆高 */
  .hm-sum{padding:13px 16px;}
  .hm-sum-grid{grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px;}
  .hm-sum-grid > span > b{font-size:16px;}

  /* 桌面端三张并排：冠军 1.35 份宽，榜单前三一眼看完，冠军卡也不会被拉成 1000px 宽的空条 */
  .hm-podium{grid-template-columns:1.35fr 1fr 1fr; gap:12px; margin-bottom:12px;}
  .hm-podium[data-n="3"] .hm-pod{grid-column:auto;}
  /* 只有两人时对半分：冠军拉到 2/3 宽又会变回中间一大片空白 */
  .hm-podium[data-n="2"]{grid-template-columns:1fr 1fr;}
  .hm-podium[data-n="2"] .hm-pod{grid-column:auto;}
  .hm-podium[data-n="1"]{grid-template-columns:minmax(0,720px);}
  .hm-pod{padding:14px 16px 15px; border-radius:11px; gap:6px;}
  .hm-pod.champ{padding:18px 20px;}
  /* 桌面端三张卡等高，冠军卡只有两行内容，靠放大奖牌和数字把纵向撑起来 */
  .hm-pod.champ .hm-pod-medal{width:44px; height:44px; font-size:19px;}
  .hm-pod.champ .hm-pod-main{font-size:32px;}
  .hm-pod.champ .hm-pod-id{gap:6px;}
  .hm-pod-left{gap:13px;}
  .hm-pod-medal{width:36px; height:36px; font-size:16px;}
  .hm-pod-medal.sm{width:22px; height:22px; font-size:12px;}
  .hm-pod-nm{font-size:14px;}
  .hm-pod.champ .hm-pod-nm{font-size:17px;}
  .hm-pod-main{font-size:18px;}
  .hm-pod.champ .hm-pod-main{font-size:30px;}
  .hm-pod-tag{font-size:10.5px; padding:2px 7px;}
  .hm-rk-list{border-radius:11px;}
  .hm-rk-row{padding:13px 16px; gap:11px;}
  .hm-rk-n{flex-basis:28px; font-size:13px;}
  .hm-rk-av{width:28px; height:28px; font-size:12px;}
  .hm-rk-nm{font-size:13.5px;}
  .hm-rk-sub{font-size:10.5px;}
  .hm-rk-val{font-size:17px;}
  .hm-mine{padding:13px 16px 13px 18px; border-radius:11px; font-size:12px;}
  .hm-mine-rk b{font-size:17px;}
  .hm-mine-v{font-size:17px;}
  .hm-rk-guide{padding:14px 16px 15px; border-radius:11px;}
  .hm-rk-guide-i{font-size:11.5px;}
  .hm-note{font-size:10.5px;}
}

/* ── 训练台分流面板：回放 / 双盲 ──────────────────────────────
   底部「训练台」不再是「直接开行情库」：先问练哪种，选完才收首页进图表。
   卡片式两条，移动端和桌面共用一套（弹层本身由 member.css 的 .rsm-modal 管宽）。
   下面这些颜色是弹层里的变量名，故意写死深色值 —— 首页 CSS 没有 --line 等变量。 */
.hm-pick{display:flex; flex-direction:column; gap:10px;}
.hm-pick-i{
  display:block; width:100%; text-align:left; cursor:pointer;
  padding:14px 15px; border-radius:10px;
  border:1px solid #242B34; background:#141A21; color:#E9EEF5;
  font-family:inherit; transition:border-color .14s, background .14s, transform .14s;
}
.hm-pick-i:hover{border-color:#3A4551; background:#171E26;}
.hm-pick-i:active{transform:scale(.995);}
.hm-pick-i:focus-visible{outline:2px solid #D8A73C; outline-offset:2px;}
.hm-pick-h{display:flex; align-items:baseline; gap:8px; margin-bottom:6px;}
.hm-pick-h b{font-size:15px; font-weight:600; letter-spacing:.2px;}
.hm-pick-h em{
  font-style:normal; font-size:11px; line-height:1; color:#D8A73C;
  border:1px solid rgba(216,167,60,.36); border-radius:4px; padding:3px 6px;
}
.hm-pick-d{display:block; font-size:12.5px; line-height:1.6; color:#8B96A6;}
