/* 七日杀中文网 · 大型模组展示页（只作用于 .bm 容器；主题页头页脚保持原样） */

.bm {
  --night: #141a20;
  --night-2: #1a2129;
  --haze: #26303a;
  --ash: #ebe5da;
  --ash-2: #a9a59d;
  --ash-3: #7c7a75;
  --paper: #ece7dd;
  --paper-2: #e2dccf;
  --ink: #22272b;
  --ink-2: #5a5e60;
  --blood: #c8321f;
  --blood-hi: #e2482f;
  --ember: #f2894b;
  --gold: #f0b93a;
  --gold-ink: #6b4a06;
  --ice: #5fd4f0;
  --ice-ink: #0b4a5c;
  --cond: "BM Cond", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --gap: 16px;
  --top: 50px;

  position: relative;
  display: block;
  background: var(--night);
  color: var(--ash);
  font: 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  min-height: 70vh;
  overflow: clip;
}
.bm *, .bm *::before, .bm *::after { box-sizing: border-box; }
.bm a { color: inherit; text-decoration: none; }
.bm button { font: inherit; color: inherit; cursor: pointer; }
.bm svg { display: block; }
.bm-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- 头图：血月之夜 ---------------- */
.bm-hero {
  --hh: clamp(320px, 33vw, 520px);
  position: relative;
  height: var(--hh);
  background: #0b0d10;
  isolation: isolate;
  overflow: hidden;
}
/* 图片外框保持 3:1，宽度至少铺满；窄屏时以血月附近为中心裁切 */
.bm-scene {
  position: absolute; z-index: 0;
  left: 85%; top: 46%;
  width: max(100%, calc(var(--hh) * 3));
  aspect-ratio: 3 / 1;
  transform: translate(calc(-85% + var(--px, 0px)), calc(-46% + var(--py, 0px)));
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.bm-scene-img {
  position: absolute; inset: 0;
  background: #0b0d10 var(--hero-jpg) center / 100% 100% no-repeat;
  background-image: image-set(var(--hero-webp) type("image/webp"), var(--hero-jpg) type("image/jpeg"));
  transform-origin: 84% 30%;
  animation: bm-zoom 3.2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes bm-zoom {
  from { transform: scale(1.08); filter: brightness(.35) saturate(.6); }
  to { transform: none; filter: none; }
}
/* 血月光晕：缓慢呼吸 */
.bm-moonglow {
  position: absolute; z-index: 1;
  left: 84.6%; top: 28%;
  width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 96, 52, .38) 0%, rgba(220, 50, 24, .16) 34%, transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: bm-breath 6s ease-in-out 2.4s infinite alternate;
  opacity: .55;
}
@keyframes bm-breath { from { opacity: .45; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
/* 地面薄雾缓慢飘动 + 底部融进页面 */
.bm-fog {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 55%;
  pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 80%, rgba(150, 150, 160, .10), transparent 70%),
    radial-gradient(35% 50% at 60% 90%, rgba(150, 150, 160, .08), transparent 70%),
    radial-gradient(30% 50% at 95% 85%, rgba(150, 150, 160, .08), transparent 70%);
  background-size: 200% 100%;
  animation: bm-fog 38s linear infinite alternate;
}
.bm-fog::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 26, 32, .75) 85%, var(--night) 100%);
}
@keyframes bm-fog { from { background-position: 0 0; } to { background-position: 100% 0; } }
.bm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 10, 12, .62) 0%, rgba(8, 10, 12, .28) 38%, transparent 62%);
}
.bm-ash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.bm-hero-in {
  position: relative; z-index: 4;
  max-width: 1320px; height: 100%;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 24px 0;
}
.bm-h1 {
  margin: 0;
  font: 900 clamp(46px, 7.4vw, 96px)/1 var(--sans);
  letter-spacing: .08em;
  color: var(--ash);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 46px rgba(200, 50, 31, .28);
}
.bm-h1 .ch { display: inline-block; animation: bm-ch .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i) * .11s); }
@keyframes bm-ch {
  from { opacity: 0; transform: translateY(.45em) skewY(6deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.bm-lead {
  max-width: 30em;
  margin: 18px 0 0;
  font-size: 15px; line-height: 1.75;
  color: var(--ash-2);
  animation: bm-fade 1s ease 1s both;
}
.bm-facts {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin: 18px 0 0;
  color: var(--ash-2);
  animation: bm-fade 1s ease 1.2s both;
}
.bm-facts b {
  font: 700 28px/1 var(--cond);
  color: var(--ash);
  margin-right: 3px;
  font-variant-numeric: tabular-nums;
}
@keyframes bm-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 工具条 ---------------- */
.bm-bar {
  position: sticky; top: var(--top); z-index: 20;
  background: rgba(20, 26, 32, .88);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s;
}
.bm-bar.is-stuck { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8); }
.bm-bar-in {
  max-width: 1320px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
}
.bm-find {
  position: relative; flex: 1 1 200px; min-width: 170px; max-width: 360px;
  display: flex; align-items: center;
}
.bm-find svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--ash-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bm-find input {
  width: 100%; height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid #323c46; border-radius: 6px;
  background: #0f1418; color: var(--ash);
  font: 14px var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bm-find input::placeholder { color: var(--ash-3); }
.bm-find input:focus { border-color: var(--blood); box-shadow: 0 0 0 3px rgba(200, 50, 31, .25); }

.bm-filters { flex: 1 1 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; min-width: 0; }
@media (min-width: 1100px) {
  .bm-bar-in, .bm-filters { flex-wrap: nowrap; }
  .bm-filters .bm-chips { flex-wrap: nowrap; }
}
.bm-seg { flex: none; display: inline-flex; padding: 3px; gap: 2px; background: #0f1418; border: 1px solid #2a333c; border-radius: 7px; }
.bm-seg button {
  position: relative;
  height: 30px; padding: 0 10px;
  border: 0; border-radius: 5px; background: none;
  color: var(--ash-2);
  font: 600 15px/30px var(--cond);
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.bm-seg button small { margin-left: 5px; font: 600 12px var(--cond); color: var(--ash-3); }
.bm-seg button:hover { color: var(--ash); }
.bm-seg button[aria-checked="true"] { background: var(--blood); color: #fff; }
.bm-seg button[aria-checked="true"] small { color: rgba(255, 255, 255, .75); }

.bm-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; flex: none; }
.bm-chips button {
  height: 30px; padding: 0 11px; white-space: nowrap;
  border: 1px solid #323c46; border-radius: 15px;
  background: none; color: var(--ash-2);
  font-size: 13px;
  transition: all .2s;
}
.bm-chips button:hover { border-color: #4a5560; color: var(--ash); }
.bm-chips button[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); background: rgba(242, 137, 75, .1); }

.bm-sort { margin-left: auto; flex: none; }
.bm-sort select {
  height: 34px; padding: 0 30px 0 12px;
  border: 1px solid #323c46; border-radius: 6px;
  background: #0f1418 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23a9a59d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  color: var(--ash); font: 13px var(--sans);
  -webkit-appearance: none; appearance: none;
  outline: none;
}
.bm-sort select:focus { border-color: var(--blood); }
.bm button:focus-visible, .bm select:focus-visible, .bm-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------------- 列表 ---------------- */
.bm-main {
  position: relative;
  max-width: 1320px; margin: 0 auto;
  padding: 16px 24px 56px;
}
.bm-main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0, rgba(60, 76, 92, .22), transparent 70%);
}
.bm-statusrow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin: 0 0 12px; }
.bm-status { margin: 0; color: var(--ash-3); font-size: 13px; }
.bm-side { display: flex; align-items: center; gap: 8px; }

/* 没有脚本时：CSS 多栏 */
.bm-grid { position: relative; columns: 4 250px; column-gap: var(--gap); }
.bm-grid > .bm-card { break-inside: avoid; margin-bottom: var(--gap); }
/* 有脚本时：按列排布（瀑布流） */
.bm.is-js .bm-grid { columns: auto; display: flex; align-items: flex-start; gap: var(--gap); }
.bm-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.bm.is-js .bm-grid.is-out .bm-card { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .16s, transform .16s; }

/* ---------------- 卡片 ---------------- */
.bm-card {
  position: relative;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 0px;
  border-radius: 8px;
  transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 14px 30px -18px rgba(0, 0, 0, .9);
  will-change: transform;
}
.bm-card.in { animation: bm-in .7s cubic-bezier(.2, .8, .25, 1.05) backwards; animation-delay: var(--d, 0ms); }
@keyframes bm-in {
  from { opacity: 0; transform: perspective(900px) translateY(34px) rotateX(10deg) scale(.95); filter: blur(3px); }
  to { opacity: 1; transform: perspective(900px); filter: none; }
}
.bm-link { display: block; border-radius: 8px; overflow: hidden; background: var(--paper); color: var(--ink); }

.bm-cover { position: relative; overflow: hidden; background: #232a31; aspect-ratio: var(--ar, auto); }
.bm-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.bm-card.no-ratio .bm-cover { aspect-ratio: 16 / 10; }
/* 图片还没到：骨架闪光，到了淡入 */
.bm.is-js .bm-img { opacity: 0; }
.bm.is-js .bm-card.img-ok .bm-img { opacity: 1; }
.bm.is-js .bm-card:not(.img-ok):not(.no-img) .bm-cover {
  background: linear-gradient(100deg, #232a31 30%, #2f3841 50%, #232a31 70%) 0 0 / 300% 100%;
  animation: bm-skel 1.4s linear infinite;
}
@keyframes bm-skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.bm-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 236, 214, .28), transparent 46%),
    linear-gradient(180deg, transparent 55%, rgba(10, 12, 14, .35));
  transition: opacity .35s;
}
/* 没有图的帖子：模板封面 */
.bm-ph {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .14) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 70% 25%, rgba(200, 50, 31, .45), transparent 55%),
    linear-gradient(160deg, #39433c, #1e2420);
}
.bm-ph span {
  font: 900 52px/1 var(--sans);
  letter-spacing: .06em;
  color: rgba(236, 231, 221, .88);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  transform: rotate(-4deg);
}
.bm-ph span.is-long { font-size: 34px; letter-spacing: .02em; }

.bm-stamp {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 3px 8px 1px;
  font: 700 18px/1 var(--cond);
  letter-spacing: .03em;
  color: #fff;
  background: var(--blood);
  border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.bm-flag {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  padding: 3px 8px;
  font-size: 12px; line-height: 1.3; font-weight: 700;
  color: #2a1a07;
  background: #f2c14b;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.bm-flag.is-ess { background: #e8e2d6; color: #7a2015; }
.bm-count {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  font: 600 13px/18px var(--cond);
  color: #f4efe6;
  background: rgba(12, 15, 18, .62);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.bm-count svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.bm-body { padding: 11px 13px 12px; }
.bm-title {
  margin: 0;
  font-size: 15px; line-height: 1.45; font-weight: 700;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
  transition: color .2s;
}
.bm-ex {
  margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-all;
}
.bm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.bm-tags span {
  padding: 0 6px;
  font-size: 11.5px; line-height: 19px;
  color: #6b3a1c;
  background: rgba(242, 137, 75, .16);
  border-radius: 3px;
}
.bm-tags span.is-see { color: var(--ink-2); background: rgba(34, 39, 43, .07); }
.bm-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding-top: 9px;
  border-top: 1px dashed rgba(34, 39, 43, .16);
  font-size: 12px; color: var(--ink-2);
}
.bm-au { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-right: auto; }
.bm-au img { width: 20px; height: 20px; border-radius: 50%; flex: none; object-fit: cover; background: var(--paper-2); }
.bm-au span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-st { display: inline-flex; align-items: center; gap: 3px; flex: none; font: 600 13.5px/1 var(--cond); }
.bm-st svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.bm-time { flex: none; margin-left: 8px; font-size: 12px; line-height: 20px; color: #8b8d8c; white-space: nowrap; }

/* 收费方式：钻石 / 金币 / 免费 */
.bm-pay {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 9px 0 7px;
  border-radius: 12px;
  font-size: 12px; line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.bm-pay b { font-weight: 700; }
.bm-pay i { font: 700 15px/1 var(--cond); font-style: normal; margin-left: 2px; padding-left: 6px; border-left: 1px solid currentColor; border-left-color: rgba(0, 0, 0, .2); }
.bm-pay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.bm-pay.pay-diamond {
  color: #04323e;
  background: linear-gradient(120deg, #b9f1ff 0%, #5fd4f0 45%, #9be6ff 60%, #3fb8d8 100%);
  background-size: 220% 100%;
  animation: bm-shine 3.6s ease-in-out infinite;
}
.bm-pay.pay-coin {
  color: #4a3204;
  background: linear-gradient(120deg, #ffe08a 0%, #f0b93a 45%, #ffd56a 60%, #d99a1e 100%);
  background-size: 220% 100%;
  animation: bm-shine 4.2s ease-in-out infinite;
}
.bm-pay.pay-free { color: #e9efe6; background: rgba(40, 92, 64, .86); padding: 0 9px; }
@keyframes bm-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.bm-card.pay-diamond .bm-body { box-shadow: inset 0 3px 0 var(--ice); }
.bm-card.pay-coin .bm-body { box-shadow: inset 0 3px 0 var(--gold); }
.bm-payseg button.p-free[aria-checked="true"] { background: #2f6b4b; }
.bm-payseg button.p-coin[aria-checked="true"] { background: var(--gold); color: var(--gold-ink); }
.bm-payseg button.p-coin[aria-checked="true"] small { color: rgba(74, 50, 4, .7); }
.bm-payseg button.p-diamond[aria-checked="true"] { background: var(--ice); color: var(--ice-ink); }
.bm-payseg button.p-diamond[aria-checked="true"] small { color: rgba(4, 50, 62, .7); }
.bm-payseg button { font-family: var(--sans); font-size: 13px; font-weight: 600; }

/* 置顶：缓慢流动的描边 */
.bm-card.is-pin::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 10px;
  background: conic-gradient(from var(--ang, 0deg), #f2c14b, var(--blood), #f2894b, #f2c14b);
  animation: bm-spin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes bm-spin { to { --ang: 360deg; } }

/* 悬停：倾斜 + 光斑（只在有鼠标的设备上） */
@media (hover: hover) and (pointer: fine) {
  .bm-card:hover { --lift: -5px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 26px 46px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(242, 137, 75, .25); transition-duration: .18s; }
  .bm-card:hover .bm-img { transform: scale(1.06); }
  .bm-card:hover .bm-cover::after { opacity: 1; }
  .bm-card:hover .bm-title { color: #8d2416; }
}

/* ---------------- 底部 ---------------- */
.bm-more { display: flex; justify-content: center; gap: 7px; height: 48px; align-items: center; visibility: hidden; }
.bm-more.on { visibility: visible; }
.bm-more span { width: 7px; height: 7px; border-radius: 50%; background: var(--blood); animation: bm-dot 1s ease-in-out infinite; }
.bm-more span:nth-child(2) { animation-delay: .15s; }
.bm-more span:nth-child(3) { animation-delay: .3s; }
@keyframes bm-dot { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: none; } }
.bm-empty { padding: 70px 0 40px; text-align: center; color: var(--ash-2); }
.bm-empty p { margin: 0 0 16px; }
.bm-btn {
  height: 36px; padding: 0 18px;
  border: 1px solid var(--blood); border-radius: 6px;
  background: var(--blood); color: #fff !important;
  font-size: 14px;
}
.bm-btn:hover { background: var(--blood-hi); }
.bm-btn.is-ghost { background: none; border-color: #3a4550; color: var(--ash) !important; }
.bm-btn.is-ghost:hover { border-color: var(--ash-3); }
.bm-note { position: relative; margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--ash-3); }
/* ---------------- 管理（网站管理员） ---------------- */
.bm-admin-slot { position: absolute; right: 24px; bottom: 14px; z-index: 6; }
.bm-admin-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.bm-admin-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 20, 24, .72) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bm-admin-btn:hover { color: var(--ash); border-color: var(--ash-3); }
.bm-admin-btn { height: 30px; padding: 0 12px; border: 1px dashed #4a5560; border-radius: 6px; background: none; color: var(--ash-2); font-size: 13px; }
.bm-admin-btn[aria-expanded="true"] { border-style: solid; border-color: var(--ember); color: var(--ember); }
.bm-panel {
  flex: 1 0 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #3a4550; border-radius: 8px;
  background: rgba(15, 20, 24, .7);
  font-size: 13px; color: var(--ash-2);
}
.bm-panel[hidden] { display: none; }
.bm-panel input[type="text"] { height: 32px; width: 260px; max-width: 100%; padding: 0 10px; border: 1px solid #323c46; border-radius: 6px; background: #0f1418; color: var(--ash); font: 13px var(--sans); outline: none; }
.bm-panel input[type="text"]:focus { border-color: var(--ember); }
.bm-panel input[type="checkbox"] { width: 16px; height: 16px; margin: 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--blood); }
.bm-panel .bm-btn { height: 32px; padding: 0 14px; font-size: 13px; }
.bm-panel label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bm-tools {
  position: absolute; left: 8px; right: 8px; top: 40px; z-index: 5;
  display: none; flex-wrap: wrap; gap: 4px;
}
.bm.is-admin .bm-tools { display: flex; opacity: 0; transition: opacity .2s; }
.bm.is-admin .bm-card:hover .bm-tools, .bm.is-admin .bm-card:focus-within .bm-tools, .bm.is-admin .bm-card[data-hid="1"] .bm-tools { opacity: 1; }
@media (hover: none) { .bm.is-admin .bm-tools { opacity: 1; } }
.bm-tools button {
  height: 26px; padding: 0 8px;
  border: 0; border-radius: 4px;
  background: rgba(12, 15, 18, .82); color: #f4efe6;
  font-size: 12px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.bm-tools button:hover { background: var(--blood); }
.bm-card[data-hid="1"] .bm-link { opacity: .45; filter: grayscale(.9); }
.bm-card[data-hid="1"]::after {
  content: "已隐藏"; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 4px 14px; border: 2px solid var(--blood); border-radius: 4px;
  color: var(--blood-hi); font-weight: 900; font-size: 18px; letter-spacing: .2em; pointer-events: none;
  background: rgba(20, 26, 32, .7);
}
.bm-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 99999;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 18px; border-radius: 6px;
  background: #0f1418; color: var(--ash, #ebe5da);
  border: 1px solid #3a4550;
  font: 14px "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .25s, opacity .25s;
  pointer-events: none;
}
.bm-toast.on { transform: translate(-50%, 0); opacity: 1; }
.bm-toast.err { border-color: #c8321f; }

/* 悬浮弹窗（挂在 body 上，不在 .bm 里，所以颜色写死） */
.bm-pop {
  --blood: #c8321f; --blood-hi: #e2482f; --ash: #ebe5da; --ash-3: #7c7a75;
  position: absolute; z-index: 100000;
  width: 340px; max-width: calc(100vw - 16px);
  padding: 16px;
  background: #151b21; color: #ebe5da;
  border: 1px solid #36414b; border-radius: 10px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3);
  font: 14px/1.6 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s, transform .16s;
}
.bm-pop.on { opacity: 1; transform: none; }
.bm-pop *, .bm-pop *::before, .bm-pop *::after { box-sizing: border-box; }
.bm-pop h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #ebe5da; }
.bm-pop-l { display: block; margin: 0 0 6px; font-size: 12.5px; color: #a9a59d; }
.bm-pop-row { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.bm-pop-end { justify-content: flex-end; margin: 14px 0 0; }
.bm-pop input[type="text"] {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 1px solid #323c46; border-radius: 6px; background: #0f1418; color: #ebe5da;
  font: 13px "PingFang SC", "Microsoft YaHei", sans-serif; outline: none;
}
.bm-pop input[type="text"]:focus { border-color: #f2894b; }
.bm-pop .bm-btn { height: 34px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.bm-pop .bm-btn[disabled] { opacity: .45; cursor: default; }
.bm-pop-check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; cursor: pointer; }
.bm-pop-check input { width: 16px; height: 16px; margin: 0; -webkit-appearance: auto; appearance: auto; accent-color: #c8321f; }
.bm-pop-tip { margin: 0; font-size: 12px; line-height: 1.6; color: #7c7a75; }
.bm-pop-ver { }
.bm-pop-ver .bm-pop-tip { margin-bottom: 12px; }
.bm-vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-vopt { position: relative; display: block; cursor: pointer; }
.bm-vopt input { position: absolute; opacity: 0; pointer-events: none; }
.bm-vopt span {
  display: flex; align-items: center; justify-content: center;
  height: 38px; border: 1px solid #36414b; border-radius: 7px;
  font: 700 17px/1 "BM Cond", "Arial Narrow", "Microsoft YaHei", sans-serif; letter-spacing: .02em;
  color: #a9a59d; background: #0f1418;
  transition: all .15s;
}
.bm-vopt:hover span { border-color: #56616b; color: #ebe5da; }
.bm-vcustom-l { margin-top: 12px; }
.bm-vopt input:checked + span { background: #c8321f; border-color: #c8321f; color: #fff; box-shadow: 0 4px 14px -4px rgba(200, 50, 31, .7); }
.bm-vopt input:focus-visible + span { outline: 2px solid #f2894b; outline-offset: 2px; }

/* ---------------- 手机端独立页面 ---------------- */
body.bm-standalone { margin: 0; background: #141a20; }
.bm-mtop { position: relative; z-index: 5; background: #0d1217; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.bm-mtop a { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 8px; color: #a9a59d; text-decoration: none; font: 14px "PingFang SC", "Microsoft YaHei", sans-serif; }
.bm-mtop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 860px) {
  .bm { --gap: 12px; }
  .bm-bar-in { padding: 10px 14px; gap: 8px; }
  .bm-find { flex-basis: 100%; max-width: none; }
  .bm-main { padding: 12px 14px 48px; }
  .bm-hero-in { padding: 40px 18px 0; }
}
@media (max-width: 560px) {
  .bm { --gap: 9px; }
  .bm-hero { --hh: 300px; }
  .bm-lead { font-size: 13.5px; max-width: 17em; }
  .bm-facts { gap: 4px 16px; font-size: 12.5px; }
  .bm-facts b { font-size: 22px; }
  .bm-bar-in { padding: 8px 12px; gap: 8px; }
  .bm-find input { height: 36px; }
  .bm-filters { flex-basis: 100%; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .bm-filters::-webkit-scrollbar { display: none; }
  .bm-chips { flex-wrap: nowrap; }
  .bm-chips button, .bm-sort select { flex: none; white-space: nowrap; }
  .bm-seg button { padding: 0 9px; }
  .bm-chips button { padding: 0 10px; }
  .bm-sort { margin-left: 0; }
  .bm-body { padding: 9px 10px 10px; }
  .bm-title { font-size: 13.5px; }
  .bm-ex { display: none; }
  .bm-stamp { font-size: 15px; left: 7px; top: 7px; }
  .bm-flag { right: 7px; top: 7px; font-size: 11px; padding: 2px 6px; }
  .bm-meta { gap: 7px; font-size: 11.5px; }
  .bm-time { font-size: 11px; margin-left: 4px; }
  .bm-pay { height: 21px; font-size: 11px; left: 6px; bottom: 6px; padding: 0 7px 0 6px; }
  .bm-pay i { font-size: 13px; }
  .bm-pay svg { width: 12px; height: 12px; }
  .bm-ph span { font-size: 36px; }
  .bm-ph span.is-long { font-size: 22px; }
}


