/* 买家端 · 搜索结果卡：货币行 + 拥有角色（参考 chushi 结果页） */

/* 没选英雄就点「搜索」：按钮抖一下，明确是「条件不成立」而不是没反应 */
@keyframes nudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}
.opt__go.is-nudge{animation:nudge .32s ease}
@media (prefers-reduced-motion: reduce){.opt__go.is-nudge{animation:none}}
/* 搜索结果：一个账号一条通栏区块（编号 / 资源行 / 全量角色网格），照 chushi 结果页 */
.acc-grid{display:block}
.acc-block{
  padding:11px 13px 13px;border-radius:12px;background:#fff;
  box-shadow:inset 0 0 0 1px rgba(20,24,60,.075);
  /* 屏幕外的账号块整块跳过布局与绘制：滚到第 200 个号时也只算视口内那几块，
     否则 19k 个角色格每帧都要重排（手机端文档高 31 万 px，必卡） */
  content-visibility:auto;
  contain-intrinsic-size:auto 600px;
}
.acc-block + .acc-block{margin-top:10px}
.acc-block.acc-card:hover{transform:none;box-shadow:inset 0 0 0 1px rgba(20,24,60,.075)}
.acc-block__head{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding-bottom:8px;border-bottom:1px dashed rgba(20,24,60,.08);
}
.acc-id{
  font-size:.98rem;font-weight:800;letter-spacing:.03em;
  font-variant-numeric:tabular-nums;color:var(--ink);
}
.acc-copy{
  appearance:none;border:0;background:var(--brand-soft);color:var(--brand);
  font-size:.75rem;font-weight:600;padding:3px 8px;border-radius:999px;cursor:pointer;
}
.acc-copy:hover{filter:brightness(.96)}
.acc-copy.is-done{background:#e8f7ee;color:#1a7f45}
.acc-block__meta{margin-left:auto;font-size:.75rem;color:var(--ink-3)}
/* 手机专用短文案（BOSS 2026-10-26 图3）：一行里只放「（含重复 50 个）」 */
.acc-block__meta-m{display:none}
.acc-block__open{
  display:inline-flex;align-items:center;gap:2px;font-size:.75rem;font-weight:600;
  color:var(--brand);text-decoration:none;
  appearance:none;border:0;background:transparent;padding:0;cursor:pointer;font-family:inherit;
}
.acc-block__open:hover{text-decoration:underline;text-underline-offset:2px}
/* 资源行：一行内联「标签：数值」，外面套一层浅底圆角框（跟弹窗里同一套底框）。
   不画色点、不画表格线；标签与数值按中线对齐（原来按基线对齐，字号不同看起来错位）。 */
.acc-curr{
  display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px;
  width:fit-content;max-width:100%;
  margin:10px 0 0;padding:8px 14px;
  background:linear-gradient(180deg,#f8f9fd,#f1f3fa);
  border:1px solid rgba(20,24,60,.085);border-radius:11px;
}
/* BOSS 2026-10-31 图2「文字不在一个水平位上」：数字项、文字项、图片项统一按第一行基线排，
   文字项即使换行，第二行也是往下长，不会把同一行的其他项顶偏。 */
.acc-curr .curr{display:inline-flex;align-items:baseline;gap:2px;min-width:0;white-space:nowrap;line-height:1}
.acc-curr .curr i{
  display:inline-flex;align-items:center;
  font-style:normal;font-size:.75rem;line-height:1;letter-spacing:.02em;
  color:var(--ink-2);white-space:nowrap;
}
/* 冒号用伪元素补，DOM 里标签与数值仍是两个节点（读屏、断言都干净） */
.acc-curr .curr i::after{content:'：';margin-left:-2px;margin-right:-1px;color:var(--ink-3)}
/* 文本型资源项（语言）：不用数字的字重与等宽数字，跟着正文走 */
.acc-curr .curr--txt b{font-weight:650;letter-spacing:0;font-variant-numeric:normal}
/* BOSS 2026-10-31「移动端显示内容长时，超出屏幕，应该是不会自动换行显示」：
   文本项（重复说明、账号说明这类）在窄屏放不下时会撑出卡片。
   给文本项加上「最多占满一行、放不下就换行」，数字项和图片项保持不换行。 */
.acc-curr .curr--txt{align-items:baseline;max-width:100%}
/* BOSS 2026-10-31：文字项的值不再自动折行（折了之后和数字项不在一条水平线上），
   超出就省略号；被截断的项带 .curr--clip，点一下仍能展开看全文（见 :814）。 */
/* 行高必须和数字项一模一样（.curr b 是 line-height:1）：以前文字项 1.45，一格 21px、
   数字格 14px，同一行里两种高度，看起来就是「文字不在一个水平位上」。 */
.acc-curr .curr--txt b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1;text-align:left}
/* 图片型资源项（物华弥新/歧路旅人等的钻石，数据源只给一张截图）：
   按字高对齐，不撑破资源行；点开详情弹窗里同一套样式直接放大看 */
.acc-curr .curr--img b{display:inline-flex;align-items:center}
.acc-curr .curr__img{height:1.15em;max-width:7.5em;width:auto;display:block;border-radius:3px;object-fit:contain}
.acc-modal .acc-curr .curr__img{height:1.3em;max-width:11em}
.acc-curr .curr b{
  font-size:.92rem;font-weight:750;line-height:1;letter-spacing:-.005em;
  color:var(--ink);font-variant-numeric:tabular-nums;
}

/* 拥有角色：密网格，只放图（名字只在 title 里悬停看）。格子放宽到 60px，图更清楚 */
.acc-chars--grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));
  gap:7px 6px;padding:10px 0 0;border-top:0;
}
.acc-chars--plain{font-size:.72rem;color:var(--ink-3)}
/* 「+N」展开（BOSS 2026-11-08）：默认只画前 12 个，其余在 <template> 里不加载 */
.ctile-more{
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:1 / 1;border-radius:7px;border:1px dashed rgba(20,24,60,.2);
  background:transparent;color:var(--ink-3);
  font:inherit;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;
  cursor:pointer;
}
.ctile-more:hover{color:var(--ink-2);border-color:rgba(20,24,60,.34)}
.acc-chars--grid>template{display:none}
/* BOSS 2026-10-28：世界计划 / BanG Dream / 魔法少女小圆 三款有星级分类，
   结果卡里的角色图按档位分排（5 星 → 4 星 → 3 星 → 兜底），每排一行小标题。 */
.acc-chars__grphd{
  grid-column:1/-1;display:flex;align-items:center;gap:6px;
  margin:6px 0 0;font-size:.72rem;font-weight:700;color:var(--ink-3);
  font-variant-numeric:tabular-nums;
}
.acc-chars__grphd:first-child{margin-top:0}
/* 详情弹窗（.acc-modal__grid）里同一套组头：列数不同，组头也要横跨整行 */
.acc-modal__grid .acc-chars__grphd{grid-column:1/-1}
.acc-chars__grphd b{color:var(--ink);font-weight:700}
.acc-chars__grphd::after{content:"";flex:1 1 auto;height:1px;background:currentColor;opacity:.16;border-radius:1px}
/* BOSS 2026-10-28：分排标题做成可点开关——默认只展开第一档，第 2 档起收起；
   标题右侧小三角朝下=展开、朝右=收起。 */
button.acc-chars__grphd{
  width:100%;padding:2px 0;border:0;background:none;appearance:none;-webkit-appearance:none;
  font:inherit;font-size:.72rem;font-weight:700;color:var(--ink-3);text-align:left;cursor:pointer;
}
button.acc-chars__grphd:hover{color:var(--ink-2)}
button.acc-chars__grphd:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.grphd__chev{flex:0 0 auto;opacity:.65;transition:transform .18s ease}
.acc-chars__grphd.is-folded .grphd__chev{transform:rotate(-90deg)}
.acc-chars__grphd.is-folded b{color:var(--ink-3)}

.acc-chars--plain b{color:var(--ink);font-variant-numeric:tabular-nums}
.ctile{
  position:relative;display:block;
  width:auto;min-width:0;
  /* 每格隔离布局与样式：两万个格子排在一起时，改一个不影响邻居 */
  contain:layout style;
}
.ctile img,.ctile__ph{
  width:100%;aspect-ratio:1/1;height:auto;border-radius:7px;object-fit:cover;display:block;
  background:var(--brand-soft);box-shadow:inset 0 0 0 1px rgba(20,24,60,.06);
}
.ctile__ph{
  display:flex;align-items:center;justify-content:center;
  font-size:.78rem;color:var(--brand);font-style:normal;font-weight:700;
}
/* BOSS 2026-10-23：重复数量徽标和名字角标都在右上角 —— 徽标压住角标右端，跟详情页完全一样。
   以前为了让位把名字角标下移 12px，一排卡里只有带数量的那张低一截，看着像错位，那条规则已删。
   徽标 z-index 9，永远在角标之上；角标 max-width:100% 且超出截断，所以被压住的是右端几个字，不换行、不撑高。 */
.ctile__n{
  /* BOSS 2026-10-27 选 A：深色饼 17px + 白描边 1.6px + 投影 + 字号 10.5px。
     为什么加投影：白描边在浅色头发/白衣服/亮背景上会糊掉，投影是给这类画面兜底的，
     保证角标与任何底图都有一条可见边界。 */
  position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;
  display:flex;align-items:center;justify-content:center;
  background:#12162b;color:#fff;font-size:.66rem;font-style:normal;font-weight:700;
  border-radius:9px;box-shadow:0 0 0 1.6px #fff, 0 2px 6px rgba(0,0,0,.5);
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  font-variant-numeric:tabular-nums;
  /* 重复数量永远在最上层：装备格的光晕/角标都不能压住它 */
  z-index:9;
}
/* BOSS 2026-10-28：魔法少女小圆的 +N 是「界限突破次数」，不是重复张数。
   沿用同一个位置与尺寸，只换配色（品牌紫），一眼能跟重复份数的深色饼区分。 */
.ctile__n.is-lb,.mtile__n.is-lb{background:#5b5fd6;box-shadow:0 0 0 1.6px #fff, 0 2px 6px rgba(40,44,120,.55)}
/* BOSS 2026-10-27：限定卡的「限定」角标必须照抄后台「角色 → 模式1」那套角标
   （也就是 .ctile__tag 用的 .badge-danger：linear-gradient(330deg,#ffa33e 0,red 100%)、
    padding .25em .4em、圆角 0 .45rem 0 .45rem、字重 400、无投影），位置钉在图片**右上角**。
   与 .ctile__tag 的区别只有 z-index：限定角标要压在选中框之上；
   同时存在名字角标（.ctile__tag）时，名字角标自动让到左上角（见下方 .ctile__lim + .ctile__tag 规则）。
   模式2（body.tags-mode2，后台可切换）同样跟随：深色半透明、字号 11px、内边距 3px 2.5px。 */
.ctile__lim,.mtile__lim{
  position:absolute;z-index:6;top:0;right:0;
  font-style:normal;font-weight:400;line-height:1;color:#fff;text-align:center;
  padding:.25em .4em;white-space:nowrap;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;
  background:linear-gradient(330deg,#ffa33e 0,red 100%);
  border-radius:0 .45rem 0 .45rem;
  pointer-events:none;
}
.ctile__lim{font-size:.6rem;padding:.2em .36em;border-top-right-radius:7px}
.mtile__lim{font-size:.7rem;padding:.22em .4em;border-top-right-radius:9px}
/* 右上角被「限定」占了，就把名字角标让到左上角（和 UR 角标/数量徽标的让位规则同源） */
.ctile:has(.ctile__lim) .ctile__tag,.mtile:has(.mtile__lim) .mtile__tag{right:auto;left:0;
  border-top-right-radius:0;border-top-left-radius:7px}
body.tags-mode2 .ctile__lim,body.tags-mode2 .mtile__lim{
  background:rgba(24,34,48,.45);background-image:none;
  font-size:11px;font-weight:400;padding:3px 2.5px;color:#fff;text-shadow:none;
}

/* 选中角色：颜色沿用选角页的 --brand（跟「已选英雄」的框同一色），但框更细 —— 卡面格子只有 50~76px，
   2px 会吃掉画面；这里 1.25px（弹窗 1.5px），颜色不变，一眼能对上「我选的就是这个」。 */
.ctile.is-picked img,.ctile.is-picked .ctile__ph{
  box-shadow:0 0 0 1.5px var(--brand), 0 0 0 3px rgba(125,132,255,.14), inset 0 0 0 1px rgba(20,24,60,.06);
}
.mtile.is-picked img,.mtile.is-picked .mtile__ph{
  box-shadow:0 0 0 2px var(--brand), 0 0 0 4px rgba(125,132,255,.14), inset 0 0 0 1px rgba(20,24,60,.06);
}
/* 同一条毛病在结果页/详情页也有：角色图的 img 被 .fxclip 裁（环看不见），
   装备图的 img 是 124% 整图画布（环飘出 12%）。所以环改落在 .fxclip / .eqwrap 上。 */
.ctile.is-picked .fxclip,.ctile.is-picked .eqwrap{
  box-shadow:0 0 0 1.5px var(--brand), 0 0 0 3px rgba(125,132,255,.14);
}
.mtile.is-picked .fxclip,.mtile.is-picked .eqwrap{
  box-shadow:0 0 0 2px var(--brand), 0 0 0 4px rgba(125,132,255,.14);
}
/* BOSS 2026-10-22 16:52 ③：环贴在 .eqwrap（=格子）上，但它是方角的，
   而烘好的卡片底板是 14% 圆角 —— 四个角就露出一块底板外的透明区，看起来「四周边沿留白」。
   环的圆角跟卡片一致（小卡 9px / 结果格 7px / 详情格 10px），角上就贴住了。 */
/* 环的圆角就是卡片底板的圆角（.eqwrap 在 style.css 里统一定为 14%，等于烘焙器的 RADIUS=0.14），
   三处不再各写一个 px 值。 */
/* 只对「有裁剪窗」的角色图关掉 img 上的重复环；没有 .fxclip 的角色格 img 就是唯一可见层，
   环必须留在 img 上（否则点了看不出选中，BOSS 图3 结果页的角色就是这种）。 */
.ctile.is-picked .fxclip img,.mtile.is-picked .fxclip img{box-shadow:none}
/* 结果页/详情页的装备整图带 ctile__pic / mtile__pic 类，
   上面给「无窗角色 img」恢复的环会同时落在 124% 整图画布上 → 再飘一圈。装备格一律不认。 */
.ctile.is-picked .eqcard,.mtile.is-picked .eqcard,.psel .eqcard{box-shadow:none}

/* BOSS 2026-10-31：道具明细的标题/行样式跟卡面星级分组头一套（细体小字 + 右侧一条淡线），
   每一项独占一行、名字在左、数量靠右 —— 与图 1 一致。 */
/* BOSS 2026-10-31「道具明细的样式跟前面的分档头一样（样式看图2）」：
   「道具明细 N 项」= 与「4星 86」完全同款的可折叠组头 —— 同一套字号/字重/灰色/
   右侧淡线/末尾小三角，点击收起或展开。 */
.itembox{margin:10px 0 0}
.itembox__head{display:flex;align-items:center;gap:6px;width:100%;margin:0;padding:2px 0;
  border:0;background:none;appearance:none;-webkit-appearance:none;font:inherit;
  font-size:.72rem;font-weight:700;color:var(--ink-3,#888a8f);font-variant-numeric:tabular-nums;
  text-align:left;cursor:pointer}
.itembox__head:hover{color:var(--ink-2,#5f6269)}
.itembox__head:focus-visible{outline:2px solid var(--brand,#5b5fd6);outline-offset:2px;border-radius:6px}
.itembox__head b{color:var(--ink,#282a2d);font-weight:700}
.itembox__head::after{content:"";flex:1 1 auto;height:1px;background:currentColor;opacity:.16;border-radius:1px}
.itembox.is-folded .itembox__grid{display:none}
.itembox.is-folded .itembox__head .grphd__chev{transform:rotate(-90deg)}
.itembox.is-folded .itembox__head b{color:var(--ink-3,#888a8f)}
/* ���Դ���Ϣ���ɡ���Ƭ + ��ɫ���ҡ���BOSS 2026-10-27��������ǰ����Դ��ͼ�ں��� */
/* BOSS 2026-10-31「道具说明也像前面的类型一样，有画线区分」：
   药丸底色是上一版为了看清图标加的，现在改成和资源行/规格块一套的「画线分隔」：
   上半边细线 + 每个格子底边细线 + 两列之间的竖线，读起来像一张清单。 */
/* BOSS 2026-10-31：道具明细直接照抄上面的资源行 —— 同一套内联排布、同一个底框，
   不再按格子分行、也不再给每项画横线/竖线；名字长的自然换到下一行，和资源行一个读法。 */
.itembox__grid{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;
  width:100%;max-width:100%;padding:2px 0 0}
.item{display:flex;min-width:0;padding:6px 2px;border:0;margin:0}
.item__pill{display:flex;align-items:center;gap:7px;min-width:0;width:100%;
  padding:0;border:0;border-radius:0;background:transparent;color:#2b2e37}
.item__pill .item__i{flex:none;width:20px;height:20px;margin:0;object-fit:contain;
  align-self:center;border-radius:5px;image-rendering:-webkit-optimize-contrast}
.item__pill .item__ph{flex:none;width:20px;height:20px;margin:0;align-self:center;border-radius:5px;
  background:rgba(24,28,48,.07)}
.item__pill .item__n{flex:1 1 auto;min-width:0;overflow:hidden;color:#4a4d57;font-size:.8rem;font-weight:600;
  line-height:1.25;display:block;white-space:nowrap;text-overflow:ellipsis;max-width:none}
.item__pill .item__x{flex:none;margin:0 0 0 auto;padding:0 0 0 10px;line-height:1.25;color:#5b5fd6;font-size:.82rem;font-weight:700;
  font-variant-numeric:tabular-nums;white-space:nowrap}
/* 手机端：同一套排布，只是图标/字号再收一点，放不下就自然折行（不强行一项一行） */
@media (max-width:767px){
  /* BOSS 2026-10-31：手机上道具明细一排 1 个，项内顺序同样是「图片 → 文字 → 数量」。 */
  .itembox__grid{display:flex;flex-direction:column;width:100%;padding:0}
  .item{display:flex;width:100%;padding:5px 0}
  .item__pill{width:100%}
  .item__pill .item__i,.item__pill .item__ph{order:-1;width:18px;height:18px}
  .item__pill .item__n{font-size:.76rem;max-width:none}
  .item__pill .item__x{margin:0 0 0 auto;font-size:.8rem}
}

/* BOSS 2026-10-31（世界计划 PJSK · PC 端详情页）：道具明细每排 3 个，
   三列定宽、图标都落在各自列首，数量右对齐到列尾，纵向逐列对齐才好对比。
   手机端（<=767px）保持一项一行的读法不动。 */
@media (min-width:768px){
  .itembox__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;padding:2px 0 0}
  .item{display:flex;padding:7px 0;min-width:0}
  .item__pill{width:100%;gap:11px}
  /* 顺序固定为「图片 → 文字 → 数量」（BOSS 2026-10-31），图片 34px 看得清，
     三列等宽 + 图片都在列首 = 纵向逐列对齐。 */
  .item__pill .item__i{order:-1;width:34px;height:34px;border-radius:8px}
  .item__pill .item__ph{order:-1;width:34px;height:34px;border-radius:8px}
  .item__pill .item__n{flex:1 1 auto;min-width:0}
  .item__pill .item__x{flex:none;margin:0 0 0 auto;padding-left:12px}
}

@media (max-width:640px){
  .acc-chars--grid{grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:7px 5px}
  .acc-curr{gap:4px 14px}
  .acc-curr .curr b{font-size:.9rem}
  /* 窄屏：文本项独占一行（标签在上、内容在下会太碎，这里保持「标签：内容」同一行起排，
     内容放不下就自己换行），并留足左右内边距，读数不贴边。 */
  .acc-curr .curr--txt{flex:0 1 auto;max-width:100%}
  /* 手机窄屏：文字项允许折行（否则长说明只能被省略号吃掉，手指点不开全文）；
     一行只放一项时不存在基线和高度错位的问题。 */
  .acc-curr .curr--txt b{white-space:normal;overflow-wrap:anywhere;font-size:.86rem;line-height:1.35}
  .acc-curr .curr--img,.acc-curr .curr--num{flex:0 0 auto}
  .acc-block__meta{display:none}
  /* 手机端一个账号块实测约 1.6k px（角色格一行只放 3–4 个），估算值按这个给，滚动才不跳 */
  .acc-block{contain-intrinsic-size:auto 1600px}
}

/* ---------------- 详情弹窗 ----------------
   卡面图只有 50 来像素，看不清是谁；点详情按后台设置的角色图尺寸（--acc-px）重铺。 */
body.is-modal{overflow:hidden}
.acc-modal{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:24px}
.acc-modal__mask{
  position:absolute;inset:0;background:rgba(14,17,34,.46);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  opacity:0;transition:opacity .2s ease;
}
.acc-modal__panel{
  position:relative;display:flex;flex-direction:column;
  width:min(980px,100%);max-height:min(80vh,860px);
  background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 28px 70px -24px rgba(14,17,34,.45),0 2px 8px rgba(14,17,34,.08);
  opacity:0;transform:translateY(10px) scale(.992);
  transition:opacity .2s cubic-bezier(.2,.8,.2,1),transform .24s cubic-bezier(.2,.8,.2,1);
}
.acc-modal.is-on .acc-modal__mask{opacity:1}
.acc-modal.is-on .acc-modal__panel{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .acc-modal__mask,.acc-modal__panel{transition:none}
}
.acc-modal__head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:15px 20px;border-bottom:1px solid rgba(20,24,60,.08);background:#fff;
}
.acc-modal__id{
  font-size:1.16rem;font-weight:800;letter-spacing:.02em;
  font-variant-numeric:tabular-nums;color:var(--ink);
}
.acc-modal__meta{margin-left:auto;font-size:.8rem;color:var(--ink-3)}
.acc-modal__meta-m{display:none}
/* 校准状态的容器：PC 上 display:contents 让它跟以前一样待在头行里 */
.acc-modal__liveRow{display:contents}
/* 「正在校准…」/「已校准」：让买家（和客服）看得出这一次是真的回了数据源，不是照着缓存画 */
.acc-modal__live{
  font-size:.72rem;line-height:20px;padding:0 8px;border-radius:20px;
  color:var(--ink-3);background:var(--brand-soft);white-space:nowrap;
}
.acc-modal__live.is-done{color:#0a7a6c;background:#e7f8f4}
/* 2026-11-08：这次没连上数据源（超时 / 熔断），显示的还是缓存 —— 不能和「刚校准过」同一个绿色 */
.acc-modal__live.is-warn{color:#8a5a00;background:#fdf3d8}
/* 校准回来发现已售：状态点变红，弹窗内容换成下面这块提示（BOSS 2026-10-23） */
.acc-modal__live.is-sold{color:#b42318;background:#fdecea}
.acc-sold{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:9px;padding:46px 24px 40px;
}
.acc-sold__ic{
  display:grid;place-items:center;width:56px;height:56px;border-radius:50%;
  color:#d92d20;background:#fdecea;border:1px solid #f6c9c4;
}
.acc-sold__t{font-size:1rem;font-weight:800;color:#1a1c22;letter-spacing:.01em}
.acc-sold__b{
  margin-top:8px;height:34px;padding:0 18px;border-radius:9px;cursor:pointer;
  border:1px solid #d9dcea;background:#fff;color:#2a2e3a;
  font:600 .82rem/1 inherit;
}
.acc-sold__b:hover{border-color:#7d84ff;color:#5b63f0}
.acc-sold__b:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(125,132,255,.18)}
.acc-modal__x{
  display:grid;place-items:center;width:34px;height:34px;margin-left:4px;
  appearance:none;border:0;border-radius:9px;background:transparent;
  color:var(--ink-2);cursor:pointer;
}
.acc-modal__x:hover{background:var(--brand-soft);color:var(--ink)}
.acc-modal__body{overflow:auto;padding:0 20px 22px;overscroll-behavior:contain}
/* 弹窗里同样的单行排列，只是整条铺开、字号放大：买家点开详情第一眼要看的东西 */
.acc-modal .acc-curr{
  width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:10px 34px;
  margin-top:16px;padding:13px 18px;
  background:linear-gradient(180deg,#f8f9fd,#f1f3fa);
  border:1px solid rgba(20,24,60,.085);border-radius:12px;
}
.acc-modal .acc-curr .curr i{font-size:.8rem}
.acc-modal .acc-curr .curr b{font-size:1.18rem;font-weight:800;letter-spacing:-.01em}
.acc-modal__grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--acc-px,104px),1fr));
  /* 份数徽标 .mtile__n 是 top:-6px / right:-6px（带 2px 白描边），最右一列会顶出容器被裁，
     所以左右各留 7px 安全边，徽标完整落在可视区内（BOSS 2026-11-01「左右两边图片和文字缺失」） */
  gap:16px 12px;padding:14px 7px 4px;
}
.mtile{position:relative;display:block;min-width:0}
.mtile img,.mtile__ph{
  width:100%;aspect-ratio:1/1;height:auto;display:block;object-fit:cover;
  border-radius:10px;background:var(--brand-soft);
  box-shadow:inset 0 0 0 1px rgba(20,24,60,.06);
}
.mtile__ph{
  display:grid;place-items:center;font-style:normal;font-weight:700;
  font-size:1.2rem;color:var(--brand);
}
.mtile__n{
  position:absolute;top:-6px;right:-6px;min-width:24px;height:24px;padding:0 5px;
  display:grid;place-items:center;border-radius:12px;background:#12162b;color:#fff;
  font-size:.78rem;font-style:normal;font-weight:700;
  box-shadow:0 0 0 2px #fff, 0 2px 7px rgba(0,0,0,.5);
  text-shadow:0 1px 2px rgba(0,0,0,.45);font-variant-numeric:tabular-nums;
  z-index:9;
}
/* 详情页里的装备格：与列表格、选角格子同一套外观（深灰底板 + 光晕 + 稀有度角标）。
   光晕跟选角格子一样 inset:-12% / saturate(1.06)，光带从格子边缘透出去；
   溢出到邻格会压掉邻格的「重复数量」徽标，所以带徽标的格子整体抬到最上层。 */
.mtile.is-eq{background:#1b1d22;border-radius:10px;isolation:isolate}
.mtile.is-eq::before{
  content:"";position:absolute;inset:-12%;z-index:0;pointer-events:none;
  background:url(/uploads/glow/glow-2.png) center/contain no-repeat;
  filter:saturate(1.06);
}
.mtile:has(.mtile__n){z-index:5}
.mtile.is-eq img,.mtile.is-eq .mtile__ph{position:relative;z-index:1;background:transparent;box-shadow:none}
.mtile.is-eq .mtile__rhy{z-index:2}
.mtile.is-eq:has(.mtile__n) .mtile__rhy{right:calc(5% + 26px)}
/* BOSS 2026-10-25：整图格（is-baked）自己已经把深灰底板与光晕烘进 webp 了，格子再垫一层
   .mtile.is-eq 的深灰底，四周就多出一圈「黑框」——而列表格（.ctile）从来没有这条底色，
   于是同一个支援卡在搜索结果里干净、点开详情却带黑边。整图格一律不垫底色、不出伪元素光晕。 */
.mtile.is-eq.is-baked{background:transparent}
.mtile.is-eq.is-baked::before{display:none}

/* 详情里只放图：名字靠 title 悬停看，卡面网格里已有名字 */

@media (max-width:640px){
  .acc-modal{padding:0}
  .acc-modal__panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  /* 弹窗头部：BOSS 2026-10-26「沿用结果卡那种排版」→ 编号 / 复制ID / 短文案 / 关闭 一行，
     校准状态自己掉到第二行，不再跟编号、复制ID 抢宽度（原来复制ID 被挤到最右边、和 × 贴在一起） */
  /* BOSS 2026-10-26（第三次）：「图2顶部3个元素要在一个水平位置」→
     编号 / 复制ID /（含重复 M 个）/ 校准状态 / × 全部同一行、垂直居中；
     只让短文案可缩（省略号），其余一律不缩不换行 */
  /* BOSS 2026-10-26（第四次）：框选的 4 个元素 = 编号 / 复制ID /（含重复 M 个）/ 校准状态，
     必须同一条水平线；× 改成绝对定位悬浮在右侧（压在那一行上面），不再占行内宽度 */
  .acc-modal__head{position:relative;padding:11px 40px 11px 12px;gap:5px;flex-wrap:nowrap;align-items:center}
  .acc-modal__id{order:1;flex:0 0 auto;font-size:.9rem;white-space:nowrap;line-height:1.2;letter-spacing:-.01em}
  .acc-modal__head .acc-copy{order:2;flex:0 0 auto;margin-left:0;min-height:26px;padding:0 5px;font-size:.7rem;line-height:1;border-radius:6px}
  .acc-modal__meta{display:none}
  .acc-modal__meta-m{
    display:inline-block;order:3;margin-left:auto;flex:0 1 auto;min-width:0;
    font-size:.64rem;line-height:1.2;color:var(--ink-3);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .acc-modal__liveRow{display:contents;order:4}
  .acc-modal__live{order:4;flex:0 0 auto;margin-left:0;font-size:.64rem;line-height:1.2;white-space:nowrap}
  .acc-modal__x{position:absolute;top:4px;right:2px;order:5;margin:0;z-index:3}
  /* 资源栏：3 条（钻石 / 抽抽乐券 / 希望粉尘）必须一行放下，字号下调一档 */
  /* 3 条资源（钻石 / 抽抽乐券 / 希望粉尘）在 390 宽必须一行；≥4 条（含服务器、创建时间）才换行，不裁字 */
  .acc-modal .acc-curr{flex-wrap:wrap;gap:6px 12px;margin-top:12px;padding:10px 12px}
  .acc-modal .acc-curr .curr{min-width:0}
  .acc-modal .acc-curr .curr i{font-size:.68rem}
  .acc-modal .acc-curr .curr b{font-size:.92rem;font-weight:750}
  .acc-modal__body{padding:0 14px 20px}
  /* 手机上把校准状态单独放到第二行，别跟 ID 抢宽度（见上一条 head 规则） */
  .acc-modal__grid{grid-template-columns:repeat(auto-fill,minmax(min(var(--acc-px,104px),40vw),1fr));gap:12px 10px}

}

/* 320（iPhone SE 竖屏）这类极窄屏：短文案让一点宽度，保住「× 在第一行最右」 */
@media (max-width:340px){
  .acc-modal__meta-m{overflow:hidden;text-overflow:ellipsis}
  /* 320 屏：资源栏再收一档，保证 3 条仍然同行 */
  .acc-modal .acc-curr{gap:6px 8px;padding:9px 10px}
  .acc-modal .acc-curr .curr i{font-size:.62rem}
  .acc-modal .acc-curr .curr b{font-size:.84rem}
}


/* 名字里的【限定】【T0】【新】做图片右上角徽标，字体照抄 byssr.com/tag/nikke 的 .badge.badge-danger.text-ss：
   .badge      padding:.25em .4em;line-height:1;white-space:nowrap  (bootstrap)
   .text-ss    font-size:.8rem!important
   .badge.text-ss  font-weight:400          ← 真实站是常规字重、没有投影
   .badge-danger   background:linear-gradient(330deg,#ffa33e 0,red 100%);position:absolute;top:0;right:-4px;border-radius:0 .45rem 0 .45rem
   .badge-danger.new  background:linear-gradient(135deg,#7d84ff 50%,#9e76ff 100%)  ← 「新」是紫色
   两处不照搬：①right 用 0 而不是 -4px——真实站的图外面还有 4px 内衬，我们的 <img> 就是最外层，照搬会外挑 4px、放大看像没对齐；
   ②右上圆角用图自己的 10px 而不是 .45rem(7.2px)——7.2 的弧比图的 10 更方，角上会漏出一小块底色。 */
.ptile__tag,.psel__tag,.ctile__tag,.mtile__tag{
  font-style:normal;font-weight:400;line-height:1;color:#fff;text-align:center;
  padding:.25em .4em;white-space:nowrap;
  /* BOSS 2026-10-23：角标最长不超过图片宽度，名字再长也只在图内，超出部分不显示（省略号收尾） */
  max-width:100%;overflow:hidden;text-overflow:ellipsis;
  background:linear-gradient(330deg,#ffa33e 0,red 100%);
  border-radius:0 .45rem 0 .45rem;
}
.ptile__tag{position:absolute;z-index:3;top:0;right:0;font-size:.72rem;padding:.18em .34em;
  border-top-right-radius:10px;transition:transform .16s ease}
.psel__tag{position:absolute;font-size:.5rem;padding:.16em .3em;border-radius:0 .3rem 0 .3rem;border-top-right-radius:9px}
/* 「新」不再单独配色：和「限定」「T0」同一套橙红渐变，只保留 .tag--new 这个钩子 */
/* 角标占右上角，选中勾让到左上角 */
.ptile__ck{left:4px;right:auto;transition:transform .16s ease}

/* 已选择英雄：只显示图（方卡 + 右上角标签 + 右下角重复数 + 左上角 ×），名字只进 title */
/* 间距 18px：装备小卡是 124% 的整图画布（底板 64 + 左右各 7.5 光晕），
   原来 8px 的间距会让相邻两张卡的边光互相压住 7px。角色卡不受影响。 */
.pick__sel-list{gap:18px;align-items:flex-start}
.psel{display:inline-flex;flex-direction:column;gap:0;height:auto;width:64px;flex:none;
  padding:0;border-radius:0;background:none;box-shadow:none;color:var(--ink); position:relative}
.psel__shot{position:relative;display:block;width:64px;height:64px;border-radius:9px;
  background:var(--brand-soft);overflow:visible}
.psel__pic{width:64px;height:64px;border-radius:9px;object-fit:cover;display:block}
.psel__pic--ph{display:flex;align-items:center;justify-content:center;font-size:.8rem;color:var(--brand)}

/* 角色图比例：结果卡 / 详情弹窗 / 已选小卡跟着 body.ch-ar-custom 走（见 style.css 同名注释） */
body.ch-ar-custom .ctile img,body.ch-ar-custom .ctile__ph{aspect-ratio:var(--ch-ar);object-fit:contain}
body.ch-ar-custom .mtile img,body.ch-ar-custom .mtile__ph{aspect-ratio:var(--ch-ar);object-fit:contain}
body.ch-ar-custom .psel__shot{width:auto;height:64px;aspect-ratio:var(--ch-ar)}
body.ch-ar-custom .psel__pic{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.psel__tag{top:0;right:0}
/* BOSS 2026-10-23：名字前面的【】一律做成「图片右上角」角标（不限字数），
   选角格 / 已选小卡 / 结果格 / 详情格四处同款：
   · 角标钉在图片右上角，宽度上限 = 图片宽度（max-width:100%），长名截断成省略号；
   · 右上角已经有 UR 角标（棕色2 装备）或重复数量徽标时，标签让到左上角，谁也不压谁。 */
.ctile__tag,.mtile__tag{position:absolute;z-index:4;top:0;right:0;
  border-top-right-radius:7px;transition:transform .16s ease}
.ctile__tag{font-size:.6rem;padding:.14em .28em}
.mtile__tag{font-size:.7rem;padding:.18em .32em;border-top-right-radius:9px}
.ctile:has(.eqrhy) .ctile__tag,.mtile:has(.eqrhy) .mtile__tag,
.ptile.is-eq .ptile__tag,.psel.is-eq .psel__tag{right:auto;left:0;
  border-top-right-radius:0;border-top-left-radius:7px}
.psel__n{position:absolute;right:3px;bottom:3px;min-width:17px;height:17px;padding:0 4px;
  border-radius:9px;background:rgba(12,14,26,.92);color:#fff;font-size:10.5px;font-weight:700;
  line-height:17px;text-align:center;font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 1.6px #fff, 0 2px 6px rgba(0,0,0,.5)}
.psel__x{position:absolute;left:-10px;top:-10px;width:14px;height:14px;border-radius:50%;
  background:rgba(16,18,32,.82);color:#fff;display:inline-flex;z-index:3;
  box-shadow:0 0 0 1.5px rgba(255,255,255,.92), 0 1px 4px rgba(16,18,32,.28)}
.psel__x:hover{background:#e5484d}
/* BOSS 2026-10-31：给「自定义了角标词表」的游戏（body.tag-anchor-right，如少女前线2：追放）
   把名字角标钉回右上角 —— 不再为了躲 UR 烘焙角标 / 份数徽标让到左上。 */
body.tag-anchor-right .ptile.is-eq .ptile__tag,
body.tag-anchor-right .psel.is-eq .psel__tag,
body.tag-anchor-right .ctile:has(.eqrhy) .ctile__tag,
body.tag-anchor-right .mtile:has(.eqrhy) .mtile__tag{
  right:0;left:auto;border-top-right-radius:7px;border-top-left-radius:0;
}
/* BOSS 2026-10-22 16:52 ②：× 全部统一到左上（原装小卡在左下）。
   但装小卡的 UR 角标是烘在图里的（实测右沿到 44.5%、下沿 34.4% 画布），
   放 2px 内缩只能盖住「U」、露出半截「R」，看起来像图坏了。
   所以统一放到格子左上角的外沿（left/top:-10px，14px 圆），右沿落在 x=4px，
   刚好停在 UR 角标（内缩 3.2px 起）之外 —— 位置仍然是左上、角色装装完全一致，且不压角标。
   加一圈白色描边当白底卡片上的小关闭钕，外溢 10px 小于已选区 18px 的卡间距。 */

/* 悬停时 style.css 让 .ptile__pic 上移 2px；角标和勾是 .ptile 的绝对定位子元素，不跟就错位 2px，
   这里用同样的位移与缓动让三者一起走，位置关系保持不变。
   2026-10-23：带 icon_focus 的图在 .fxclip 里带行内 transform（缩放/位移），行内样式压过 :hover，
   于是图画框不动、只有角标上移 2px（实测 dBox=0 / dTag=-2，角标和图上沿差 2px）。
   补上 .fxclip 一起位移，三者在两种情况下都保持贴死。 */
.ptile:hover .ptile__tag,
.ptile:hover .ptile__ck,
.ptile:hover .fxclip{transform:translateY(-2px)}

/* 结果不多时也要能滚到结果区顶部：给结果区垫足够高度，不让页面提前到底 */
body.is-game #view{min-height:calc(100vh - 84px)}



/* 加密游戏的门：后台设了口令 → 前台先停一屏 */
.lockgate{max-width:420px;margin:56px auto;padding:30px 26px 26px;border:1px solid var(--line,#e6e4ef);border-radius:16px;background:#fff;text-align:center}
.lockgate__ic{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f4f2ff;color:#6b5cff}
.lockgate__t{margin:0 0 6px;font-size:18px;font-weight:600;color:#1c1b22}
.lockgate__sub{margin:0 0 18px;font-size:13px;color:#7a7787}
.lockgate__f{display:flex;gap:8px}
.lockgate__f input{flex:1;height:40px;padding:0 12px;border:1px solid var(--line,#ddd9ea);border-radius:10px;font-size:14px;outline:none}
.lockgate__f input:focus{border-color:#6b5cff;box-shadow:0 0 0 3px rgba(107,92,255,.12)}
.lockgate__go{height:40px;padding:0 18px;border:0;border-radius:10px;background:#6b5cff;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.lockgate__go:disabled{opacity:.6;cursor:default}
.lockgate__msg{min-height:18px;margin:10px 0 0;font-size:12.5px;color:#c0392b}

/* 瀑布流哨兵：滚到底自动取下一页，不再显示「加载更多」按钮 */
.more-btn{
  appearance:none;border:1px solid rgba(20,24,60,.12);background:#fff;color:var(--ink);
  font-size:.86rem;font-weight:600;padding:10px 22px;border-radius:999px;cursor:pointer;
  box-shadow:0 1px 2px rgba(20,24,60,.05);
}
.more-btn:hover{border-color:var(--brand);color:var(--brand)}
.more-btn:disabled{opacity:.6;cursor:default}
.acc-more{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:20px 0 30px;color:var(--ink-3);font-size:.8rem}
.acc-more--end{padding:22px 0 34px;font-size:.78rem;opacity:.9}
.acc-more__dot{width:.45rem;height:.45rem;border-radius:50%;background:currentColor;animation:accPulse 1s ease-in-out infinite}
@keyframes accPulse{0%,100%{opacity:.2}50%{opacity:.95}}

/* 手机端收尾覆盖：必须放在文件最后 —— .psel / .ptile__tag 的基础规则在上面，
   同特异性下后出现的胜出，写在前面的媒体查询会被它们盖掉（第一版就踩了这个坑）。 */
@media (max-width:640px){
  .ptile__tag{font-size:.62rem;padding:.14em .28em;border-top-right-radius:8px}
  .ptile__ck{left:3px;top:3px;width:14px;height:14px}
  .psel,.psel__shot,.psel__pic{width:48px;height:48px}
  .psel__shot,.psel__pic{border-radius:8px}
  .psel__tag{font-size:.46rem;padding:.12em .26em;border-top-right-radius:7px}
}
/* 人工框选显示区域：搜索结果格 / 详情格（BOSS 2026-10-22） */
.ctile img.ctile__pic,.mtile img.mtile__pic{object-fit:cover}
.ctile .fxclip--ctile,.mtile .fxclip--mtile{background:var(--brand-soft)}

/* 装备整图（后台烘好的单图）：四处统一按 124% 画布摆放。
   这里的四条选择器专门压掉上面按格子写死的 .psel__pic{width:64px} / .mtile img{width:100%}，
   否则小卡和详情弹窗里的整图会退回格子大小，底板被裁掉一圈。 */
.ptile .eqcard,.psel .eqcard,.ctile .eqcard,.mtile .eqcard{
  position:absolute;left:-12%;top:-12%;width:124%;height:124%;
  max-width:none;border-radius:0;background:transparent;box-shadow:none;
  object-fit:contain;aspect-ratio:auto;
}

/* BOSS 2026-10-22 16:52 ②：× 全部统一在左上（角色卡、装备卡一致）。
   曾经把装备小卡的 × 挪到左下躲开烘在图左上的 UR，结果已选区里两套位置不一样；已删。
   UR 被 × 遮住不影响信息 —— 装备卡一律 UR，没有稀有度之分（BOSS 定）。 */

/* BOSS 2026-10-22 23:1x：UR 角标改到「右上」（不再烘进图片，改成 CSS 的 .eqrhy），
   左上空出来了，所以装备格的选中勾回到左上（left:4px），与角色格完全一致。
   原来那条 `.ptile.is-eq .ptile__ck{left:auto;right:3px}` 已删。 */
/* 有「重复数量」徽标的格子：数量徽标占右上（top/right:-3px，z-index:9），
   UR 角标自动左移让位，两者不叠。 */
.ctile:has(.ctile__n) .eqrhy{right:calc(5% + 22px)}
.mtile.is-eq:has(.mtile__n) .eqrhy{right:calc(5% + 28px)}

/* ===== 显示模式2（BOSS 2026-10-23 定稿，后台「显示模式」切到 2 才生效）=====
   做法就是「现状（橙红渐变角标）的复制」：位置、圆角、最宽=图片宽、超出省略、
   让位规则（UR 角标 / 数量徽标）全部沿用基类，只把底色换掉，并按 BOSS 微调面板的定稿值
   改字号与内边距：字号 11px / 左右 2.5px / 上下 3px / 字重 400 / 无文字阴影。
   底色：深色半透明 rgba(24,34,48,.45)（BOSS 2026-10-23 定稿）。
   注意：红色的那处是**后台工具栏的「模式2」按钮**（见 manage/index.html 的 .tmode），不是角标。
   每个游戏各自开关，由 body.tags-mode2 决定。 */
body.tags-mode2 .ptile__tag,
body.tags-mode2 .psel__tag,
body.tags-mode2 .ctile__tag,
body.tags-mode2 .mtile__tag{
  background:rgba(24,34,48,.45);
  background-image:none;
  font-size:11px;
  font-weight:400;
  padding:3px 2.5px;
  color:#fff;
  text-shadow:none;
}

/* ===== 版本（二级目录）+ 查询页选择器（BOSS 2026-10-23） ===== */
.work-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.work-card{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--line,#e6e9f2);border-radius:14px;background:#fff;color:inherit;text-decoration:none;transition:box-shadow .16s ease,transform .16s ease,border-color .16s ease}
.work-card:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(20,28,60,.08);border-color:#cdd6f5}
/* BOSS 2026-11-09：直达卡右侧那个 ↗ 箭头也去掉 —— 卡片本身够干净，箭头多余。 */
/* BOSS 2026-10-25 晚：「卡片宽度保持不变的前提下，适当放大一点 LOGO 大小」——
   46 → 56（+22%），圆角同步 12 → 14 保持视觉比例；卡片宽度由 .work-grid 的列宽决定（minmax 240px），
   加大 LOGO 只让卡片长高 10px，不改变列数与卡片宽度。 */
.work-logo{flex:0 0 auto;width:56px;height:56px;border-radius:14px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#eef1ff,#e4e9ff);color:#5b6bff;font-weight:700;font-size:19px}
.work-logo img{width:100%;height:100%;object-fit:cover}
.work-meta{min-width:0}
.work-grid .game-name{font-size:.95rem;font-weight:600}
.work-grid .game-name-en{font-size:.76rem;color:var(--muted,#8b93a7);margin-top:2px}
.work-note{font-size:.76rem;color:var(--muted,#8b93a7);margin-top:4px}
/* 数据源直达：与版本卡同一套（BOSS 2026-10-25「界面保持统一」），带 {q} 的那张卡在下面多一行表单 */

/* 二级目录（版本卡）手机端：说明与版本名同一水平位（BOSS 2026-10-25 图4）
   桌面维持「版本名 / 区服·开服日 / 说明」三行；手机上把说明抽到版本名右侧同一行，
   「区服 · 开服日」自己占下一行 —— 用 flex 换行 + order 调顺序，不改 DOM 结构。 */
@media (max-width:991.98px){
  .work-meta{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
  .work-meta .game-name{order:0;flex:0 1 auto}
  .work-meta .work-note{order:1;flex:0 1 auto;margin-top:0}
  .work-meta .game-name-en{order:2;flex:1 0 100%;margin-top:2px}
}
.opt--filters{display:inline-flex;gap:10px;align-items:center}
.opt--filters .opt{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.opt--filters select{height:32px;padding:0 8px;border:1px solid var(--line,#2a3040);border-radius:9px;background:transparent;color:inherit;font-size:.82rem}


/* 数据源链接直达（BOSS 2026-10-23 新功能）：新游戏还没接入站内查询时的落地卡。
   后台把该游戏切成 direct，前台就不画选角区，只给这张卡把买家送去数据源站。 */
.direct{max-width:560px;margin:44px auto;padding:32px 28px;background:var(--panel,#fff);border-radius:16px;
  box-shadow:0 10px 30px rgba(16,18,24,.08);text-align:center}
.direct__ico{width:52px;height:52px;margin:0 auto 14px;border-radius:14px;display:flex;align-items:center;
  justify-content:center;font-size:24px;font-weight:700;color:#fff;background:linear-gradient(135deg,#7d84ff,#5b63f0)}
.direct__t{margin:0 0 8px;font-size:19px;font-weight:650;color:var(--ink,#14161c)}
.direct__p{margin:0 0 18px;font-size:14px;color:var(--ink-2,#5a6070);line-height:1.6}
.direct__f{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.direct__f input{flex:0 1 240px;min-width:180px;height:40px;padding:0 12px;border:1px solid #dfe2ea;
  border-radius:10px;font:inherit;font-size:14px;color:var(--ink,#14161c)}
.direct__go{height:40px;padding:0 20px;border:0;border-radius:10px;font:inherit;font-size:14px;font-weight:600;
  color:#fff;background:linear-gradient(135deg,#7d84ff,#5b63f0);cursor:pointer}
.direct__go:hover{filter:brightness(1.06)}
.direct__go.is-off{background:#c9ccd6;cursor:not-allowed;filter:none}
.direct__warn{margin:14px 0 0;font-size:13px;color:#e5484d}
.direct__n{margin:16px 0 0;font-size:12px;color:var(--ink-3,#8b90a0);line-height:1.6}
@media (max-width:520px){.direct{margin:24px 12px;padding:24px 18px}.direct__f input,.direct__go{flex:1 1 100%}}


/* 数据源直达 · 二级分类导航页（BOSS 2026-10-23）：后台配几个站就排几张卡，
   按排序号从小到大，点卡在新标签页打开。 */
.dl{max-width:1100px;margin:0 auto;padding:4px 4px 40px}
.dl__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.dl__card{position:relative;display:flex;align-items:flex-start;gap:12px;padding:16px 44px 16px 16px;
  background:#fff;border:1px solid #e6e8f0;border-radius:14px;text-decoration:none;color:inherit;
  transition:border-color .16s,box-shadow .16s,transform .16s}
.dl__card:hover{border-color:#7d84ff;box-shadow:0 10px 24px rgba(125,132,255,.16);transform:translateY(-1px)}
.dl__n{flex:0 0 26px;height:26px;border-radius:8px;background:#eef0ff;color:#5b63f0;font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;margin-top:1px}
.dl__bd{min-width:0;flex:1 1 auto}
.dl__t{font-size:15.5px;font-weight:650;color:var(--ink,#14161c);overflow-wrap:anywhere}
.dl__p{margin:6px 0 0;font-size:13px;color:var(--ink-2,#5a6070);line-height:1.55;overflow-wrap:anywhere}
.dl__go{position:absolute;top:14px;right:14px;width:26px;height:26px;border-radius:8px;background:#f4f5fa;
  color:#5b63f0;display:flex;align-items:center;justify-content:center;font-size:13px}
.dl__card:hover .dl__go{background:#5b63f0;color:#fff}
.dl__card--q{display:block;padding-right:16px}
.dl__card--q .dl__n{position:absolute;top:16px;left:16px}
@media (max-width:560px){.dl__grid{grid-template-columns:1fr}}

/* ================= 手机端（BOSS 2026-10-25：移动端游戏页面没有适配） =================
   一个号常带 100+ 个角色，全量铺开时单张结果卡 1300px 高，14956 个号的结果页就有 4 万 px。
   手机上默认只露 12 格（约 2 行），要点开才看全部；桌面完全不变。 */
/* BOSS 2026-10-31：搜索结果网格超过 8 行就折叠，PC 与手机同一口径 */
.acc-chars--grid.is-fold8{max-height:var(--acc-fold-h,420px);overflow:hidden}
.acc-foldbtn{
  display:block;width:100%;min-height:40px;margin:10px 0 2px;padding:0 14px;
  border:1px solid var(--line);border-radius:11px;background:#fff;
  color:var(--brand);font:inherit;font-size:.8rem;font-weight:650;letter-spacing:.01em;
  -webkit-tap-highlight-color:transparent;cursor:pointer;
}
@media (max-width:767.98px){

  .acc-foldbtn{
    display:block;width:100%;min-height:44px;margin:10px 0 2px;padding:0 14px;
    border:1px solid var(--line);border-radius:11px;background:#fff;
    color:var(--brand);font:inherit;font-size:.8rem;font-weight:650;letter-spacing:.01em;
    -webkit-tap-highlight-color:transparent;
  }
  .acc-foldbtn:active{background:var(--brand-soft)}
  /* 角标字号地板（本文件在 style.css 之后加载，.62rem/.5rem 那几条在这里被压掉）。
     选角格 60~67px → 12px；结果卡格子只有 46~57px，12px 会把「联动」截成「联」，
     那里定 11.2px（角标是微标签，正文与名字仍然 ≥12px） */
  .ptile__tag,.psel__tag{font-size:.75rem;padding:.12em .26em}
  .ctile__tag{font-size:.7rem;padding:.12em .24em}
  .ctile__n{font-size:.7rem;min-width:18px;height:18px}
  .acc-foldbtn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
  /* 结果卡头部两个按钮原来只有 24 / 18px 高，手指按不准；
     BOSS 2026-10-26「复制ID 跟 PC 一致、别太宽」→ 回到 PC 的胶囊外形（padding 4px 9px、12px 字），
     只把可点高度抬到 34px（横向 padding 不再撑宽）。
     头部排布也改过：编号 + 复制ID + 「详情 ›」在同一行、「详情」靠右；「拥有 N 个角色」独占下一行。 */
  /* BOSS 2026-10-26（第二次）：头部一行放「编号 / 复制ID /（含重复 M 个）/ 详情」，
     窄屏（320）宁可让短文案省略也不能把「详情」挤到第二行 */
  .acc-block__head{row-gap:6px;flex-wrap:nowrap}
  .acc-id{order:1;font-size:.95rem;flex:0 0 auto;white-space:nowrap}
  /* BOSS 2026-10-26：紫色底太圆 → 改成贴着文字的扁平方块（6px 圆角、左右 7px） */
  .acc-copy{order:2;position:relative;min-height:30px;padding:0 7px;font-size:.75rem;border-radius:6px;line-height:1;flex:0 0 auto}
  /* 视觉上跟 PC 一样窄（34px），但手指要按得准：伪元素把可点区域上下各扩 5px，合计 44px */
  .acc-copy::before{content:'';position:absolute;left:-2px;right:-2px;top:-7px;bottom:-7px}
  .acc-block__open{order:4;position:relative;margin-left:0;min-height:34px;padding:0 2px 0 10px;font-size:.78rem;flex:0 0 auto;white-space:nowrap}
  .acc-block__open::before{content:'';position:absolute;left:-2px;right:-2px;top:-5px;bottom:-5px}
  /* BOSS 2026-10-26（第二次）：含重复不再贴编号，改到行尾、「详情」左边；
     PC 的「拥有 N 个角色」在手机上换成短文案「（含重复 M 个）」 */
  .acc-block__meta{display:none}
  .acc-block__meta-m{
    display:inline-block;order:3;margin-left:auto;flex:0 1 auto;min-width:0;max-width:52%;
    font-size:.72rem;line-height:1.35;color:var(--ink-3);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
}

/* ===== 账号关键信息（2026-10-26 BOSS：数据源 show_text 的名目 ↔ 文字/截图 必须一一对应） =====
   结构：上面是「名目 + 文字」两列栅格（长文本独占整行），下面是「名目 + 截图」的图卡横排，
   点图开站内放大浮层（.shotm），不跳转、不新开标签。 */
/* 2026-10-27 BOSS：文字信息 + 资源信息放详情页底部（道具明细之后） */
.acc-modal__spec:empty{display:none}
.acc-modal__spec{margin-top:16px;padding-top:12px;border-top:1px solid var(--line,#e6e7ea)}
.spec{margin-top:14px}
.spec + .spec{margin-top:12px}
.spec__rows{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(238px,1fr));gap:8px 20px;
  padding:12px 16px;border-radius:12px;
  background:linear-gradient(180deg,#fbfbfe,#f6f7fb);
  border:1px solid rgba(20,24,60,.07);
}
.spec__row{display:flex;align-items:baseline;gap:9px;min-width:0;font-size:.86rem;line-height:1.5}
.spec__row--wide{grid-column:1/-1}
.spec__k{
  flex:0 0 auto;max-width:44%;color:var(--ink-3);font-size:.78rem;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.spec__k::after{content:"";display:none}
.spec__v{flex:1 1 auto;min-width:0;color:var(--ink);font-weight:600;word-break:break-word}
.spec__row--wide .spec__v{font-weight:500;color:#3a3f47}
.spec--shots .spec__shots{
  display:flex;flex-wrap:wrap;gap:12px 14px;padding:12px 14px;border-radius:12px;
  background:linear-gradient(180deg,#fbfbfe,#f6f7fb);border:1px solid rgba(20,24,60,.07);
}
.shot{margin:0;display:flex;flex-direction:column;gap:7px;width:150px;min-width:0}
.shot__b{
  display:flex;align-items:center;justify-content:center;min-height:74px;
  padding:8px;border:0;background:#fff;border-radius:10px;cursor:zoom-in;
  overflow:hidden;box-shadow:0 0 0 1px rgba(20,24,60,.08),0 6px 16px -12px rgba(0,0,0,.5);
  transition:transform .16s ease,box-shadow .16s ease;
}
/* 数字长条（122×25）按原比例整条显示，不裁不拉伸；整屏截图则等比缩小到框内 */
.shot__b img{display:block;width:auto;max-width:100%;height:auto;max-height:190px}
.shot__b:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(125,132,255,.5),0 12px 22px -14px rgba(0,0,0,.6)}
.shot__b:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.shot__t{font-size:.72rem;color:var(--ink-2);text-align:center;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 放大看截图：站内浮层 */
.shotm{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:20px}
.shotm.is-on{display:flex}
.shotm__mask{position:absolute;inset:0;background:rgba(12,14,24,.82);backdrop-filter:blur(3px)}
.shotm__img{
  position:relative;max-width:min(96vw,860px);max-height:88vh;width:auto;height:auto;
  border-radius:12px;background:#fff;box-shadow:0 30px 70px -30px rgba(0,0,0,.8);
}
.shotm__x{
  position:absolute;top:14px;right:14px;width:40px;height:40px;display:grid;place-items:center;
  border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#22252b;cursor:pointer;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.7);
}
.shotm__x:hover{background:#fff}

/* 详情页底部「道具明细」（BOSS 2026-10-26：分 2 列，放底部）
   数据源一个号 20 项左右，一列会把弹窗拉长；两列 + 虚线下划线读起来最省地方。
   数量右对齐等宽，名字省略号截断（悬停给 title，长名字也不会把行撑破）。 */
.acc-modal__items:empty{display:none}
.acc-modal__items{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line,#e6e7ea)}
@media (max-width:640px){
  .spec__rows{grid-template-columns:1fr;gap:6px;padding:11px 12px}
  .spec__row{font-size:.83rem}
  .spec__k{max-width:38%;font-size:.75rem}
  .spec--shots .spec__shots{gap:10px;padding:11px 12px}
  .shot{width:calc(50% - 5px)}
  .shot__b{padding:6px}
  .shot__b img{max-height:150px}
  .shotm{padding:10px}
  .shotm__img{max-height:82vh;border-radius:10px}
  .shotm__x{top:8px;right:8px;width:36px;height:36px}
}
/* PC 载资源信息移到角色图上方（移动端不动）
   BOSS 2026-10-28「PC端详情页面将道具明细栏移动到角色图片底部」→ 道具明细排在角色图之后、明细之前。 */
@media (min-width:768px){
  .acc-modal__body{display:flex;flex-direction:column}
  .acc-modal__body>.acc-curr{order:1}
  .acc-modal__body>.acc-modal__grid,.acc-modal__body>.acc-chars--plain{order:2}
  .acc-modal__body>.acc-modal__items{order:3}
  .acc-modal__body>.acc-modal__shots{order:4}
  .acc-modal__body>.acc-modal__spec{order:5}
}

/* 详情弹窗「游戏资源」：文字在前、资源图在后（BOSS 2026-10-27） */
.acc-modal__shots{min-width:0}
.acc-modal__shots .spec__shots{display:flex;flex-wrap:wrap;gap:10px;margin:0}
@media (min-width:768px){
  .acc-modal__shots{width:100%}
  .acc-modal__shots .spec__shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .acc-modal__shots .shot{min-width:0;width:100%}
  .acc-modal__shots .shot__b{width:100%}
  .acc-modal__shots .shot__b img{width:100%;max-width:100%;height:auto;max-height:none}
}
.acc-modal__shots .shot{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line,#eceef1);border-radius:12px;background:#fff;min-width:150px}
.acc-modal__shots .shot__t{order:1;margin:0;font-size:.78rem;font-weight:600;color:var(--ink,#282a2d);white-space:nowrap}
.acc-modal__shots .shot__b{order:2;display:block;border:0;padding:0;background:none;cursor:zoom-in}
.acc-modal__shots .shot__b{max-width:100%}
.acc-modal__shots .shot__b img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:8px;background:#0d0e10}
.acc-modal__shots .shot__t{min-width:52px}
@media (min-width:768px){
  .acc-modal__shots{order:4}
  .acc-modal__items{order:3}
  .acc-modal__grid{order:2}
  .acc-modal__spec{order:5}
}
@media (max-width:767px){
  .acc-modal__body{display:flex;flex-direction:column}
  .acc-modal__body>.acc-curr{order:1}
  .acc-modal__body>.acc-modal__grid,.acc-modal__body>.acc-chars--plain{order:2}
  .acc-modal__body>.acc-modal__items{order:3}
  .acc-modal__body>.acc-modal__shots{order:4;padding:6px 0 2px}
  .acc-modal__body>.acc-modal__spec{order:5}
  .acc-modal__shots .shot{min-width:132px}
  .acc-modal__shots .shot__b img{width:auto;height:46px;max-width:120px}
}
.acc-curr .curr--hint i{color:var(--ink-3)}
.acc-curr .curr--hint b{font-weight:600;font-size:.82rem;color:var(--ink-2);letter-spacing:0}
/* BOSS 2026-10-31：被截断的长文本（后台「显示字数」）——虚线下划线提示可点，点开占满一行 */
.acc-curr .curr--clip{cursor:pointer;border-bottom:1px dashed rgba(0,0,0,.22);padding-bottom:1px}
.acc-curr .curr--clip:hover{border-bottom-color:rgba(0,0,0,.42)}
.acc-curr .curr--clip[data-open="1"]{white-space:normal;align-items:flex-start;flex:1 1 100%;max-width:100%;border-bottom-style:solid}
.acc-curr .curr--clip[data-open="1"] b{white-space:normal;word-break:break-word;line-height:1.45}
/* BOSS 2026-10-31：点游戏后角色还没回来时的加载骨架（与真实角色卡同格同尺寸，只做视觉提示） */
.ptile.is-sk{pointer-events:none;cursor:default}
.ptile.is-sk .ptile__pic{border-radius:8px;box-shadow:none}
.ptile.is-sk .sk-line{display:block;width:72%;height:9px;margin:7px auto 0;border-radius:5px}

/* BOSS 2026-10-31：详情页底部「账号截图」（物华弥新的钻石小图等，数据源 show_text 的图项） */
.acc-shots{margin-top:14px;padding-top:12px;border-top:1px solid rgba(20,24,60,.07)}
.acc-shots__fig{margin:0 0 10px;display:flex;flex-direction:column;gap:6px}
.acc-shots__fig:last-child{margin-bottom:0}
.acc-shots__cap{font-size:.72rem;font-weight:700;color:var(--ink-3,#888a8f);line-height:1.3}
.acc-shots__a{display:inline-block;max-width:100%}
.acc-shots__img{display:block;max-width:100%;height:auto;border-radius:8px;border:1px solid rgba(20,24,60,.08);background:#fff}
.acc-modal__shots:empty{display:none}

/* 2026-11-01 手机端主色改红后，选中环的外发光跟着改红（原来写成紫色 rgba，会红环配紫光） */
@media (max-width:767.98px){
  /* 2026-11-01 BOSS「整个画面全是红的」→ 游戏页/结果页改墨色，红只留给首页搜索条 */
  body.is-game{--brand:#282a2d;--brand-2:#111315;--brand-soft:#eef0ff}
  /* BOSS 2026-11-01「角标的效果不要改」→ 角标恢复原样（橙→红渐变），
     手机端不再覆写任何角标样式。 */
  .ctile.is-picked img,.ctile.is-picked .ctile__ph{box-shadow:0 0 0 1.5px var(--brand), 0 0 0 3px rgba(20,24,32,.10), inset 0 0 0 1px rgba(20,24,60,.06)}
  .mtile.is-picked img,.mtile.is-picked .mtile__ph{box-shadow:0 0 0 2px var(--brand), 0 0 0 4px rgba(20,24,32,.10), inset 0 0 0 1px rgba(20,24,60,.06)}
  .ctile.is-picked .fxclip,.ctile.is-picked .eqwrap{box-shadow:0 0 0 1.5px var(--brand), 0 0 0 3px rgba(20,24,32,.10)}
  .mtile.is-picked .fxclip,.mtile.is-picked .eqwrap{box-shadow:0 0 0 2px var(--brand), 0 0 0 4px rgba(20,24,32,.10)}
}

/* ---------------- 「编号查号」独立页（/c/<编号>） ----------------
   BOSS 2026-11-01「输入对应账号编号跳转到专门页面，页面显示的内容和详情弹窗完全一致」：
   DOM 与弹窗同一份，这里只把外壳换掉 —— 去遮罩、去 fixed、去高度上限，头部吸顶、正文随页面滚。 */
/* 编号页只留详情本体：游戏页的顶条 / 选角台 / 首页入口 / 底部筛选台全部不出现 */
body.is-code .topbar,
body.is-code #m-acts,
body.is-code #m-tabs,
body.is-code .sec-title,
body.is-code .pick__bar,
body.is-code .pick__rail{display:none!important}
body.is-code{padding-bottom:0!important}
body.is-code .m-card{background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0}
body.is-code .m-card #view{padding:0}
/* BOSS 2026-11-01「编号搜索页这个页采用白底…让编号搜索页与她保持风格一致」：
   详情弹窗的面板是 #fff，查编号页之前把面板设为 transparent 露出页面灰底，看起来跟详情页不是一个风格。
   这里把面板和页面容器都改成白底，正文区的底色与详情弹窗完全一致（页脚胶囊仍在外面的灰底上，不受影响）。 */
.code-page{position:static;inset:auto;z-index:auto;display:block;padding:0;background:#fff}
.code-page .acc-modal__panel{
  position:static;display:block;width:100%;max-width:none;height:auto;max-height:none;
  border-radius:0;box-shadow:none;opacity:1;transform:none;overflow:visible;background:#fff;
}
/* BOSS 2026-11-01「实际上只要直接适配详情样式就可以，然后在顶部添加导航栏」：
   查编号页的头部 / 正文内边距不再自己另写一套，直接吃详情弹窗那条规则
   （头 11px 40px 11px 12px 单行、正文 0 14px 20px、网格 x=14 宽 362、5 列 63.2px），
   之前那套自己写的 padding + 返回按钮把 ID 行挤成两行，就是截图里的「错位」。
   只在页面模式下把正文的滚动交回文档本身（弹窗里才是 overflow:auto）。 */
.code-page .acc-modal__body{overflow:visible}
/* BOSS 2026-11-01「编号搜索页复制ID按钮不要用红色，采用搜索结果页的样式」：
   .acc-copy 基础规则写的是 color:var(--brand)，游戏页把 --brand 覆盖成墨黑 #282a2d，
   所以搜索结果卡上是深灰；查编号页没有 is-game，就露出品牌红。这里钉成同一个墨黑。 */
body.is-code .acc-copy{color:#282a2d}

/* 结果页 / 详情页的角色格：选中框与角色墙统一成 1px 品牌红，去掉原来的 2px 墨黑 + 外圈灰 */
@media (max-width:767.98px){
  .ctile.is-picked img,.ctile.is-picked .ctile__ph,
  .mtile.is-picked img,.mtile.is-picked .mtile__ph,
  .ctile.is-picked .fxclip,.ctile.is-picked .eqwrap,
  .mtile.is-picked .fxclip,.mtile.is-picked .eqwrap{box-shadow:0 0 0 1px #e01b28}
}

/* BOSS 2026-11-01：移动端详情页角色图固定每排 5 个（PC 端不动） */
@media (max-width:767.98px){
  .acc-modal__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 8px}
  /* 搜索结果卡：左右各留 6px 安全边，避免首/末列的 -4px 徽标被 .is-fold8 的 overflow:hidden 裁掉 */
  .acc-chars--grid{padding:10px 6px 0}
}

/* BOSS 2026-11-01「图3是顶部导航栏放在查编号页面顶部」：
   查编号页复用游戏页那条导航（切换 / 输入账号编号 / 收藏 / 首页），固定吸顶；
   #hero 本身高度归零，只让 .gm-top 露出来，其余（搜索框、横幅、选角台）继续隐藏。 */
@media (max-width:767.98px){
  body.is-code #hero{
    display:block!important;height:0!important;padding:0!important;margin:0!important;
    background:none!important;box-shadow:none!important;overflow:visible;
  }
  body.is-code #hero > *:not(.gm-top){display:none!important}
  /* BOSS 2026-11-01「编号搜索页底部胶囊宽度不对，调整为和首页一致的宽度」：
     wrap 原来被改成横向 0，底部胶囊（.m-foot）和版权行就通栏贴到屏幕两边了（实测 390 宽），
     首页是左右各 13px（364 宽）。现在把 wrap 的横向 13px 还回去，只让详情面板用负边距出血，
     这样头部/网格还是整幅 390，底部胶囊和版权行回到 364。 */
  body.is-code .wrap{padding:56px 13px 0}
  body.is-code .acc-modal.code-page{margin:0 -13px}
  body.is-code .m-card #view{padding:0}
}
/* ---------------- 收藏（BOSS 2026-11-01）：星标按钮 + /f 收藏页 ---------------- */
.fav-star{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#c7ccd6;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .15s ease,transform .12s ease;flex:0 0 auto}
.fav-star.is-on{color:#e01b28}
.fav-star:active{transform:scale(.9)}
.acc-block__head .fav-star{width:24px;height:24px;margin-right:2px}
.acc-modal__head .fav-star{position:absolute;right:38px;top:50%;margin-top:-14px}

body.is-fav .topbar,
body.is-fav #m-acts,
body.is-fav #m-tabs,
body.is-fav .sec-title,
body.is-fav .pick__bar,
body.is-fav .pick__rail,
body.is-watch .topbar,
body.is-watch #m-acts,
body.is-watch #m-tabs,
body.is-watch .sec-title,
body.is-watch .pick__bar,
body.is-watch .pick__rail{display:none!important}
body.is-fav .m-card,
body.is-watch .m-card{background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0}
body.is-fav .m-card #view,
body.is-watch .m-card #view{padding:0}
body.is-fav .fav-page,
body.is-watch .fav-page{background:#fff;padding:4px 0 10px}

.fav-hd{display:flex;align-items:center;gap:8px;padding:12px 14px 8px}
.fav-hd b{font-size:17px;font-weight:800;color:#111315;letter-spacing:.01em}
.fav-hd span{font-size:12.5px;color:#8d939b}
.fav-manage{margin-left:auto;height:28px;padding:0 12px;border:0;border-radius:14px;background:#f1f3f7;color:#3a3f47;font-size:12.5px;font-weight:600}
body.is-fav-edit .fav-manage{background:#fdeceb;color:#e01b28}

.fav-ck{display:none;flex:0 0 auto;width:20px;height:20px;align-items:center;justify-content:center;border:1.5px solid #cfd5dd;border-radius:50%;background:#fff;color:transparent}
body.is-fav-edit .fav-ck{display:flex}
body.is-fav-edit .fav-acts{display:none}
.fav-item.is-sel .fav-ck{background:#e01b28;border-color:#e01b28;color:#fff}
body.is-fav-edit .fav-row{transform:none!important}

.fav-bar{display:none;position:fixed;left:13px;right:13px;bottom:calc(58px + env(safe-area-inset-bottom,0px));z-index:30;align-items:center;gap:12px;height:50px;padding:0 14px;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(20,24,60,.16),0 0 0 1px #e6e9ef}
body.is-fav-edit .fav-bar{display:flex}
.fav-bar{align-items:center;justify-content:space-between}
.fav-all{display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:0;font:inherit;font-size:13.5px;font-weight:600;color:#33373c;-webkit-tap-highlight-color:transparent}
.fav-all i{position:relative;display:block;width:20px;height:20px;border-radius:50%;border:1.5px solid #c9ccd2;background:#fff}
.fav-all.is-on i{background:#e01b28;border-color:#e01b28}
.fav-all.is-on i::after{content:"";position:absolute;left:6px;top:3px;width:5px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(42deg)}
.fav-del{height:32px;padding:0 16px;border:1px solid #e01b28;border-radius:16px;background:#fff;color:#e01b28;font-size:13px;font-weight:700}
.fav-del[disabled]{border-color:#dcdfe5;color:#b3b9c2}
/* 电脑上没有底部 Tab 栏，也不能横跨整个窗口（会压到左侧栏）：横条按主内容列居中、贴页面底部。 */
@media (min-width:768px){
  .fav-bar{
    left:calc(50% + (var(--side-shift, var(--sidebar-w, 220px)) * .5));
    right:auto;
    transform:translateX(-50%);
    width:min(calc(var(--max-w, 1900px) - 56px), calc(100vw - var(--side-shift, var(--sidebar-w, 220px)) - 56px));
    bottom:26px;
    height:52px;
    border-radius:12px;
  }
  body.is-fav-edit .fav-page{padding-bottom:96px}

  /* BOSS 2026-11-09「收藏页点进号之后，上面有遮盖，下面显示直接错位」：
     电脑端详情页长在 #hero 里，游戏页那套 #pick（搜索 + 选角台 + 底部固定的“已选择/清除/搜索”）
     跟着一起渲染，浮在 300px 横幅上（159→385），把详情头遮住；底部那条又压住角色格。
     详情页没有选角台，电脑端整块不显示；横幅上的公告横条在详情页会落到正文上，也一并收掉。 */
  body.is-code #pick{display:none!important}
  body.is-code #hero .bulletin-big{display:none!important}

  /* BOSS 2026-11-09「上面这个区域保持，变化的只是下面」：
     盯号助手 / 我的收藏 在电脑端保留首页那块横幅 + 搜索框，只换下面的内容。
     错位的根源是选角台 #pick —— 从游戏页切过来时它跟着留在横幅里，把标题顶下去。
     横幅本身保留，只把选角台整块收掉。 */
  body.is-fav #pick,
  body.is-watch #pick{display:none!important}

  /* BOSS 2026-11-09「这个页面可以放大一些，白底宽度直接拉满左右两边」：
     收藏页 / 盯号页 / 编号页的白底只差 .wrap 的左右 15px 没铺满，去掉后白底贴到内容区两边。 */
  body.is-fav .wrap,
  body.is-watch .wrap,
  body.is-code .wrap{padding-left:0;padding-right:0}
}

.fav-list{padding:0}
.fav-item{position:relative;overflow:hidden;background:#fff;border-bottom:1px solid #f0f2f5}
.fav-item:last-child{border-bottom:0}
.fav-row{position:relative;z-index:1;display:flex;align-items:center;gap:9px;min-height:64px;padding:10px 14px;background:#fff;text-decoration:none;color:inherit;transition:transform .22s cubic-bezier(.2,.8,.3,1);will-change:transform;-webkit-tap-highlight-color:transparent}
.fav-logo{flex:0 0 auto;width:38px;height:38px;border-radius:10px;overflow:hidden;background:#eff1f5;display:flex;align-items:center;justify-content:center}
.fav-logo img{display:block;width:100%;height:100%;object-fit:cover}
.fav-logo--txt{font-size:15px;font-weight:700;color:#8d939b}
/* BOSS 2026-11-01：类型标签改成参考图那种实心色块，辨识度优先（初始号绿 / 成品号蓝） */
.fav-tag{flex:0 0 auto;height:18px;line-height:18px;padding:0 5px;border-radius:3px;font-size:11px;font-weight:700;letter-spacing:.02em;color:#fff;background:rgb(10,204,107);white-space:nowrap}
.fav-tag.is-sell{color:#fff;background:rgb(5,180,255)}
.fav-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.fav-line{display:flex;align-items:center;gap:8px;min-width:0}
.fav-code{flex:0 1 auto;min-width:0;font-size:14px;font-weight:700;color:#111315;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav-stats{display:block;font-size:11px;line-height:1.35;color:#8d939b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav-date{flex:0 0 auto;font-size:11.5px;color:#a8aeb7;white-space:nowrap}
.fav-acts{position:absolute;top:0;right:0;bottom:0;z-index:0;display:flex}
.fav-act{width:72px;height:100%;border:0;font-size:12.5px;font-weight:700;color:#fff;letter-spacing:.04em}
.fav-act--share{background:#fe9900}
.fav-act--del{background:#e01b28}

.fav-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:56px 24px 24px;text-align:center}
.fav-empty b{font-size:14.5px;font-weight:700;color:#3a3f47}
.fav-empty p{margin:0;font-size:12.5px;line-height:1.6;color:#9aa1ab}
.fav-gohome{margin-top:6px;height:34px;line-height:34px;padding:0 18px;border-radius:17px;background:#f1f3f7;color:#3a3f47;font-size:13px;font-weight:600;text-decoration:none}
.fav-note{padding:18px 24px 8px;font-size:11.5px;line-height:1.65;color:#a8aeb7;text-align:center}

.fav-toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:80;transform:translate(-50%,8px);max-width:84vw;padding:9px 14px;border-radius:12px;background:rgba(24,28,38,.92);color:#fff;font-size:12.5px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.fav-toast.is-on{opacity:1;transform:translate(-50%,0)}

@media (max-width:767.98px){
  body.is-fav #hero,
  body.is-watch #hero{display:block!important;height:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;overflow:visible}
  body.is-fav #hero > *:not(.gm-top),
  body.is-watch #hero > *:not(.gm-top){display:none!important}
  body.is-fav .wrap,
  body.is-watch .wrap{padding:56px 13px calc(58px + env(safe-area-inset-bottom, 0px))}
  /* BOSS 2026-11-01：收藏页整页白底（同详情页），自助查询胶囊 + 版权压到首屏底部 */
  body.is-fav,
  body.is-watch{background:#fff;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
  body.is-fav .wrap,
  body.is-watch .wrap{flex:1 1 auto;display:flex;flex-direction:column}
  body.is-fav .fav-page,
  body.is-watch .fav-page{background:transparent}
  body.is-fav .m-foot,
  body.is-watch .m-foot{box-shadow:0 0 0 1px #e0e4ea}
  body.is-fav:not(.is-game):not(.is-work):not(.m-foot-off) .m-foot,
  body.is-watch:not(.is-game):not(.is-work):not(.m-foot-off) .m-foot{margin-top:auto}
  /* 批量管理态：底部要给「全选 / 删除 N」让位，胶囊与版权整体上移，不叠在一起 */
  body.is-fav-edit .wrap{padding-bottom:calc(116px + env(safe-area-inset-bottom, 0px))}
  body.is-fav .footer,
  body.is-watch .footer{background:transparent}
  .acc-modal__head{padding-right:72px}
}

/* ================= 删除确认（BOSS 2026-11-01「点击删除需要弹窗确认」） ================= */
.cf{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;transition:opacity .18s ease}
.cf[hidden]{display:none}
.cf.is-on{opacity:1}
.cf__mask{position:absolute;inset:0;background:rgba(17,19,21,.42)}
.cf__box{position:relative;width:100%;max-width:302px;background:#fff;border-radius:14px;padding:18px 18px 14px;
  box-shadow:0 18px 48px rgba(16,20,32,.22);transform:translateY(8px) scale(.98);
  transition:transform .2s cubic-bezier(.2,.8,.3,1)}
.cf.is-on .cf__box{transform:none}
.cf__t{display:block;font-size:15.5px;font-weight:800;color:#111315;text-align:center;letter-spacing:.01em}
.cf__d{margin:8px 0 0;font-size:12.5px;line-height:1.65;color:#7b828c;text-align:center;word-break:break-word}
.cf__act{display:flex;gap:10px;margin-top:16px}
.cf__no,.cf__yes{flex:1 1 0;height:40px;border:0;border-radius:10px;font:inherit;font-size:14px;font-weight:700;
  -webkit-tap-highlight-color:transparent;cursor:pointer}
.cf__no{background:#f2f4f7;color:#3a3f47}
.cf__no:active{background:#e7eaef}
.cf__yes{background:#e01b28;color:#fff}
.cf__yes:not(.is-danger){background:#e01b28}
.cf__yes:active{filter:brightness(.94)}
@media (prefers-reduced-motion: reduce){.cf,.cf__box{transition:none}}

/* ---- BOSS 2026-11-01 图 5：二级目录页版本卡的标签分两行 ----
   2026-10-25 那版是「版本名与说明同一行靠右」（@media max-width:991.98px 把 .work-meta 改成 flex），
   手机上第二行区域名一长就被挤到卡片边缘甚至换行错位。这里改回两行：
   第一行版本名（深色 600），第二行说明（灰字），都左对齐、各占一整行。 */
@media (max-width:767.98px){
  body.is-work .work-meta{display:block;min-width:0;flex:1 1 auto}
  body.is-work .work-meta .game-name{
    display:block;flex:none;order:0;font-size:.95rem;line-height:1.35;font-weight:600;color:var(--ink,#23272b);
  }
  body.is-work .work-meta .work-note{
    display:block;flex:none;order:1;margin-top:5px;font-size:.76rem;line-height:1.35;color:var(--muted,#8b93a7);
  }
  body.is-work .work-meta .game-name-en{display:block;order:2;margin-top:2px}
}
/* Per-game direction: old/missing settings remain horizontal. */
body .ptile .ptile__tag.tag--vertical,
body .psel .psel__tag.tag--vertical,
body .ctile .ctile__tag.tag--vertical,
body .mtile .mtile__tag.tag--vertical{
  writing-mode:vertical-rl;text-orientation:upright;
  top:0;right:0;left:auto;width:auto;height:auto;
  max-width:100%;max-height:calc(100% - 1.5em);box-sizing:border-box;
  border-top-left-radius:0;border-top-right-radius:7px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body .psel .psel__tag.tag--vertical{max-height:100%}
