/* 卫戍协议：规程 · 盟约查询（/arknights-pacts）
   和 /arknights 同一套视觉：暖黑底 + 红色网格；红色是标题 / 阶数，青绿色是“已选中”，琥珀色是精锐数值。 */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #0d0a09;
  --panel: #161110;
  --panel-2: #1e1714;
  --line: rgba(234, 85, 48, .14);
  --line-strong: rgba(234, 85, 48, .28);
  --text: #f4ece3;
  --muted: rgba(240, 228, 216, .56);
  --faint: rgba(240, 228, 216, .32);
  --mint: #2ee0b5;
  --mint-hi: #6af0cf;
  --red: #ea5530;
  --red-hi: #ff7a55;
  --amber: #f0b04a;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --cut: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --page-zoom: 1;
}
@media (min-width: 900px) { :root { --page-zoom: 1.21; } html { zoom: var(--page-zoom); } }
* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; }
a { color: inherit; }
html { scroll-padding-top: 76px; }
body {
  min-height: calc(100vh / var(--page-zoom));
  font-family: var(--cjk);
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(circle, rgba(234, 85, 48, .28) 0 1px, transparent 1.5px) 0 0 / 48px 48px,
    linear-gradient(rgba(234, 85, 48, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(234, 85, 48, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(80% 50% at 80% -10%, rgba(234, 85, 48, .16), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
.shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- 顶栏（和 /arknights 一样） ---------- */
.ak-topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(13, 10, 9, .96); }
.ak-topbar .shell { display: flex; align-items: center; gap: 16px; height: 60px; }
.ak-back { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.ak-back img { width: 30px; height: 30px; }
.ak-back strong { font-size: 15px; font-weight: 900; }
.ak-back small { display: block; font-size: 10px; color: var(--muted); }
.ak-divider { width: 1px; height: 26px; background: var(--line-strong); }
.ak-brand { display: grid; gap: 1px; }
.ak-brand b { font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.ak-brand span { font-family: var(--mono); font-size: 9px; color: var(--red-hi); letter-spacing: 1.5px; }
.ak-top-actions { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.ak-tab { display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.ak-tab:hover { color: var(--text); }
.ak-tab.on { color: var(--text); border-bottom-color: var(--red); }

/* ---------- 抬头 ---------- */
.pq-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); align-items: end; gap: 24px; padding: 30px 0 22px; }
.pq-title small { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--red-hi); }
.pq-title h1 { margin: 4px 0 6px; font-size: 38px; font-weight: 900; letter-spacing: 3px; line-height: 1.05; }
.pq-title h1::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; background: var(--red); vertical-align: 6px; }
.pq-title p { color: var(--muted); font-size: 13px; }
.pq-title p b { color: var(--text); font-family: var(--cond); font-size: 16px; font-weight: 800; }
.pq-title p em, .lv em, .num em { font-style: normal; color: var(--amber); }
.pq-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-strong); clip-path: var(--cut); transition: border-color .15s; }
.pq-search:focus-within { border-color: var(--mint); }
.pq-search[hidden] { display: none; }
.pq-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.pq-search input { flex: 1; min-width: 0; height: 100%; font-size: 15px; outline: none; }
.pq-search input::placeholder { color: var(--faint); }
.pq-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.pq-search kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 7px; border: 1px solid var(--line-strong); }
.pq-search:focus-within kbd { display: none; }

/* ---------- 版面 ---------- */
.pq-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.pq-rail, .pq-main { min-width: 0; }
.pq-rail { position: sticky; top: 72px; max-height: calc(100vh / var(--page-zoom) - 84px); overflow: auto; overscroll-behavior: contain; padding: 14px 14px 16px; background: rgba(22, 17, 16, .92); border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail-sec + .rail-sec { margin-top: 14px; }
.rail-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rail-h b { font-size: 15px; font-weight: 900; letter-spacing: 2px; }
.rail-sub { margin: 12px 0 7px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.rail-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { padding: 4px 9px; font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button:hover { color: var(--text); }
.seg button.on { color: #06231c; background: var(--mint); }
.seg button.on em { color: #5a3a00; }
.seg i { font-style: normal; opacity: .5; margin: 0 1px; }

/* 盟约按钮：图标 + 名字 + 人数；人数是“再加上它还剩几名” */
.pact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.pt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; height: 38px; padding: 0 8px 0 4px; text-align: left; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: border-color .12s, background .12s, opacity .12s; }
.pt:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.pt-name { font-size: 13px; letter-spacing: -.2px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-n { font-family: var(--cond); font-size: 14px; font-weight: 700; color: var(--muted); }
.pt.on { border-color: var(--mint); background: rgba(46, 224, 181, .1); }
.pt.on .pt-n { color: var(--mint-hi); }
.pt.on::after { content: ""; position: absolute; top: -1px; right: -1px; border: 5px solid var(--mint); border-left-color: transparent; border-bottom-color: transparent; }
.pt.zero { opacity: .32; }

.pg { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tone, #3b302b) 85%, #fff 8%), color-mix(in srgb, var(--tone, #3b302b) 70%, #000)); }
.pg img { width: 84%; height: 84%; object-fit: contain; }
.pg.mono { font-size: 14px; font-weight: 900; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); }

.rail-more { margin-top: 16px; border-top: 1px solid var(--line); }
.rail-more summary { display: flex; align-items: center; gap: 8px; padding: 12px 0 2px; font-size: 13px; font-weight: 900; letter-spacing: 1px; cursor: pointer; list-style: none; }
.rail-more summary::-webkit-details-marker { display: none; }
.rail-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--red-hi); border-bottom: 2px solid var(--red-hi); transform: rotate(-45deg); transition: transform .15s; }
.rail-more[open] summary::before { transform: rotate(45deg); }
.rail-more summary em { font-style: normal; font-size: 11px; color: #06231c; background: var(--mint); padding: 0 6px; }
.opt-row { display: grid; gap: 4px; }
.opt-row.tiers { grid-template-columns: repeat(6, 1fr); }
.opt-row.prices { grid-template-columns: repeat(4, 1fr); }
.opt-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.opt { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.opt b { font-family: var(--cond); font-size: 16px; font-weight: 800; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 3px; }
.opt small { font-family: var(--cond); font-size: 12px; color: var(--faint); }
.opt:hover { border-color: var(--line-strong); }
.opt.on { border-color: var(--mint); background: rgba(46, 224, 181, .1); color: var(--mint-hi); }
.opt.on small { color: var(--mint); }
.opt.zero { opacity: .32; }
.rail-reset { width: 100%; margin-top: 16px; padding: 9px; font-size: 12px; font-weight: 800; color: var(--red-hi); border: 1px dashed var(--line-strong); }
.rail-reset:hover { border-style: solid; }
.coin { display: inline-block; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); }

/* ---------- 标签页 ---------- */
.pq-tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.tab { padding: 10px 18px 9px; margin-bottom: -1px; font-size: 15px; font-weight: 900; letter-spacing: 1px; color: var(--muted); border-bottom: 3px solid transparent; }
.tab small { margin-left: 6px; font-family: var(--cond); font-size: 14px; font-weight: 700; color: var(--faint); }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--red); }
.tab.on small { color: var(--red-hi); }
.rail-n { font-family: var(--cond); font-size: 15px; color: var(--muted); }
.rail-note { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.opt-row.uses { grid-template-columns: repeat(3, 1fr); }
.opt-row.locks { grid-template-columns: repeat(2, 1fr); }

/* ---------- 策略卡 ---------- */
.st-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.st { display: flex; flex-direction: column; gap: 10px; padding: 14px 15px 13px; background: linear-gradient(160deg, rgba(46, 224, 181, .07), transparent 45%), var(--panel); border: 1px solid var(--line); clip-path: var(--cut); }
.st:hover { border-color: var(--line-strong); }
.st-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.st-ava { width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1d4a43, #0c1d1d 75%); box-shadow: 0 0 0 2px rgba(46, 224, 181, .35), 0 0 14px rgba(46, 224, 181, .18); }
.st-ava img { width: 100%; height: 100%; object-fit: cover; }
.st-ava .ghost { display: grid; place-items: center; height: 100%; font-size: 24px; font-weight: 900; color: var(--faint); }
.st-id small { font-size: 11px; color: var(--muted); }
.st-id h3 { font-size: 18px; font-weight: 900; letter-spacing: 1px; line-height: 1.25; }
.st-tags { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.use { padding: 0 7px; font-size: 11px; font-weight: 800; line-height: 19px; border: 1px solid; }
.use.u-p { color: var(--mint-hi); border-color: rgba(46, 224, 181, .45); }
.use.u-d { color: var(--amber); border-color: rgba(240, 176, 74, .45); }
.use.u-c { color: #8fc8ff; border-color: rgba(143, 200, 255, .45); }
.hp { font-family: var(--cond); font-size: 15px; font-weight: 800; color: #ff8a8a; }
.st-eff { display: grid; gap: 4px; font-size: 13px; line-height: 1.7; color: rgba(244, 236, 227, .88); }
.st-unlock { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .08); font-size: 11px; color: var(--muted); }
.st-unlock i { position: relative; width: 9px; height: 7px; margin-top: 4px; border: 1.5px solid currentColor; border-radius: 1px; }
.st-unlock i::before { content: ""; position: absolute; left: 1px; top: -6px; width: 4px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.st-unlock.free { color: var(--mint); }

/* ---------- 盟约档案（只选一个盟约时） ---------- */
.d-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.d-eff { display: grid; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; line-height: 1.75; color: rgba(244, 236, 227, .9); }
.need b { color: var(--mint-hi) !important; }
.dossier { position: relative; margin-bottom: 14px; padding: 18px 22px; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--tone) 55%, transparent), transparent 62%), var(--panel); border: 1px solid var(--line-strong); clip-path: var(--cut); }
.d-mark .pg.big { width: 78px; height: 78px; background: color-mix(in srgb, var(--tone) 80%, #000); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.d-mark .pg.big.mono { font-size: 34px; transform: none; background: rgba(0, 0, 0, .25); }
.d-body small { font-family: var(--mono); font-size: 10px; color: var(--red-hi); letter-spacing: 2px; }
.d-body h2 { font-size: 32px; font-weight: 900; letter-spacing: 4px; line-height: 1.2; }
.d-body p { color: var(--muted); font-size: 13px; }
.d-body p b { color: var(--text); font-family: var(--cond); font-size: 16px; }
.d-body a { color: var(--muted); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.d-body a:hover { color: var(--mint-hi); }
.d-members { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 420px; }
.mem { position: relative; width: 42px; height: 42px; overflow: hidden; background: #0f0b0a; box-shadow: inset 0 -2px 0 var(--tier); transition: transform .12s; }
.mem img { width: 100%; height: 100%; object-fit: cover; }
.mem span { display: grid; place-items: center; height: 100%; font-weight: 900; color: var(--muted); }
.mem i { position: absolute; left: 0; top: 0; padding: 0 3px; font-family: var(--cond); font-size: 10px; font-style: normal; font-weight: 800; line-height: 13px; color: #111; background: var(--tier); }
.mem:hover { transform: translateY(-2px); box-shadow: inset 0 -2px 0 var(--tier), 0 0 0 1px var(--mint); }


/* ---------- 结果条 ---------- */
.pq-bar { position: sticky; top: 60px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0; margin-bottom: 6px; background: linear-gradient(var(--bg) 80%, rgba(13, 10, 9, 0)); }
.bar-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.bar-l > strong { font-family: var(--cond); font-size: 28px; font-weight: 800; line-height: 1; color: var(--red-hi); }
.bar-l > span { margin-right: 6px; color: var(--muted); font-size: 13px; }
.bar-join { font-size: 11px; font-weight: 800; color: var(--mint-hi); border: 1px solid rgba(46, 224, 181, .4); padding: 1px 6px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; font-size: 12px; font-weight: 800; background: rgba(46, 224, 181, .1); border: 1px solid rgba(46, 224, 181, .45); color: var(--mint-hi); }
.act i { font-style: normal; font-size: 14px; line-height: 1; opacity: .7; }
.act:hover i { opacity: 1; }
.act.suggest { background: transparent; border-style: dashed; color: var(--text); padding-right: 10px; }
.bar-r { display: flex; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sort select { padding: 4px 6px; font-size: 12px; font-weight: 800; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); }

/* ---------- 分组 + 干员卡 ---------- */
.group + .group { margin-top: 26px; }
.group-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-weight: 900; }
.group-h b { font-family: var(--cond); font-size: 30px; font-weight: 800; line-height: 1; color: var(--red-hi); letter-spacing: 1px; display: inline-flex; align-items: center; gap: 6px; }
.group-h b .coin { width: 12px; height: 12px; }
.group-h span { font-size: 13px; color: var(--text); }
.group-h em { font-style: normal; font-family: var(--cond); font-size: 14px; color: var(--muted); }
.group-h::after { content: ""; flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--line-strong), transparent); }
.related .group-h b { font-family: var(--cjk); font-size: 18px; color: var(--mint-hi); letter-spacing: 3px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }

.op { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); min-height: 168px; background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 42%), var(--panel); border: 1px solid var(--line); clip-path: var(--cut); transition: border-color .15s, box-shadow .15s; scroll-margin: 140px; }
.op:hover { border-color: var(--line-strong); }
.op.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { border-color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint), 0 0 24px rgba(46, 224, 181, .25); } 100% { border-color: var(--line); box-shadow: none; } }
/* 立绘：PRTS 半身像（游戏里官方裁好的上半身，180×360），底边一条阶数色 */
.op-art { position: relative; overflow: hidden; background: radial-gradient(120% 70% at 50% 22%, color-mix(in srgb, var(--tone) 55%, #1b1513), #100c0b 78%); box-shadow: inset 0 -3px 0 var(--tier); }
.op-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform .3s ease; }
.op:hover .op-art img { transform: scale(1.04); }
.op-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 75%, rgba(22, 17, 16, .85)); pointer-events: none; }
.op-art .ghost { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 900; color: var(--faint); }
.op-art .tier { position: absolute; left: 0; bottom: 3px; z-index: 1; }
.tier { min-width: 28px; padding: 0 7px; font-family: var(--cond); font-size: 14px; font-weight: 800; line-height: 20px; text-align: center; color: #111; background: var(--tier, var(--red)); letter-spacing: .5px; }
.op-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px 12px 13px; }
.op-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.op h3 { min-width: 0; font-size: 18px; font-weight: 900; letter-spacing: 1px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: var(--cond); font-size: 17px; font-weight: 800; color: var(--amber); }
.price i { width: 8px; height: 8px; background: var(--amber); transform: rotate(45deg); }
.op-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; font-size: 11.5px; color: var(--muted); }
.op-sub i { font-style: normal; margin: 0 5px; color: var(--faint); }
.op-sub img, .ti img { height: 11px; width: auto; margin-right: 4px; opacity: .8; }
.ti { display: inline-flex; }
.op-pacts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 1px; }
.chip-p { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-size: 12.5px; font-weight: 800; color: rgba(244, 236, 227, .85); }
.chip-p .pg { width: 19px; height: 19px; }
.chip-p:hover { color: var(--text); }
.chip-p.on { color: var(--mint-hi); }
.chip-p.on .pg { box-shadow: 0 0 0 1px var(--mint); }
.op-trait { position: relative; margin-top: 4px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .06); }
.op-lv { float: right; display: inline-flex; margin: -1px 0 4px 10px; border: 1px solid rgba(255, 255, 255, .1); }
.op-lv button { padding: 1px 7px; font-size: 11px; font-weight: 800; color: var(--faint); }
.op-lv button + button { border-left: 1px solid rgba(255, 255, 255, .1); }
.op-lv button:hover { color: var(--text); }
.op-lv button.on { color: #111; background: rgba(244, 236, 227, .82); }
.op-lv button.on:last-child { background: var(--amber); }
.op-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; font-weight: 700; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); }
.tag.w { color: var(--text); border-color: var(--line-strong); background: rgba(234, 85, 48, .1); }
.desc { font-size: 13px; line-height: 1.7; color: rgba(244, 236, 227, .82); }
.desc .num { font-family: var(--cond); font-size: 15px; font-weight: 800; color: var(--text); padding: 0 1px; }
.desc.elite .num { color: var(--amber); }
.desc + .desc { margin-top: -4px; }
.desc .when, .d-eff .when, .st-eff .when { display: inline-block; margin: 0 3px 0 0; padding: 0 5px; font-size: 11px; line-height: 18px; color: var(--text); background: rgba(234, 85, 48, .16); vertical-align: 1px; }
.desc .num, .d-eff .num { font-family: var(--cond); font-size: 16px; font-weight: 800; color: var(--text); padding: 0 1px; }
.desc .num i { font-style: normal; color: var(--faint); margin: 0 1px; }
.desc.elite .num, .desc .num em { color: var(--amber); }
.desc .lv { display: inline-block; margin-right: 6px; padding: 0 5px; font-size: 11px; font-weight: 800; line-height: 18px; color: var(--muted); border: 1px solid var(--line-strong); }
.desc .lv.e { color: var(--amber); border-color: rgba(240, 176, 74, .45); }
.kw { display: inline; padding: 0; font-size: inherit; font-weight: 800; color: var(--text); border-bottom: 1px dotted rgba(255, 255, 255, .4); }
.kw::before { content: "【"; color: var(--faint); font-weight: 400; }
.kw::after { content: "】"; color: var(--faint); font-weight: 400; }
.kw:hover { color: var(--mint-hi); border-bottom-color: var(--mint); }
.kw.on { color: var(--mint-hi); border-bottom-color: var(--mint); }
.kw-x { font-weight: 800; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; background: var(--panel); border: 1px dashed var(--line-strong); }
.empty b { font-size: 17px; }
.empty p { color: var(--muted); font-size: 13px; }
.empty div { display: flex; gap: 8px; margin-top: 6px; }
.btn { padding: 8px 14px; font-size: 13px; font-weight: 800; border: 1px solid var(--line-strong); }
.btn:hover { border-color: var(--text); }
.btn.go { color: #06231c; background: var(--mint); border-color: var(--mint); }

.pq-foot { margin: 48px 0 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: grid; gap: 4px; }

/* ---------- 阵容（视频攻略整理） ---------- */
.tab-new { margin-left: 6px; padding: 0 5px; font-size: 10px; font-weight: 900; letter-spacing: 0; color: #06231c; background: var(--mint); vertical-align: 2px; }
.lu-list { display: grid; gap: 5px; margin-top: 10px; }
.lu-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 9px 8px 6px; text-align: left; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: border-color .12s, background .12s; }
.lu-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.lu-item.on { border-color: var(--mint); background: linear-gradient(110deg, rgba(46, 224, 181, .12), transparent 70%); }
.lu-item .pg { width: 30px; height: 30px; }
.lu-t { display: grid; min-width: 0; }
.lu-t b { font-size: 13.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-tag { font-style: normal; font-size: 10px; font-weight: 900; padding: 0 5px; line-height: 17px; color: #111; }
.t-g { background: var(--mint); } .t-a { background: var(--amber); } .t-r { background: #ff8a6a; } .t-b { color: var(--text); background: rgba(255, 255, 255, .12); }
.lu { display: grid; gap: 16px; }
.lu-hero { padding: 18px 22px; background: linear-gradient(100deg, color-mix(in srgb, var(--tone) 55%, transparent), transparent 62%), var(--panel); border: 1px solid var(--line-strong); clip-path: var(--cut); }
.lu-hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.lu-hero .pg.big { width: 64px; height: 64px; }
.lu-title small { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--red-hi); }
.lu-title h2 { margin: 2px 0 4px; font-size: 28px; font-weight: 900; letter-spacing: 3px; line-height: 1.2; }
.lu-title p { font-size: 13.5px; line-height: 1.7; color: rgba(244, 236, 227, .86); }
.lu-title p b { color: var(--mint-hi); }
.lu-score { text-align: right; }
.lu-score b { display: block; font-family: var(--cond); font-size: 34px; font-weight: 800; line-height: 1; color: var(--mint-hi); }
.lu-score span { display: block; font-size: 11px; color: var(--muted); }
.lu-final { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.lu-lab { margin-right: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.need-c { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 2px; font-size: 12.5px; font-weight: 800; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.need-c .pg { width: 22px; height: 22px; }
.need-c b { font-family: var(--cond); font-size: 16px; color: var(--mint-hi); }
.lu-verdict { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: var(--muted); }
.lu-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.lu-h small { font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.lu-h::after { content: ""; flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--line-strong), transparent); }
.lu-strats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.lu-st { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.lu-st img, .lu-st-ghost { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(46, 224, 181, .35); }
.lu-st-ghost { display: grid; place-items: center; font-weight: 900; color: var(--muted); background: #0c1d1d; }
.lu-st b { font-size: 14.5px; } .lu-st small { display: block; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.lu-st .who { margin-left: auto; flex: none; padding: 1px 7px; font-size: 11px; font-weight: 800; color: var(--mint-hi); border: 1px solid rgba(46, 224, 181, .45); }
.lh-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lh { position: relative; display: grid; justify-items: center; width: 50px; }
.lh-img { width: 50px; height: 50px; object-fit: cover; background: #0f0b0a; border-bottom: 3px solid var(--t, #555); transition: transform .12s; }
.lh-img.ghost { display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.lh i { position: absolute; left: 0; top: 0; padding: 0 3px; font-family: var(--cond); font-size: 10px; font-style: normal; font-weight: 800; line-height: 13px; color: #111; background: var(--t); }
.lh-n { margin-top: 2px; max-width: 54px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.lh:hover .lh-img { transform: translateY(-2px); }
button.lh:hover .lh-n { color: var(--text); }
.lh.key .lh-img { box-shadow: 0 0 0 1px var(--mint); }
.lh.key .lh-n { color: var(--mint-hi); }
.lh.sm { width: auto; display: inline-grid; grid-template-columns: 24px auto; align-items: center; gap: 5px; }
.lh.sm .lh-img { width: 24px; height: 24px; border-bottom-width: 2px; }
.lh.sm i { display: none; }
.lh.sm .lh-n { margin: 0; max-width: none; font-size: 12.5px; color: var(--text); }
.lu-tips { list-style: none; display: grid; gap: 5px; font-size: 13px; line-height: 1.7; color: rgba(244, 236, 227, .86); }
.lu-tips li { position: relative; padding-left: 12px; }
.lu-tips li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: var(--red-hi); }
.lu-tips b { color: var(--text); }
.lu-tips .when, .lu-title .when { display: inline-block; margin-right: 3px; padding: 0 5px; font-size: 11px; line-height: 18px; background: rgba(234, 85, 48, .16); }
.ts { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; font-family: var(--cond); font-size: 12.5px; color: #8fc8ff; text-decoration: none; border: 1px solid rgba(143, 200, 255, .35); vertical-align: 1px; }
.ts::before { content: "▶"; font-size: 8px; }
.ts:hover { color: #fff; border-color: #8fc8ff; }
.road { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.road-bar { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; }
.road-seg { height: 24px; display: flex; align-items: center; padding: 0 7px; font-size: 11.5px; font-weight: 800; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--t); }
.road-axis { display: grid; grid-template-columns: repeat(14, 1fr); margin: 4px 0 8px; }
.road-axis span { text-align: center; font-family: var(--cond); font-size: 12px; color: var(--faint); }
.lu-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lu-stage { display: flex; flex-direction: column; gap: 9px; padding: 12px 13px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--sc); }
.lu-stage-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.lu-stage-h b { font-size: 16px; font-weight: 900; letter-spacing: 2px; }
.lu-stage-h span { font-family: var(--cond); font-size: 13px; color: var(--muted); }
.lu-stage-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 900; padding: 0 6px; line-height: 18px; color: #111; background: var(--sc); }
.lu-need { display: flex; flex-wrap: wrap; gap: 4px; }
.lu-need .need-c { font-size: 12px; padding-right: 7px; }
.lu-need .need-c .pg { width: 18px; height: 18px; }
.lu-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 16px; }
.lu-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.lu-row .sk, .lu-row .it { flex: none; color: var(--amber); font-weight: 800; }
.lu-row .ar { color: var(--faint); }
.lu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lu-box { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.lu-box h4 { margin-bottom: 6px; font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.lu-box .lu-row { align-items: flex-start; line-height: 1.6; }
.lu-srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.lu-src { display: flex; gap: 12px; padding: 10px; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); transition: border-color .12s; }
.lu-src:hover { border-color: #8fc8ff; }
.lu-src img, .lu-cover-ph { flex: none; width: 128px; height: 80px; object-fit: cover; background: #1b1513; }
.lu-src b { display: block; font-size: 12.5px; line-height: 1.45; }
.lu-src small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.lu-src em { display: inline-block; margin-top: 5px; padding: 0 6px; font-size: 10px; font-style: normal; font-weight: 800; color: #111; background: var(--mint); }
.d-lineup { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 9px 14px; text-align: left; font-size: 13.5px; font-weight: 900; color: #06231c; background: var(--mint); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.d-lineup small { font-size: 11.5px; font-weight: 700; opacity: .75; }
.d-lineup i { margin-left: auto; font-style: normal; transition: transform .15s; }
.d-lineup:hover i { transform: translateX(3px); }
body[data-view="line"] .pq-hero { padding-bottom: 12px; }

/* ---------- 用途：通用叠层卡 / 经济卡 ---------- */
.opt-row.roles { grid-template-columns: repeat(2, 1fr); }
.role-dot { display: inline-block; width: 8px; height: 8px; margin-right: 2px; transform: rotate(45deg); align-self: center; }
.r-stack.role-dot { background: var(--mint); } .r-eco.role-dot { background: var(--amber); }
.role-tag { flex: none; align-self: center; margin-right: auto; padding: 0 6px; font-size: 10.5px; font-weight: 900; line-height: 17px; border: 1px solid; }
.role-tag + .role-tag { margin-left: -6px; }
.role-tag.r-stack { color: var(--mint-hi); border-color: rgba(46, 224, 181, .45); }
.role-tag.r-eco { color: var(--amber); border-color: rgba(240, 176, 74, .5); }
.op-h h3 + .role-tag { margin-left: 2px; }
.role-note { padding: 5px 8px; font-size: 12px; line-height: 1.6; color: rgba(244, 236, 227, .88); background: rgba(46, 224, 181, .07); border-left: 2px solid var(--mint); }
.role-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 14px; padding: 16px 20px; background: linear-gradient(100deg, rgba(46, 224, 181, .14), transparent 60%), var(--panel); border: 1px solid var(--line-strong); clip-path: var(--cut); }
.role-file small { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--red-hi); }
.role-file h2 { margin: 2px 0 4px; font-size: 26px; font-weight: 900; letter-spacing: 3px; }
.role-file p { font-size: 13px; line-height: 1.7; color: rgba(244, 236, 227, .82); }
.role-src { display: grid; gap: 2px; max-width: 280px; padding: 9px 12px; font-size: 12px; line-height: 1.5; color: var(--muted); text-decoration: none; border: 1px solid rgba(143, 200, 255, .35); }
.role-src b { color: #8fc8ff; } .role-src i { font-style: normal; color: #8fc8ff; }
.role-src:hover { border-color: #8fc8ff; color: var(--text); }
.lu-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lu-role { display: grid; align-content: start; gap: 7px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.lu-role-g { font-size: 12.5px; font-weight: 900; color: var(--amber); }

/* ---------- 打分 / 评论 ---------- */
.fb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fb-stars { display: inline-flex; }
.fb-star { padding: 0 1px; font-size: 15px; line-height: 1; color: rgba(255, 255, 255, .18); transition: color .1s, transform .1s; }
.fb-star.on { color: var(--amber); }
.fb-star.avg { color: rgba(240, 176, 74, .5); }
.fb-stars:hover .fb-star { color: var(--amber); }
.fb-stars .fb-star:hover ~ .fb-star { color: rgba(255, 255, 255, .18); }
.fb-star:hover { transform: scale(1.15); }
.fb-avg { display: inline-flex; align-items: baseline; gap: 4px; }
.fb-avg b { font-family: var(--cond); font-size: 15px; font-weight: 800; color: var(--amber); }
.fb-avg small { font-size: 11px; color: var(--faint); white-space: nowrap; }
.fb-cm { margin-left: auto; padding: 1px 8px; font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.fb-cm:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.op-fb, .st-fb { display: flex; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .05); }
.op-fb .fb, .st-fb .fb { width: 100%; }
.st-fb { margin-top: 0; padding-top: 6px; }
.fb.big .fb-star { font-size: 24px; padding: 0 2px; }
.fb.big .fb-avg b { font-size: 22px; }
.lu-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.fb-box { display: grid; gap: 10px; }
.fb-form { display: grid; gap: 6px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.fb-form textarea { width: 100%; resize: vertical; min-height: 54px; padding: 8px 10px; font-size: 13px; line-height: 1.6; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); outline: none; }
.fb-form textarea:focus { border-color: var(--mint); }
.fb-form-f { display: flex; align-items: center; gap: 10px; }
.fb-form-f small { flex: 1; font-size: 11px; color: var(--faint); }
.fb-form-f a { color: #8fc8ff; }
.fb-list { list-style: none; display: grid; gap: 6px; }
.fb-empty { padding: 14px; font-size: 12.5px; text-align: center; color: var(--faint); border: 1px dashed rgba(255, 255, 255, .08); }
.fb-c { padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); }
.fb-c-h { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.fb-c-h b { font-weight: 900; }
.fb-c-h em { font-style: normal; font-size: 10px; padding: 0 4px; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); }
.fb-c-s { font-size: 11px; color: var(--amber); letter-spacing: -1px; }
.fb-c-h small { margin-left: auto; font-size: 11px; color: var(--faint); }
.fb-del { font-size: 11px; color: var(--red-hi); }
.fb-c p { margin-top: 4px; font-size: 13px; line-height: 1.65; color: rgba(244, 236, 227, .88); white-space: pre-wrap; word-break: break-word; }
.fb-panel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); }
.fb-panel-in { display: grid; gap: 12px; width: min(560px, 100%); max-height: calc(100vh / var(--page-zoom) - 60px); overflow: auto; padding: 16px 18px 18px; background: var(--bg); border: 1px solid var(--line-strong); clip-path: var(--cut); }
.fb-panel-in header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fb-panel-in header small { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--red-hi); }
.fb-panel-in h3 { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.fb-close { padding: 2px 8px; font-size: 14px; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); }
.fb-panel-rate { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
body.modal-open { overflow: hidden; }
.pq-toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; padding: 9px 16px; font-size: 13px; font-weight: 800; color: #06231c; background: var(--mint); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.pq-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 羁绊：每个盟约一张卡（打分 / 成分 / 核心卡） ---------- */
.opt-row.bk { grid-template-columns: repeat(3, 1fr); }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.bd { display: flex; flex-direction: column; gap: 11px; padding: 14px 15px 12px; background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 26%, transparent), transparent 45%), var(--panel); border: 1px solid var(--line); clip-path: var(--cut); scroll-margin: 140px; }
.bd.flash { animation: flash 1.6s ease; }
.bd-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bd-h .pg { width: 44px; height: 44px; }
.bd-t small { font-size: 11px; color: var(--muted); }
.bd-t h3 { font-size: 21px; font-weight: 900; letter-spacing: 2px; line-height: 1.2; }
.bd-n { text-align: right; font-size: 11px; color: var(--muted); }
.bd-n b { display: block; font-family: var(--cond); font-size: 22px; font-weight: 800; line-height: 1; color: var(--text); }
.bd-fb { padding: 8px 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.bd-fb .fb { width: 100%; }
.bd-fb .fb-star { font-size: 19px; }
.bd-sec { display: grid; gap: 7px; }
.bd-lab { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 900; color: var(--amber); }
.bd-lab small { font-size: 11px; font-weight: 700; color: var(--faint); }
.bd-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.bd-mx { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 8px 6px 4px; font-size: 12px; font-weight: 800; text-align: left; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.bd-mx::after { content: ""; position: absolute; left: 4px; right: 8px; bottom: 2px; height: 2px; background: linear-gradient(90deg, var(--amber) var(--w), rgba(255, 255, 255, .07) var(--w)); }
.bd-mx .pg { width: 20px; height: 20px; }
.bd-mx span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-mx b { font-family: var(--cond); font-size: 15px; color: var(--amber); }
.bd-mx:hover { border-color: rgba(255, 255, 255, .25); }
.bd-cores { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-core { display: grid; justify-items: center; gap: 2px; }
.bd-core em { max-width: 70px; font-size: 10px; font-style: normal; font-weight: 800; text-align: center; color: var(--mint); line-height: 1.25; }
.bd-go { display: flex; gap: 6px; margin-top: auto; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .05); }
.bd-go button { padding: 4px 10px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); }
.bd-go button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.bd-go button:last-child:not(:first-child) { margin-left: auto; color: #06231c; background: var(--mint); border-color: var(--mint); }
/* 阵容页顶部右边：视频封面 */
.lu-cover { position: relative; display: block; width: 236px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.lu-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.lu-cover:hover img { transform: scale(1.04); }
.lu-cover-play { position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; display: grid; place-items: center; padding-left: 3px; font-size: 16px; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 50%; transform: translate(-50%, -50%); }
.lu-cover-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-cover-meta b { font-family: var(--cond); font-size: 15px; color: var(--mint-hi); }
.lu-fb-go { margin-left: auto; font-size: 12px; font-weight: 800; color: #8fc8ff; }

/* ---------- 排行榜 ---------- */
.tg-img { width: 40px; height: 40px; object-fit: cover; background: #0f0b0a; border-bottom: 3px solid var(--t, #555); }
.tg-img.round { border-radius: 50%; border-bottom: 0; box-shadow: 0 0 0 2px rgba(46, 224, 181, .35); }
.tg-img.ghost { display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.sv { position: relative; display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1; color: rgba(255, 255, 255, .15); white-space: nowrap; }
.sv span { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--amber); }
.rank-how { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.rk-recent { margin-bottom: 14px; padding: 10px 12px 12px; background: var(--panel); border: 1px solid var(--line); }
.rk-recent h3 { margin-bottom: 8px; font-size: 13px; font-weight: 900; letter-spacing: 1px; color: var(--amber); }
.rk-recent-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.rk-rc { display: grid; gap: 4px; align-content: start; padding: 8px 10px; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.rk-rc:hover { border-color: rgba(255, 255, 255, .25); }
.rk-rc-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.rk-rc-t .tg-img, .rk-rc-t .pg { width: 22px; height: 22px; border-bottom-width: 2px; }
.rk-rc-t i { font-style: normal; font-size: 11px; color: var(--amber); }
.rk-rc-c { font-size: 12.5px; line-height: 1.5; color: rgba(244, 236, 227, .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-rc small { font-size: 11px; color: var(--faint); }
.rk-recent-empty { font-size: 12.5px; text-align: center; color: var(--faint); }
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 18px; }
.rk-1 { order: 2; } .rk-2 { order: 1; } .rk-3 { order: 3; }
.rk-pod { position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 14px 14px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 40%, transparent), transparent 70%), var(--panel); border: 1px solid var(--line-strong); clip-path: var(--cut); }
.rk-pod.rk-1 { padding-top: 32px; border-color: rgba(240, 176, 74, .6); }
.rk-medal { position: absolute; left: 12px; top: 8px; font-family: var(--cond); font-size: 30px; font-weight: 800; line-height: 1; color: #c98b5d; }
.rk-1 .rk-medal { color: var(--amber); font-size: 38px; } .rk-2 .rk-medal { color: #d8dde5; }
.rk-pod .tg-img, .rk-pod .pg { width: 64px; height: 64px; }
.rk-1 .tg-img, .rk-1 .pg { width: 80px; height: 80px; }
.rk-pod h3 { font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.rk-pod p { font-size: 11.5px; color: var(--muted); }
.rk-pod-s { display: flex; align-items: center; gap: 7px; }
.rk-pod-s b { font-family: var(--cond); font-size: 30px; font-weight: 800; line-height: 1; color: var(--amber); }
.rk-pod-s small { font-size: 11px; color: var(--faint); }
.rk-pod-c { padding: 3px 10px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); }
.rk-pod-c:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.rk-empty { margin-bottom: 16px; padding: 24px; text-align: center; background: var(--panel); border: 1px dashed var(--line-strong); }
.rk-empty b { font-size: 16px; } .rk-empty p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.rk-list { list-style: none; display: grid; gap: 4px; }
.rk-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) 170px auto; gap: 12px; align-items: center; padding: 7px 12px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--tone); }
.rk-row:hover { border-color: var(--line-strong); border-left-color: var(--tone); }
.rk-no { font-family: var(--cond); font-size: 20px; font-weight: 800; text-align: center; color: var(--faint); }
.rk-row.top .rk-no { color: var(--amber); }
.rk-row .tg-img, .rk-row .pg { width: 40px; height: 40px; }
.rk-name { min-width: 0; text-align: left; }
.rk-name b { display: block; font-size: 14.5px; font-weight: 900; }
.rk-name small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-score { display: flex; align-items: center; gap: 7px; }
.rk-score b { font-family: var(--cond); font-size: 21px; font-weight: 800; color: var(--amber); }
.rk-score small { font-size: 11px; color: var(--faint); }
.fb.row .fb-avg { display: none; }
.fb.row::before { content: "我的"; font-size: 11px; color: var(--faint); }
/* 盟约档案：成分 / 核心卡 / 打分 */
.d-extras { display: grid; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); }
.d-extras .bd-mix { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.d-rate { margin-top: 12px; padding: 8px 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.d-rate .fb { width: 100%; }
/* 打分弹窗：沿用卫戍协议设计板（三色条、琥珀头、01/02/03 分段、档位块、黑影按钮） */
.fb-panel { background: rgba(0, 0, 0, .74); }
.fb-panel-in { position: relative; width: min(620px, 100%); gap: 0; padding: 0; color: #fff7ea; border: 1px solid rgba(231, 126, 23, .72); clip-path: none; border-radius: 8px;
  background: linear-gradient(180deg, rgba(252, 168, 41, .1), transparent 180px), radial-gradient(circle at 88% 10%, rgba(33, 151, 101, .16), transparent 34%), linear-gradient(145deg, #242425 0 58%, #18191a 58% 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .035); }
.fb-panel-in::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 153, 36, .05) 0 1px, transparent 1px 4px); pointer-events: none; }
.fb-panel-in > * { position: relative; }
.fbp-stripe { display: block; height: 6px; background: linear-gradient(90deg, #f58418 0 34%, #b98224 34% 66%, #1f9b73 66%); }
.fb-panel-in .fbp-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 12px; color: #0c0c0b; background: linear-gradient(180deg, rgba(255, 165, 34, .95), rgba(255, 165, 34, .74)); overflow: hidden; }
.fb-panel-in .fbp-h::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 18%, rgba(0, 0, 0, .8) 0 1px, transparent 1.2px) 0 0 / 4px 4px; opacity: .28; pointer-events: none; }
.fbp-h > * { position: relative; }
.fbp-ic { display: grid; place-items: center; width: 60px; height: 60px; background: #141414; clip-path: var(--cut); }
.fbp-ic .tg-img, .fbp-ic .pg { width: 52px; height: 52px; border-bottom: 0; }
.fbp-ic .tg-img.round { box-shadow: none; }
.fbp-code { display: inline-block; padding: 2px 6px; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #f39a1d; background: #181818; }
.fb-panel-in .fbp-h h3 { margin-top: 4px; font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: 1px; color: #0c0c0b; }
.fbp-h p { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: rgba(12, 12, 11, .72); }
.fbp-h .fb-close { align-self: start; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 13px; color: #fff7ea; background: #141414; border: 0; clip-path: var(--cut); }
.fbp-h .fb-close:hover { color: #ffbe53; }
.fbp-step { padding: 14px 16px; border-top: 1px solid rgba(255, 247, 234, .1); }
.fbp-step:first-of-type { border-top: 0; }
.fbp-sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.fbp-sh b { font-family: var(--mono); font-size: 11px; color: #f58418; }
.fbp-sh strong { font-size: 14px; font-weight: 900; }
.fbp-sh span { margin-left: auto; font-size: 11px; font-weight: 700; color: rgba(255, 247, 234, .55); }
.fbp-sh em { font-style: normal; font-family: var(--cond); font-size: 15px; font-weight: 800; color: #ffbe53; }
.fbp-sum { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; }
.fbp-avg { display: grid; justify-items: start; gap: 6px; padding: 10px 12px; background: rgba(0, 0, 0, .28); border-left: 3px solid #ffbe53; }
.fbp-avg b { font-family: var(--cond); font-size: 48px; font-weight: 800; font-style: italic; line-height: .9; color: #ffbe53; }
.fbp-avg small { font-size: 11px; color: rgba(255, 247, 234, .55); }
.fbp-tag { padding: 3px 10px; font-size: 12px; font-weight: 900; color: #fff; background: var(--tone); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.fbp-dist { list-style: none; display: grid; gap: 6px; }
.fbp-dist li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 24px; gap: 10px; align-items: center; }
.fbp-dist span { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; font-weight: 800; color: rgba(255, 247, 234, .72); }
.fbp-dist span b { font-family: var(--cond); font-size: 15px; font-style: italic; color: var(--tone); }
.fbp-dist i { height: 8px; background: rgba(255, 247, 234, .08); }
.fbp-dist em { display: block; height: 100%; background: var(--tone); }
.fbp-dist small { text-align: right; font-family: var(--cond); font-size: 14px; font-weight: 800; color: #fff7ea; }
.fbp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fbp-tile { position: relative; display: grid; gap: 3px; padding: 9px 10px 11px; text-align: left; color: #fff7ea; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 247, 234, .14); transition: background .15s, border-color .15s; }
.fbp-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); opacity: .45; }
.fbp-tile .lv { font-family: var(--cond); font-size: 22px; font-weight: 800; font-style: italic; line-height: 1; color: var(--tone); }
.fbp-tile strong { font-size: 13px; font-weight: 900; }
.fbp-tile small { font-size: 10px; line-height: 1.35; color: rgba(255, 247, 234, .55); }
.fbp-tile:hover { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.fbp-tile.on { background: var(--tone); border-color: var(--tone); }
.fbp-tile.on .lv { color: #fff; }
.fbp-tile.on small { color: rgba(255, 255, 255, .88); }
.fbp-tile.on::after { background: #fff; opacity: .9; }
.fb-panel .fb-form { padding: 0; background: none; border: 0; }
.fb-panel .fb-form textarea { min-height: 70px; color: #fff7ea; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 247, 234, .14); }
.fb-panel .fb-form textarea:focus { border-color: #f39a1d; }
.fb-panel .fb-form .btn { height: 34px; padding: 0 18px; font-size: 13px; font-weight: 900; color: #17110a; background: #f39a1d; border: 0; border-radius: 0; box-shadow: 5px 0 0 #0c0c0b, 0 0 18px rgba(243, 154, 29, .25); }
.fb-panel .fb-form .btn:disabled { color: rgba(255, 247, 234, .6); background: #4a4640; box-shadow: none; }
.fb-panel .fb-list { margin-top: 2px; }
.fb-panel .fb-c { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 247, 234, .1); border-left: 3px solid #1f9b73; }
.fb-panel .fb-c-s { color: #ffbe53; }
.fb-panel .fb-empty { border-color: rgba(255, 247, 234, .12); }
.fb-count { font-family: var(--cond); font-size: 12px; color: var(--faint); }


/* ---------- 排行榜页：和策略 / 阵容页同一套面板、线条、薄荷绿选中 ---------- */
.tb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.tb { min-width: 0; background: linear-gradient(160deg, rgba(46, 224, 181, .06), transparent 45%), var(--panel); border: 1px solid var(--line); clip-path: var(--cut); transition: border-color .12s; }
.tb:hover { border-color: var(--line-strong); }
.tb.on { border-color: var(--mint); }
.tb-h { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 11px 12px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.tb-h b { font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.tb.on .tb-h b { color: var(--mint-hi); }
.tb-h .rail-n { font-size: 13px; }
.tb-h i { margin-left: auto; font-style: normal; font-size: 13px; color: var(--faint); }
.tb-h:hover i, .tb-h:hover b { color: var(--mint-hi); }
.tb ol { list-style: none; display: grid; gap: 2px; padding: 6px 8px 8px; }
.tb li button { display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; width: 100%; height: 36px; padding: 0 4px; text-align: left; }
.tb li button:hover { background: rgba(255, 255, 255, .04); }
.tb li.first button { height: 46px; background: rgba(255, 255, 255, .025); }
.tb li.first .tg-img, .tb li.first .pg { width: 36px; height: 36px; }
.tb li.first .tb-n { font-size: 14px; }
.tb li.first b { font-size: 20px; }
.tb li.first button { grid-template-columns: 16px 36px minmax(0, 1fr) auto auto; }
.tb li.ph { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; height: 36px; padding: 0 4px; }
.tb li.ph:first-child { height: 46px; }
.tb li.ph i { height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.tb-no { font-family: var(--cond); font-size: 16px; font-weight: 800; text-align: center; color: var(--faint); }
.tb li.first .tb-no { color: var(--red-hi); font-size: 20px; }
.tb li .tg-img, .tb li .pg { width: 28px; height: 28px; border-bottom-width: 2px; }
.tb-n { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tag { padding: 1px 6px; font-size: 10.5px; font-weight: 900; color: #141414; background: var(--tone); white-space: nowrap; }
.tb li b { font-family: var(--cond); font-size: 16px; font-weight: 800; color: var(--amber); }

/* 夯拉榜 */
.tl-board { display: grid; gap: 3px; padding: 3px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--cut); }
.tl-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 96px; }
.tl-lab { display: grid; place-items: center; padding: 8px 4px; color: #141414; background: var(--tone); }
.tl-lab b { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.tl-drop { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 6px; min-height: 96px; padding: 8px; background: rgba(0, 0, 0, .28); transition: background .12s, box-shadow .12s; }
.tl-drop.over { background: color-mix(in srgb, var(--tone, var(--mint)) 16%, rgba(0, 0, 0, .3)); box-shadow: inset 0 0 0 2px var(--tone, var(--mint)); }
.tl-slot { width: 74px; height: 80px; border: 1px dashed var(--line-strong); }
.tl-pool-h { margin-top: 22px; }
.tl-pool-h small { font-family: var(--cond); font-size: 15px; color: var(--red-hi); }
.tl-pool { --tone: var(--mint); min-height: 96px; max-height: 300px; overflow-y: auto; background: rgba(0, 0, 0, .2); border: 1px dashed var(--line-strong); }
.tl-done { margin: auto; font-size: 24px; font-weight: 900; color: var(--mint); }
.tl-tile { position: relative; display: flex; flex-direction: column; width: 74px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .12s, transform .12s; }
.tl-tile > * { pointer-events: none; }
.tl.mine .tl-tile { cursor: grab; touch-action: manipulation; }
.tl-tile:hover { z-index: 2; border-color: var(--line-strong); transform: translateY(-2px); }
.tl-img { display: grid; place-items: center; height: 58px; }
.tl-img .tg-img, .tl-img .pg { width: 50px; height: 50px; }
.tl-name { padding: 3px 4px 4px; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 2px solid var(--tone); }
.tl-avg { position: absolute; right: -1px; top: -1px; padding: 0 4px; font-family: var(--cond); font-size: 12px; font-weight: 800; font-style: normal; color: #141414; background: var(--amber); }
.tl-tile.dragging { opacity: .25; transform: none; }
.tl-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; cursor: grabbing; transition: none; border-color: var(--mint); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
body.tl-dragging, body.tl-dragging * { cursor: grabbing !important; }

/* 档位换成从夯到拉后，弹窗里的选中块和标签用深色字 */
.fbp-tile .lv { font-family: var(--cjk); font-size: 17px; font-style: normal; font-weight: 900; }
.fbp-tile.on, .fbp-tile.on .lv, .fbp-tile.on small { color: #141414; }
.fbp-tile.on::after { background: #141414; opacity: .5; }
.fbp-tag { color: #141414; }

.rc-list { display: grid; gap: 5px; }
.rc-item { display: grid; gap: 4px; padding: 7px 9px; text-align: left; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06); border-left: 2px solid #1f9b73; }
.rc-item:hover { border-color: rgba(255, 190, 83, .45); border-left-color: #1f9b73; }
.rc-t { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; }
.rc-t .tg-img, .rc-t .pg { width: 20px; height: 20px; flex: none; border-bottom-width: 2px; }
.rc-t b { min-width: 0; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-t i { margin-left: auto; padding: 0 5px; font-size: 10px; font-style: normal; font-weight: 900; color: #141414; background: var(--tone); white-space: nowrap; }
.rc-c { font-size: 12px; line-height: 1.5; color: rgba(244, 236, 227, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-item small { font-size: 10.5px; color: var(--faint); }
/* 放大的完整榜单 */
.rb-panel { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .74); }
.rb-in { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh / var(--page-zoom) - 40px); color: #fff7ea; border: 1px solid rgba(231, 126, 23, .72); border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, rgba(252, 168, 41, .08), transparent 200px), linear-gradient(145deg, #242425 0 58%, #18191a 58% 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: rb-in .18s ease-out; }
@keyframes rb-in { from { opacity: 0; transform: scale(.96); } }
.rb-in .fbp-stripe { flex: none; }
.rb-h { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px 12px; color: #0c0c0b; background: linear-gradient(180deg, rgba(255, 165, 34, .95), rgba(255, 165, 34, .74)); }
.rb-h::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 18%, rgba(0, 0, 0, .8) 0 1px, transparent 1.2px) 0 0 / 4px 4px; opacity: .28; pointer-events: none; }
.rb-h > * { position: relative; }
.rb-h h3 { margin-top: 4px; font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.rb-h p { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: rgba(12, 12, 11, .7); }
.rb-dist { display: flex; gap: 3px; }
.rb-dist span { display: grid; justify-items: center; min-width: 46px; padding: 4px 4px 3px; font-size: 10px; font-weight: 900; color: #141414; background: var(--tone); }
.rb-dist b { font-family: var(--cond); font-size: 18px; line-height: 1; }
.rb-close { align-self: start; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; color: #fff7ea; background: #141414; clip-path: var(--cut); }
.rb-close:hover { color: #ffbe53; }
.rb-list { list-style: none; flex: 1; overflow-y: auto; display: grid; gap: 4px; align-content: start; padding: 12px 14px; }
.rb-row { display: grid; grid-template-columns: 32px 44px minmax(0, 1fr) 64px 76px 92px; gap: 12px; align-items: center; width: 100%; padding: 7px 10px; text-align: left; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 247, 234, .08); border-left: 4px solid var(--lv); }
.rb-row:hover { border-color: rgba(255, 190, 83, .5); border-left-color: var(--lv); background: rgba(0, 0, 0, .4); }
.rb-no { font-family: var(--cond); font-size: 22px; font-weight: 800; font-style: italic; text-align: center; color: var(--faint); }
.rb-row.top .rb-no { color: #ffbe53; font-size: 26px; }
.rb-row .tg-img, .rb-row .pg { width: 44px; height: 44px; }
.rb-name b { display: block; font-size: 15px; font-weight: 900; }
.rb-name small { display: block; font-size: 11px; color: rgba(255, 247, 234, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-tag { justify-self: start; padding: 2px 8px; font-size: 12px; font-weight: 900; color: #141414; background: var(--lv); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.rb-avg b { display: block; font-family: var(--cond); font-size: 22px; font-weight: 800; line-height: 1; color: #ffbe53; }
.rb-avg small { font-size: 10.5px; color: rgba(255, 247, 234, .5); }
.rb-my { font-size: 11px; color: rgba(255, 247, 234, .45); text-align: right; }
.rb-my i { padding: 0 5px; font-style: normal; font-weight: 900; color: #141414; background: var(--tone); }
.rb-empty { padding: 40px 16px; text-align: center; font-size: 13px; color: rgba(255, 247, 234, .5); }
.rb-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid rgba(255, 247, 234, .1); background: rgba(0, 0, 0, .25); }
.rb-f span { font-size: 11.5px; color: rgba(255, 247, 234, .5); }
.rb-go { padding: 7px 14px; font-size: 12.5px; font-weight: 900; color: #17110a; background: #f39a1d; box-shadow: 5px 0 0 #0c0c0b; }
.fb-panel { z-index: 60; }

/* 策略页左栏：大家推荐 */
.tb.tb-flat { background: none; border: 0; }
.tb.tb-flat ol { padding: 0; }
.tb.tb-flat li button { padding: 5px 2px; }
.rail-open { display: block; width: 100%; margin-top: 8px; padding: 6px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px dashed rgba(255, 247, 234, .14); }
.rail-open:hover { color: #ffbe53; border-color: rgba(255, 190, 83, .45); }

/* ---------- 武器 ---------- */
.wp-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.st.wp { background: linear-gradient(160deg, color-mix(in srgb, var(--t) 9%, transparent), transparent 45%), var(--panel); }
.st.wp.flash { animation: flash 1.4s ease; }
.wp-ava { position: relative; width: 64px; height: 64px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--t) 30%, #1a1412), #0e0a09 72%); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); border-bottom: 3px solid var(--t); }
.wp-ava .wp-i { width: 54px; height: 54px; object-fit: contain; }
.wp-ava .tier { position: absolute; left: -1px; top: -1px; padding: 0 5px; font-family: var(--cond); font-size: 13px; font-weight: 800; line-height: 17px; color: #141414; background: var(--t); }
.st.wp .st-id h3 { font-size: 17px; }
.st.wp .price { font-size: 16px; }
.use.wk-0 { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.use.wk-1 { color: #8fc8ff; border-color: rgba(143, 200, 255, .45); }
.use.wk-2 { color: var(--amber); border-color: rgba(240, 176, 74, .45); }
.use.wk-3 { color: #ff9a5c; border-color: rgba(255, 127, 31, .55); }
.wp-eff .wl { display: inline-block; margin-right: 7px; padding: 0 5px; font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 18px; color: var(--muted); border: 1px solid var(--line-strong); }
.wp-eff .adv .wl { color: var(--amber); border-color: rgba(240, 176, 74, .45); }
.wp-eff .num { font-family: var(--cond); font-size: 16px; font-weight: 800; color: var(--text); padding: 0 1px; }
.wp-eff .adv .num { color: var(--amber); }
.wp-combo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 8px; background: rgba(0, 0, 0, .22); border: 1px dashed var(--line-strong); }
.wp-op { font-family: var(--cond); font-size: 15px; font-weight: 800; color: var(--faint); }
.wp-link { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 2px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-bottom: 2px solid var(--t); }
.wp-link:hover { border-color: var(--mint); color: var(--mint-hi); }
.wp-link .wp-i { width: 24px; height: 24px; object-fit: contain; }
.wp-desc { font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.tg-img.wpi { object-fit: contain; padding: 3px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--t) 30%, #1a1412), #0e0a09 75%); }

/* 左栏排名榜：没人评的排在后面、颜色压暗 */
.tb.tb-flat li.un button { opacity: .55; }
.tb.tb-flat li.un button:hover { opacity: 1; }
.tb.tb-flat li button { grid-template-columns: 16px 28px minmax(0, 1fr) auto auto; }
.tb-un { font-size: 10.5px; color: var(--faint); }
.rail-top .rail-h b { letter-spacing: 1px; }

/* 放大榜单：没人评的那段 */
.rb-sep { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; padding-bottom: 4px; border-bottom: 1px dashed rgba(255, 247, 234, .14); }
.rb-sep b { font-size: 13px; font-weight: 900; color: rgba(255, 247, 234, .7); }
.rb-sep small { font-family: var(--cond); font-size: 15px; color: #ffbe53; }
.rb-row.un { --lv: rgba(255, 247, 234, .12); }
.rb-row.un .rb-tag { color: rgba(255, 247, 234, .5); background: rgba(255, 247, 234, .08); }
.rb-row.un .rb-avg b { color: rgba(255, 247, 234, .3); }
.rb-row.un .rb-name b { color: rgba(255, 247, 234, .82); }
/* 五个小榜：上面三个、下面两个 */
.tb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tb-grid > .tb { grid-column: span 2; }
.tb-grid > .tb:nth-child(n + 4) { grid-column: span 3; }

/* 弹窗：底面纯色，不铺纹理，保证文字清楚 */
.fb-panel-in { background: #1c1c1d; }
.fb-panel-in::before { content: none; }
.fb-panel-in .fbp-h::before, .rb-h::before { content: none; }
.rb-in { background: #1c1c1d; }
.fbp-step { background: none; }
.fbp-fx { background: rgba(0, 0, 0, .22); }
.fbp-facts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.fbp-facts span { padding: 1px 7px; font-size: 11px; font-weight: 800; line-height: 18px; color: rgba(255, 247, 234, .75); background: rgba(255, 247, 234, .06); border: 1px solid rgba(255, 247, 234, .1); }
.fbp-eff { display: grid; gap: 6px; font-size: 13.5px; line-height: 1.7; color: #f4ece3; }
.fbp-eff .wl { display: inline-block; margin-right: 7px; padding: 0 5px; font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 18px; color: rgba(255, 247, 234, .6); border: 1px solid rgba(255, 247, 234, .2); }
.fbp-eff .adv .wl { color: var(--amber); border-color: rgba(240, 176, 74, .5); }
.fbp-eff .num { font-family: var(--cond); font-size: 16px; font-weight: 800; color: #fff; padding: 0 1px; }
.fbp-eff .adv .num { color: var(--amber); }
.fbp-eff .when { display: inline-block; margin-right: 3px; padding: 0 5px; font-size: 11px; line-height: 18px; background: rgba(234, 85, 48, .2); }
.fbp-eff .kw-x, .fbp-eff p > b:not(.num) { color: #ffbe53; }
.fbp-combo { padding-top: 6px; border-top: 1px dashed rgba(255, 247, 234, .12); font-size: 12.5px; color: rgba(255, 247, 234, .7); }

/* 标签：左边「干员」一组展开成 盟约 / 武器 / 策略，右边阵容、排行榜 */
.pq-tabs { align-items: stretch; justify-content: flex-start; gap: 6px; }
.tab-grp + .tab-grp { padding-left: 6px; border-left: 1px solid var(--line); }
.tab-grp, .tab-side { display: flex; align-items: stretch; }
.tab-grp .tab { display: flex; align-items: baseline; }
.tab-grp.open .tab { cursor: default; }
.tab-more { margin-left: 8px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: 0; color: var(--faint); }
.tab-grp .tab:hover .tab-more { color: var(--mint-hi); }
.tab-subs { display: flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.tab-sub { padding: 5px 12px; font-size: 13.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted); border: 1px solid transparent; }
.tab-sub small { margin-left: 5px; font-family: var(--cond); font-size: 13px; color: var(--faint); }
.tab-sub:hover { color: var(--text); border-color: var(--line); }
.tab-sub.on { color: var(--mint-hi); background: rgba(46, 224, 181, .1); border-color: var(--mint); }
.tab-sub.on small { color: var(--mint); }

/* 阵容页头：封面缩小，标题区不再被撑高 */
.lu-cover { width: 168px; }
.lu-cover-play { width: 30px; height: 30px; font-size: 12px; }
.lu-cover-meta { padding: 10px 6px 4px; font-size: 10px; }
.lu-cover-meta b { font-size: 13px; }

/* 策略：阵营专属 */
.opt-wrap.sfacs .opt { align-items: center; padding: 4px 7px; }
.opt .pg.opt-pg { width: 18px; height: 18px; }
.st-pact { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 2px; font-size: 11px; font-weight: 800; line-height: 19px; color: var(--text); background: color-mix(in srgb, var(--tone) 45%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 80%, transparent); }
.st-pact .pg { width: 16px; height: 16px; }
.st-tags { flex-wrap: wrap; }

/* 左栏排名榜：和上面的筛选分开，各自一块 */
.pq-rail .rail-top { margin-top: 18px; padding: 12px 12px 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); clip-path: var(--cut); }
.pq-rail .rail-top + .rail-top { margin-top: 12px; }
.rail-more + .rail-top { margin-top: 20px; }
.rail-top .rail-h { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }

/* 排行榜页小榜：默认收起，只露第一名 */
.tb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tb-bar .lu-h { margin: 0; }
.tb-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); }
.tb-toggle i { font-style: normal; font-size: 10px; }
.tb-toggle:hover { color: var(--mint-hi); border-color: var(--mint); }
.tb-grid.folded { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tb-grid.folded > .tb, .tb-grid.folded > .tb:nth-child(n + 4) { grid-column: auto; }
.tb-grid.folded .tb-h { padding: 9px 10px 7px; }
.tb-grid.folded ol { padding: 5px 6px 6px; }
.tb-grid.folded li.first button { height: 40px; grid-template-columns: 14px 30px minmax(0, 1fr) auto; gap: 6px; background: none; }
.tb-grid.folded li.first .tg-img, .tb-grid.folded li.first .pg { width: 30px; height: 30px; }
.tb-grid.folded li.first b { display: none; }
.tb-grid.folded li.ph:first-child { height: 40px; }

/* 排行榜：榜单收起时整块不显示；没有数量条时不占位 */
.tb-grid[hidden] { display: none; }
.pq-bar:empty { display: none; }
.tb-bar { margin-top: 4px; }
.tb-grid[hidden] + .tl { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 排行榜左栏：每个选中的对象一组筛选，组之间分开 */
.rk-grp { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.rk-grp > .rail-sec:first-child { margin-top: 0; }
.rail-h.rk-op { margin-bottom: 10px; }

/* 排行榜：「大家的」也能拖；左栏可收起 */
.tl .tl-tile { cursor: grab; touch-action: manipulation; }
.rail-fold { flex: none; width: 26px; height: 26px; margin-left: -2px; display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--muted); border: 1px solid var(--line); }
.rail-fold:hover { color: var(--mint-hi); border-color: var(--mint); }
.rail-h:has(.rail-fold) .seg { margin-left: auto; }
body.rail-folded .pq-layout { grid-template-columns: 44px minmax(0, 1fr); }
body.rail-folded .pq-rail { padding: 0; overflow: visible; background: none; border: 0; }
.rail-unfold { position: relative; display: grid; justify-items: center; gap: 8px; width: 44px; padding: 12px 0 14px; font-size: 13px; font-weight: 900; color: var(--muted); background: rgba(22, 17, 16, .92); border: 1px solid var(--line); }
.rail-unfold i { font-style: normal; font-size: 20px; line-height: 1; }
.rail-unfold span { writing-mode: vertical-rl; letter-spacing: 4px; }
.rail-unfold em { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }
.rail-unfold:hover { color: var(--mint-hi); border-color: var(--mint); }

/* 总排行榜：沿用放大榜单的行，放在页面面板里 */
.tt .lu-h small { margin-left: 8px; font-family: var(--cond); font-size: 15px; color: var(--red-hi); }
.tt-list { padding: 10px; background: var(--panel); border: 1px solid var(--line); clip-path: var(--cut); }
.tt-kind { margin-right: 6px; padding: 0 5px; font-style: normal; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, .08); }
.tt-empty { padding: 48px 16px; text-align: center; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); }

/* ---------- 变形同构体配对 ---------- */
.wp-iso { display: grid; gap: 4px; padding: 7px 8px; background: rgba(0, 0, 0, .22); border: 1px dashed var(--line-strong); }
.iso-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iso-row small { font-size: 10.5px; color: var(--faint); }
.iso-q { padding: 0 5px; font-size: 10px; font-style: normal; font-weight: 800; line-height: 17px; color: var(--amber); border: 1px dashed rgba(240, 176, 74, .5); }
.fbp-iso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding-top: 6px; border-top: 1px dashed rgba(255, 247, 234, .12); font-size: 12.5px; color: rgba(255, 247, 234, .75); }
.fbp-iso b { color: #ffbe53; }

/* ---------- 配队 ---------- */
.pk-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.pk-h:first-child { margin-top: 4px; }
.pk-h .lu-h { margin: 0; }
.pk-h .lu-h small { margin-left: 8px; font-family: var(--cond); font-size: 15px; color: var(--red-hi); }
.pk-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; max-height: 312px; overflow-y: auto; padding: 8px; background: var(--panel); border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.pk-op { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 7px; padding: 4px 6px 4px 4px; text-align: left; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-left: 3px solid var(--t); cursor: grab; }
.pk-op img, .pk-op .ghost, .pk-in img, .pk-in .ghost, .pk-hd img, .pk-hd .ghost { width: 30px; height: 30px; object-fit: cover; background: #0f0b0a; }
.pk-op .ghost, .pk-in .ghost, .pk-hd .ghost { display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--muted); }
.pk-op b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-op i { position: absolute; top: 2px; right: 4px; font-family: var(--cond); font-size: 11px; font-style: normal; font-weight: 800; color: var(--t); }
.pk-op:hover { border-color: var(--line-strong); border-left-color: var(--t); }
.pk-op.on { border-color: var(--mint); border-left-color: var(--mint); background: rgba(46, 224, 181, .1); }
.pk-op.on b { color: var(--mint-hi); }
.pk-op.ban { opacity: .3; cursor: not-allowed; }
.pk-pool { min-height: 120px; padding: 10px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--line-strong); transition: background .12s, border-color .12s; }
.pk-pool.over { background: rgba(46, 224, 181, .08); border-color: var(--mint); }
.pk-drop-hint { display: grid; place-items: center; height: 100px; font-size: 34px; font-weight: 300; color: var(--faint); }
.pk-picked { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.pk-in { display: grid; justify-items: center; gap: 3px; width: 76px; padding: 5px 4px; background: var(--panel-2); border: 1px solid var(--line); border-bottom: 2px solid var(--t); }
.pk-x { position: relative; display: block; }
.pk-in img, .pk-in .ghost { width: 46px; height: 46px; }
.pk-x i { position: absolute; left: 0; bottom: 0; padding: 0 3px; font-family: var(--cond); font-size: 10px; font-style: normal; font-weight: 800; color: #141414; background: var(--t); }
.pk-x span { position: absolute; top: -6px; right: -8px; width: 16px; height: 16px; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; background: #d6452c; border-radius: 50%; opacity: 0; transition: opacity .12s; }
.pk-in:hover .pk-x span, .pk-x:focus-visible span { opacity: 1; }
.pk-in b { max-width: 100%; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tz { width: 100%; padding: 1px 2px; font-size: 10.5px; color: var(--muted); background: #120e0d; border: 1px solid var(--line); }
.pk-rows { display: grid; gap: 3px; }
.pk-row, .pk-tr { display: grid; grid-template-columns: 112px 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 8px; background: rgba(255, 255, 255, .02); border-left: 3px solid var(--line-strong); }
.pk-row.on, .pk-tr.on { border-left-color: var(--mint); background: rgba(46, 224, 181, .06); }
.pk-row.ban, .pk-tr.ban { opacity: .45; }
.pk-pact { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pk-pact .pg { width: 26px; height: 26px; flex: none; }
.pk-pact b { font-size: 13px; font-weight: 900; white-space: nowrap; }
.pk-n { font-family: var(--cond); font-size: 14px; color: var(--muted); }
.pk-n b { font-size: 19px; color: var(--text); }
.on > .pk-n b { color: var(--mint-hi); }
.pk-n em { display: block; font-family: var(--cjk); font-size: 10px; font-style: normal; font-weight: 800; color: var(--amber); }
.pk-n small { display: block; font-family: var(--cjk); font-size: 10.5px; }
.pk-heads { display: flex; flex-wrap: wrap; gap: 3px; }
.pk-hd { position: relative; }
.pk-hd.iso::after { content: "同构"; position: absolute; right: -2px; bottom: -2px; padding: 0 2px; font-size: 8px; font-weight: 900; color: #141414; background: var(--amber); }
.pk-bans { display: flex; flex-wrap: wrap; gap: 4px; }
.pk-ban { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; font-size: 12px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.pk-ban .pg { width: 20px; height: 20px; }
.pk-ban:hover { color: var(--text); border-color: var(--line-strong); }
.pk-ban.on { color: #ff8a6a; border-color: #d6452c; background: rgba(214, 69, 44, .14); text-decoration: line-through; }
.pk-table { display: grid; gap: 3px; }
.pk-tr { grid-template-columns: 112px 74px minmax(0, 1fr); align-items: start; padding: 8px; }
.pk-eff { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.65; color: rgba(244, 236, 227, .85); }
.pk-eff .num { font-family: var(--cond); font-size: 15px; font-weight: 800; color: var(--text); }
.pk-eff .when { display: inline-block; margin-right: 3px; padding: 0 5px; font-size: 11px; line-height: 18px; background: rgba(234, 85, 48, .16); }
.pk-empty { padding: 20px; text-align: center; font-size: 12.5px; color: var(--muted); }
.pk-clear { padding: 4px 12px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); }
.pk-clear:hover { color: #ff8a6a; border-color: #d6452c; }

/* 标签：大标签（组名）大字 + 红下划线；小标签收进紧贴右侧的深色凹槽，像分段开关 */
.pq-tabs { gap: 22px; }
.tab-grp + .tab-grp { padding-left: 0; border-left: 0; }
.tab-grp .tab { padding: 10px 4px 9px; font-size: 17px; letter-spacing: 2px; }
.tab-grp .tab small { font-size: 14px; letter-spacing: 0; }
.tab-subs { align-self: center; gap: 2px; margin: 0 0 0 10px; padding: 3px; border: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(0, 0, 0, .38); }
.tab-sub { padding: 4px 11px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); border: 0; }
.tab-sub small { margin-left: 4px; font-size: 12px; }
.tab-sub:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tab-sub.on { color: var(--mint-hi); background: rgba(46, 224, 181, .16); }

/* 标签：左边三个大标签（各带一个角标），右边是当前大标签下的小标签凹槽 */
.pq-tabs { justify-content: space-between; align-items: center; }
.tab-mains { display: flex; align-items: stretch; gap: 22px; order: -1; }
.tab-mains .tab { display: flex; align-items: center; padding: 10px 2px 9px; font-size: 17px; letter-spacing: 2px; }
.tab-mains .tab.on { cursor: default; }
.tab-mains .tab-new { margin-left: 7px; vertical-align: 0; }
.tab-new.t-a { color: #2b1a04; background: var(--amber); }
.tab-new.t-b { color: #071a2b; background: #8fc8ff; }
.tab-mains .tab:not(.on) .tab-new { opacity: .55; }
.pq-tabs > .tab-subs { margin: 0 0 0 auto; }

/* 武器卡：适合 / 来源干员 */
.wp-ops { display: grid; gap: 5px; }
.wp-ops-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.wp-ops-row em { flex: none; width: 30px; font-size: 11px; font-style: normal; font-weight: 800; color: var(--muted); }
.wp-oh { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-bottom: 2px solid var(--t); }
.wp-oh img, .wp-oh .ghost { width: 24px; height: 24px; object-fit: cover; background: #0f0b0a; }
.wp-oh .ghost { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.wp-oh:hover { border-color: var(--mint); border-bottom-color: var(--t); color: var(--mint-hi); }

/* 推荐技能：卡片标题旁的小标签 + 弹窗里的一行 */
.sk-tag { flex: none; padding: 0 5px; font-size: 10.5px; font-weight: 900; line-height: 17px; color: var(--muted); border: 1px solid var(--line-strong); cursor: help; }
.sk-tag.chg { color: #8fc8ff; border-color: rgba(143, 200, 255, .5); }
.fbp-skill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 247, 234, .12); }
.fbp-skill b { color: #fff; }
.fbp-skill .sk-chg { padding: 0 5px; font-size: 10.5px; font-style: normal; font-weight: 800; color: #071a2b; background: #8fc8ff; }
.fbp-skill span { color: rgba(255, 247, 234, .8); }
.fbp-skill small { flex-basis: 100%; font-size: 11.5px; color: rgba(255, 247, 234, .55); }

/* 标签（第三版）：左边当前大标签 + 小标签，右边其他大标签 */
.tab-cur, .tab-others { display: flex; align-items: stretch; }
.tab-cur { gap: 22px; }
.tab-cur .tab-subs { margin-left: -10px; }
.tab-others { gap: 22px; margin-left: auto; }
.tab-cur .tab, .tab-others .tab { display: flex; align-items: center; padding: 10px 2px 9px; font-size: 17px; letter-spacing: 2px; }
.tab-cur .tab { cursor: default; }
.tab-cur .tab-new, .tab-others .tab-new { margin-left: 7px; vertical-align: 0; }
.tab-others .tab-new { opacity: .55; }
.tab-cur .tab-subs { align-self: center; margin: 0; }

/* ---------- 领袖（Boss） ---------- */
.bo-ic { width: 40px; height: 40px; object-fit: contain; background: radial-gradient(circle at 50% 40%, rgba(214, 69, 44, .3), #0e0a09 75%); }
.bo-ic.big { width: 72px; height: 72px; border-bottom: 3px solid #d6452c; }
.bo-item .bo-ic { width: 34px; height: 34px; }
.bo-route { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 18px; }
.bo-step { display: grid; align-content: start; gap: 6px; padding: 9px 10px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); }
.bo-step.k-领袖 { border-top-color: #d6452c; grid-column: span 2; }
.bo-step.k-隐秘核心 { border-top-color: #b18ad7; grid-column: span 2; }
.bo-step.k-特训, .bo-step.k-机变 { border-top-color: var(--amber); }
.bo-step-h { display: flex; align-items: baseline; gap: 8px; }
.bo-step-h b { font-family: var(--cond); font-size: 18px; font-weight: 800; }
.bo-step-h em { padding: 0 6px; font-size: 11px; font-style: normal; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); }
.bo-step p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.bo-step-ic { display: flex; flex-wrap: wrap; gap: 4px; }
.bo-mini { padding: 0; border: 1px solid var(--line); }
.bo-mini .bo-ic { width: 36px; height: 36px; display: block; }
.bo-mini:hover { border-color: var(--line-strong); }
.bo-mini.on { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.bo-danger { display: inline-flex; align-items: center; gap: 3px; margin-right: 10px; }
.bo-danger i { width: 10px; height: 10px; background: rgba(255, 255, 255, .12); transform: skewX(-15deg); }
.bo-danger i.on { background: #ff5b4f; }
.bo-danger b { margin-left: 6px; font-size: 12px; font-weight: 800; color: #ff8a6a; }
.bo-tag { margin-right: 6px; padding: 0 6px; font-size: 11px; font-style: normal; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); }
.bo-tag.core { color: #d8c3f0; border-color: rgba(177, 138, 215, .6); }
.bo-tag.new { color: #06231c; background: var(--mint); border-color: var(--mint); }
.bo-prts { font-size: 12px; color: #8fc8ff; }
.bo-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lu.bo, .lu.bo > *, .lu.bo .lu-sec { min-width: 0; }
.bo-hp { overflow-x: auto; max-width: 100%; }
.bo-hp table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bo-hp th, .bo-hp td { padding: 6px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.bo-hp thead th { font-size: 11px; font-weight: 800; color: var(--muted); }
.bo-hp tbody th { text-align: left; font-weight: 800; }
.bo-hp td { font-family: var(--cond); font-size: 15px; font-weight: 700; }
.bo-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.bo-stats span { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.bo-stats small { font-size: 11px; color: var(--muted); }
.bo-stats b { font-family: var(--cond); font-size: 15px; }
.bo-stats .imm { font-size: 11.5px; font-weight: 800; color: #ff8a6a; border-color: rgba(214, 69, 44, .4); }
.bo-src { display: block; margin-top: 1px; font-size: 11px; color: var(--faint); }
.bo-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.bo-note { font-size: 12px; }

/* ---------- 战场地图 ---------- */
.mp { margin-bottom: 20px; }
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mp-maps { display: flex; flex-wrap: wrap; gap: 4px; }
.mp-maps .opt { padding: 4px 9px; font-family: var(--cond); font-size: 14px; }
.mp-wrap { padding: 8px; background: #0b0807; border: 1px solid var(--line); overflow-x: auto; }
.mp-svg { display: block; width: 100%; min-width: 360px; height: auto; margin: 0 auto; }
.mp-svg .mp-high { stroke: rgba(255, 210, 160, .25); stroke-width: 1; }
.mp-svg .mp-fence { stroke: rgba(255, 190, 120, .35); stroke-width: 2; stroke-dasharray: 4 3; }
.mp-svg .mp-lab { font-size: 11px; font-weight: 800; fill: #fff; text-anchor: middle; pointer-events: none; }
.mp-dev rect { fill: rgba(240, 176, 74, .25); stroke: var(--amber); stroke-width: 1.5; }
.mp-dev text { font-size: 12px; font-weight: 900; fill: var(--amber); text-anchor: middle; pointer-events: none; }
.mp-rt { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .72; transition: opacity .12s, stroke-width .12s; }
.mp-rt.walk { stroke: #ff7a55; stroke-width: 4; }
.mp-rt.fly { stroke: #6af0cf; stroke-width: 3; stroke-dasharray: 7 5; }
.mp-rt.alt { opacity: .45; }
.mp-rts:hover .mp-rt { opacity: .18; }
.mp-rts .mp-rt:hover { opacity: 1; stroke-width: 6; }
.mp-ah.walk { fill: #ff7a55; }
.mp-ah.fly { fill: #6af0cf; }
.mp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.mp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mp-legend i { width: 14px; height: 14px; }
.mp-legend .lg-walk { height: 4px; width: 22px; background: #ff7a55; }
.mp-legend .lg-fly { height: 0; width: 22px; border-top: 3px dashed #6af0cf; }
.mp-meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.mp-meta b { color: var(--text); }
.mp-note { margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.mp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.mp-shots a { position: relative; display: block; border: 1px solid var(--line); }
.mp-shots a:hover { border-color: var(--mint); }
.mp-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mp-shots span { position: absolute; left: 0; bottom: 0; padding: 1px 6px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .7); }

/* 战场地图（PRTS 版式）+ Boss 机制卡片 */
.mp-maps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.mp-card { background: var(--panel); border: 1px solid var(--line); }
.mp-head { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mp-head > b { font-family: var(--cond); font-size: 24px; font-weight: 800; }
.mp-head p { font-size: 12.5px; color: var(--muted); }
.mp-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mp-feat { display: grid; gap: 2px; padding: 7px 9px; background: rgba(240, 176, 74, .06); border-left: 3px solid var(--amber); }
.mp-feat.terrain { background: rgba(46, 224, 181, .06); border-left-color: var(--mint); }
.mp-feat em { font-size: 10.5px; font-style: normal; font-weight: 800; color: var(--muted); }
.mp-feat b { font-size: 13.5px; }
.mp-feat span { font-size: 12px; line-height: 1.55; color: rgba(244, 236, 227, .82); }
.mp-tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.mp-tabs button { padding: 6px 14px; font-size: 13px; font-weight: 800; color: var(--muted); border: 1px solid transparent; border-bottom: 0; }
.mp-tabs button:hover { color: var(--text); }
.mp-tabs button.on { color: var(--text); background: #0b0807; border-color: var(--line); margin-bottom: -1px; }
.mp-body { padding: 10px 12px 12px; background: #0b0807; }
.mp-body .mp-wrap { padding: 0; border: 0; background: none; }
.mp-body .mp-bar { margin-bottom: 8px; }
.mp-body .mp-legend { margin-top: 0; }
.mp-shot { display: block; max-width: 760px; margin: 0 auto; }
.mp-shot img { display: block; width: 100%; height: auto; }
.bo-mechs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.bo-mech { padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid #d6452c; }
.bo-mech.core { border-top-color: #b18ad7; }
.bo-mech b { display: block; margin-bottom: 3px; font-size: 13.5px; font-weight: 900; color: #ff9a7a; }
.bo-mech.core b { color: #d8c3f0; }
.bo-mech p { font-size: 12.5px; line-height: 1.65; color: rgba(244, 236, 227, .86); }
.bo-mech .when, .bo-weak .when, .bo-tips .when { display: inline-block; margin: 0 2px; padding: 0 5px; font-size: 11px; line-height: 18px; background: rgba(234, 85, 48, .18); }
.bo-mech-h { margin: 12px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #d8c3f0; }
.bo-weak { list-style: none; display: grid; gap: 4px; }
.bo-weak li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.6; }
.bo-weak i { flex: none; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 900; color: #06231c; background: var(--mint); }
.bo-weak small, .bo-tips small { display: block; font-size: 11px; color: var(--faint); }
.bo-tips { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.bo-tips li { display: flex; gap: 10px; padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.bo-tips li > b { flex: none; font-family: var(--cond); font-size: 22px; font-weight: 800; line-height: 1; color: var(--amber); }

/* 领袖路线：本体金色粗线 / 站位点 */
.mp-rt.boss { stroke: #ffcc4d; stroke-width: 7; opacity: .95; }
.mp-ah.boss { fill: #ffcc4d; }
.mp-stand circle { fill: #ffcc4d; stroke: #3a2600; stroke-width: 3; }
.mp-stand text { font-size: 15px; font-weight: 900; fill: #3a2600; text-anchor: middle; pointer-events: none; }
.mp-legend .lg-boss { height: 6px; width: 22px; background: #ffcc4d; }
.mp-own { margin-bottom: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: #ffd98a; background: rgba(255, 204, 77, .08); border-left: 3px solid #ffcc4d; }
.lu.bo .mp { margin-bottom: 0; }

/* ---------- 窄屏：左栏变成顶上的盟约横排 + 折叠的更多筛选 ---------- */
@media (max-width: 1080px) {
  .pq-layout { grid-template-columns: 276px minmax(0, 1fr); gap: 16px; }
  .pq-rail { padding: 12px 10px 14px; }
  .d-top { grid-template-columns: auto minmax(0, 1fr); }
  .d-members { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}
@media (max-width: 760px) {
  .ak-topbar .shell { gap: 10px; }
  .ak-back small, .ak-divider, .ak-brand { display: none; }
  .ak-tab { padding: 0 10px; }
  .pq-hero { grid-template-columns: 1fr; gap: 14px; padding: 18px 0 14px; }
  .pq-title h1 { font-size: 28px; }
  .pq-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pq-rail { position: static; max-height: none; overflow: visible; padding: 12px; }
  .pact-grid { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 4px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scrollbar-width: none; }
  .pact-grid::-webkit-scrollbar { display: none; }
  .pt { flex: none; width: auto; }
  .pq-bar { top: 60px; }
  .bar-r { width: 100%; justify-content: space-between; }
  .grid, .st-grid { grid-template-columns: minmax(0, 1fr); }
  .lu-stages, .lu-two { grid-template-columns: minmax(0, 1fr); }
  .lu-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-file { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .lu-hero { padding: 14px; }
  .lu-hero-top { grid-template-columns: auto minmax(0, 1fr); }
  .lu-score { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .lu-cover { grid-column: 1 / -1; width: 168px; }
  .bd-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-podium { grid-template-columns: minmax(0, 1fr); }
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid > .tb, .tb-grid > .tb:nth-child(n + 4) { grid-column: auto; }
  .tb-grid > .tb:last-child { grid-column: 1 / -1; }
  .tb-grid.folded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid.folded > .tb:last-child { grid-column: 1 / -1; }
  .wp-grid { grid-template-columns: minmax(0, 1fr); }
  .bo-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-step.k-领袖, .bo-step.k-隐秘核心 { grid-column: 1 / -1; }
  .pk-cands { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 240px; }
  .pk-row { grid-template-columns: 92px 44px minmax(0, 1fr); gap: 6px; }
  .pk-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .pk-tr .pk-eff { grid-column: 1 / -1; }
  .pk-in { width: 68px; }
  .fbp-iso { grid-template-columns: minmax(0, 1fr); }
  .rail-unfold { width: 100%; grid-auto-flow: column; justify-content: center; padding: 10px; }
  .rail-unfold span { writing-mode: horizontal-tb; letter-spacing: 1px; }
  /* 手机：标签放到筛选上面，先选看什么再筛 */
  .pq-layout { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .pq-main { display: contents; }
  .pq-main > * { order: 1; min-width: 0; }
  .pq-main > .pq-tabs { order: -1; margin-bottom: 0; }
  .opt-wrap.sfacs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .opt-wrap.sfacs .opt { flex: none; }
  .pq-tabs { gap: 4px; }
  .tab, .tab-sub { white-space: nowrap; }
  .tab { padding: 9px 8px 8px; font-size: 14px; letter-spacing: 0; }
  .tab small, .tab-sub small, .tab-new, .tab-more { display: none; }
  .tab-subs { gap: 2px; margin-left: 0; padding-left: 6px; }
  .tab-sub { padding: 3px 7px; font-size: 12px; letter-spacing: 0; }
  .pq-tabs { gap: 10px; }
  .tab-grp .tab { padding: 9px 2px 8px; font-size: 15px; letter-spacing: 0; }
  .tab-subs { margin-left: 6px; padding: 2px; }
  .pq-tabs { flex-wrap: wrap; row-gap: 6px; padding-bottom: 6px; }
  .tab-mains { order: -1; width: 100%; justify-content: space-between; gap: 6px; margin-left: 0; }
  .tab-mains .tab { font-size: 15px; letter-spacing: 0; }
  .tab-mains .tab-new { display: inline-block; }
  .pq-tabs > .tab-subs { margin: 0 0 0 auto; }
  .tab-cur .tab, .tab-others .tab { font-size: 15px; letter-spacing: 0; }
  .tab-cur .tab-new, .tab-others .tab-new { display: inline-block; }
  .tab-cur { gap: 10px; }
  .tab-cur .tab-subs { margin-left: -4px; }
  .tab-others { gap: 10px; }
  .rail-top { display: none; }
  .rb-panel { padding: 8px; }
  .rb-h { grid-template-columns: minmax(0, 1fr) auto; }
  .rb-dist { grid-column: 1 / -1; grid-row: 2; }
  .rb-dist span { flex: 1; min-width: 0; }
  .rb-h h3 { font-size: 20px; }
  .rb-list { padding: 8px; }
  .rb-row { grid-template-columns: 24px 36px minmax(0, 1fr) auto; gap: 4px 8px; padding: 6px 8px; }
  .rb-row .tg-img, .rb-row .pg { width: 36px; height: 36px; }
  .rb-avg { grid-column: 3; grid-row: 2; display: flex; align-items: baseline; gap: 6px; }
  .rb-avg b { font-size: 17px; }
  .rb-my { grid-column: 4; grid-row: 2; }
  .rb-f { flex-direction: column; align-items: stretch; text-align: center; }
  .tb li button, .tb li.first button { grid-template-columns: 14px 26px minmax(0, 1fr) auto; gap: 6px; }
  .tb li b { display: none; }
  .tb li .tg-img, .tb li .pg, .tb li.first .tg-img, .tb li.first .pg { width: 26px; height: 26px; }
  .tl-row { grid-template-columns: 54px minmax(0, 1fr); min-height: 78px; }
  .tl-lab b { font-size: 14px; letter-spacing: 0; }
  .tl-drop { min-height: 78px; gap: 4px; padding: 5px; }
  .tl-tile, .tl-slot { width: 60px; }
  .tl-slot { height: 66px; }
  .tl-img { height: 46px; }
  .tl-img .tg-img, .tl-img .pg { width: 40px; height: 40px; }
  .tl-name { font-size: 10px; }
  .rk-1, .rk-2, .rk-3 { order: 0; }
  .rk-pod, .rk-pod.rk-1 { grid-template-columns: 56px minmax(0, 1fr); justify-items: start; gap: 3px 12px; padding: 12px 12px 12px 42px; text-align: left; }
  .rk-pod > .tg-img, .rk-pod > .pg, .rk-1 > .tg-img, .rk-1 > .pg { grid-row: span 4; align-self: center; width: 56px; height: 56px; }
  .rk-medal, .rk-1 .rk-medal { left: 12px; top: 50%; font-size: 26px; transform: translateY(-50%); }
  .rk-pod h3 { font-size: 16px; }
  .rk-pod-s b { font-size: 24px; }
  .rk-row { grid-template-columns: 26px 34px minmax(0, 1fr); gap: 4px 10px; }
  .rk-row .rk-score, .rk-row .fb { grid-column: 3; }
  .rk-row .tg-img, .rk-row .pg { width: 34px; height: 34px; }
  .fbp-sum { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fbp-avg { grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
  .fbp-avg b { font-size: 40px; }
  .fbp-tile { padding: 8px 4px 10px; text-align: center; justify-items: center; }
  .fbp-tile small { display: none; }
  .fbp-tile { padding: 8px 2px 10px; }
  .fbp-tile strong { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .fbp-tiles { gap: 4px; }
  .fbp-ic { width: 48px; height: 48px; }
  .fbp-ic .tg-img, .fbp-ic .pg { width: 42px; height: 42px; }
  .fb-panel-in .fbp-h h3 { font-size: 19px; }
  .lu-title h2 { font-size: 22px; }
  .road-seg { font-size: 10px; padding: 0 4px; }
  .road-axis span { font-size: 10px; }
  .lu-list { grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; margin: 10px -12px 0; padding: 0 12px 4px; scrollbar-width: none; }
  .op { grid-template-columns: 90px minmax(0, 1fr); }
  .mem { width: 38px; height: 38px; }
  .dossier { padding: 14px; gap: 12px; }
  .d-mark .pg.big { width: 56px; height: 56px; }
  .d-body h2 { font-size: 24px; }
}

@media (max-width: 600px) { .mp-body .mp-bar .seg { display: flex; flex-wrap: wrap; max-width: 100%; } .mp-body .mp-bar .seg button { flex: 1 1 auto; } }

/* 战场选择：缩略图 + 场景主题；场景预览后自动切到敌人路线 */
.mp-maps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.mp-chip { position: relative; display: block; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--th); overflow: hidden; opacity: .78; transition: opacity .12s, border-color .12s, transform .12s; }
.mp-chip:hover { opacity: 1; transform: translateY(-1px); }
.mp-chip.on { opacity: 1; border-color: var(--th); box-shadow: 0 0 0 1px var(--th); }
.mp-chip img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; object-position: 50% 60%; filter: saturate(.85); }
.mp-chip.on img { filter: none; }
.mp-chip span { display: flex; align-items: baseline; gap: 6px; padding: 4px 7px 5px; }
.mp-chip b { font-family: var(--cond); font-size: 15px; font-weight: 800; }
.mp-chip em, .mp-theme { font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-chip em i, .mp-theme i { margin-right: 4px; font-style: normal; color: var(--th); }
.mp-theme { align-self: center; padding: 2px 8px; font-size: 13px; border: 1px solid var(--th); }
.mp-shot { position: relative; max-width: 760px; }
.mp-shot img { width: auto; max-width: 100%; max-height: 430px; margin: 0 auto; }
.mp-pane { position: relative; }
.mp-auto-tip { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 3px 10px; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; background: rgba(0, 0, 0, .66); pointer-events: none; }
.mp-p-route.mp-in { animation: mp-in .45s ease both; }
@keyframes mp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mp-tabs button { position: relative; }
.mp-tabs button.next { color: var(--text); }
.mp-cd { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--mint); transform-origin: left; animation: mp-cd 2.6s linear both; }
@keyframes mp-cd { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .mp-p-route.mp-in, .mp-cd { animation: none; } }
@media (max-width: 760px) {
  .mp-maps { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .mp-chip { flex: 0 0 132px; scroll-snap-align: start; }
  .mp-head { flex-wrap: wrap; row-gap: 4px; }
}
/* Boss 页左栏：领袖列表下面的战场地图，两列 */
.pq-rail .bo-maps { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pq-rail .bo-maps .mp-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 8px 0 0; }
.pq-rail .bo-maps .mp-chip span { gap: 4px; padding: 3px 6px 4px; }
.pq-rail .bo-maps .mp-chip b { font-size: 13px; }
.pq-rail .bo-maps .mp-chip em { font-size: 11.5px; }
@media (max-width: 760px) {
  .pq-rail .bo-maps .mp-maps { display: flex; margin: 8px -12px 0; padding: 0 12px 4px; scrollbar-width: none; }
  .pq-rail .bo-maps .mp-chip { flex: 0 0 132px; }
}

/* 阵容 / 武器里的干员头像改成链接后保持原样 */
a.lh, a.wp-oh { color: inherit; text-decoration: none; }
a.lh:hover .lh-img { transform: translateY(-2px); }
a.lh:hover .lh-n, a.wp-oh:hover { color: var(--text); }
a.wp-oh:hover { border-color: var(--line-strong); }

/* 干员悬停卡：阶数 / 盟约 / 特质原文 */
.op-tip { position: fixed; left: 0; top: 0; z-index: 95; width: 300px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: var(--text); background: #17110f; border: 1px solid var(--line-strong); border-top: 2px solid var(--amber); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); pointer-events: none; }
.op-tip[hidden] { display: none; }
.ot-h { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.ot-h img { width: 40px; height: 40px; object-fit: cover; background: #0f0b0a; }
.ot-h b { display: block; font-size: 14.5px; font-weight: 900; line-height: 1.3; }
.ot-h span { font-size: 12px; color: var(--muted); }
.ot-h em { font-style: normal; font-weight: 900; }
.ot-p { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.ot-p > span { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 1px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--tone) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 75%, transparent); }
.ot-p .pg { width: 18px; height: 18px; }
.ot-e p { margin: 0; color: rgba(244, 236, 227, .9); }
.ot-e > em { display: inline-block; margin-bottom: 2px; padding: 0 5px; font-size: 10.5px; font-style: normal; font-weight: 900; line-height: 16px; color: #141414; background: var(--muted); }
.ot-e.elite { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.ot-e.elite > em { background: var(--amber); }
.ot-why, .ot-sk { margin: 6px 0 0; font-size: 11.5px; color: var(--faint); }
.ot-why { margin: 0 0 6px; color: var(--mint-hi); }


/* Pick 池拖动调顺序 */
.pk-sort-hint { margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--faint); }
.pk-in { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: box-shadow .1s; }
.pk-in img { -webkit-user-drag: none; }
.pk-in.dragging { opacity: .3; }
.pk-in.ins-before { box-shadow: -4px 0 0 var(--mint); }
.pk-in.ins-after { box-shadow: 4px 0 0 var(--mint); }
.pk-in.ban { opacity: .45; }
.pk-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-color: var(--mint); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }

/* 候选干员多了单字盟约标，格子放宽：手机两列 */
.pk-cands { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
@media (max-width: 760px) { .pk-cands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* 配队候选：名字一行，盟约标一行（单字 / 图标同一尺寸） */
.pk-op { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; min-height: 46px; padding: 5px 8px 5px 5px; }
.pk-op > img, .pk-op > .ghost { width: 34px; height: 34px; }
.pk-nm { display: grid; gap: 4px; min-width: 0; padding-right: 12px; }
.pk-nm b { display: block; min-width: 0; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-pt { display: flex; gap: 3px; }
.pk-pt em { display: grid; place-items: center; flex: none; width: 16px; height: 16px; font-size: 10.5px; font-style: normal; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--tone) 55%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 75%, #fff 10%); }
.pk-pt em.core { color: #fff; background: var(--tone); border-color: var(--tone); }
.pk-pt em.off { opacity: .32; text-decoration: line-through; }
/* 图标模式：盟约自带的底色图标，不再套边框 */
.pk-pt em.ic { width: 16px; height: 16px; border: 0; background: none; }
.pk-pt em.ic .pg { width: 16px; height: 16px; }
.pk-op .pk-pt em.ic .pg img { width: 86%; height: 86%; object-fit: contain; background: none; }
.pk-pt em.ic.off { text-decoration: none; filter: grayscale(1); }
.pk-ptm button { padding: 3px 10px; font-size: 12px; }
/* 阵容左栏：按盟约分组，标签改描边 */
.lu-list { gap: 10px; }
.lu-grp { display: grid; gap: 3px; }
.lu-gh { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; padding: 0 2px 4px; font-size: 12px; font-weight: 900; letter-spacing: .5px; color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--tone, #3b302b) 55%, transparent); }
.lu-gh .pg { width: 20px; height: 20px; }
.lu-gh small { margin-left: auto; font-family: var(--cond); font-size: 12px; font-weight: 800; color: var(--faint); }
.lu-grp .lu-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px 6px 10px; border-left: 3px solid transparent; }
.lu-grp .lu-item:hover { border-left-color: color-mix(in srgb, var(--tone, #3b302b) 70%, transparent); }
.lu-grp .lu-item.on { border-color: var(--mint); border-left-color: var(--mint); }
.lu-grp .lu-t b { font-size: 13px; }
.lu-item .lu-tag { padding: 0 5px; line-height: 16px; background: none; border: 1px solid currentColor; }
.lu-item .lu-tag.t-g { color: var(--mint); } .lu-item .lu-tag.t-a { color: var(--amber); } .lu-item .lu-tag.t-r { color: #ff8a6a; } .lu-item .lu-tag.t-b { color: var(--muted); }
@media (max-width: 760px) {
  .lu-list { display: flex; grid-auto-flow: initial; gap: 8px; }
  .lu-grp { flex: none; display: flex; gap: 6px; align-items: stretch; }
  .lu-gh { flex-direction: column; justify-content: center; gap: 3px; width: 46px; margin: 0; padding: 4px 2px; font-size: 11px; text-align: center; border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--tone, #3b302b) 55%, transparent); }
  .lu-gh b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44px; }
  .lu-gh small { margin: 0; }
  .lu-grp .lu-item { flex: none; width: 168px; }
}

/* 干员页显示方式：大卡 / 小卡 / 列表，左栏可收起 */
.seg.dens button { padding: 3px 10px; }
.bar-fold { padding: 3px 9px; font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; border: 1px solid var(--line-strong); }
.bar-fold:hover { color: var(--mint-hi); border-color: var(--mint); }
.os-hd { position: relative; flex: none; width: 46px; height: 46px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--tone) 55%, #1b1513), #100c0b 80%); box-shadow: inset 0 -2px 0 var(--tier); }
.os-hd img { display: block; width: 100%; height: 100%; object-fit: cover; }
.os-hd .ghost { display: grid; place-items: center; height: 100%; font-size: 18px; font-weight: 900; color: var(--faint); }
.os-hd .tier { position: absolute; left: 0; bottom: 0; min-width: 0; padding: 0 4px; font-size: 11px; line-height: 14px; }
.or-id { display: grid; gap: 4px; min-width: 0; }
.op-s h3, .op-r h3 { font-size: 15px; letter-spacing: .5px; }
.op-s .price, .op-r .price { font-size: 15px; }
.op-s .op-pacts, .op-r .op-pacts { gap: 3px 9px; margin: 0; }
.op-s .chip-p, .op-r .chip-p { gap: 4px; font-size: 11.5px; }
.op-s .chip-p .pg, .op-r .chip-p .pg { width: 16px; height: 16px; }
.op-s .desc, .op-r .desc { font-size: 12.5px; line-height: 1.6; }
.op-s .desc .num, .op-r .desc .num { font-size: 14px; }
.op-s .desc + .desc, .op-r .desc + .desc { margin-top: 2px; }
.desc.both .num { white-space: nowrap; }
.desc.both .num i { margin: 0 1px; font-style: normal; color: var(--faint); }
.desc.both .num em { font-style: normal; color: var(--amber); }

/* 小卡：头像 + 名字一行，特性原文在下面，一行 4~5 张 */
.grid.d-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 8px; }
.op.op-s { display: flex; flex-direction: column; gap: 7px; min-height: 0; padding: 9px 11px 8px 9px; }
.os-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.os-h .or-id { flex: 1; }
.os-eff { padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .06); }
.op-s .op-fb { padding-top: 6px; }

/* 列表：一行一个干员 */
.grid.d-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.op.op-r { grid-template-columns: 46px 176px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 0; padding: 6px 12px 6px 6px; clip-path: none; }
.op-r .op-fb { margin: 0; padding: 0; border: 0; }
.op-r .op-fb .fb { width: auto; }
@media (max-width: 1240px) {
  .op.op-r { grid-template-columns: 46px 160px minmax(0, 1fr); }
  .op-r .op-fb { grid-column: 3; justify-self: start; }
}
@media (max-width: 760px) {
  .op.op-r { grid-template-columns: 46px minmax(0, 1fr); padding: 7px 10px 8px 7px; }
  .op-r .or-eff, .op-r .op-fb { grid-column: 1 / -1; }
  .bar-r { flex-wrap: wrap; gap: 8px; }
}

/* 小卡 / 列表再紧凑一点：一屏多放 */
.grid.d-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 194px), 1fr)); gap: 6px; }
.op.op-s { gap: 5px; padding: 7px 9px 6px 7px; }
.op-s .os-hd { width: 38px; height: 38px; }
.op-s .os-h { gap: 8px; }
.op-s .os-eff { padding-top: 5px; }
.op-s .op-fb { padding-top: 4px; }
.op-s .fb-star, .op-r .fb-star { font-size: 12px; }
.op-s .fb-cm, .op-r .fb-cm { padding: 0 6px; font-size: 11px; }
.op-s .desc, .op-r .desc { font-size: 12px; line-height: 1.55; }
.op-s .desc .num, .op-r .desc .num { font-size: 13px; }
.op-s .desc .when, .op-r .desc .when { line-height: 16px; font-size: 10.5px; }
.op.op-r { grid-template-columns: 36px 168px minmax(0, 1fr) auto; gap: 2px 12px; padding: 3px 10px 3px 3px; }
.op-r .os-hd { width: 36px; height: 36px; }
.op-r .or-id { gap: 2px; }
.op-r h3 { font-size: 14px; }
.op-r .price { font-size: 14px; }
@media (max-width: 1240px) { .op.op-r { grid-template-columns: 36px 150px minmax(0, 1fr); } }
@media (max-width: 760px) { .op.op-r { grid-template-columns: 36px minmax(0, 1fr); padding: 5px 8px 6px 5px; } }

/* 标签（第四版）：三组大标签都带着小标签一直显示，当前组在左，另外两组靠右 */
.pq-tabs.grp3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 18px; padding-bottom: 8px; }
.tc-g { display: flex; align-items: center; gap: 8px; }
.tc-l { display: flex; align-items: center; font-size: 17px; font-weight: 900; letter-spacing: 2px; white-space: nowrap; color: var(--text); }
.tc-l .tab-new { margin-left: 7px; vertical-align: 0; }
.tc-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-left: auto; }
.grp3 .tab-subs { margin: 0; white-space: nowrap; }
.grp3 .tab-sub { padding: 4px 9px; }
.grp3 .tab-sub { color: rgba(244, 236, 227, .78); }
.grp3 .tab-sub:hover { color: var(--text); }
.grp3 .tab-sub.on { color: var(--mint-hi); }
.tc-g.cur .tc-l { position: relative; }
.tc-g.cur .tc-l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; background: var(--red); }
@media (max-width: 760px) {
  .pq-tabs.grp3 { gap: 8px 14px; padding-bottom: 8px; }
  .tc-others { margin-left: 0; gap: 8px 14px; }
  .tc-g { gap: 6px; }
  .tc-l { font-size: 15px; letter-spacing: 0; }
  .tc-l .tab-new { display: inline-block; }
  .tc-g.cur .tc-l::after { bottom: -9px; }
}
