/* 小馒头BOT 介绍主页
   版式遵循《小馒头BOT 新排版 / 新 UI 规范 v1》：
   72% 白玻璃卡 + 2px BORDER + 紫灰投影 / 报头 39% 白毛玻璃 / 46×46 编号块 /
   粉紫青语义色 / 圆角 18 / 墨迹居中。 */

/* ★ CO-1108-43 续（第二次修，用户「网页 emoji 图标不是 mac 的彩色图标」）：
   真凶是 JCYT 自带 **9 个单色字形**，且它排在 `--font-body` / `--font-head` 第一个
   ⇒ 按 CSS「先声明先用」这 9 个字符在网页上永远是黑白细线，与 bot 出图不一致。
   精确清单（用 fontTools 读 jcyt woff2 cmap ∩ ACE 可画集求出，只有 9 个）：
     U+00A9 ©  U+00AE ®  U+203C ‼  U+2049 ⁉  U+2197 ↗
     U+2198 ↘  U+2B06 ⬆  U+3030 〰  U+303D 〽
   ⇒ 给 JCYT 加 `unicode-range` **只挖掉这 9 个码位**（9 段，可读可维护），
   它们自然落到字体栈后面的 Apple Color Emoji / Segoe UI Emoji / Noto Color Emoji。
   ★ 注意：不要试图挖掉全部 emoji 码位 —— ACE 可画的 1392 个码位散成 148 段，
   写进 CSS 是巨型声明且实测仍会漏；JCYT 根本没有 1F000+ 的字形，无需处理。
   ★ 另设 `EmojiColor` 族并排在 JCYT 之前：给「本机装了彩色 emoji 字体」的字符
   优先走彩色（含新加的 emoji 码位），JCYT 只兜汉字与排版符号。 */
/* ★ 2026-11-14（移动端「大空隙」修复）：jcyt woff2 子集**漏了 U+0020 空格字形**，
   原始 TTF 里它叫 uni0001，advance 400/600/700 = 224/227/229。子集里没有空格 ⇒
   字体栈依次回退，最终落到后面的 Apple/Noto Color Emoji，而 Color Emoji 的空格宽
   ≈1.2em（Noto 实测 2550/2048），于是每个数字、英文两侧与 pangu 空格全变成大空隙。
   已把 uni0001 补回三个子集（hmtx 224/227/229、vmtx 1000/880），U+0020 与 U+00A0
   都映射到它；字体 URL 加了 ?v=202611140313 让 30 天缓存失效。
   ★ 以后重新子集化 jcyt 必须显式保留 U+0020，否则 help.html / index.html 会复发。 */
@font-face {
  font-family: "EmojiColor";
  src: local("Apple Color Emoji"), local("AppleColorEmoji"),
       local("Segoe UI Emoji"), local("Noto Color Emoji");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "JCYT";
  src: url("../fonts/jcyt-400.woff2?v=202611140313") format("woff2");
  font-weight: 400;
  font-display: swap;

  unicode-range: U+0000-00A8, U+00AA-00AD, U+00AF-203B, U+203D-2048,
U+204A-2196, U+2199-2B05, U+2B07-302F, U+3031-303C,
U+303E-10FFFF;
}
@font-face {
  font-family: "JCYT";
  src: url("../fonts/jcyt-600.woff2?v=202611140313") format("woff2");
  font-weight: 600;
  font-display: swap;

  unicode-range: U+0000-00A8, U+00AA-00AD, U+00AF-203B, U+203D-2048,
U+204A-2196, U+2199-2B05, U+2B07-302F, U+3031-303C,
U+303E-10FFFF;
}
@font-face {
  font-family: "JCYT";
  src: url("../fonts/jcyt-700.woff2?v=202611140313") format("woff2");
  font-weight: 700;
  font-display: swap;

  unicode-range: U+0000-00A8, U+00AA-00AD, U+00AF-203B, U+203D-2048,
U+204A-2196, U+2199-2B05, U+2B07-302F, U+3031-303C,
U+303E-10FFFF;
}

:root {
  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --border: #e3e7f2;
  --border-strong: #d3d9ea;
  --line: #f0f3f9;
  --ink: #161a28;
  --ink-2: #3d4459;
  --muted: #6b7488;
  --faint: #98a1b4;

  --pink: #ff3d7f;
  --pink-2: #ff7aae;
  --pink-soft: #fff0f6;
  --pink-dk: #d01a5a;
  --purple: #7b5cff;
  --purple-soft: #f1edff;
  --purple-dk: #5638d8;
  --cyan: #0fbcd6;
  --cyan-soft: #e6f9fc;
  --cyan-dk: #087485;

  /* ★ CO-1111-09 双色主题：白玻璃的 RGB 抽成变量。下面 40+ 处卡片底统一写成
     rgba(var(--glass-rgb), X)，暗色模式只改这一个变量就能整组翻成深色玻璃，
     不会出现「改了一半、某个角落还是白底」的漏网。
     --hi 卡片内高光 / --ring 图片白描边 / --pink-solid 粉底白字的实心底色。 */
  --glass-rgb: 255, 255, 255;
  --hi: rgba(var(--glass-rgb), 0.65);
  --ring: #ffffff;
  --pink-solid: #d01a5a;

  /* CO-1111-09：career.js 直接用 el.style.color 写内联色（内联样式盖 CSS），
     所以留两个变量给它，暗色模式只改这里（浅色值与原来的 #6b6480 / #aa3333 一致）。 */
  --career-muted: #6b6480;
  --career-bad: #aa3333;

  --glass: rgba(var(--glass-rgb), 0.72);
  --frost: rgba(var(--glass-rgb), 0.39);
  --shadow: 0 8px 16px rgba(86, 70, 130, 0.18), 0 1px 0 var(--hi) inset;
  --shadow-soft: 0 4px 12px rgba(86, 70, 130, 0.10);
  --r-card: 18px;
  --r-plate: 26px;
  --r-chip: 8px;
  --r-pill: 17px;
  --r-field: 14px;

  --font-head: "JCYT", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "JCYT", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, input, select, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pink-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(255, 61, 127, 0.18); }

/* ---------- 背景 ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(var(--glass-rgb), 0.34) 0%, rgba(var(--glass-rgb), 0.78) 46%, rgba(238, 241, 248, 0.94) 100%),
    url("../img/bg-prism.webp") center top / cover no-repeat,
    var(--bg);
}

.bg-layer::before,
.bg-layer::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.bg-layer::before {
  left: -14vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(255, 61, 127, 0.22), transparent 68%);
}

.bg-layer::after {
  right: -16vw;
  top: 6vw;
  background: radial-gradient(circle, rgba(15, 188, 214, 0.20), transparent 68%);
}

/* ---------- 通用 ---------- */

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.glass {
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font: 700 14px/1 var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill-pink { background: var(--pink-soft); color: var(--pink-dk); }
.pill-plain { background: var(--surface); color: var(--muted); border: 2px solid var(--border-strong); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
}
.tag-new { background: var(--pink-soft); color: var(--pink-dk); }
.tag-up { background: var(--purple-soft); color: var(--purple-dk); }
.tag-skin { background: var(--cyan-soft); color: var(--cyan-dk); }
.tag-core { background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--border-strong); }

.num-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  font: 700 19px/1 var(--font-head);
  letter-spacing: 0.02em;
}
.num-pink { background: var(--pink-soft); color: var(--pink-dk); }
.num-purple { background: var(--purple-soft); color: var(--purple-dk); }
.num-cyan { background: var(--cyan-soft); color: var(--cyan-dk); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-field);
  border: 2px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 61, 127, 0.28);
}
.btn-primary:hover { background: var(--pink-dk); border-color: var(--pink-dk); }

.btn-ghost {
  background: rgba(var(--glass-rgb), 0.86);
  border-color: var(--border-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-dk); }

.btn-mini {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: rgba(var(--glass-rgb), 0.92);
  border: 2px solid var(--border);
  border-radius: var(--r-field);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.10); }
.field svg { width: 19px; height: 19px; stroke: var(--muted); fill: none; stroke-width: 2; flex: 0 0 19px; }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.field input::placeholder { color: var(--faint); }
.field input::-webkit-search-cancel-button { display: none; }
.field.grow { flex: 1 1 auto; }
.field-sm { width: 170px; flex: 0 0 auto; }
.field-clear {
  border: 0;
  background: transparent;
  color: var(--faint);
  font: 700 20px/1 var(--font-body);
  padding: 0 2px;
}
.field-clear:hover { color: var(--pink-dk); }

.select {
  height: 48px;
  min-width: 140px;
  padding: 0 34px 0 14px;
  background: rgba(var(--glass-rgb), 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7488' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  border: 2px solid var(--border);
  border-radius: var(--r-field);
  color: var(--ink-2);
  appearance: none;
  outline: 0;
}
.select:focus { border-color: var(--pink); }

/* ---------- 报头 ---------- */

.mast { padding-top: 28px; }

.mast-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 46px;
  background: var(--frost);
  border-radius: var(--r-plate);
  box-shadow: 0 12px 30px rgba(86, 70, 130, 0.10), 0 1px 0 var(--hi) inset;
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.mast-main { display: flex; align-items: center; gap: 22px; min-width: 0; }

.mast-avatar {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  border: 3px solid var(--ring);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(86, 70, 130, 0.24);
}

.mast-copy { min-width: 0; }
.mast-title {
  margin: 0;
  font: 700 clamp(40px, 5.2vw, 72px)/1.06 var(--font-head);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mast-sub { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.mast-stat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 14px;
}
.mast-stat b { color: var(--ink-2); font-weight: 700; }
.mast-stat i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

.mast-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: 0 0 auto; }
.mast-user { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.mast-login {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font: 700 13px/1 var(--font-body);
  box-shadow: 0 5px 12px rgba(255, 61, 127, 0.24);
}
.mast-login:hover { background: var(--pink-dk); }
.mast-userchip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px 5px 5px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.78);
}
.mast-userchip img { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ring); }
.mast-userchip .mu-text { min-width: 0; }
.mast-userchip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; color: var(--ink); font-size: 12px; }
.mast-userchip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.mast-userchip .mu-out { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 2px 4px; }
.mast-userchip .mu-out:hover { color: var(--pink-dk); }
.mast-logo { width: 150px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(86, 70, 130, 0.16)); }
.mast-pills { display: flex; gap: 10px; }

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-top: 22px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  padding: 8px 12px;
  background: rgba(var(--glass-rgb), 0.78);
  border: 2px solid rgba(227, 231, 242, 0.9);
  border-radius: var(--r-card);
  box-shadow: 0 8px 18px rgba(86, 70, 130, 0.12);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--ink-2);
  font: 600 14px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-link.is-active { background: var(--pink-soft); color: var(--pink-dk); }
.nav-spacer { flex: 1; }
.nav-note { color: var(--faint); font-size: 13px; padding: 0 12px; white-space: nowrap; }

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 46px;
  align-items: center;
  padding: 66px 8px 74px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pink-dk);
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.16em;
}

.hero-title {
  margin: 0;
  font: 700 clamp(38px, 4.6vw, 62px)/1.18 var(--font-head);
  letter-spacing: -0.015em;
}
.mark { position: relative; color: var(--pink-dk); white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(255, 61, 127, 0.18);
  border-radius: 6px;
  z-index: -1;
}

.hero-desc {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.hero-search svg { width: 20px; height: 20px; margin-left: 10px; align-self: center; stroke: var(--muted); fill: none; stroke-width: 2; flex: 0 0 20px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search button {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--pink);
  color: #fff;
  font: 600 15px/1 var(--font-body);
  box-shadow: 0 6px 14px rgba(255, 61, 127, 0.28);
}
.hero-search button:hover { background: var(--pink-dk); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips button {
  height: 30px;
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-chip);
  background: rgba(var(--glass-rgb), 0.72);
  color: var(--muted);
  font-size: 13px;
}
.hero-chips button:hover { border-color: var(--pink); color: var(--pink-dk); background: var(--surface); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  max-width: 620px;
}
.hero-metrics div {
  padding: 14px 12px;
  background: rgba(var(--glass-rgb), 0.62);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-metrics b { display: block; font: 700 24px/1 var(--font-head); color: var(--ink); }
.hero-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* 像素封面墙 */
.hero-wall { justify-self: end; width: 100%; max-width: 520px; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(var(--glass-rgb), 0.50);
  border: 2px solid var(--border);
  border-radius: var(--r-plate);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.wall-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--ring);
  background: var(--surface-2);
  box-shadow: 0 6px 12px rgba(86, 70, 130, 0.16);
}
.wall-tile img,
.wall-tile canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wall-tile canvas { background: var(--surface-2); image-rendering: pixelated; }
/*: ★ CO-1119-115 `.wall-tile` 改为 <button>：清掉按钮默认样式，
   并给与乐曲卡片一致的按压/抬起反馈（只动 transform，走合成层）。 */
.wall-tile {
  position: relative; display: block; padding: 0; margin: 0;
  border: 2px solid var(--ring); border-radius: 14px;
  background: var(--surface-2); overflow: hidden; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.22,.61,.36,1),
              box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.wall-tile:active { transform: scale(.972); }
@media (hover: hover) {
  .wall-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
  .wall-tile:active { transform: scale(.985); }
}
.wall-tile:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wall-tile .sharp { opacity: 0; transition: opacity 0.28s ease, transform 0.4s ease; transform: scale(1.06); }
.wall-tile:hover .sharp { opacity: 1; transform: scale(1); }
.wall-tile .pixel { image-rendering: pixelated; transition: opacity 0.2s ease; }
.wall-tile:hover .pixel { opacity: 0; }
/*: ★ CO-1119-116 移动端「第 1 下揭晓」：与 hover 同一套效果，用 opacity 过渡
   （不用 display:none —— 那样不会有补间动画）。 */
.wall-tile.is-revealed .sharp { opacity: 1; transform: scale(1); }
.wall-tile.is-revealed .pixel { opacity: 0; }
/*: 触屏设备上 hover 会「粘住」，避免 hover 与 is-revealed 打架：
   窄屏下把伪 hover 效果交给 is-revealed 单独控制。 */
@media (hover: none) {
  .wall-tile:hover .sharp { opacity: 0; transform: scale(1.06); }
  .wall-tile:hover .pixel { opacity: 1; }
  .wall-tile.is-revealed .sharp { opacity: 1; transform: scale(1); }
  .wall-tile.is-revealed .pixel { opacity: 0; }
}
.wall-tile::after {
  content: attr(data-caption);
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(22, 26, 40, 0.68);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wall-tile:hover::after { opacity: 1; transform: translateY(0); }
.wall-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.wall-cap { margin: 12px 0 0; text-align: right; color: var(--muted); font-size: 13px; }

/* ---------- 区块 ---------- */

.section { padding: 26px 0 10px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px 20px;
}
.section-copy { min-width: 0; }
.section-copy h2 {
  margin: 0;
  font: 700 28px/1.2 var(--font-head);
  color: var(--ink);
}
.section-copy p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.count-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(var(--glass-rgb), 0.72);
  border: 2px solid var(--border);
  color: var(--muted);
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
}
.count-live { color: var(--cyan-dk); background: var(--cyan-soft); border-color: rgba(15, 188, 214, 0.28); }
.count-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(15, 188, 214, 0.16); }

/* ---------- 功能卡 ---------- */

.feature-grid {
  display: grid;
  /*: ★ CO-1119-143（用户 22:33「为什么这个地方 pc 端变成这样，多出来一格」）：
     卡片从 11 张合并成 **9 张**后，原来的 **4 列**会让 9 张排成 4 + 4 + 1 ——
     最后一行只剩 1 张、空出 3 格，视觉上非常突兀（用户截图就是这个问题）。
     改成 **3 列**：9 张正好 3×3 填满，且与 ≤1180px 断点保持一致，
     整段响应式只有「3 列 → 3 列 → 3 列」一条主线，不再有 4/3 跳变。
     ⚠ 以后若卡片数变化，列数要跟着选能整除的值（9→3 列、8/12→4 列）。 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fcard {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fcard:hover { transform: translateY(-3px); box-shadow: 0 14px 24px rgba(86, 70, 130, 0.20); }
.fcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font: 700 15px/1 var(--font-head);
}
.fnum-pink { background: var(--pink-soft); color: var(--pink-dk); }
.fnum-purple { background: var(--purple-soft); color: var(--purple-dk); }
.fnum-cyan { background: var(--cyan-soft); color: var(--cyan-dk); }
.fcard h3 { margin: 16px 0 0; font: 700 22px/1.3 var(--font-head); color: var(--ink); }
.fcard p { flex: 1; margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.fcmd {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 查询 ---------- */

.query-shell {
  padding: 12px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.62);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tab span { font: 600 16px/1.2 var(--font-body); color: var(--ink); }
.tab em { font: 400 12px/1.2 var(--font-body); font-style: normal; color: var(--muted); }
.tab:hover { border-color: var(--pink-2); }
.tab.is-active { background: var(--pink-soft); border-color: var(--pink); }
.tab.is-active span { color: var(--pink-dk); }
.tab.is-active em { color: var(--pink-dk); opacity: 0.78; }

.panel { padding: 18px 6px 6px; }
.panel[hidden] { display: none; }

.search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.level-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 2px 10px;
  color: var(--muted);
  font-size: 13px;
}
.list-meta span:last-child { color: var(--faint); white-space: nowrap; }

.empty {
  grid-column: 1 / -1;
  padding: 42px 22px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.52);
  text-align: center;
  color: var(--muted);
}
.empty b { display: block; color: var(--ink-2); font-size: 16px; }
.empty p { margin: 8px 0 0; font-size: 14px; }

/* 曲库布局 */
.song-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}
.song-list-col { min-width: 0; }
.song-list { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow: auto; padding-right: 4px; }
.song-list::-webkit-scrollbar { width: 6px; }
.song-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.72);
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.song-row:hover { border-color: var(--pink-2); background: var(--surface); }
.song-row.is-active { border-color: var(--pink); background: var(--pink-soft); }
.song-row .thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 10px;
  border: 2px solid var(--ring);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 3px 6px rgba(86, 70, 130, 0.14);
}
.song-row .thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--faint);
  font: 700 18px/1 var(--font-head);
}
.song-row .info { min-width: 0; flex: 1; }
.song-row .title { display: flex; align-items: center; gap: 8px; }
.song-row .title b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font: 600 16px/1.35 var(--font-body);
}
.song-row .title i {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font: 700 11px/1.4 var(--font-body);
  font-style: normal;
}
.song-row .title i.is-new { background: var(--pink-soft); color: var(--pink-dk); }
.song-row .sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.song-row .ds { margin-left: auto; flex: 0 0 auto; text-align: right; }
.song-row .ds b { display: block; color: var(--ink-2); font: 700 14px/1 var(--font-body); }
.song-row .ds span { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }

/* 曲目详情 */
.song-detail {
  min-height: 300px;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.86);
  box-shadow: var(--shadow-soft);
}
.empty-detail { border: 0; background: transparent; }

.sd-head { display: flex; gap: 18px; }
.sd-cover-wrap { flex: 0 0 190px; }
.sd-cover {
  width: 190px;
  height: 190px;
  border-radius: 14px;
  border: 3px solid var(--ring);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 8px 18px rgba(86, 70, 130, 0.22);
}
.sd-canvas {
  width: 190px;
  height: 190px;
  border-radius: 14px;
  border: 3px solid var(--ring);
  background: var(--surface-2);
  box-shadow: 0 8px 18px rgba(86, 70, 130, 0.22);
  image-rendering: pixelated;
  display: none;
}
.sd-cover-tools { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sd-pixel-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sd-pixel-toggle input[type="checkbox"] { accent-color: var(--pink); }
.sd-pixel-toggle input[type="range"] { width: 92px; accent-color: var(--pink); }
.sd-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-buttons .btn-mini { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 10px; }

.sd-info { min-width: 0; flex: 1; }
.sd-title-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sd-title { margin: 0; font: 700 28px/1.25 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.sd-id { margin-top: 4px; color: var(--faint); font-size: 12px; }
.sd-artist { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sd-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-chip);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--ink-2);
  font-size: 12px;
}
.sd-alias { margin-top: 12px; }
.sd-alias-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.sd-alias-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alias-chip {
  padding: 3px 9px;
  border-radius: var(--r-chip);
  background: var(--surface);
  border: 1.5px solid var(--purple);
  color: var(--purple-dk);
  font-size: 12px;
  line-height: 1.5;
}

.sd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.sd-stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}
.sd-stat b { display: block; color: var(--ink); font: 700 18px/1.2 var(--font-body); }
.sd-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.diff-table { margin-top: 18px; border-top: 1.5px solid var(--line); }
.diff-row {
  display: grid;
  grid-template-columns: 6px 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--line);
}
.diff-bar { width: 6px; height: 32px; border-radius: 3px; }
.diff-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.diff-name b { font: 600 14px/1.3 var(--font-body); color: var(--ink); }
.diff-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  color: #fff;
  font: 700 12px/1 var(--font-body);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.diff-notes { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.diff-notes span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.diff-notes span b { color: var(--ink-2); font-weight: 600; }
.diff-notes .charter { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.diff-side { text-align: right; color: var(--muted); font-size: 11px; white-space: nowrap; }
.diff-side b { display: block; color: var(--ink-2); font: 600 12px/1.5 var(--font-body); }

/* 曲目详情 · 与 info 单曲统一图同款 */
.song-detail {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.empty-detail {
  padding: 42px 22px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.52);
}

.info-stack { display: flex; flex-direction: column; gap: 12px; }

.info-plate {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(var(--glass-rgb), 0.39);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(86, 70, 130, 0.10), 0 1px 0 var(--hi) inset;
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}
.info-jacket { flex: 0 0 132px; min-width: 0; }
.sd-cover {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 3px solid var(--ring);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 6px 14px rgba(86, 70, 130, 0.22);
}
.sd-canvas {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 3px solid var(--ring);
  background: var(--surface-2);
  box-shadow: 0 6px 14px rgba(86, 70, 130, 0.22);
  image-rendering: pixelated;
  display: none;
}
.info-jacket-tools { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.info-jacket-tools .sd-pixel-toggle { font-size: 11px; gap: 5px; }
.info-jacket-tools .sd-pixel-toggle input[type="range"] { width: 60px; }
.info-jacket-tools .sd-buttons { gap: 5px; }
.info-jacket-tools .sd-buttons .btn-mini { height: 26px; padding: 0 7px; font-size: 11px; border-radius: 8px; }

.info-head { flex: 1; min-width: 0; }
.info-head .sd-title-row { align-items: center; gap: 8px; }
.info-head .sd-title { font: 700 30px/1.22 var(--font-head); margin: 0; }
.info-head .sd-artist { margin: 5px 0 0; color: var(--ink-2); font-size: 14px; }
.info-line { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.info-id {
  margin: 7px 0 0;
  color: var(--faint);
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: 0.05em;
}
.info-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--faint); }
.info-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.info-logo { width: 96px; height: auto; }
.info-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-2);
  font: 700 13px/1 var(--font-body);
}

.info-card {
  padding: 16px 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}
.info-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--line);
}
.info-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--pink-dk);
  font: 700 14px/1 var(--font-head);
}
.info-sec h4 { margin: 0; font: 700 17px/1.2 var(--font-head); color: var(--ink); }
.info-note { margin-left: auto; color: var(--faint); font-size: 12px; }

.info-table { width: 100%; }
.info-thead,
.info-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 96px 84px 72px;
  gap: 12px;
  align-items: center;
}
.info-thead { padding: 2px 0 8px; color: var(--faint); font-size: 11px; }
.info-thead span:nth-child(n+3) { text-align: center; }
.info-row { padding: 9px 0; border-top: 1.5px solid var(--line); }
.info-diff { display: flex; align-items: center; gap: 8px; min-width: 0; }
.info-bar { width: 4px; height: 34px; flex: 0 0 4px; border-radius: 2px; }
.info-diff-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.info-diff-text b { font: 600 14px/1.25 var(--font-body); }
.info-diff-text span { color: var(--ink-2); font: 600 12px/1.3 var(--font-body); }
.info-diff-text em { color: var(--muted); font: 400 11px/1.3 var(--font-body); font-style: normal; }
.info-charter { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12px; }
.info-metric { text-align: center; }
.info-metric b { display: block; color: var(--ink); font: 600 16px/1.2 var(--font-body); }
.info-metric span { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; }
.info-foot-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1.5px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.info-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-alias-body { min-height: 48px; }
.alias-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.alias-chip {
  padding: 4px 9px;
  border-radius: var(--r-chip);
  background: var(--pink-soft);
  border: 1.5px solid rgba(255, 61, 127, 0.24);
  color: var(--pink-dk);
  font-size: 12px;
  line-height: 1.5;
}
.info-muted { margin: 4px 0 0; color: var(--faint); font-size: 12px; }

.info-kv { margin: 0; display: flex; flex-direction: column; }
.info-kv div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.info-kv div:last-child { border-bottom: 0; }
.info-kv span { flex: 0 0 auto; color: var(--muted); }
.info-kv b {
  min-width: 0;
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 600;
  text-align: right;
}

.info-sign { margin: 2px 0 0; color: var(--faint); font-size: 11px; text-align: center; }

/* 定数表 */
.level-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.chip {
  height: 34px;
  padding: 0 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(var(--glass-rgb), 0.86);
  color: var(--muted);
  font: 600 13px/1 var(--font-body);
  white-space: nowrap;
  transition: all 0.14s ease;
}
.chip:hover { border-color: var(--pink-2); color: var(--pink-dk); }

/* CO-1107-02 封面搜索：等级 + 版本筛选 */
.cover-filter { margin-top: 10px; }
.ver-select {
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(var(--glass-rgb), 0.86);
  color: var(--muted);
  font: 600 13px/1 var(--font-body);
  flex: 0 0 auto;
}
.ver-select:focus { outline: none; border-color: var(--purple); color: var(--purple-dk); }
@media (max-width: 760px) { .ver-select { width: 100%; } }
.chip.is-active { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-dk); }

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.level-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.74);
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.level-card:hover { border-color: var(--purple); background: var(--surface); }
.level-card img { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 9px; border: 2px solid var(--ring); box-shadow: 0 3px 6px rgba(86, 70, 130, 0.14); object-fit: cover; }
.level-card .lc-info { min-width: 0; flex: 1; }
.level-card .lc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 600 14px/1.4 var(--font-body); }
.level-card .lc-sub { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.level-card .lc-ds { color: var(--muted); font-size: 11px; }
.level-card .lc-notes { color: var(--faint); font-size: 11px; white-space: nowrap; }

/* 机厅 */
.arcade-list { display: flex; flex-direction: column; gap: 8px; }
.arcade-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.78);
}
.arcade-row:hover { border-color: var(--cyan); background: var(--surface); }
.arcade-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid var(--ring);
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 3px 6px rgba(86, 70, 130, 0.14);
}
.arcade-fallback { display: grid; place-items: center; color: var(--faint); font: 700 20px/1 var(--font-head); }
.arcade-main { min-width: 0; }
.arcade-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arcade-name b { color: var(--ink); font: 600 16px/1.3 var(--font-body); }
.arcade-addr { margin-top: 4px; color: var(--muted); font-size: 13px; }
.arcade-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.arcade-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
}
.arcade-tag.hours { background: var(--cyan-soft); color: var(--cyan-dk); }
.arcade-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.arcade-actions .btn-mini { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }

/* 收藏品 */
.kind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 2px 0; }
/* CO-1117-24 称号筛选：分类 / 颜色 */
.col-filters {
  margin: 10px 2px 0; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 11px;
  background: rgba(var(--glass-rgb), 0.5);
  display: flex; flex-direction: column; gap: 8px;
}
.col-filters[hidden] { display: none; }
.col-filter-row { display: flex; align-items: flex-start; gap: 10px; }
.col-filter-label {
  flex: 0 0 auto; min-width: 30px; padding-top: 8px;
  color: var(--faint); font: 600 12px/1 var(--font-body);
}
.col-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.chip-mini { height: 30px; padding: 0 11px; font-size: 12px; }
.chip-mini em { font-style: normal; opacity: 0.62; font-size: 11px; margin-left: 2px; }
.chip-c { display: inline-flex; align-items: center; gap: 6px; }
.cdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
@media (max-width: 760px) {
  .col-filter-row { flex-direction: column; gap: 4px; }
  .col-filter-label { padding-top: 0; }
}
.col-list { display: flex; flex-direction: column; gap: 8px; }
/* ★ CO-1119-93：收藏品列表改多列网格（桌面一行 3 个，背景板占 2 列）。
   原来 CO-1119-23/29/32 用 `.col-row-wide` 整行横铺，一行只放 1 个、左右大片空白。 */
.col-list.is-grid {
  display: grid;
  /* 列数与间距对齐网页封面区（`.cover-grid` 4 列 / gap 14px），视觉节奏统一 */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
  /*: 混合类型时行高由最高的卡片决定（背景板跨 2 列），dense 让后续卡片回填空隙 */
  grid-auto-flow: row dense;
}
/*: ★ CO-1119-101：PC（≥1101px）固定 3 列 —— 背景板 1080×452 一行 3 个、
   称号条也因此从 ≈324px 加宽到 ≈437px（高 42→57px），条上文字更清楚。
   窄屏仍走上面的 auto-fill 自适应，手机单列。 */
@media (min-width: 1101px) {
  .col-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.col-card {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; padding: 10px 12px 11px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.78);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.col-card:hover { border-color: var(--pink-2); box-shadow: var(--shadow-soft); }
/*: ★ CO-1119-101（用户口径「背景板pc端改成三列显示」）：
   桌面固定 3 列后，背景板回到 span 1 ⇒ 一行 3 个。
   （此前 span 2 在 4 列网格里只能一行 2 个；整行占满又 550px 太高、限高还留白。） */
.col-card.is-wide { grid-column: span 1; }
.col-card .col-art {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: auto; padding: 0; align-self: stretch;
  border: 0; border-radius: 8px; background: none; overflow: hidden;
}
.col-card .col-art img {
  display: block; width: 100%; height: auto; max-width: 100%; max-height: none;
  object-fit: contain;
}
.col-card .col-main { min-width: 0; }
/*: 每类图按**自身原始长宽比**占位 —— 不变形、也不留大片空白。
   尺寸来自素材实测：称号 552×72 / 姓名框 720×116 / 背景板 1080×452 / 头像 128×128。 */
.col-card-trophy .col-art { aspect-ratio: 552 / 72; }
.col-card-plate  .col-art { aspect-ratio: 720 / 116; }
.col-card-frame  .col-art { aspect-ratio: 1080 / 452; }

/* CO-1126：头像卡改为左图右文（图固定 96px 方形，文字在右侧纵向排列） */
.col-card.col-card-icon { flex-direction: row; align-items: center; gap: 12px; }
.col-card-icon .col-art { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: 1 / 1; margin: 0; }
.col-card-icon .col-art img { width: 100%; height: 100%; object-fit: contain; }
.col-card-icon .col-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/*: 卡片里的名字不折行挤压，长名省略 */
.col-card .col-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 760px) {
  .col-list.is-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .col-card.is-wide { grid-column: span 1; }
}
.col-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.78);
}
.col-row:hover { border-color: var(--pink-2); background: var(--surface); }
.col-art {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 100%;
  height: 78px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .18s, transform .18s;
}
.col-art:hover { border-color: var(--pink-2); }
.col-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.col-art.is-empty { border-style: dashed; background: none; cursor: default; }
.col-art.is-empty span { color: var(--faint); font-size: 11px; }
/* CO-1119-23 横条收藏品（称号/姓名框）：图横向铺满整行，去掉条件文字复述 */
.col-row.col-row-wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* ★ CO-1119-93：`col-row-wide` 已不再用于收藏品列表（改多列卡片），
   这里保持原样只为兼容；卡片内的 .col-art 不受其影响（选择器要求 .col-row 祖先）。 */
.col-row-wide .col-art {
  width: 100%;
  height: auto;
  align-self: stretch;
  padding: 6px;
  border-radius: 8px;
}
.col-row-wide .col-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.col-row-wide .col-main { min-width: 0; }
.col-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.col-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col-name b { color: var(--ink); font: 600 16px/1.3 var(--font-body); }
.col-genre { color: var(--muted); font-size: 12px; }
/* CO-1119-09 日服独占角标 */
.col-jp-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border: 1px solid rgba(255, 138, 176, .55); border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 122, 178, .16), rgba(255, 210, 110, .16));
  color: var(--pink-dk, #c2185b); font-size: 11px; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.col-cond { margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.col-cond .label { color: var(--faint); }
.col-card-trophy .col-cond { overflow-wrap: anywhere; white-space: pre-line; }
.col-desc { margin-top: 4px; color: var(--muted); font-size: 12px; }
.col-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.col-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}
/* ★ CO-1201-93：收藏品查询的个人「已获得 / 条件进度」角标（仅国服条目） */
.col-own,
.col-prog {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.col-own { font-weight: 700; }
.col-own.is-yes { background: var(--cyan-soft); color: var(--cyan-dk); border: 1px solid rgba(15, 188, 214, .45); }
.col-own.is-no { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.col-own.is-unknown { background: none; color: var(--faint); border: 1px dashed var(--border); }
.col-prog { font-weight: 500; background: var(--surface-2); color: var(--muted); }
.col-prog.is-done { background: var(--cyan-soft); color: var(--cyan-dk); }
.col-prog.is-unknown { height: auto; padding: 3px 7px; white-space: normal; line-height: 1.35; background: none; color: var(--faint); border: 1px dashed var(--border); }


.more-btn { display: block; width: 100%; margin-top: 12px; height: 42px; }
.more-btn[hidden] { display: none; }

/* ---------- 分页器 ---------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.pager[hidden] { display: none; }
.pager-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 600 13px/1 var(--font-head);
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--pink-2); color: var(--pink-dk); }
.pager-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--pink-dk));
  color: #fff;
  cursor: default;
}
.pager-btn:disabled { opacity: .38; cursor: not-allowed; }
.pager-step { font-size: 16px; line-height: 1; }
.pager-gap { color: var(--faint); padding: 0 2px; }
.pager-info { margin-left: 6px; color: var(--faint); font-size: 12px; }

/* ---------- 登记 trend ---------- */

[hidden] { display: none !important; }

.trend-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  margin-bottom: 18px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.trend-qq-label {
  flex: 0 0 auto;
  font: 700 13px/1 var(--font-body);
  color: var(--pink-dk);
  letter-spacing: 0.08em;
}
.trend-qq { width: 250px; flex: 0 0 auto; height: 44px; }
.trend-top-note { margin: 0; flex: 1; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* 统一登录 QQ：只展示，不提供填写框 */
.tn-qq-chip { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.tn-qq-chip .qq-avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.tn-qq-text { display: flex; flex-direction: column; gap: 3px; }
.tn-qq-text b { font: 700 14px/1.2 var(--font-body); color: var(--ink); }
.tn-qq-text span { font-size: 11px; color: var(--muted); }
.trend-qq-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.82);
}
.trend-qq-chip b { font: 700 13px/1 var(--font-body); color: var(--ink); }
.trend-qq-chip span { font-size: 11px; color: var(--muted); }
.mcard-qq-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: rgba(var(--glass-rgb), 0.72);
  font-size: 12px;
  color: var(--muted);
}
.mcard-qq-line b { font: 700 13px/1 var(--font-body); color: var(--ink); }
.mcard-qq-line em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--faint); }
/* CO-1119-07：月卡卡片内 QQ 登录入口，整行、与账号行留间距 */
.mcard-login-cta { width: 100%; margin: 10px 0 2px; }

/* 完整面板（原有 trend 页面内嵌，功能全量保留） */
.trend-modebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.trend-modes {
  display: inline-flex;
  padding: 4px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: rgba(var(--glass-rgb), 0.72);
}
.trend-mode {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font: 600 13px/1 var(--font-body);
  color: var(--ink-2);
  cursor: pointer;
}
.trend-mode.is-active { background: var(--pink); color: #fff; box-shadow: 0 4px 10px rgba(255, 61, 127, 0.22); }
.trend-mode-note { margin: 0; flex: 1; color: var(--muted); font-size: 12px; line-height: 1.7; }
.trend-full { position: relative; }
.trend-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}
.trend-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border-radius: var(--r-card);
  background: rgba(var(--glass-rgb), 0.62);
  border: 2px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.trend-lock-card { max-width: 560px; text-align: center; }
.trend-lock-card h3 { margin: 12px 0 8px; font: 700 24px/1.25 var(--font-head); color: var(--ink); }
.trend-lock-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.trend-lock-card .btn { margin-top: 16px; }

.trend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}
.trend-side { display: flex; flex-direction: column; gap: 18px; }
.trend-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.trend-help-list p {
  position: relative;
  margin: 8px 0 0;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}
.trend-help-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.trend-card {
  padding: 22px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}
.trend-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trend-card-head h3 { margin: 0; font: 700 21px/1.3 var(--font-head); color: var(--ink); }
.trend-desc { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 128px;
  margin-top: 14px;
  padding: 20px;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.62);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--pink); background: var(--pink-soft); }
.dropzone svg { width: 30px; height: 30px; stroke: var(--pink); fill: none; stroke-width: 2; }
.dropzone b { color: var(--ink); font-size: 14px; }
.dropzone span { color: var(--muted); font-size: 12px; }

.trend-queue { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tq-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: rgba(var(--glass-rgb), 0.82);
}
.tq-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.tq-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }
.tq-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.tq-state { color: var(--muted); font-size: 11px; white-space: nowrap; }
.tq-state.ok { color: #0f7a55; }
.tq-state.bad { color: #b7322f; }
.tq-remove {
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  padding: 2px 4px;
}
.tq-remove:hover { color: var(--pink-dk); }

.trend-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trend-actions .btn { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
.trend-progress { color: var(--muted); font-size: 12px; }
.trend-progress.err { color: #b7322f; }

.trend-rec-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.trend-rec {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.86);
}
.trend-rec.is-off { opacity: 0.62; }
.trend-rec > img { width: 76px; height: 76px; border-radius: 10px; border: 2px solid var(--ring); object-fit: cover; box-shadow: 0 3px 6px rgba(86, 70, 130, 0.14); }
.tr-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tr-title b { color: var(--ink); font: 600 15px/1.35 var(--font-body); }
.tr-title .diff-pill { min-width: 30px; height: 22px; font-size: 11px; border-radius: 11px; }
.tr-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.tr-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.tr-fields label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.tr-fields input {
  height: 30px;
  width: 118px;
  padding: 0 8px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}
.tr-fields input:focus { border-color: var(--pink); }
.tr-fields input[type="date"] { width: 138px; }
.tr-status { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tr-status.ok { color: #0f7a55; }
.tr-status.warn { color: #a46600; }
.tr-status.bad { color: #b7322f; }
.tr-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.tr-actions .trend-check { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tr-actions .trend-check input { accent-color: var(--pink); }
.tr-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tr-link:hover { color: var(--pink-dk); }

.trend-submitbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px solid var(--line);
}
.trend-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.trend-check input { accent-color: var(--pink); }

.trend-result {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px solid #b9e8d2;
  border-radius: 12px;
  background: #e9f9f1;
  color: #0b6b47;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-line;
}
.trend-result.bad { border-color: #f3c2c0; background: #fdf0ef; color: #a52a27; }

.trend-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.trend-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.trend-form input {
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(var(--glass-rgb), 0.92);
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}
.trend-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.trend-form .btn { margin-top: 2px; height: 42px; border-radius: 12px; }

.trend-load { width: 100%; margin-top: 12px; height: 40px; border-radius: 12px; font-size: 14px; }
.trend-chart { margin-top: 12px; min-height: 96px; }
.trend-chart svg { display: block; width: 100%; height: auto; }
.trend-chart-empty { padding: 14px; border-radius: 10px; background: var(--surface-2); color: var(--faint); font-size: 12px; text-align: center; }
.trend-points { margin-top: 10px; }
.trend-point { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.trend-point b { color: var(--ink-2); font: 700 13px/1 var(--font-body); }
.trend-point:last-child { border-bottom: 0; }
.trend-msg { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.trend-msg.ok { color: #0f7a55; }
.trend-msg.err { color: #b7322f; }

/* ---------- 我的账号 / 月卡 ---------- */

.nav-login {
  height: 36px;
  padding: 0 14px;
  margin: 0 6px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 61, 127, 0.24);
}
.nav-login:hover { background: var(--pink-dk); }

.me-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 22px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.me-bar-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.me-bar-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ring); box-shadow: 0 3px 8px rgba(86, 70, 130, 0.16); }
.me-bar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-bar-user b { display: block; color: var(--ink); font-size: 15px; }
.me-bar-user span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.me-bar-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* CO-1119-47 .me-auth-note 移入账号资料卡后独占一行 */
.me-auth-note { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; max-width: 260px; }

.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 18px; align-items: start; }
.me-left { display: flex; flex-direction: column; gap: 18px; }

.me-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}
.me-card .info-sec { padding-bottom: 9px; margin-bottom: 12px; }

.me-profile { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ring); box-shadow: 0 6px 14px rgba(86, 70, 130, 0.20); }
.me-profile-text { flex: 1; min-width: 0; }
.me-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink); font: 700 20px/1.3 var(--font-head); }
.me-name #me-name { white-space: nowrap; min-width: 0; }  /* CO-1119-02：昵称不逐字竖排，徽章放不下自动换行 */
.me-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.me-rating { text-align: right; flex: 0 0 auto; }
.me-rating span { display: block; color: var(--faint); font-size: 11px; }
.me-rating b { display: block; margin-top: 3px; color: var(--pink-dk); font: 700 22px/1 var(--font-head); }

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: linear-gradient(100deg, #ff3d7f 0%, #7b5cff 52%, #0fbcd6 100%);
  color: #fff;
  /* ★ CO-1119-02：数字（如「6 个月」的 6）不能再被 EmojiColor 接管——
     Apple Color Emoji 的数字字形基线与正文不同会下坠、字体也不一致。
     emoji 仍由 var(--font-body) 里的 Apple Color Emoji 回退渲染保持彩色。 */
  font: 700 15px/1 var(--font-body);
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(123, 92, 255, 0.26);
}
.sponsor-badge.is-demo { opacity: 0.65; }

.me-block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--ink-2);
  font: 700 13px/1.4 var(--font-body);
}
.me-block-title span { color: var(--faint); font: 400 11px/1.4 var(--font-body); }
.me-points { margin-top: 6px; }
.me-point-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.me-point-row b { color: var(--ink-2); font: 600 13px/1.2 var(--font-body); }
.me-point-total { border-bottom: 0; color: var(--ink-2); font-weight: 700; }
.me-point-total b { color: var(--pink-dk); font-size: 17px; }

.me-best { display: flex; flex-direction: column; gap: 2px; }
.me-best-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.me-best-row:last-child { border-bottom: 0; }
.me-best-row img { width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--ring); object-fit: cover; box-shadow: 0 2px 5px rgba(86, 70, 130, 0.14); }
.me-best-row .mb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 600 13px/1.35 var(--font-body); }
.me-best-row .mb-rate { color: var(--ink-2); font: 600 12px/1 var(--font-body); }
.me-best-row .mb-diff { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; color: #fff; font: 700 11px/1 var(--font-body); }

.mcard-promo {
  margin-bottom: 10px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(100deg, var(--pink-soft), rgba(255, 255, 255, .55));
  border: 1.5px solid rgba(255, 61, 127, .28);
}
.mcard-promo b { display: block; color: var(--pink-dk); font: 700 14.5px/1.35 var(--font-head); }
.mcard-promo p { margin: 4px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.mcard-promo span { display: block; margin-top: 6px; color: var(--pink-dk); font-size: 11.5px; }
.mcard-plans .chip.is-promo { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dk); }
.mcard-plans .chip s, #mcard-total s { color: var(--faint); font-weight: 400; font-size: 11.5px; margin-right: 3px; }
.mcard-promo[hidden] { display: none; }
.mcard-status { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 10px; }
.mcard-status div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.mcard-status span { display: block; color: var(--faint); font-size: 11px; }
.mcard-status b { display: block; margin-top: 4px; color: var(--ink); font: 600 14px/1.3 var(--font-body); }

.mcard-block { margin-top: 16px; }
.mcard-plans { display: flex; flex-wrap: wrap; gap: 6px; }
/* 套餐价：按钮里跟在「N 个月」后面的小号价格 */
.mcard-plans .chip em {
  margin-left: 5px;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.72;
}
.mcard-plans .chip.is-active em { opacity: 0.85; }
.mcard-months { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.mcard-months label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.mcard-months input {
  width: 90px;
  height: 36px;
  padding: 0 9px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: 0;
}
.mcard-months input:focus { border-color: var(--pink); }
.mcard-total { color: var(--ink-2); font-size: 12px; }
.mcard-total b { color: var(--pink-dk); font-size: 15px; }

.mcard-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mcard-benefits li {
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--surface-2);
  border-left: 3px solid var(--pink);
}
.mcard-benefits li:nth-child(2) { border-left-color: var(--purple); }
.mcard-benefits li:nth-child(3) { border-left-color: var(--cyan); }
.mcard-benefits b { display: block; color: var(--ink); font-size: 13px; }
.mcard-benefits span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.mcard-gift {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--pink-soft);
  border: 1.5px solid rgba(255, 61, 127, 0.20);
  color: var(--pink-dk);
  font-size: 11px;
  line-height: 1.6;
}
.mcard-gift.is-on { background: #f3edff; border-color: rgba(123, 92, 255, 0.28); color: var(--purple-dk); }
/* 季卡赠图样张：默认隐藏，仅权益命中时由 JS 移除 hidden */
.mcard-gift-preview[hidden] { display: none; }

.mcard-form { display: flex; flex-direction: column; gap: 8px; }
.mcard-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.mcard-form input {
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: 0;
}
.mcard-form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.mcard-hint { margin: -2px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mcard-form .btn { height: 42px; border-radius: 12px; margin-top: 2px; }
.mcard-msg { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mcard-msg.ok { color: #0f7a55; }
.mcard-msg.err { color: #b7322f; }

.mcard-orders { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mcard-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.mcard-order b { color: var(--ink-2); font: 600 12px/1.3 var(--font-body); }
.mcard-order-status,
.mcard-order .mcard-order-status {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}
.mcard-order-status.is-pending,
.mcard-order .is-pending { background: var(--pink-soft); color: var(--pink-dk); }
.mcard-order-status.is-confirmed,
.mcard-order .is-confirmed { background: #e9f9f1; color: #0f7a55; }
.mcard-order-status.is-rejected,
.mcard-order .is-rejected { background: #fdf0ef; color: #b7322f; }
.me-auth-note.err { color: #b7322f; }

/* ---------- 封面 · 像素封面 ---------- */
.cover-grid {
  display: grid;
  /* ★ CO-1119-136（用户「pc 端的乐曲信息这个曲绘卡片感觉一行可以塞下 6 个」）：
     PC 默认 6 列（原 4 列）。窄屏按下面的断点逐级回落，避免卡片被挤成细条。 */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.cover-card {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cover-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cover-imgs {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.cover-imgs canvas,
.cover-imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/*: ★ CO-1119-105（用户口径「悬停不要用像素曲绘；只有最上面的九个保留像素曲绘」）：
   乐曲查询的卡片**只显示原曲绘**，像素曲绘在这里彻底关掉；悬停不再切换。
   像素曲绘只保留在首屏那 9 格（`.wall-tile`，见上方 596-599 行，未改动）。 */
/*: 乐曲卡片目前只有一层 <img>（像素层已在 CO-1119-105 移除），
   这里不再用 `display:none !important` 去藏 canvas ——
   **`display:none` 的元素无法参与 transition**，这正是「点一下没动画」的根因。
   改为常规隐藏 + 给 img 恢复温和过渡，将来若再加一层可直接生效。 */
.cover-imgs canvas { opacity: 0; pointer-events: none; }
/*: ★ CO-1119-119（用户要求「旧版的日限曲目在曲绘左上角加上日限的标识」）
   口径：日服独占且版本 ≤ 国服当前版本（PRiSM PLUS）的老曲 —— 见 songs.json `jp_limit`。
   CiRCLE 及之后的日服新曲不标。删除状态优先显示。 */
.cover-badge {
  position: absolute; top: 7px; left: 7px; z-index: 3;
  padding: 2px 7px; border-radius: 7px;
  font: 700 11px/1.5 var(--font-body); letter-spacing: .3px;
  color: #fff; background: linear-gradient(135deg, #7c5cff, #b06cff);
  box-shadow: 0 2px 6px rgba(80, 40, 160, .35);
  pointer-events: none;
}
.song-status-deleted { background: #af2945; color: #fff; }
.song-status-regional-delete { background: #94500f; color: #fff; }
.cover-imgs img {
  opacity: 1;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22,.61,.36,1);
}

/*: ★ CO-1119-113 移动端「点一下」的真实反馈：
   卡片整体轻微下压 + 抬起，替代原先那个「切不存在的 canvas」的空操作。
   用 transform/box-shadow，走合成层，不会触发布局重排。 */
.cover-card {
  transition: transform .16s cubic-bezier(.22,.61,.36,1),
              box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.cover-card:active { transform: scale(.972); }
@media (hover: hover) {
  .cover-card:hover { transform: translateY(-2px); }
  .cover-card:active { transform: scale(.985); }
}
.cover-cap {
  display: block;
  padding: 8px 10px 9px;
  border-top: 1px solid var(--line);
  background: rgba(var(--glass-rgb), 0.92);
}
.cover-cap b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font: 600 13px/1.4 var(--font-body);
}
.cover-cap span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 科技订阅（登录用户） ---------- */
/* CO-1118-42 排版修正：原 360px+1fr 两栏，左状态卡仅约 100px 高、右表单约 580px，
   左下空出一大片；改为通栏「顶部状态条 + 下方表单」单栏结构。 */
.tech-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.tech-status-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}
.tech-status-top { display: flex; align-items: flex-end; justify-content: flex-start; gap: 36px; flex-wrap: wrap; }
.tech-status-top span { display: block; color: var(--faint); font-size: 11px; }
.tech-status-top b { display: block; margin-top: 4px; color: var(--ink); font: 700 20px/1.2 var(--font-head); }
.tech-expire { text-align: left; padding-left: 36px; border-left: 1px solid var(--line); }
.tech-expire b { font: 600 12px/1.4 var(--font-body); color: var(--ink-2); }
.tech-status-bar { height: 6px; max-width: 420px; margin: 12px 0 8px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tech-status-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); transition: width .4s ease; }
.tech-note { margin: 4px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.tech-code-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
/* ---------- 科技调用面板 ---------- */
.tech-call { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tech-call[hidden] { display: none; }
/* CO-1118-42 tag 行加玻璃底托：原裸 flex 悬在面板上方像游离元素 */
.tech-call-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px;
  background: var(--glass); border: 2px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(22px); }
.tech-tab {
  padding: 7px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink-2);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.tech-tab:hover { border-color: var(--pink); color: var(--pink-dk); }
.tech-tab.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dk); }
.tech-call-panel {
  padding: 18px 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}
.tech-call-head { margin-bottom: 12px; }
.tech-call-head b { display: block; color: var(--ink); font: 700 16px/1.35 var(--font-head); }
.tech-call-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
/* CO-1118-42 字段三列：原两列每约 450px 显空；auto-fit 在宽屏会算成 5 列过窄，故固定 3 列 */
.tech-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.tech-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tech-field label { position: relative; color: var(--ink-2); font: 600 11.5px/1.4 var(--font-body);
  /* CO-1118-42 统一标签高度：带 <i> 提示的字段（如「期望★数 / 1-5」）原会多占一行，
     把同行其它字段的输入框挤下去。这里固定 2 行高 + <i> 绝对定位，让所有控件顶端齐平。 */
  height: 34px; }
.tech-field label i { position: absolute; left: 0; top: 16px; display: block;
  color: var(--faint); font: 400 10.5px/1.5 var(--font-body); font-style: normal; white-space: nowrap; }
.tech-req { color: var(--pink); font-style: normal; }
.tech-field input, .tech-field select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 500 12px/1 var(--font-body);
  outline: 0;
}
.tech-field input:focus, .tech-field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.tech-field-sw { justify-content: flex-end; }
.tech-sw {
  align-self: flex-start;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font: 600 11.5px/1 var(--font-body);
  cursor: pointer;
}
.tech-sw.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dk); }
.tech-qr { display: block; margin-top: 12px; }
.tech-qr span { display: block; color: var(--ink-2); font: 600 11.5px/1.4 var(--font-body); }
.tech-qr em { display: block; margin-top: 2px; color: var(--faint); font: 400 10.5px/1.5 var(--font-body); font-style: normal; }
.tech-qr textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 500 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
  outline: 0;
}
.tech-qr textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.tech-call-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.tech-call-msg { color: var(--muted); font-size: 11px; line-height: 1.5; }
.tech-call-msg.ok { color: #0f7a55; }
.tech-call-msg.err { color: #b7322f; }
.tech-empty { margin: 0; color: var(--faint); font-size: 12px; }
.tech-note-line { grid-column: 1 / -1; margin: 0 0 2px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.tech-task {
  margin-top: 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  overflow: hidden;
}
.tech-task-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tech-task-head b { color: var(--ink); font: 700 12.5px/1.3 var(--font-body); }
.tech-task-head span { color: var(--faint); font-size: 11px; }
.tech-task-done { color: #0f7a55 !important; }
.tech-task-failed { color: #b7322f !important; }
.tech-task-stopped { color: #9a6a00 !important; }
.tech-task-log {
  max-height: 320px;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  color: #cfd6e4;
  background: #14161c;
  font: 500 11.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
#tech.is-unsub .tech-shell { grid-template-columns: minmax(0, 1fr); }
#tech.is-unsub .tech-status-top,
#tech.is-unsub .tech-status-bar,
#tech.is-unsub .tech-note,
#tech.is-unsub #tech-code-note { display: none; }
#tech.is-unsub .tech-redeem { margin-top: 0; }
#tech.is-unsub .tech-status-card { padding: 16px 20px; }
/* 单栏后 1120 断点无需再改列数，仅窄屏逐级收窄字段 */
@media (max-width: 980px) { .tech-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tech-fields { grid-template-columns: 1fr; } }
.tech-redeem { display: flex; gap: 8px; margin-top: 12px; }
.tech-redeem input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  outline: 0;
  text-transform: uppercase;
}
.tech-redeem input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.tech-redeem .btn { height: 38px; padding: 0 12px; border-radius: 9px; font-size: 12px; flex: 0 0 auto; }
.tech-redeem-msg { min-height: 16px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tech-redeem-msg.ok { color: #0f7a55; }
.tech-redeem-msg.err { color: #b7322f; }

/* ---------- 云端控制台（管理员） ---------- */
.console-lock { padding: 22px; background: var(--glass); border: 2px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.console-lock-card { max-width: 720px; }
.console-lock-card b { display: block; color: var(--ink); font: 700 18px/1.3 var(--font-head); }
.console-lock-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.console-lock-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.console-lock-row input {
  flex: 1 1 260px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}
.console-lock-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.console-msg { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.console-msg.err { color: #b7322f; }

.console-main { padding: 14px; background: var(--glass); border: 2px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.console-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.7);
  text-decoration: none;
}
.console-item:hover { border-color: var(--pink); background: rgba(255, 61, 127, 0.06); box-shadow: 0 4px 10px rgba(255, 61, 127, 0.14); }
.console-item b { color: var(--ink); font: 700 14px/1.2 var(--font-head); }
.console-item span { color: var(--muted); font-size: 11px; }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.console-link { border: 0; background: transparent; color: var(--pink-dk); font: 600 11px/1 var(--font-body); text-decoration: none; padding: 0; }
.console-link:hover { text-decoration: underline; }

/* ---------- 指令 ---------- */

.cmd-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 26px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.cmd-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cmd-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font: 700 17px/1.2 var(--font-head);
  color: var(--ink);
}
.cmd-group h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pink);
  transform: rotate(45deg);
}
.cmd-group:nth-child(2) h3::before { background: var(--purple); }
.cmd-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.cmd-row code {
  flex: 0 0 auto;
  color: var(--pink-dk);
  font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--pink-soft);
  padding: 2px 7px;
  border-radius: 6px;
}
.cmd-row p { flex: 1 1 220px; margin: 0; color: var(--ink-2); font-size: 13px; }

/* ---------- 关于 ---------- */

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-card {
  padding: 24px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-head h3 { margin: 0; font: 700 22px/1.2 var(--font-head); color: var(--ink); }
.ver-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: #fff;
  font: 700 13px/1 var(--font-body);
}
.update-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.update-row:last-child { border-bottom: 0; }
.update-row p { margin: 0; color: var(--ink-2); font-size: 14px; }
.about-note p { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.about-note p b { color: var(--ink); }
.about-tip {
  margin-top: 16px !important;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted) !important;
  font-size: 13px !important;
}

/* ---------- 页脚 ---------- */

.footer { padding-top: 34px; padding-bottom: 40px; }
.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1.5px solid var(--border);
  color: var(--faint);
  font-size: 13px;
}

/* ---------- 高清曲绘弹窗 ---------- */

.cover-modal {
  width: min(760px, 94vw);
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(22, 26, 40, 0.30);
}
.cover-modal::backdrop { background: rgba(22, 26, 40, 0.46); backdrop-filter: blur(6px); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}
.modal-head h3 { margin: 0; font: 700 22px/1.3 var(--font-head); color: var(--ink); }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.modal-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font: 700 22px/1 var(--font-body);
}
.modal-close:hover { background: var(--pink-soft); color: var(--pink-dk); }
.modal-body { display: grid; place-items: center; min-height: 300px; padding: 0 22px; }
.modal-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.modal-loading[hidden] { display: none; }
.modal-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#modal-img { width: min(640px, 82vw); height: auto; border-radius: 16px; border: 3px solid var(--ring); box-shadow: 0 12px 28px rgba(86, 70, 130, 0.22); }
.modal-foot { display: flex; align-items: center; gap: 12px; padding: 16px 22px 22px; }
.modal-hint { color: var(--faint); font-size: 12px; }

.image-export-modal { width: min(620px, 94vw); max-height: 90vh; }
.image-export-settings {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  padding: 4px 22px 16px;
  color: var(--ink);
  font-size: 14px;
}
.image-export-settings select {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-2);
  font: inherit;
}
.image-export-size { display: flex; align-items: center; gap: 8px; }
.image-export-size input { width: 100%; min-width: 0; accent-color: var(--pink-dk); }
.image-export-size output { min-width: 3ch; text-align: end; font-variant-numeric: tabular-nums; }
.image-export-preview { display: grid; place-items: center; margin: 0 22px; }
#image-export-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(46vh, 460px, max(100px, calc(90vh - 294px)));
  background: conic-gradient(#e9ebf0 25%, #fff 0 50%, #e9ebf0 0 75%, #fff 0) 0 / 18px 18px;
}
#image-export-preview.is-pixel { image-rendering: pixelated; }
.image-export-modal .modal-foot {
  position: sticky;
  bottom: 0;
  background: var(--surface);
}
.image-export-modal .modal-hint { color: var(--muted); }

.mobile-image-save { width: min(680px, 94vw); max-height: 90vh; }
#mobile-image-save-status { margin: 0 22px 12px; color: var(--muted); }
#mobile-image-save-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 44px);
  max-height: 56vh;
  margin: 0 auto;
  -webkit-touch-callout: default;
}
.mobile-image-save .modal-foot { flex-wrap: wrap; }

.art-modal { width: min(860px, 94vw); }
.art-modal .modal-body {
  min-height: 0;
  padding: 4px 22px 2px;
  background: #eef0f7;
}
#art-img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(86, 70, 130, 0.16);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff-row { grid-template-columns: 6px 132px minmax(0, 1fr); }
  .diff-side { grid-column: 2 / -1; text-align: left; }
  .trend-grid { grid-template-columns: 1fr; }
  .trend-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-grid { grid-template-columns: minmax(0, 1fr); }
  .me-left { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero-wall { justify-self: stretch; max-width: none; }
  .wall-grid { max-width: 520px; margin: 0 auto; }
  .wall-cap { text-align: center; }
  .song-layout { grid-template-columns: 1fr; }
  .song-list { max-height: 420px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-shell { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .mast-side { flex-direction: row; align-items: center; }
  .mast-plate { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .mast-plate { padding: 26px 24px; gap: 20px; }
  .mast-main { gap: 16px; }
  .mast-avatar { width: 76px; height: 76px; flex-basis: 76px; }
  .mast-title { font-size: 42px; }
  .mast-sub { font-size: 15px; }
  .mast-logo { width: 108px; }
  /*: ★ CO-1119-134（用户 18:11「移动端 9 个格子放一起」）：
     功能卡片改成 **3 列紧凑九宫格**，9 格一屏放得下。
     原来 2 列 ⇒ 9 张要滚 5 行；3 列正好 3×3。
     卡片瘦身：只留序号 + 标题（描述与指令示例收起，点进去看文档），
     内边距/字号同步压缩，避免 3 列下文字挤成一条。 */
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fcard { padding: 10px 9px 11px; gap: 0; border-radius: 10px; }
  .fcard h3 {
    font-size: 12px; line-height: 1.35; margin: 6px 0 0;
    /*: 标题最多两行，超出省略 —— 3 列下长标题（如「猜歌家族 · 八种玩法」）会撑破卡片 */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /*: 描述与命令示例在九宫格里收起，保持一格一句话的密度 */
  .fcard > p, .fcard .fcmd { display: none; }
  .fcard-top { align-items: center; }
  .fnum { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
  .fcard .tag { font-size: 9px; padding: 1px 5px; border-radius: 5px; }
  /*: ★ CO-1119-134：CTA 按钮（index.html 内联的 a.fcard::after）默认
     font 15px + padding 9px 12px，在 3 列窄卡片里必然折成两行
     （「查看指令文」/「档 →」）。这里压到 10px、去掉左右内边距、单行不折。 */
  a.fcard::after {
    font-size: 10px; line-height: 1.2;
    margin-top: 6px; padding: 5px 2px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-search { flex-wrap: wrap; }
  .hero-search svg { display: none; }
  .hero-search input { flex-basis: 100%; padding-left: 12px; }
  .hero-search button { width: 100%; }
  .field-sm { width: 100%; }
  .info-plate { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .info-head { flex: 1 1 calc(100% - 130px); }
  .info-side { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: flex-end; }
  .info-logo { width: 76px; }
  .info-bottom { grid-template-columns: 1fr; }
  .info-thead { display: none; }
  .info-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 12px 0;
  }
  .info-diff, .info-charter { grid-column: 1 / -1; }
  .info-metric { text-align: left; }
  .level-bar .btn { width: 100%; }
  .trend-top { flex-wrap: wrap; }
  .trend-qq { width: 100%; flex: 1 1 100%; }
  .trend-top-note { flex: 1 1 100%; }
  .trend-side { grid-template-columns: 1fr; }
  .trend-modebar { gap: 10px; }
  .trend-mode-note { flex-basis: 100%; }
  .trend-frame { min-height: 560px; }
  .me-left { grid-template-columns: minmax(0, 1fr); }
  .me-bar { flex-wrap: wrap; }
  .me-bar-actions { width: 100%; justify-content: space-between; }
  .me-profile { flex-wrap: wrap; }
  .me-rating { margin-left: auto; }
  .arcade-row { grid-template-columns: 52px minmax(0, 1fr); }
  .arcade-logo { width: 52px; height: 52px; }
  .arcade-actions { grid-column: 1 / -1; flex-direction: row; }
  .arcade-actions .btn-mini { flex: 1; }
  /* CO-1119-17：收藏品缩略图缩小——原单列让图撑满整行高 78px 占大半屏，改为图文并排、图收成小方块 */
  .col-row { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .col-art { height: 76px; border-radius: 8px; }
  .col-main { min-width: 0; }
  .col-kind { flex-direction: row; align-items: center; }
  .footer-line { flex-direction: column; align-items: flex-start; }
  .nav-note { display: none; }
}

@media (max-width: 520px) {
  /*: ★ CO-1119-134：功能卡片在窄屏**也保持 3 列**（九宫格是用户明确要的形态），
     只把关卡表格 .level-grid 退成单列。 */
  .level-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fcard { padding: 8px 7px 9px; }
  .fcard h3 { font-size: 11px; }
  .fnum { width: 18px; height: 18px; font-size: 9px; }
  .fcard .tag { display: none; }
  a.fcard::after { font-size: 9px; padding: 4px 1px; margin-top: 5px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-plate { padding: 22px 18px; }
  .mast-side { width: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
  .mast-logo { width: 96px; }
  .mast-pills { flex-wrap: wrap; }
  .hero-title { font-size: 34px; }
  .section-copy h2 { font-size: 24px; }
  .section-head { flex-wrap: nowrap; gap: 12px; align-items: flex-start; }
  .section-copy { flex: 1 1 auto; min-width: 0; }
  .count-pill { margin-left: auto; flex: 0 0 auto; }
  .search-row .btn { width: 100%; }
  .song-row .ds { display: none; }
  .song-row .thumb { width: 52px; height: 52px; flex-basis: 52px; }
  .song-row .title b {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
  }
  .trend-rec { grid-template-columns: 56px minmax(0, 1fr); }
  .trend-rec > img { width: 56px; height: 56px; }
  .tr-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
  .mcard-status { grid-template-columns: 1fr; }
  .info-jacket { flex: 0 0 100px; }
  .sd-cover, .sd-canvas { width: 100px; height: 100px; }
  .info-head { flex: 1 1 calc(100% - 114px); }
  .info-head .sd-title { font-size: 24px; }
  .modal-foot { flex-wrap: wrap; }
}

/* ★ CO-1119-14：移动端整体缩小到 90%——用户「移动端页面再缩小一点，还是好挤」。
   只作用于 body 直属三个内容块（header.mast / nav.nav / main.wrap），
   bg-layer / toast 等 fixed 元素不带 .wrap 故不受影响；桌面端(>760px) 完全不碰。
   zoom 会连同布局一起缩放（比逐个改字号/间距彻底），modern Safari/Chrome 均支持。 */
@media (max-width: 760px) {
  body > .mast.wrap, body > .nav.wrap, body > main.wrap { zoom: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .fcard:hover { transform: none; }
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(22, 26, 40, 0.88);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 登录弹窗 / 查询门禁 */
.login-modal {
  width: min(460px, 92vw);
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(22, 26, 40, 0.30);
}
.login-modal::backdrop { background: rgba(22, 26, 40, 0.46); backdrop-filter: blur(6px); }
.login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 10px;
}
.login-head h3 { margin: 0; font: 700 20px/1.3 var(--font-head); color: var(--ink); }
.login-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.login-body { padding: 0 22px 22px; }
.login-box { display: flex; flex-direction: column; gap: 12px; }
.login-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.login-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.login-field input {
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}
.login-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.10); }
.login-msg { margin: 10px 0 0; min-height: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-msg.err { color: #b7322f; }
.login-msg.ok { color: #0f7a55; }

.login-gate {
  grid-column: 1 / -1;
  padding: 42px 22px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(var(--glass-rgb), 0.52);
  text-align: center;
  color: var(--muted);
}
.login-gate b { display: block; color: var(--ink-2); font-size: 16px; }
.login-gate p { margin: 8px 0 0; font-size: 13px; }
.login-gate .btn { margin-top: 14px; height: 40px; border-radius: 12px; font-size: 14px; }

.field input[readonly],
.mcard-form input[readonly] { color: var(--muted); background: var(--surface-2); }
.mcard-readonly { margin-left: 4px; color: var(--faint); font-weight: 400; font-size: 10px; }

/* 键盘可达性 */
:focus-visible { outline: 3px solid rgba(255, 61, 127, 0.38); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 3px; }

/* ★ CO-1119-136：6 列需要更宽，断点相应上调，逐级回落保持卡片不被压扁 */
@media (max-width: 1500px) {
  .cover-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .console-grid { grid-template-columns: 1fr; }
}

/* 我的账号 · 数据库接入 */
.me-best-head {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 44px; gap: 10px;
  padding: 6px 4px 6px 0; color: var(--faint); font: 500 10px/1.4 var(--font-body);
}
.me-best-head span:nth-child(3),
.me-best-head span:nth-child(4),
.me-best-head span:nth-child(5) { text-align: right; }
.me-best { max-height: 520px; overflow-y: auto; padding-right: 4px; }
.me-best-row { grid-template-columns: 40px minmax(0, 1fr) auto auto 44px; }
.mb-ra { text-align: right; color: var(--pink-dk); font: 700 13px/1 var(--font-head); letter-spacing: 0.2px; }
.me-empty { padding: 12px 2px 6px; color: var(--faint); font: 400 12px/1.7 var(--font-body); }
.me-point-tag {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-style: normal;
  background: rgba(255, 61, 127, 0.1); color: var(--pink-dk);
  font: 600 10px/1.6 var(--font-body);
}
#me-points-rows .me-point-row span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#me-points-rows .me-point-row b { flex: 0 0 auto; margin-left: 12px; }
.mb-rate { white-space: nowrap; }
@media (max-width: 760px) {
  .me-best-row, .me-best-head { grid-template-columns: 36px minmax(0, 1fr) auto auto 40px; }
  /* CO-1119-28 移动端最近 B50：默认只露出约 6 条，其余滚动查看（桌面端保持 520px 不变） */
  .me-best { max-height: 336px; }
}

/* ---------- 微信扫码支付弹窗（CO-1107-01） ---------- */
.pay-modal { width: min(680px, 94vw); }
.pay-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 0;
  padding: 8px 22px 6px;
  flex-wrap: wrap;
}
.pay-qr {
  flex: 0 0 auto;
  width: min(280px, 60vw);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface); /* 二维码底色固定纯白，不跟随暗色 */
}
.pay-qr img { display: block; width: 100%; height: auto; }
.pay-steps { flex: 1 1 220px; min-width: 200px; text-align: left; }
.pay-line { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.pay-line b { color: var(--pink-dk); font-size: 18px; }
/* 微信支付时要求填写 QQ 备注（CO-1130-45） */
.pay-remark {
  margin: 0 0 10px; padding: 8px 10px; border-radius: 8px;
  background: #fff6e6; border: 1px solid #f0d9a8;
  color: #8a5a00; font-size: 13px; line-height: 1.6;
}
.pay-remark b { color: #b45309; font-size: 15px; letter-spacing: .5px; }
.mcard-hint.pay-tip { color: #b45309; font-weight: 600; }
.pay-steps ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* ---------- 移动端防「超界」+ 防 iOS 输入框聚焦自动放大（CO-1107-05） ---------- */
/* 窄屏单列网格用 minmax(0,1fr)，避免登录后长内容把 min-content 撑出页面宽度 */
@media (max-width: 1180px) {
  .me-left > *, .me-grid > * { min-width: 0; }
}
/* iOS/Safari 只在输入控件字号 < 16px 时聚焦自动放大；统一抬到 16px 既保留手势缩放又不跳版。
   ★ CO-1108-57：补 :focus / contenteditable，防止后来新增的聚焦态规则或动态控件漏网；
     CO-1108-44 放开双指缩放后这条更要保留 —— 它与 viewport 无关，只管「自动」放大。 */
@media (max-width: 1024px), (hover: none), (pointer: coarse), (any-pointer: coarse) {
  input, textarea, select, [contenteditable="true"],
  input:focus, textarea:focus, select:focus { font-size: 16px !important; }
}

/* ---------- 允许页面缩放（CO-1108-44，用户「移动端无法缩放，修复」） ----------
   ★ CO-1107-06 曾在此写 `touch-action: pan-x pan-y` 主动禁掉双指缩放；用户现在要能缩放，
   改回 `pan-x pan-y pinch-zoom`（保留平移，放开双指缩放）。iOS Safari 另需
   viewport 里的 user-scalable=yes（见 index.html）。
   下面两条 text-size-adjust 与缩放无关，是防止 iOS 横屏/聚焦时**自动**放大文字导致跳版，
   必须保留 —— 删了反而会出现「字突然变大」。 */
html {
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ★ CO-1108-43 续：标识输入框要能看到彩色 emoji 预览。
   系统彩色 emoji 字体排在字体栈最前；字号 15px + 字距归零，12px 或 1px 字距
   都会让 emoji 糊成一团/被拉散。 */
#mcard-badge-edit,
#mcard-badge-text {
  font-family: "EmojiColor", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

/* ---------- CO-1108-57：移动端报头压缩（QQ 登录胶囊位置） ----------
   ≤520px 原 .mast-side 竖排三行（登录胶囊 / logo / 版本标签 = 148px），
   叠加 mast-main 与留白后，430/390/360 视口整块报头高 421/455/524px。
   改法：登录胶囊与 logo 并排同一行，装饰标签降为第二行小标签，
   并收紧头像 / 标题 / 统计 / 内边距。不改 DOM、不动 sticky 导航。 */
@media (max-width: 520px) {
  .mast { padding-top: 14px; }
  .mast-plate { padding: 16px 16px; gap: 12px; }
  .mast-main { gap: 12px; }
  .mast-avatar { width: 58px; height: 58px; flex-basis: 58px; }
  .mast-title { font-size: 32px; }
  .mast-sub { margin-top: 6px; font-size: 12px; }
  .mast-stat { margin-top: 8px; gap: 6px; font-size: 11px; }
  .mast-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .mast-user { order: 1; }
  .mast-login { height: 34px; padding: 0 14px; border-radius: 10px; }
  .mast-logo { order: 2; width: 72px; margin-left: auto; }
  .mast-pills { order: 3; flex: 1 1 100%; gap: 6px; }
  .mast-pills .pill { font-size: 10px; }
  /* 登录后的用户胶囊也要压窄，否则会把 logo 挤到第二行 */
  .mast-userchip .mu-text span { display: none; }
  .mast-userchip b { max-width: 96px; }
}

/* ============================================================
   CO-1111-09 · 暗色主题（跟随设备主题自动切换）
   —— 只认 `prefers-color-scheme: dark`，不加 JS、不写 cookie、不做手动开关：
      iOS/Android 设「深色」，或设「自动」在日落后，页面自动转暗；
      亮色模式下本块整体不生效，渲染与改动前逐像素一致（已用 390/820/1440 截图比对）。
   颜色口径：底色去饱和的深蓝灰（不用纯黑，避免 OLED 上卡片浮不起来），
   语义色（粉/紫/青）提亮一档保证深底上的对比度，粉底白字的 CTA 反向用 --pink-solid
   压深，避免亮粉 + 白字发糊。
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --glass-rgb: 27, 32, 44;
    --hi: rgba(255, 255, 255, 0.06);
    --ring: rgba(255, 255, 255, 0.14);

    --bg: #0c0f16;
    --surface: #171b25;
    --surface-2: #1d2230;
    --border: #2a3141;
    --border-strong: #3a4254;
    --line: #222836;
    --ink: #eef1f7;
    --ink-2: #c7cddc;
    --muted: #949eb2;
    --faint: #737d90;

    --pink: #ff5c95;
    --pink-2: #ff9dc0;
    --pink-soft: rgba(255, 61, 127, 0.16);
    --pink-dk: #ff86ac;
    --pink-solid: #c81a57;
    --purple: #9b85ff;
    --purple-soft: rgba(123, 92, 255, 0.20);
    --purple-dk: #b9a8ff;
    --cyan: #33d3e9;
    --cyan-soft: rgba(15, 188, 214, 0.16);
    --cyan-dk: #5fdfef;

    --glass: rgba(27, 32, 44, 0.74);
    --frost: rgba(27, 32, 44, 0.46);
    --shadow: 0 8px 18px rgba(0, 0, 0, 0.50), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.38);
  }

  /* 背景：浅色彩棱图在深色下会整片发灰，直接换成深色渐变 + 两团弱光斑 */
  .bg-layer {
    background:
      radial-gradient(1100px 760px at 18% -8%, rgba(255, 61, 127, 0.13), transparent 72%),
      radial-gradient(980px 700px at 86% 8%, rgba(15, 188, 214, 0.11), transparent 72%),
      linear-gradient(180deg, #10131b 0%, #0b0e15 62%, #080a10 100%);
  }
  .bg-layer::before { opacity: 0.30; }
  .bg-layer::after { opacity: 0.26; }

  /* 粉底白字的 hover / 选中态：亮粉压深，保证白字对比度 */
  .btn-primary:hover { background: var(--pink-solid); border-color: var(--pink-solid); }
  .mast-login:hover,
  .nav-login:hover,
  .hero-search button:hover { background: var(--pink-solid); }
  .pager-btn.is-active {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-solid) 100%);
  }

  /* .select 的下拉箭头是内联 SVG，灰箭头在深底上几乎看不到，换成亮灰 */
  .select {
    background: rgba(var(--glass-rgb), 0.78)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23949eb2' stroke-width='2'/%3E%3C/svg%3E")
      right 14px center / 12px 8px no-repeat;
  }

  /* 弹窗遮罩加深，否则深色面板压在浅色残余上分不清边界 */
  .login-modal::backdrop { background: rgba(4, 6, 10, 0.68); }

  /* 原生 <input type=file> 的「选择文件」按钮走 UA 的 ButtonFace（暗色下是一块灰 #6b6b6b），
     和整套玻璃按钮不是一套，统一成同一质感。 */
  input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(var(--glass-rgb), 0.9);
    color: var(--ink-2);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
  }

  /* ★ 状态色块：浅薄荷 / 浅粉 / 浅紫底 + 深色字，写死在规则里没走变量，
     暗色下会变成一块块发亮的小方块 —— 换成同色相的深底 + 提亮字。 */
  .trend-result { border-color: rgba(52, 199, 143, 0.42); background: rgba(26, 127, 85, 0.22); color: #7ee2b0; }
  .trend-result.bad { border-color: rgba(220, 90, 90, 0.42); background: rgba(160, 40, 40, 0.22); color: #ff9a9a; }
  .mcard-gift.is-on { background: rgba(123, 92, 255, 0.20); border-color: rgba(123, 92, 255, 0.38); }
  .mcard-order-status.is-confirmed,
  .mcard-order .is-confirmed { background: rgba(26, 127, 85, 0.22); color: #7ee2b0; }
  .mcard-order-status.is-rejected,
  .mcard-order .is-rejected { background: rgba(160, 40, 40, 0.22); color: #ff9a9a; }
  .me-auth-note.err { color: #ff9a9a; }
  /* 曲绘放大弹窗的底板 */
  .art-modal .modal-body { background: var(--surface-2); }

  /* ★ 导航条：描边写死成 rgba(227,231,242,.9)（近白），浅色下是白描边看不出来，
     暗色下就成了一圈扎眼的白边 —— 跟着 --border 走，并把紫色投影换成中性深色。 */
  .nav-inner {
    border-color: var(--border);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
  }

  /* 曲绘滚动条 / 选中态 */
  ::selection { background: rgba(255, 92, 149, 0.30); }

  /* ★ 粉底白字：--pink 在暗色下提亮到 #ff5c95，白字对比只有 2.91（连 AA 大字号的 3.0 都没过）。
     统一压深一档到 #e01e60（≈4.6:1），色相不变、暗底上照样跳；hover 走更深的 --pink-solid。 */
  .btn-primary,
  .hero-search button,
  .mast-login,
  .nav-login,
  .trend-mode.is-active,
  .ver-pill { background: #e01e60; border-color: #e01e60; }

  /* ★ 裸 .btn（无 -primary / -ghost 修饰，如「清空（回到自动）」）自身没有底色。
     :root 一旦声明 color-scheme: dark，浏览器把默认 ButtonFace 渲染成 #6b6b6b 灰底，
     再配 --muted 灰字 ⇒ 1.98:1 读不清。这里显式给成和 .btn-ghost 一致的玻璃底。 */
  .btn:not(.btn-primary) {
    background: rgba(var(--glass-rgb), 0.86);
    border-color: var(--border-strong);
    color: var(--ink-2);
  }

  /* career.js 写进内联样式的两个语义色（浅色值在 :root） */
  :root { --career-muted: #949eb2; --career-bad: #ff8b8b; }
}

/* QQ 验证码登录（2026-11-11）：两步式，第二步在 .login-code-step 里 */
.login-code-step { display: flex; flex-direction: column; gap: 12px; }
.login-code-step[hidden] { display: none !important; }
.login-hint { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }

/* ══════════════════ 上屏 DIY（顶板版式，2026-11-16） ══════════════════ */
.diy-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 22px; align-items: start; padding: 6px 0 14px; }
@media (max-width: 1060px) { .diy-wrap { grid-template-columns: 1fr; } }

.diy-stage { position: sticky; top: 14px; }
@media (max-width: 1060px) { .diy-stage { position: static; } }
.diy-stage canvas {
  display: block; width: 100%; height: auto; border-radius: var(--r-card);
  border: 1px solid var(--border-strong); background: #14101f;
  box-shadow: var(--shadow);
}
.diy-stage-note { margin: 8px 2px 0; font-size: 12px; color: var(--faint); }

.diy-side { display: flex; flex-direction: column; gap: 10px; }
.diy-side h3 { margin: 8px 0 0; font-size: 15px; font-family: var(--font-head); }
.diy-quota {
  display: inline-block; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12.5px; color: var(--ink); background: var(--glass); border: 1px solid var(--border);
}
.diy-hint { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.diy-hint a { color: var(--pink-solid); text-decoration: underline; }

.diy-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diy-slot {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
}
.diy-slot-pick {
  flex: 0 0 auto; width: 66px; height: 42px; padding: 0; overflow: hidden;
  border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--purple-soft);
  display: grid; place-items: center; cursor: pointer;
}
.diy-slot[data-slot="icon"] .diy-slot-pick { width: 42px; }
.diy-slot-pick img { width: 100%; height: 100%; object-fit: cover; }
.diy-slot-empty { font-size: 18px; line-height: 1; color: var(--faint); }
.diy-slot-name {
  flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.diy-slot-clear {
  flex: 0 0 auto; padding: 2px 5px; border: 0; background: transparent;
  font-size: 16px; line-height: 1; color: var(--faint); cursor: pointer;
}
.diy-slot-clear:hover { color: var(--pink-solid); }

.diy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diy-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.diy-field.wide { grid-column: 1 / -1; }
.diy-field input, .diy-field select {
  padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-family: var(--font-body);
}
.diy-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.diy-toggles label { display: flex; gap: 6px; align-items: center; }
.diy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

#panel-diy.is-locked .diy-slots,
#panel-diy.is-locked .diy-toggles { opacity: .55; }
#panel-diy.is-locked .diy-slot-pick,
#panel-diy.is-locked .diy-slot-clear,
#panel-diy.is-locked [data-lock] { cursor: not-allowed; }

/* 选择器 */
.diy-picker { width: min(900px, 94vw); }
.diy-picker .modal-body { display: block; justify-items: stretch; min-height: 0; padding: 0 0 6px; }
.diy-picker .modal-body > * { width: 100%; }
.diy-picker-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 0 20px 10px; }
.diy-picker-bar input[type="search"] {
  flex: 1 1 240px; padding: 7px 10px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px;
}
.diy-picker-bar label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.diy-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px;
  padding: 0 20px 4px; max-height: 52vh; overflow-y: auto;
}
.diy-pick {
  display: flex; flex-direction: column; gap: 3px; padding: 6px; cursor: pointer; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; background: var(--glass);
}
.diy-pick:hover { border-color: var(--pink); box-shadow: var(--shadow-soft); }
.diy-pick img, .diy-pick-noimg {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--purple-soft);
  object-fit: cover;
}
.diy-pick-noimg { display: grid; place-items: center; font-size: 12px; color: var(--faint); }
.diy-pick-name { font-size: 12px; line-height: 1.35; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diy-pick-id { font-size: 11px; color: var(--faint); }
.diy-picker-empty { grid-column: 1 / -1; padding: 26px 0; text-align: center; font-size: 13px; color: var(--muted); }
.diy-picker-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: flex-end; }
.diy-picker-foot #diy-picker-page { margin-right: auto; }

@media (max-width: 640px) {
  .diy-slots, .diy-fields { grid-template-columns: 1fr; }
  .diy-picker-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 46vh; }
}

/* 主题选择（CiRCLE / PRiSM）：非月卡也能自由切换，不计自定义次数 */
.diy-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diy-theme-btn {
  display: grid; gap: 3px; padding: 9px 10px; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; background: var(--glass);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.diy-theme-btn b { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.diy-theme-btn em { font-style: normal; font-size: 11px; line-height: 1.4; color: var(--muted); }
.diy-theme-btn:hover { border-color: var(--border-strong); }
.diy-theme-btn.is-active {
  border-color: var(--pink-solid);
  background: color-mix(in srgb, var(--pink-solid) 10%, transparent);
}
.diy-theme-btn.is-active b { color: var(--pink-solid); }
.diy-theme-note { grid-column: 1 / -1; margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
#panel-diy.is-locked .diy-theme-btn { cursor: pointer; }

/* ── QQ 互联官方登录按钮（230×48 大按钮，等比例缩放不变形） ── */
.login-oauth .login-note { text-align: center; }
.login-oauth .login-hint { text-align: center; }
/* 官方素材 76×24 原尺寸 1:1 贴图（不缩放不变形），外圈只做可点区域，
   让手机上也有 ≥44px 的触摸高度，视觉仍是 QQ 官方灰色登录框 */
.qq-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 44px;
  margin: 2px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  line-height: 0;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qq-login-btn img {
  display: block;
  width: 76px;
  height: 24px;
}
.qq-login-btn:hover { border-color: var(--border-strong); box-shadow: 0 2px 10px rgba(22, 26, 40, .08); }
.qq-login-btn:active { transform: translateY(1px); }
.qq-login-btn:focus-visible { outline: 3px solid #12b7f5; outline-offset: 3px; }

/* 登录弹窗：QQ 互联不可用（100008 等）时的降级提示 */
.login-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 140, 0, .38);
  background: rgba(255, 196, 87, .16);
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.7;
}

/* ── 登录弹窗：页面内嵌 QQ 登录组件（官方 QQLogin SDK，iframe 渲染）
   容器最小 280×280 才能完整展示；手机 430 宽时内容区约 350，取 360px 高。 */
.qq-embed {
  position: relative;
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
}
.qq-login-container { width: 100%; height: 100%; }
.qq-embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.qq-embed.is-ready .qq-embed-loading { display: none; }
.qq-embed.is-error .qq-embed-loading { color: #b45309; }
.login-link { color: #2b6cb0; text-decoration: underline; text-underline-offset: 2px; }
.login-link:hover { color: #1a4e85; }
/* 小屏手机：弹窗别超高，内容可滚 */
.login-modal { max-height: 90vh; overflow: auto; }
@media (max-width: 400px) {
  .qq-embed { height: 330px; }
}

/* ===== CO-1118-08 search-row narrow fix ===== */
/* 用户截图：390px 下收藏品搜索框右侧超界。原因：.field.grow 没有 min-width:0，
   flex item 的 auto 最小尺寸被长 placeholder / input 默认尺寸撑开，无法收缩到卡片内。 */
.search-row {
  min-width: 0;
  max-width: 100%;
}
.search-row .field.grow {
  min-width: 0;
  flex: 1 1 0;
}
@media (max-width: 520px) {
  .search-row .field.grow {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .search-row .field.grow input { min-width: 0; }
}
/* ===== /CO-1118-08 search-row narrow fix ===== */
/* CO1118_08_SEARCH_WIDTH */

/* ===== CO-1119-04 收藏品搜索收进一行 ===== */
/* 用户：收藏品搜索明明一行能放下，移动端不要搜索框独占整行、按钮再占一行。
   限定在 #panel-collectibles 内，不影响曲库/机厅等其它面板的搜索行。
   保留 CO-1118-08 的 min-width:0 防超界；搜索框弹性伸缩、按钮按内容宽，整行不换行。 */
@media (max-width: 520px) {
  #panel-collectibles .search-row { flex-wrap: nowrap; }
  #panel-collectibles .search-row .field.grow { flex: 1 1 0; width: auto; max-width: 100%; }
  #panel-collectibles .search-row .field.grow input { min-width: 0; }
  #panel-collectibles .search-row .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
}
/* ===== /CO-1119-04 ===== */

/* ===== CO-1119-25 收藏品筛选区放宽：每个维度一行横滑 ===== */
/* 用户截图：移动端「分类 / 颜色 / 区服」三排 chip 换行堆成 7~8 行，占半屏。
   改法：<=760px 下 label 与 chips 同一行，chips 不换行、横向滚动，
   chip 加大到 34px/13px、间距 8px，细粉滚动条提示可滑。DOM/JS 零改。 */
@media (max-width: 760px) {
  #panel-collectibles .col-filters { gap: 12px; padding: 12px; }
  #panel-collectibles .col-filter-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  #panel-collectibles .col-filter-label {
    flex: 0 0 32px;
    min-width: 32px;
    padding-top: 0;
  }
  #panel-collectibles .col-filter-chips {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 2px 0 7px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-2) transparent;
  }
  #panel-collectibles .col-filter-chips::-webkit-scrollbar { height: 4px; }
  #panel-collectibles .col-filter-chips::-webkit-scrollbar-thumb {
    background: var(--pink-2);
    border-radius: 999px;
  }
  #panel-collectibles .col-filter-chips::-webkit-scrollbar-track { background: transparent; }
  #panel-collectibles .chip-mini {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }
  #panel-collectibles .chip-mini em { font-size: 11px; }
}
/* ===== /CO-1119-25 ===== */
/* CO1119_25_COLFILTER_ROW */

/* ===== CO-1119-26 收藏品种类小按钮等宽填满 + 分类按钮拉开拥挤 ===== */
/* 用户：「全部 / 称号 / 姓名框 / 背景板 / 头像」5 个小按钮左对齐、右侧留白，
   应居中且等宽填满一行；下面分类卡片里的 chip 挨得太紧。
   只在 <=760px 断点、#panel-collectibles 内生效；桌面端与其它面板不动。 */
@media (max-width: 760px) {
  #panel-collectibles .kind-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
  }
  #panel-collectibles .kind-chips .chip {
    width: 100%; padding: 0 4px; text-align: center;
  }
  /* CO-1119-25 已把分类/区服改成横滑；这里只把间距和内边距再拉开，减少拥挤 */
  #panel-collectibles .col-filter-chips { gap: 12px; }
  #panel-collectibles .chip-mini { padding: 0 16px; }
}
/* ===== /CO-1119-26 ===== */
/* CO1119_26_KINDCHIPS_FILL */


/* ===== CO-1119-31 月卡权益 / 科技订阅区字号放大，对齐收藏品区口径 ===== */
/* 用户反馈功能区域文字偏小，参考收藏品区基准（标题16 / 说明13 / 次说明12）。
   只放大月卡权益(.mcard-*)与科技订阅(.tech-*)的说明性文字；
   不动表单输入框 / 按钮 / 固定高度 label / 日志等宽字，避免溢出破版。 */
/* --- 月卡权益 --- */
.mcard-benefits b { font-size: 16px; }
.mcard-benefits span { font-size: 13px; }
.me-block-title { font-size: 16px; }
.me-block-title span { font-size: 12px; }
.mcard-gift { font-size: 13px; }
.mcard-hint { font-size: 12px; }
.mcard-msg { font-size: 13px; }
.mcard-status span { font-size: 12px; }
.mcard-status b { font-size: 15px; }
.mcard-plans .chip em { font-size: 12px; }
.mcard-months label { font-size: 12px; }
.mcard-order { font-size: 12px; }
/* --- 科技订阅 --- */
.tech-status-top span { font-size: 12px; }
.tech-note { font-size: 13px; }
.tech-code-note { font-size: 12px; }
.tech-call-head span { font-size: 13px; }
.tech-call-msg { font-size: 12px; }
.tech-empty { font-size: 13px; }
.tech-note-line { font-size: 13px; }
.tech-task-head b { font-size: 13px; }
.tech-task-head span { font-size: 12px; }
.tech-redeem-msg { font-size: 12px; }
.tech-qr span { font-size: 12px; }
.tech-qr em { font-size: 11px; }
/* ===== /CO-1119-31 ===== */
/* CO1119_31_FONT_SIZE_UP */

/* ===== CO-1119-33 home 科技传分：多首乐曲一包（1~4 首） ===== */
.tech-song-list { display: flex; flex-direction: column; gap: 10px; }
.tech-song-card { border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px 12px; background: rgba(var(--glass-rgb), 0.4); }
.tech-song-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tech-song-card-head b { color: var(--pink-dk); font: 700 12.5px/1.4 var(--font-head); }
.tech-song-del { border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; color: var(--muted); font: 600 11px/1 var(--font-body); padding: 5px 10px; cursor: pointer; }
.tech-song-del:hover { border-color: var(--pink); color: var(--pink-dk); }
.tech-song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.tech-global-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.tech-song-add { width: 100%; margin-top: 10px; border: 1.5px dashed var(--pink-2); border-radius: 10px; background: var(--pink-soft); color: var(--pink-dk); font: 700 12.5px/1 var(--font-body); padding: 10px; cursor: pointer; }
.tech-song-add:hover:not(:disabled) { border-style: solid; }
.tech-song-add:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 980px) { .tech-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tech-song-grid { grid-template-columns: 1fr; } .tech-global-fields { grid-template-columns: 1fr; } }
/* CO1119_33_MULTISONG */

/* ===== CO-1119-35 暗色模式横滑滚动条改暗灰（原亮粉 --pink-2 在暗色下刺眼） ===== */
/* CO-1119-25 给 #panel-collectibles .col-filter-chips 加了横滑 + 粉色滚动条提示；
   --pink-2 在暗色下是 #ff9dc0 亮粉，与暗底反差过强。这里只在暗色下覆盖成 --border-strong
   （暗色 #3a4254 暗灰），亮色保持粉色提示不变；选择器与 520px 段内一致，追加在末尾优先级覆盖。 */
@media (prefers-color-scheme: dark) {
  #panel-collectibles .col-filter-chips { scrollbar-color: var(--border-strong) transparent; }
  #panel-collectibles .col-filter-chips::-webkit-scrollbar-thumb { background: var(--border-strong); }
}
/* ===== /CO-1119-35 ===== */
/* CO1119_35_DARK_SCROLLBAR */


/* ===== CO-1119-36 称号横铺图限宽居中（2026-11-19） ===== */
/* CO-1119-23 把称号图改成横铺整行（287px/390视口），用户反馈「还是太大了」。
   只针对称号(trophy)：限宽 220px + 居中，比整行小一档、仍远大于 CO-1119-17 的 76px 方块，
   称号文字保持清晰。姓名框(plate)/背景板(frame)横铺不动。 */
.col-row-wide .col-art[data-kind="trophy"] {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
/* ===== /CO-1119-36 ===== */
/* CO1119_36_TROPHY_WIDTH */


/* ===== CO-1119-37 月卡权益移动端一行两卡（配合文案精简） ===== */
/* 原单列 flex + 上百字说明导致列表过长。移动端 <=900px 改两列 grid；
   minmax(0,1fr) + overflow-wrap 防止长词撑破列造成横向溢出。
   桌面端 >900px 保持原单列不变。字号沿用 CO-1119-31 的 16/13px 放大口径。 */
@media (max-width: 900px) {
  .mcard-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .mcard-benefits li {
    min-width: 0;
    padding: 8px 9px;
  }
  .mcard-benefits b,
  .mcard-benefits span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* ===== /CO-1119-37 ===== */
/* CO1119_37_MCARD_2COL */


/* ===== CO-1119-38 移动端月卡卡片压缩：到期并入标题行 + 隐藏单月价格 + 压缩小标识编辑区 ===== */
/* 用户反馈「占地太大」。原移动端状态区两格各占一整行(57+57=123px)、价格与套餐/权益重复、
   小标识编辑区 166px。这里只改 ≤760px：
   ①标题行(.info-sec)与到期状态(#mcard-status)用 grid 并到同一视觉行，状态去灰框、右对齐纯文字；
   ②状态区的价格格(d:nth-child(2))整体不显示（套餐按钮与「月卡权益」标题已有 ¥x/月）；
   ③小标识编辑区 label 改横排、输入框/按钮收高、说明小字压紧。
   桌面端 >760px 全部不命中，保持原样。与 CO-1119-37 权益两列(.mcard-benefits)选择器不重叠。 */
@media (max-width: 760px) {
  #monthcard.me-mcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 6px;
    row-gap: 0;
  }
  #monthcard .info-sec {
    grid-column: 1; grid-row: 1;
    min-width: 0;
    padding-bottom: 8px; margin-bottom: 0;
    border-bottom: 0;
  }
  #monthcard .info-sec h4 { white-space: nowrap; }
  #monthcard .sponsor-badge { height: 24px; padding: 0 9px; font-size: 14px; flex-shrink: 0; }

  #monthcard #mcard-status {
    grid-column: 2; grid-row: 1;
    display: block; align-self: center;
    padding-bottom: 8px; margin-bottom: 0;
    border-bottom: 0;
  }
  /* 价格格不显示：套餐按钮与权益标题已有单月价，避免重复占一行 */
  #monthcard #mcard-status > div:nth-child(2) { display: none; }
  /* 状态格去灰框，变成紧凑右对齐纯文字（保留 <b> 供 JS 写入到期时间） */
  #monthcard #mcard-status > div:first-child {
    padding: 0; background: none; border-radius: 0; text-align: right;
  }
  #monthcard #mcard-status > div:first-child span { display: none; }
  #monthcard #mcard-status > div:first-child b {
    margin: 0; font-size: 11px; font-weight: 600;
    color: var(--muted); white-space: nowrap;
  }

  /* 后续块占满两列 */
  #monthcard > .mcard-block { grid-column: 1 / -1; margin-top: 10px; }

  /* 小标识编辑区压缩 */
  #monthcard #mcard-badge-editor .me-block-title { margin: 0 0 4px; }
  #monthcard #mcard-badge-editor .mcard-form { gap: 6px; }
  #monthcard #mcard-badge-editor .mcard-form label {
    flex-direction: row; align-items: center; gap: 8px;
  }
  #monthcard #mcard-badge-editor .mcard-form input { flex: 1 1 auto; height: 34px; }
  #monthcard #mcard-badge-editor .mcard-hint {
    margin: 0; font-size: 10px; line-height: 1.35;
  }
  #monthcard #mcard-badge-editor .mcard-form .btn { height: 36px; margin-top: 0; }
}
/* ===== /CO-1119-38 ===== */
/* CO1119_38_MCARD_COMPACT */


/* ===== CO1119_SONGSEARCH 曲名/别名模糊搜索联想菜单 ===== */
.tech-song-search { position: relative; }
.tech-song-search .tss-wrap { position: relative; }
.tech-song-search .tss-picked {
  display: block; margin-top: 2px; color: var(--pink-dk, #d81b60);
  font: 600 11px/1.4 var(--font-body); overflow-wrap: anywhere;
}
.tech-song-search .tss-picked[hidden] { display: none; }
.tss-menu {
  position: absolute; z-index: 80; top: calc(100% + 3px); left: 0; right: 0;
  max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--glass-solid, #fff); border: 1px solid var(--border-strong, #e6d7e0);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); padding: 4px;
}
.tss-menu[hidden] { display: none; }
.tss-item {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
}
.tss-item:hover, .tss-item:focus { background: rgba(255, 61, 127, 0.10); outline: none; }
.tss-item b { color: var(--ink-1, #28222b); font: 600 12.5px/1.35 var(--font-body); }
.tss-item span { color: var(--muted, #938a95); font: 400 10.5px/1.3 var(--font-body); }
/* ===== /CO1119_SONGSEARCH ===== */
/* CO1119_SONGSEARCH */


/* ===== CO-1119-44 科技传分表单移动端多列网格 ===== */
/* 用户反馈「科技功能用不到这么长的输入框/选择框，多行合并、一行多个、标准对齐」。
   CO-1119-33 把曲目字段在 <=720px 压成单列（7 字段各占一行、共 ~526px）。这里改两列：
   7 字段排 4 行、grid ~248px（减半），字段 label 34->26px、间距收紧。
   ★ 用 #tech-fields 提高特异性，覆盖 CO-1119-33 的 `.tech-song-grid{grid-template-columns:1fr}`。
   桌面端 >720px 不命中，保持原 3 列不变。 */
@media (max-width: 720px) {
  #tech-fields .tech-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  #tech-fields .tech-global-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  #tech-fields .tech-song-grid .tech-field,
  #tech-fields .tech-global-fields .tech-field { gap: 3px; }
  #tech-fields .tech-song-grid .tech-field label,
  #tech-fields .tech-global-fields .tech-field label { height: 26px; font-size: 11px; }
  #tech-fields .tech-song-grid .tech-field label i,
  #tech-fields .tech-global-fields .tech-field label i { top: 14px; font-size: 9.5px; }
  #tech-fields .tech-song-grid .tech-field input,
  #tech-fields .tech-song-grid .tech-field select,
  #tech-fields .tech-global-fields .tech-field input,
  #tech-fields .tech-global-fields .tech-field select { height: 34px; padding: 0 8px; font-size: 12px; }
}
/* ===== /CO-1119-44 ===== */
/* CO1119_44_TECHGRID */

/* ===== CO-1119-46 标题高亮底恢复原先长度（盖住整段文字 + 左右出头） ===== */
/* 用户：「查清楚后面的红色条子怎么缩这么短，改回原先的比例」。
   原 .mark::after 是 left:0/right:0 只贴着 span「查清楚」三个字（实测 100.5px），
   句号和左右都没盖到，视觉上像「缩短」。改为左右各出头 10px + 高度 14px，
   底纹重新覆盖整段并略微溢出，恢复原先马克笔比例。桌面/移动端一致。 */
.mark::after {
  left: -10px !important;
  right: -10px !important;
  height: 14px !important;
  bottom: 2px !important;
}
/* ===== /CO-1119-46 ===== */
/* CO1119_46_MARK_BAR_LENGTH */

/* ===== CO-1119-60 发收藏品：道具ID+类别并排，数量隐藏固定 1 ===== */
/* 用户：「道具id，道具类型，可以合并一行；数量默认1把数量输入框删了」。
   app.js 已把 item_id/item_kind 标记为同一 row、stock 标记 hidden（不渲染 DOM，
   techReadFields 回退默认值 1）。这里 ≤720px 让同组两字段并排、桌面端 display:contents 不变。 */
.tech-field-row { display: contents; }
@media (max-width: 720px) {
  #tech-fields .tech-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  #tech-fields .tech-field-row .tech-field label { height: 26px; font-size: 11px; }
  #tech-fields .tech-field-row .tech-field label i { top: 14px; font-size: 9.5px; }
  #tech-fields .tech-field-row .tech-field input,
  #tech-fields .tech-field-row .tech-field select { height: 34px; padding: 0 8px; font-size: 12px; }
}
/* ===== /CO-1119-60 ===== */
/* CO1119_60_TECH_PRESENT_ROW */

/* CO-1119-64 科技表单底部按钮居中 */
.tech-call-actions{justify-content:center;}
.tech-call-actions .tech-call-msg{flex:1 1 100%;text-align:center;}
.tech-call-actions .tech-call-msg:empty{display:none;}
/* CO1119_64_BTN_CENTER */

/* ===== CO-1119-68 小标识输入框：撑满容器宽度、内容居中（原 label 文字移到标题右侧后 input 无宽度约束会溢出） ===== */
#monthcard #mcard-badge-editor .mcard-form label { width: 100%; }
#monthcard #mcard-badge-editor .mcard-form input {
  width: 100%; box-sizing: border-box; min-width: 0; text-align: center;
}
/* CO1119_68_BADGE_INPUT_CENTER */


/* CO-1119-72：左右等宽，称号图以整行中线居中。 */
.col-name.col-name-inline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 4px;
  align-items: center;
  min-height: 26px;
}
.col-name-inline .col-art-inline {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.col-name-inline .col-art-inline img {
  display: block;
  width: 100%;
  max-width: 552px;
  height: auto;
  aspect-ratio: 552 / 72;
  object-fit: contain;
  border-radius: 4px;
}
.col-name-inline > .tag { justify-self: start; }
.col-name-inline > .col-genre { justify-self: end; white-space: nowrap; }
/* CO1119_TROPHY_SIDE */

/* ===== CO-1119-70 小标识：输入框与「保存标识」按钮同一行（输入框弹性、按钮固定，提示文字下移） ===== */
#monthcard #mcard-badge-editor .mcard-badge-line {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
#monthcard #mcard-badge-editor .mcard-badge-line label {
  flex: 1 1 auto; width: auto; min-width: 0;
}
#monthcard #mcard-badge-editor .mcard-badge-line .btn {
  flex: 0 0 auto; width: auto; height: 38px; margin-top: 0;
  padding: 0 14px; white-space: nowrap;
}
/* CO1119_70_BADGE_ONE_LINE */

/* CO-1119-46 曲目区 2 列卡片网格（BEGIN） */
/* 用户 2026-11-19 13:28：「明明可以把新加的乐曲卡片放到中间红色这边」
   选「2 列卡片网格，按钮在下方」。
   成因：.tech-fields 是三列栅格（CO-1118-42），多曲目模式下三个平级块
   （.tech-song-list / .tech-song-add / .tech-global-fields）各占一列，
   于是曲卡只剩 1/3 宽、按钮单独占一列并被 stretch 拉成大片红色虚线框。 */
#tech-fields.is-multisong { grid-template-columns: 1fr; }        /* 三块改为上下排 */
#tech-fields.is-multisong .tech-song-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));              /* ★ 曲卡 2 列 */
  gap: 12px 14px;
  align-items: start;                                            /* 卡片不互相拉高 */
}
#tech-fields.is-multisong .tech-song-add { grid-column: 1 / -1; } /* 按钮整行、在卡下 */
#tech-fields.is-multisong .tech-global-fields { grid-column: 1 / -1; }
/* 2 列卡宽比原来单列更窄的字段每行 3 个太挤 ⇒ 卡内字段降 2 列 */
#tech-fields.is-multisong .tech-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) {
  #tech-fields.is-multisong .tech-song-list { grid-template-columns: 1fr; }
  #tech-fields.is-multisong .tech-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* CO-1119-46 曲目区 2 列卡片网格（END） */

/* ===== CO-1119-93 乐曲详情弹窗：复用 info-plate / info-card / info-table 设计语言 ===== */
.song-modal { width: min(1080px, 96vw); }
.song-modal .modal-body.sm-body {
  max-height: min(74vh, 780px);
  overflow-y: auto;
  padding: 0 22px 18px;
}
.sm-body .info-stack { gap: 14px; }
/*: 头卡：曲绘 + 标题 + 版本，紧凑版 info-plate */
.sm-head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(var(--glass-rgb), 0.5);
  border: 1px solid var(--border);
}
.sm-jacket { position: relative; flex: 0 0 96px; }
.sm-jacket img, .sm-jacket canvas {
  width: 96px; height: 96px; border-radius: 11px;
  border: 2px solid var(--ring); object-fit: cover; background: var(--surface-2);
}
.sm-jacket canvas { display: none; image-rendering: pixelated; }
.sm-info { flex: 1; min-width: 0; }
.sm-info h3 {
  margin: 0; font: 700 22px/1.25 var(--font-head); color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sm-info .sm-artist { margin: 4px 0 0; color: var(--ink-2); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sm-tools { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: 0 0 auto; }
.sm-tools .btn { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.sm-pixel-line { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.sm-pixel-line input[type="range"] { width: 62px; }

/*: 判定扣分表：与官方 DX NET 成绩详情同款（行=音符，列=物量/PERFECT/GREAT/GOOD/MISS） */
.sm-judge { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sm-judge th, .sm-judge td { padding: 7px 6px; text-align: center; white-space: nowrap; }
.sm-judge th { color: var(--faint); font-size: 11px; font-weight: 600; }
.sm-judge th.j-perfect { color: #c98f00; }
.sm-judge th.j-great { color: #d42a32; }
.sm-judge th.j-good { color: #4a9e2a; }
.sm-judge th.j-miss { color: #8e8e99; }
.sm-judge td:first-child, .sm-judge th:first-child { text-align: left; padding-left: 10px; }
.sm-judge tbody tr { border-top: 1px solid var(--line); }
.sm-judge .jr-name { color: var(--ink); font-weight: 600; }
.sm-judge .jr-num { color: var(--ink-2); }
.sm-judge .jr-loss { color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-judge .jr-zero { color: var(--faint); }
.sm-judge tr.is-total td { border-bottom: 1.5px solid var(--border-strong); }
.sm-judge .jr-sub { display: block; font-size: 11px; color: var(--faint); }
.sm-diff-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sm-diff-tab {
  height: 30px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--ink-2); font: 600 12.5px/1 var(--font-body);
}
/* ★ CO-1119-98：选中色改成**对应难度色**（按钮上带 --diff-c / --diff-soft / --diff-ink）。
   未带变量的（老数据 / 难度越界）回退粉色，保持原观感。 */
.sm-diff-tab.on {
  border-color: var(--diff-c, var(--pink));
  background: var(--diff-soft, #ffeef6);
  color: var(--diff-ink, var(--pink-dk, #c2185b));
}
/* 悬停：未选中的给一点难度色暗示（边框淡染），已选中的加深，避免"点了没反应"的错觉 */
.sm-diff-tab:not(.on):hover {
  border-color: color-mix(in srgb, var(--diff-c, var(--pink)) 55%, transparent);
  color: var(--diff-c, var(--pink-dk, #c2185b));
}

/*: 我的记录 */
/*: 7 格等宽网格：flex-wrap 会让 FC/SYNC 被挤到第二行且宽度不齐（实测 720px 下 4+3 错位），
   改 grid 固定 4 列，7 格正好 4+3 且列宽一致。 */
.sm-mine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sm-mine-cell {
  min-width: 0; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
}
.sm-mine-cell span { display: block; color: var(--faint); font-size: 11px; }
.sm-mine-cell b { display: block; margin-top: 3px; color: var(--ink); font: 700 15px/1.2 var(--font-body); }
.sm-mine-empty { color: var(--muted); font-size: 13px; }

/*: 群排行 */
/*: ★ CO-1119-124（用户 16:04「三个按钮居中」）：
   `.sm-rank-bar` 里有两个子元素：按钮组 `.sm-sort-tabs` + 群聊 `<select>`。
   ★ 只写 `justify-content:center` **不够** —— 那样是把「按钮组+下拉」整体居中，
     按钮组因为右边还压着下拉框，视觉中心会偏左，不是用户要的「三个按钮居中」。
   所以让按钮组**独占一行并真正居中**，群聊下拉挪到下一行居中：
     .sm-sort-tabs { width:100%; justify-content:center }
   这样按钮组的几何中心 = 卡片中轴，才是真正的居中。 */
.sm-rank-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 10px; margin-bottom: 10px;
  flex-direction: column;   /* 按钮组一行、下拉一行，各自居中 */
}
.sm-sort-tabs {
  display: inline-flex; gap: 6px;
  justify-content: center;  /* 三颗按钮在组内居中 */
  width: 100%;
}
/*: ★ CO-1119-107 排行依据切换（达成率 / DX 分 / PC 数），风格对齐 .sm-diff-tab */
.sm-sort-tab {
  height: 30px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-2);
  color: var(--ink-2); font: 600 12.5px/1 var(--font-body);
}
.sm-sort-tab.on { border-color: var(--pink); background: #ffeef6; color: var(--pink-dk, #c2185b); }
/*: 当前排序依据那一列高亮 */
.sm-rank-list th.is-sort { color: var(--pink-dk, #c2185b); }
.sm-rank-list td.is-sort { color: var(--ink); font-weight: 700; }
.sm-rank-bar select {
  height: 32px; padding: 0 10px; border-radius: 9px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); font: 500 13px/1 var(--font-body);
  max-width: 100%;
  /*: 与按钮组同轴居中（父容器已是 column，这里只需自身不拉伸） */
  align-self: center;
}
.sm-rank-list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sm-rank-list th, .sm-rank-list td { padding: 7px 6px; text-align: center; white-space: nowrap; }
.sm-rank-list th { color: var(--faint); font-size: 11px; font-weight: 600; }
.sm-rank-list tbody tr { border-top: 1px solid var(--line); }
/*: ★ CO-1119-102（用户「黑夜模式下自己高亮直接变白」）：原来硬编码 #fff5fa
   浅粉底，暗色模式不跟着翻 → 夜里成了刺眼白条。改走 --pink-soft
   （浅色 #fff0f6 / 暗色 rgba(255,61,127,.16)），两套主题都协调。 */
.sm-rank-list tr.is-me { background: var(--pink-soft); }
.sm-rank-list .rk-name { text-align: left; max-width: 190px; overflow: hidden;
  text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.sm-rank-list .rk-no { color: var(--faint); font-variant-numeric: tabular-nums; }
.sm-rank-list .rk-no.top1 { color: #e0a800; font-weight: 700; }
.sm-rank-list .rk-no.top2 { color: #9099a8; font-weight: 700; }
.sm-rank-list .rk-no.top3 { color: #c08050; font-weight: 700; }
/*: ★ CO-1119-109 排行榜图标（评价 256×120、FC/SYNC 80×80） */
.rk-cell-ach { white-space: nowrap; }
.rk-ach { margin-right: 7px; vertical-align: middle; }
/*: ★ CO-1119-110（用户口径「我要的是b50上面那种例如sss+的图标」）：
   素材本就是 B50 同一套（`pic/prism_plus/UI_TTR_Rank_*`，256×120）；
   之前 height:17px 只剩约 36×17，SSS+ 花纹糊成色块。
   现对齐 B50 的 `resize((58, 26), LANCZOS)` 口径。 */
.rk-ic-rate {
  width: 58px; height: 26px; object-fit: contain;
  vertical-align: middle; display: inline-block;
}
.rk-cell-icon { white-space: nowrap; }
/*: ★ CO-1119-114 DX/PC 这类纯数字列，等宽数字保证上下对齐 */
.rk-cell-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.rk-ic-fc {
  width: 19px; height: 19px; vertical-align: middle;
  display: inline-block; margin: 0 1px;
}
.rk-none { color: var(--faint); }
.sm-rank-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
@media (max-width: 760px) {
  .sm-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /*: 窄屏评价图 48×22、FC/SYNC 17px，保持比例并避免 7 列表格撑爆 */
  .rk-ic-rate { width: 48px; height: 22px; }
  .rk-ic-fc { width: 17px; height: 17px; }
  .song-modal .modal-body.sm-body { padding: 0 12px 14px; }
  .sm-head { flex-wrap: wrap; gap: 12px; }
  .sm-jacket { flex: 0 0 76px; }
  .sm-jacket img, .sm-jacket canvas { width: 76px; height: 76px; }
  .sm-tools { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .sm-judge, .sm-rank-list { font-size: 11.5px; }
  .sm-judge th, .sm-judge td, .sm-rank-list th, .sm-rank-list td { padding: 6px 3px; }
}
/* CO1119_93_SONG_MODAL */
/* ===== CO-1119-100 乐曲详情：状态图标 / 我的记录并入 / 工具卡置底 / 消除左右留白 ===== */
/*: 用户「左右两边有这么大空白」根因：`.modal-body` 是 `display:grid; place-items:center`，
    内容按固有宽度居中而非撑满。song-modal 里改成 block，让 info-stack 铺满整宽。 */
.song-modal .modal-body.sm-body { display: block; }
.song-modal .modal-body.sm-body > .info-stack { width: 100%; }

/*: 状态图标（评级 / FC / SYNC / DX 星） */
.sm-ic { height: 18px; width: auto; vertical-align: -3px; }
.sm-ic-star { height: 16px; width: auto; min-width: 15px; }
.sm-stars { gap: 0; }
.sm-stars { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; }

/*: 我的记录：从独立卡片改成谱面详情内的分区 */
.sm-sub-sec {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.sm-sub-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px;
}
.sm-sub-head h5 {
  margin: 0; color: var(--ink); font: 700 13px/1.3 var(--font-head);
}
.sm-sub-head em {
  color: var(--faint); font: 400 11px/1 var(--font-body); font-style: normal;
}

/*: 我的记录格：五格自适应（原 4 列固定，删格后现在 5 格） */
.sm-mine { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.sm-mine-cell > span { display: block; }
.sm-mine-row {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px;
}
.sm-mine-row > b {
  margin-top: 0; font: 700 15px/1.2 var(--font-body); color: var(--ink);
}
/*: FC · SYNC 并排的「图标 + 文字」 */
.sm-mine-icongrp em {
  display: inline-flex; align-items: center; gap: 3px; font-style: normal;
  color: var(--ink-2); font: 700 12px/1 var(--font-body);
}
.sm-mine-icongrp em i { font-style: normal; }
.sm-mine-icongrp .sm-mine-none { color: var(--faint); font-weight: 600; }

/*: 工具卡（置底）：三样控件横排 */
.sm-tools-card .sm-tools {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.sm-tools-card .sm-tools .btn { height: 34px; padding: 0 14px; font-size: 12.5px; }
.sm-tools-card .sm-pixel-line { font-size: 12px; }

@media (max-width: 720px) {
  .sm-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-tools-card .sm-tools { flex-direction: column; align-items: stretch; }
}
/* ===== CO-1119-101 乐曲查询筛选：四组灰底下拉 + 定数双输入滑块 ===== */
/*: ★ CO-1119-115（用户 15:03）：「难度、乐曲分类和版本下移一点，和查乐曲按钮太近了」
   原来上边距只有 2px，紧贴搜索行按钮。上边距放到 18px（移动端稍紧 14px），
   让下拉组和「查乐曲」按钮之间有清晰呼吸感。 */
.fq-filter { margin: 18px 0 14px; }
/*: ★ CO-1119-111（用户口径）：
   PC 端「难度 / 分类 / 版本」三项同排一行（3 列），定数筛选占满下一整行；
   ≤720px 也让三项挤在同一行（三列不折行），定数同样占整行。 */
.fq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
/*: 定数筛选：占满整行（PC 与移动端一致） */
.fq-ds-inline { grid-column: 1 / -1; }
.fq-field { display: block; }
.fq-label {
  display: block; margin-bottom: 6px;
  color: var(--ink-2); font: 600 12.5px/1.4 var(--font-body);
}
.fq-label i {
  color: var(--faint); font: 400 11px/1 var(--font-body); font-style: normal;
  margin-left: 6px;
}
.fq-select {
  width: 100%; height: 44px; padding: 0 38px 0 14px;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: 500 13.5px/1 var(--font-body); cursor: pointer;
  appearance: none;
  /*: 右侧双箭头（上下）提示「可展开」，与截图一致 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b93a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='7 10 12 5 17 10'/><polyline points='7 14 12 19 17 14'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.fq-select:hover { background-color: #eef0f6; }
/*: ★ CO-1119-120 曲师/谱师用输入框：复用 .fq-select 外观，但去掉右侧下拉箭头 */
.fq-input {
  background-image: none;
  padding-right: 14px;
  cursor: text;
}
.fq-input::placeholder { color: var(--faint); font-weight: 400; }
/*: 清空筛选按钮：与输入行同高 */
.fq-reset { height: 44px; padding: 0 16px; border-radius: 12px; }
.fq-select:focus-visible {
  outline: none; border-color: var(--pink);
  background-color: var(--surface);
}
.fq-select:disabled { color: var(--faint); cursor: not-allowed; opacity: .75; }
.fq-field-off .fq-label { color: var(--faint); }

/*: 定数区间（CO-1119-111 起并进 `.fq-grid`，`.fq-ds` 保留兼容） */
.fq-ds { margin-top: 16px; }
/*: ★ CO-1119-111「铺面定数筛选的定数填入那行要居中」：输入框整组水平居中 */
.fq-ds-inline .fq-ds-row { flex-wrap: wrap; justify-content: center; }
.fq-ds-inline .fq-label { text-align: center; }
.fq-ds-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.fq-num {
  height: 44px; width: 118px; padding: 0 12px;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: 600 13.5px/1 var(--font-body); text-align: center;
}
.fq-num:focus-visible { outline: none; border-color: var(--pink); background: var(--surface); }
.fq-num-wide { width: 150px; text-align: left; cursor: pointer; }
.fq-tilde { color: var(--muted); font-size: 14px; }

/*: 双端滑块：两条 range 叠在同一轨道上，只让拇指可点 */
.fq-range {
  position: relative; margin-top: 18px; padding-bottom: 26px;
  height: 26px;
}
.fq-track {
  position: absolute; left: 0; right: 0; top: 9px; height: 6px;
  border-radius: 999px; background: #dfe3ec;
}
.fq-fill {
  position: absolute; top: 0; height: 100%;
  border-radius: 999px; background: var(--pink);
  left: 0; width: 100%;
}
.fq-range input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 26px;
  margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.fq-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--pink);
  box-shadow: 0 2px 6px rgba(22,26,40,.18);
  pointer-events: auto; cursor: grab;
}
.fq-range input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--pink);
  box-shadow: 0 2px 6px rgba(22,26,40,.18);
  pointer-events: auto; cursor: grab;
}
.fq-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.fq-ticks {
  position: absolute; left: 0; right: 0; top: 26px;
  display: flex; justify-content: space-between;
  color: var(--faint); font: 400 12px/1 var(--font-body);
}
.fq-ticks span { transform: translateX(-50%); }
.fq-ticks span:first-child { transform: none; }
.fq-ticks span:last-child { transform: translateX(-100%); }

@media (max-width: 720px) {
  /*: ★ CO-1119-111「移动端选择难度，乐曲分类，版本合并到同一行」：
     三列不折行；标签与下拉都缩一档，避免文字溢出。 */
  .fq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fq-label { font-size: 11px; margin-bottom: 5px; }
  /*: 收紧左右内边距，把宽度全留给文字；字号略降但保持可读 */
  /*: 390px 下三列每列仅 ~118px，版本名仍会被截；
     进一步压字号与内边距，箭头贴最右。 */
  .fq-select { height: 36px; padding: 0 14px 0 5px; font-size: 11px;
    background-position: right 2px center; background-size: 9px 9px;
    letter-spacing: -.3px; }
  .fq-num { width: 84px; height: 38px; font-size: 12.5px; }
  .fq-num-wide { width: 104px; }
  .fq-ds-inline .fq-ds-row { gap: 6px; }
}
/* ===== CO-1119-102 移动端侧边弹出目录（≤760px；PC 端不生效） ===== */
/*: 汉堡按钮 / 遮罩 / 抽屉默认全部不显示（PC 端走原来的横向 nav） */
.nav-burger,
.nav-scrim,
.nav-drawer { display: none; }

@media (max-width: 760px) {
  /*: 长条导航收起来 */
  .nav-inner { display: none; }

  /*: 汉堡按钮：圆形玻璃感，贴在导航条原位置 */
  /*: ★ CO-1119-115 性能修复：汉堡按钮原本带 `backdrop-filter: blur(18px)`。
      它挂在 `.nav`（`position: sticky`）里 —— sticky 元素在滚动时**每帧**都要
      重新合成，模糊层会让每一次滚动都重算一次 18px 高斯卷积，这是"移动端
      点目录一直卡"的体感来源之一（不只是点那一下，是旁边滚一下也卡）。
      底色本来已经是 0.86 不透明的玻璃色，去掉 blur 视觉几乎无差别。 */
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 4px; width: 46px; height: 46px; padding: 0 12px;
    border: 2px solid var(--border); border-radius: 14px;
    background: rgba(var(--glass-rgb), 0.94);
    box-shadow: 0 8px 18px rgba(86, 70, 130, 0.14);
    cursor: pointer;
    /*: 点击反馈走合成层，不触发 layout */
    transition: transform .12s ease;
    touch-action: manipulation;
  }
  .nav-burger:active { transform: scale(.94); }
  .nav-burger-bar {
    display: block; height: 2px; width: 100%;
    border-radius: 2px; background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav-burger.is-open .nav-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.is-open .nav-burger-bar:nth-child(2) { opacity: 0; }
  .nav-burger.is-open .nav-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* 保留抽屉布局，开合时只切换可见性、位移和透明度。 */
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(22, 26, 40, 0.46);
    opacity: 0; visibility: hidden; pointer-events: none;
    touch-action: none;
    transition: opacity .14s linear, visibility 0s .14s;
  }
  .nav-scrim.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    width: min(76vw, 300px);
    background: var(--surface);
    border-right: 2px solid var(--border);
    box-shadow: 8px 0 16px rgba(22, 26, 40, 0.14);
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .14s ease-out, visibility 0s .14s;
    contain: layout paint;
  }
  .nav-drawer.is-open {
    transform: translateX(0); visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer-head b {
    color: var(--ink); font: 700 14px/1.3 var(--font-head);
  }
  .nav-drawer-close {
    width: 32px; height: 32px; padding: 0;
    border: 1.5px solid var(--border); border-radius: 10px;
    background: transparent; color: var(--ink-2);
    font: 400 18px/1 var(--font-body); cursor: pointer;
  }
  .nav-drawer-close:hover { border-color: var(--pink); color: var(--pink-dk); }

  .nav-drawer-body {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 10px; display: flex; flex-direction: column; gap: 2px;
    overscroll-behavior: contain;
  }
  /*: 抽屉里的链接：整行左对齐，比长条里更宽更好点 */
  .nav-drawer-body .nav-link {
    width: 100%; height: 44px; justify-content: flex-start;
    padding: 0 14px; border-radius: 12px; font-size: 14px;
  }
  .nav-drawer-body .nav-link.is-active {
    background: var(--pink-soft); color: var(--pink-dk);
  }
  /*: 抽屉里隐藏的分组（群聊管理 / 科技）保持 hidden 语义 */
  .nav-drawer-body .nav-link[hidden] { display: none; }

  /*: ★ CO-1119-125 抽屉分组：标题 + 缩进，视觉层级一眼可辨 */
  .nav-group { display: flex; flex-direction: column; gap: 2px; }
  .nav-group + .nav-group { margin-top: 10px; }
  .nav-group-title {
    margin: 4px 0 4px; padding: 0 14px;
    color: var(--faint); font: 700 11px/1.6 var(--font-body);
    letter-spacing: .6px;
  }
  /*: 分组内链接左边留出缩进，和标题形成层级 */
  .nav-drawer-body .nav-link.nav-group-link { padding-left: 14px; }
  /*: 组内若全被 hidden（未登录的群聊管理），整组不占位 */
  .nav-group:has(> .nav-link:not([hidden])) { display: flex; }
  .nav-group:not(:has(> .nav-link:not([hidden]))) { display: none; }
}

/* ===== CO-1119-110 我的记录：图标与文字不再挤成一团 ===== */
/*: 用户 14:57「全部挤到一起了，优化一下」——
    根因：`rateBadge()` 产出的评级图是 256×120 的**宽条**，在本来就窄的
    「达成率」格里和 100.9800% 这个数字挤在同一行，图被 flex 压扁、
    数字也被推到图上去，视觉上糊成一坨。
    改法：达成率格内**上下两行**（数字一行、徽章一行），徽章给固定框尺寸
    并 `object-fit: contain`，不再随文字抢宽度。 */
.sm-mine { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.sm-mine-row { gap: 6px; }
.sm-mine-badge {
  display: inline-flex; align-items: center; flex: 0 0 auto;
}
.sm-mine-badge .rk-ic-rate {
  width: 62px; height: 26px; object-fit: contain; vertical-align: middle;
}
/*: 达成率格单独放宽，让「100.9800%」和徽章都有位置 */
.sm-mine-ach { min-width: 0; }
.sm-mine-ach .sm-mine-row {
  flex-direction: column; align-items: flex-start; gap: 3px;
}
.sm-mine-ach .sm-mine-row > b { line-height: 1.1; }
/*: FC · SYNC 两个图标各自成组，不要互相贴死 */
.sm-mine-icongrp .sm-mine-row { gap: 10px; }
.sm-mine-icongrp em { gap: 4px; }
/*: ★ CO-1119-122（用户 15:50「combo和sync图标可以放大一点」）：28px → 34px。
   FC·SYNC 已去掉文字，图标是唯一表意载体，放大后一眼可辨。 */
.sm-mine-icongrp .rk-ic-fc { width: 34px; height: 34px; }
/*: DX 分格：分数与星星上下排，避免星星被挤到数字里。
    ★ 同行格子要等高（`align-items: stretch` + 卡片内 top 对齐），
      所以这里不靠 flex-direction 撑高，而是给星级行固定 16px 行高。 */
.sm-mine-dx .sm-mine-row {
  flex-direction: column; align-items: flex-start; gap: 3px;
}
/*: ★ 星星必须**横排** —— `.sm-mine-dx .sm-mine-row` 是 column，
    子元素 `.sm-stars` 自身是 inline-flex，但会被父的 column 影响成竖排一列。
    显式 flex-direction:row 钉死。 */
/*: ★ CO-1119-121：星星已移到分数**前面**，间距也要跟着改方向 */
/*: ★ CO-1119-122：容器高度必须跟图同步（22 → 17），
   否则 inline-flex 的 22px 行高会让 17px 的图在垂直方向留偏心空档。 */
.sm-mine-dx .sm-stars {
  margin-left: 0; margin-right: 3px; height: 17px;
  display: inline-flex; flex-direction: row; align-items: center; gap: 0;
}
/*: ★ CO-1119-121：DX 星级用 b50 同款多星素材（已裁掉留白的 dxstar_N.png）
   各星级裁切后宽高比不同（1★ 80×76 / 2★ 144×76 / 3★ 144×116 / 4★ 180×116
   / 5★ 228×128），所以**必须 width:auto 按高度等比**，绝不能定死宽度，
   否则星数多的会被压扁。
   ★ 高度给到 22px：五颗星在移动端也能逐颗数清（15px 时全糊成一团）。
   ★ 星星在分数**前面**（用户 15:44），所以去掉原来的 margin-left。 */
/*: ★ CO-1119-122（用户 15:50「dx星图标可以放小一点」）：22px → 17px。
   17px 下 5 颗星仍能逐颗分辨（素材已裁白边，星体占比高），
   同时不会把「DX 分」这一格撑得比别人高。 */
.sm-mine-dx .sm-ic-star {
  height: 17px; width: auto; min-width: 0;
  image-rendering: -webkit-optimize-contrast;
}
/*: 五格等高：容器 stretch + 每格内容顶对齐，避免「DX 分」比别人高一头 */
.sm-mine { align-items: stretch; }
.sm-mine-cell { justify-content: flex-start; }

@media (max-width: 760px) {
  .sm-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-mine-badge .rk-ic-rate { width: 54px; height: 23px; }
}

/*: ★ CO-1119-115：移动端搜索行按钮独占一行时，下拉组再往下让一点，
   避免「查乐曲」按钮和第一个下拉贴边。 */
@media (max-width: 760px) {
  .fq-filter { margin-top: 16px; }
  .fq-grid { gap: 12px 10px; }
}

/* ===== CO-1119-117 移动端整体卡顿根治（用户 15:09「为什么还是这么卡」）=====
   ★ 上一轮（CO-1119-115）只清了抽屉自身，卡顿照旧 —— 因为真正的大头在
     **页面本体**。实测（414px）：文档高 8875px、DOM 1504 节点、视口内 1080 节点、
     **27 个仍在生效的 backdrop-filter**，其中：
        .fcard     453×257  ×9 张   blur(22px)
        .wall-grid 453×438         blur(22px)
        .mast-plate 453×193        blur(22px)
     backdrop-filter 是**每个元素每帧**对「它背后那块区域」重新做一次高斯卷积。
     27 个 22px 的大块模糊叠加，移动端 GPU 直接跪 —— 表现就是整页滚动卡、
     点任何按钮都像延迟半秒才响应（主线程被合成器拖住）。

   修法：**移动端把玻璃换成实色**（PC 端不动，宽屏 GPU 扛得住，玻璃质感保留）。
   玻璃的视觉本质是「半透 + 模糊背景」，在移动端背景本来就简单，把不透明度
   提到 0.94 后用纯色顶替，肉眼几乎看不出差别，但渲染开销从 27 次卷积降到 0。
   ===================================================================== */
@media (max-width: 900px) {
  /*: ★ CO-1119 修正：原块无条件把 --glass-rgb 设成 255,255,255（白色），
     在暗色模式下也命中 ⇒ 手机暗色所有玻璃卡片变白、深色文字看不见。
     改为跟随主题：亮色白实底 / 暗色深实底（见文件末尾两个带 prefers-color-scheme 的块）。 */

  /*: ★ 移动端**一律**关掉 backdrop-filter。
     不逐个点名的原因：第一版只点了 fcard/wall-grid/mast-plate 等 7 个类，
     实测还剩 10 个在生效 —— 最大的漏网是 `.query-shell`（453×734，页面主体
     容器、常驻视口），它一个就顶得上九张卡片。既然底色已提到 0.94 不透明、
     模糊本来就看不出来，不如全关，不会再有漏。
     选择器匹配成本可忽略（1504 节点），换来的是移动端零模糊开销。 */
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /*: box-shadow 也是移动端重绘大户（全页 99 个）。卡片阴影收浅一档，
     视觉上几乎无变化，但滚动时重绘面积小很多。 */
  .fcard,
  .wall-grid,
  .mast-plate {
    box-shadow: 0 4px 10px rgba(86, 70, 130, 0.10);
  }

  /*: 首屏之下的区块做**渲染跳过**：不在视口内就不排版/绘制，
     滚到附近才渲染。8875px 长页这一条最省 —— 首屏实际只需处理 1/6 的内容。
     只对 `.section`（真实存在的区块容器）生效，且排除 `#query`（首屏就要用）
     和 `#features`（首屏可见）。
     contain-intrinsic-size 给个估计高度，避免滚动条跳动。 */
  #me,
  #commands,
  #about,
  #console,
  #tech,
  #groupadmin {
    content-visibility: auto;
    contain-intrinsic-size: auto 1400px;
  }
}

/*: 极度弱机/省电模式下再降一档：连 hover 位移都取消（移动端本来就无 hover）。 */
@media (max-width: 900px) and (hover: none) {
  .fcard:hover { transform: none; }
  .fcard { transition: none; }
}

/* ===== CO-1119-123 移动端性能总攻（≤760px；PC 端零影响） =====
   用户连续反馈「还是好卡」。前三次只改单点（动画→锁滚动→模糊）都没解决，
   这次把移动端所有重渲染开销一次性移除。

   为什么 backdrop-filter 是重点：全页 49 处模糊，其中 `.glass` 是通用类，
   `.mast-plate` / `.nav-inner` / `.hero-search` 还是 sticky/fixed——
   这类元素在**滚动和动画的每一帧**都要重算高斯卷积。中低端手机上
   单这一项就足以让 60fps 掉到 20fps 以下。
   改用高不透明度纯色替代：颜色仍是原来的玻璃色，只是没有「透出后面内容」的模糊，
   视觉差异很小，代价几乎为零。 */
@media (max-width: 760px) {
  /*: ① 全部干掉 backdrop-filter（含 -webkit- 前缀） */
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /*: ② 玻璃类元素改成不透明纯色，补回失去的层次感 */
  .glass,
  .mast-plate,
  .nav-inner,
  .hero-search,
  .wall-grid,
  .fcard,
  .query-shell,
  .info-plate,
  .info-card,
  .nav-burger {
    background-color: rgba(var(--glass-rgb, 255 255 255), 0.97) !important;
  }

  /*: ③ 重阴影降级：移动端大范围 box-shadow 也吃合成时间 */
  .glass,
  .fcard,
  .info-card,
  .info-plate,
  .query-shell,
  .cover-card,
  .col-card,
  .sm-rank-list {
    box-shadow: 0 2px 8px rgba(86, 70, 130, 0.07) !important;
  }

  /*: ④ 屏外容器跳过布局与绘制 —— 本页高 9470px，这是收益最大的一项 */
  .panel:not(.is-active),
  .cover-grid > *:nth-child(n+7),
  #panel-collectibles .col-list > *:nth-child(n+7) {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }


}

/* ===== CO-1119-127 群排行榜 DX 列：星级图标 + 分数 =====
   用户 16:14「dx分的群聊排行榜需要带上dx星数的图标，参考我的记录」
   复用「我的记录」的 dxStarIcons()，这里只负责表格内的尺寸与对齐。
   ★ 表格单元格是 `white-space: nowrap` 且行高仅 ~26px（padding 7px 6px），
     星星必须比「我的记录」里（17px）再小一档，否则会把整行撑高、表格变得松散。 */
.sm-rank-list .rk-dx-stars {
  display: inline-flex; flex-direction: row; align-items: center;
  gap: 0; margin-right: 4px; vertical-align: middle;
}
.sm-rank-list .rk-dx-stars .sm-ic-star {
  height: 13px; width: auto; min-width: 0;
  image-rendering: -webkit-optimize-contrast;
}
.sm-rank-list .rk-dx-num { vertical-align: middle; }

@media (max-width: 760px) {
  /*: 移动端表格更窄，星星再收一档，优先保证分数不被挤掉 */
  .sm-rank-list .rk-dx-stars .sm-ic-star { height: 12px; }
  .sm-rank-list .rk-dx-stars { margin-right: 3px; }
}


/* ===== CO-1119 修正：移动端「玻璃换实色」按主题分家（原白值覆盖了暗色） ===== */
@media (max-width: 900px) and (prefers-color-scheme: light) {
  :root {
    --glass-rgb: 255, 255, 255;
    --glass: rgba(255, 255, 255, 0.94);
    --frost: rgba(255, 255, 255, 0.93);
  }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  :root {
    --glass-rgb: 27, 32, 44;
    --glass: rgba(27, 32, 44, 0.96);
    --frost: rgba(27, 32, 44, 0.95);
  }
}
/* CO1119_DARK_GLASS_FIX */

/* ===== CO-1201-82 月卡支付方式卡片化排版 ===== */
.mcard-checkout .pay-method {
  margin-top: 12px;
  padding: 12px 14px 13px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.mcard-checkout .pay-method-alipay {
  border-color: rgba(255, 61, 127, 0.42);
  background: linear-gradient(180deg, rgba(255, 61, 127, 0.06), transparent 62%), var(--surface);
}
.mcard-checkout .pay-method-wx { opacity: 0.78; }
.mcard-checkout .pay-method-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  margin-bottom: 9px;
}
.mcard-checkout .pay-method-name {
  font: 700 14px/1.3 var(--font-body); color: var(--ink);
}
.mcard-checkout .pay-method-tag {
  font-size: 11px; color: var(--muted); line-height: 1.4;
}
.mcard-checkout .pay-method .btn { width: 100%; margin-top: 0; }
.mcard-checkout .pay-method-wx .btn { height: 38px; font-size: 13px; }
.mcard-checkout .pay-badge-reco,
.mcard-checkout .pay-badge-alt {
  display: inline-block; margin-left: 4px; padding: 1px 7px;
  border-radius: 999px; font: 600 10px/1.6 var(--font-body);
  font-style: normal; vertical-align: 1px;
}
.mcard-checkout .pay-badge-reco {
  color: #fff; background: var(--pink);
}
.mcard-checkout .pay-badge-alt {
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border-strong);
}

/* 乐曲查询筛选区：用户要求只保留筛选框，不再显示「难度 / 乐曲分类 / 版本 / 游戏 / 曲师 / 谱师」标题 */
#cover-filter .fq-label { display: none; }
