/* ============================================================
   OW守望小助手 Web 版 — 全站样式
   移动优先，≥1024px 桌面布局（侧边栏），暗色主题跟随系统/手动切换
   ============================================================ */

:root {
  --bg: #f4f5fa;
  --bg-card: #ffffff;
  --bg-soft: #eef0f6;
  --bg-hover: #e8ebf3;
  --text: #1c1f26;
  --text-2: #5b6270;
  --text-3: #9097a5;
  --line: #e4e7ee;
  --brand: #f97316;
  --brand-2: #facc15;
  --accent: #3b82f6;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --radius: 14px;
  --topbar-h: 60px;

  /* ── 按钮系统（与小程序 styles/action-buttons.wxss 同一套角色）──
     primary 橙红渐变 + 白字 + 橙晕；secondary 橙软底 + 橙字；
     danger 红软底 + 红字（不是实心红，避免整块红压过页面）。
     尺寸统一 38px 高 / 10px 圆角，与表单控件基线同高。 */
  --btn-h: 38px;
  --btn-h-sm: 30px;
  --btn-h-lg: 44px;
  --btn-radius: 10px;
  --btn-radius-sm: 8px;
  --btn-brand-grad: linear-gradient(135deg, #ea580c, #f97316);
  --btn-brand-grad-hover: linear-gradient(135deg, #d9500a, #ea580c);
  --btn-brand-shadow: 0 4px 12px rgba(249, 115, 22, .22);
  --btn-brand-shadow-hover: 0 6px 16px rgba(249, 115, 22, .30);
  --btn-ring: 0 0 0 3px rgba(249, 115, 22, .26);
  --btn-secondary-bg: rgba(249, 115, 22, .11);
  --btn-secondary-bg-hover: rgba(249, 115, 22, .17);
  --btn-secondary-line: rgba(249, 115, 22, .20);
  --btn-secondary-line-hover: rgba(249, 115, 22, .34);
  --btn-secondary-fg: #ea580c;
  --btn-danger-bg: rgba(239, 68, 68, .10);
  --btn-danger-bg-hover: rgba(239, 68, 68, .17);
  --btn-danger-line: rgba(239, 68, 68, .20);
  --btn-danger-line-hover: rgba(239, 68, 68, .34);
  --btn-danger-fg: var(--err);
}
html[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-card: #17172a;
  --bg-soft: #1d1d33;
  --bg-hover: #232341;
  --text: #eceef4;
  --text-2: #a6adc0;
  --text-3: #6f7690;
  --line: #26263f;
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .3);
  /* 暗色下软底要更实一点、文字要提亮，否则红/橙在深底上发灰 */
  --btn-secondary-bg: rgba(249, 115, 22, .16);
  --btn-secondary-bg-hover: rgba(249, 115, 22, .24);
  --btn-secondary-line: rgba(249, 115, 22, .30);
  --btn-secondary-line-hover: rgba(249, 115, 22, .46);
  --btn-secondary-fg: #fb923c;
  --btn-danger-bg: rgba(239, 68, 68, .16);
  --btn-danger-bg-hover: rgba(239, 68, 68, .24);
  --btn-danger-line: rgba(239, 68, 68, .28);
  --btn-danger-line-hover: rgba(239, 68, 68, .44);
  --btn-danger-fg: #f87171;
  --btn-brand-shadow: 0 4px 14px rgba(249, 115, 22, .28);
  --btn-brand-shadow-hover: 0 6px 18px rgba(249, 115, 22, .36);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── 键盘焦点基线 ─────────────────────────────
   浏览器默认的 :focus-visible 用的是 -webkit-focus-ring-color，它跟随系统
   强调色（Windows 强调色设成红/粉时，按钮边缘会冒出一圈红框，点完按钮
   还留着——就是「有时候边缘变红」的来源）。这里统一成品牌橙。
   具体组件（.btn / .icon-btn / .chip / 输入框）用更高优先级各自覆盖。 */
:focus-visible { outline: 2px solid rgba(249, 115, 22, .55); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* ── 原生控件基线 ─────────────────────────────
   裸写的 input / select / textarea 也必须跟随设计系统：
   浏览器 UA 默认的 2px inset 边框 + 方角会让搜索框、下拉框一眼“原生”。
   这里只做低优先级兜底（0,0,1），页面级 .field / .search-box / .v3-search
   等规则仍然覆盖它。 */
input, select, textarea {
  min-height: 38px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .16);
  background-color: var(--bg-card);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
/* 非文本类控件不受基线影响 */
input[type="checkbox"], input[type="radio"] {
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; transition: none;
}
input[type="range"] { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
input[type="file"], input[type="color"] { min-height: 0; padding: 0; border: 0; background: none; }
input[type="checkbox"]:focus, input[type="radio"]:focus,
input[type="range"]:focus, input[type="file"]:focus, input[type="color"]:focus {
  outline: 2px solid rgba(249, 115, 22, .4); outline-offset: 2px; box-shadow: none;
}
/* 统一的 .input 类：卡片内单独出现的输入/下拉默认占满一行 */
.input { width: 100%; max-width: 100%; }

/* ── 自定义滚动条 ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--text-3) transparent; }

/* ── 布局骨架 ─────────────────────────────── */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 12px) 14px 24px;
}

/* ── 顶栏 ─────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 16px; }
.brand-logo { width: 26px; height: 26px; object-fit: contain; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text); font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn:active { transform: scale(.96); }
.icon-btn:focus { outline: none; }
.icon-btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }
.inbox-nav-link { position: relative; color: var(--text); }
.inbox-nav-link.active { border-color: var(--brand); }
.inbox-nav-link .ui-icon { width: 19px; height: 19px; }
/* 未读角标贴在图标右上角内侧（小程序也是压在图标上），不再溢出按钮外框——
   以前 top/right:-5px 会挂在按钮边缘外面，看着像「按钮边上多了一块红」 */
.inbox-nav-badge {
  position: absolute; top: 2px; right: 1px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--err); color: #fff;
  font-size: 9.5px; line-height: 15px; text-align: center; font-weight: 700;
  pointer-events: none;
}
.avatar-link { display: inline-flex; }
.avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); font-size: 17px; }

/* ── 底部移动快捷导航 ─────────────────────── */
.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; text-align: center; padding: 7px 0 6px; font-size: 11px; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav a.active { color: var(--brand); }
.bottom-nav .bn-icon { font-size: 19px; }

.app-footer {
  max-width: 1080px; margin: 0 auto; padding: 18px 14px calc(74px + env(safe-area-inset-bottom));
  color: var(--text-3); font-size: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.footer-divider { height: 1px; background: var(--line); margin-bottom: 12px; align-self: stretch; }
.footer-ver { color: var(--text-3); margin-left: 6px; }
.footer-disclaimer { margin-top: 4px; }
.footer-qr { margin-top: 10px; display: inline-block; }
.footer-qr-label { font-size: 12px; color: var(--text-3); cursor: pointer; border-bottom: 1px dashed var(--text-3); }
.footer-beian { margin-top: 8px; font-size: 12px; }
.footer-beian a { color: var(--text-3); text-decoration: none; }
.footer-beian a:hover { color: var(--text-2); }
.footer-beian-sep { margin: 0 8px; opacity: 0.4; }
.gongan-icon { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }

/* ≥1024px：正文全宽居中，顶部二级导航常驻（见 shell.css） */
@media (min-width: 1024px) {
  .main-content { max-width: 1080px; padding-left: 24px; padding-right: 24px; }
  .app-footer { width: 100%; max-width: 1080px; padding-bottom: 28px; }
  .bottom-nav { display: none; }
}

/* ── 卡片 / 区块 ──────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.section-header { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.section-accent { width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.section-title { font-size: 17px; font-weight: 700; }
.section-count { color: var(--text-3); font-size: 12px; margin-left: auto; }
.patch-mode-badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 2px 7px; border-radius: 999px; font-size: 11px; line-height: 18px;
  color: #9a3412; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .25);
}
.patch-mode-badge.stadium { color: #6d28d9; background: rgba(139, 92, 246, .13); border-color: rgba(139, 92, 246, .28); }
.patch-mode-badge.mixed { color: var(--text-2); background: var(--bg-soft); border-color: var(--line); }
.patch-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.page-head { margin: 4px 0 14px; }
/* 页头左侧文案 + 右侧动作入口（如英雄榜的「多服对比」） */
.page-head-split { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head-split > .btn { flex: 0 0 auto; margin-top: 2px; white-space: nowrap; }
.page-head h1 { font-size: 21px; font-weight: 800; }
.page-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* ── 按钮 ─────────────────────────────────────
   角色与小程序 styles/action-buttons.wxss 一一对应：
   .btn = 中性底 / .btn-primary = 橙红渐变 / .btn-secondary = 橙软底 /
   .btn-danger = 红软底 / .btn-ghost = 无框。
   统一：38px 高、10px 圆角、6px 图标间距、1px 透明边框（保证各变体
   换行后高度一致——以前 primary 是 border:none，比邻居矮 2px）。 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--btn-h); padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--btn-radius);
  background-color: var(--bg-card); background-image: none;
  color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  white-space: nowrap; text-align: center; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
              box-shadow .16s ease, filter .16s ease, transform .12s ease;
}
.btn:hover { background-color: var(--bg-hover); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.btn:active { transform: scale(.985); }
/* 键盘焦点只留品牌 ring，吃掉 UA 的系统色 outline */
.btn:focus { outline: none; }
.btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none;
}

.btn-primary {
  border-color: transparent;
  background-color: transparent; background-image: var(--btn-brand-grad);
  color: #fff; font-weight: 700;
  box-shadow: var(--btn-brand-shadow);
}
.btn-primary:hover {
  border-color: transparent;
  background-image: var(--btn-brand-grad-hover);
  box-shadow: var(--btn-brand-shadow-hover);
}
.btn-primary:focus-visible {
  border-color: transparent;
  box-shadow: var(--btn-brand-shadow), var(--btn-ring);
}
.btn-primary:disabled { box-shadow: none; }

.btn-secondary {
  border-color: var(--btn-secondary-line);
  background-color: var(--btn-secondary-bg); background-image: none;
  color: var(--btn-secondary-fg); font-weight: 700;
}
.btn-secondary:hover {
  border-color: var(--btn-secondary-line-hover);
  background-color: var(--btn-secondary-bg-hover);
}
.btn-secondary:focus-visible { border-color: var(--brand); box-shadow: var(--btn-ring); }

/* 危险操作走小程序的 tonal 风格：软红底 + 红字，而不是整块实心红 */
.btn-danger {
  border-color: var(--btn-danger-line);
  background-color: var(--btn-danger-bg); background-image: none;
  color: var(--btn-danger-fg); font-weight: 700;
}
.btn-danger:hover {
  border-color: var(--btn-danger-line-hover);
  background-color: var(--btn-danger-bg-hover);
}
.btn-danger:focus-visible { border-color: var(--btn-danger-line-hover); box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); }

/* 确需实心红（不可撤销的强提示）才用这个，默认别选 */
.btn-danger-solid {
  border-color: transparent; background-color: var(--err); background-image: none;
  color: #fff; font-weight: 700;
}
.btn-danger-solid:hover { border-color: transparent; background-color: #dc2626; }

.btn-ghost {
  border-color: transparent; background-color: transparent; background-image: none;
  color: var(--text-2);
}
.btn-ghost:hover { border-color: transparent; background-color: var(--bg-hover); color: var(--text); }
.btn-ghost:focus-visible { border-color: var(--brand); }

.btn-sm { min-height: var(--btn-h-sm); padding: 0 10px; border-radius: var(--btn-radius-sm); font-size: 13px; gap: 4px; }
.btn-lg { min-height: var(--btn-h-lg); padding: 0 20px; border-radius: 12px; font-size: 15px; }
.btn-block { width: 100%; }
/* 方形图标按钮（与 .btn 同族，可直接混排） */
.btn-square { width: var(--btn-h); padding: 0; }
.btn-square.btn-sm { width: var(--btn-h-sm); }


.chip {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background-color: var(--bg-card); color: var(--text-2);
  font-family: inherit; font-size: 13px; white-space: nowrap; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); color: var(--text); }
.chip:active { transform: scale(.98); }
.chip:focus { outline: none; }
.chip:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }
.chip.active { background-image: linear-gradient(135deg, #ea580c, #f97316); border-color: transparent; color: #fff; font-weight: 600; }
.chip.active:focus-visible { box-shadow: var(--btn-ring); }
.chip-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.chip-bar::-webkit-scrollbar { display: none; }
/* 英雄榜筛选条：放不下换行，不横向滚动 */
.chip-bar.chip-wrap { flex-wrap: wrap; overflow-x: visible; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.tag-soft { background: var(--bg-soft); color: var(--text-2); font-weight: 500; }
#postTags { gap: 6px; flex-wrap: wrap; }

/* ── 表单 ─────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input[type="text"], .field input[type="password"], .field input[type="number"],
.field input[type="email"], .field input[type="url"], .field input:not([type]), .field textarea, .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: 14.5px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.16);
}

.search-box { display: flex; gap: 8px; margin-bottom: 12px; }
.search-box input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text); }
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.16); }

/* ── 提示 / 状态 ──────────────────────────── */
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert-ok { background: rgba(34,197,94,.12); color: var(--ok); }
.alert-err { background: rgba(239,68,68,.12); color: var(--err); }
.alert-warn { background: rgba(245,158,11,.14); color: var(--warn); }

.empty-state, .state-wrap { text-align: center; color: var(--text-3); padding: 40px 10px; font-size: 14px; }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 14px; }

/* ── 错误页（404 / 403 / 500 / 503 / 网络异常 / 功能关闭）──────────
   统一形态：图形 + 状态行 + 标题 + 说明 + 操作 + 凭证 + 兜底入口。
   图形用内联 SVG 而非 emoji，避免跨平台字形走形；凭证只给编号与时间，
   不暴露路径与堆栈。 */
.err { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 52px 8px 60px; }
.err-art { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 22px; }
.err-art::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(249,115,22,.16), rgba(249,115,22,0) 68%);
}
.err-art .err-ring { position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed var(--line); animation: errSpin 26s linear infinite; }
.err-art .err-glyph { width: 64px; height: 64px; color: var(--brand); position: relative; }
.err-art .err-glyph svg { width: 100%; height: 100%; display: block; }
.err-art.is-warn .err-glyph { color: var(--warn); }
.err-art.is-err .err-glyph { color: var(--err); }
.err-art.is-muted .err-glyph { color: var(--text-3); }
@keyframes errSpin { to { transform: rotate(360deg); } }

.err-code { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; margin-bottom: 8px; }
.err-title { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
.err-desc { font-size: 14.5px; line-height: 1.75; color: var(--text-2); max-width: 30em; }

/* 主操作在上、次要操作在下，与小程序端按钮置顶的习惯一致 */
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.err-actions .btn { min-width: 116px; }
.err-back { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.err-back a { color: var(--text-2); text-decoration: none; border-bottom: 1px dashed var(--line); }
.err-back a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.err-back a:focus-visible { outline: none; box-shadow: var(--btn-ring); border-radius: 4px; }

.err-meta {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--text-3); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.err-meta b { font-weight: 600; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* 兜底入口：把用户留在站里，而不是直接跳出 */
.err-suggest { margin-top: 38px; width: 100%; }
.err-suggest h3 { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-bottom: 12px; letter-spacing: .04em; }
.err-suggest ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.err-suggest a {
  display: inline-flex; align-items: center; font-size: 13.5px; text-decoration: none;
  color: var(--text-2); background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.err-suggest a:hover { background: var(--bg-hover); color: var(--text); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.err-suggest a:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }

@media (max-width: 480px) {
  .err { padding: 32px 4px 44px; }
  .err-art { width: 108px; height: 108px; margin-bottom: 18px; }
  .err-art .err-glyph { width: 54px; height: 54px; }
  .err-title { font-size: 19px; }
  .err-desc { font-size: 14px; }
  .err-actions { flex-direction: column; align-items: stretch; }
  .err-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .err-art .err-ring { animation: none; } }

.loading-spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }

.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-hover) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.muted { color: var(--text-3); }
.small { font-size: 12.5px; }

/* ── Toast ────────────────────────────────── */
#toastRoot { position: fixed; top: calc(var(--topbar-h) + 12px); left: 0; right: 0; z-index: 4000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: rgba(30,30,46,.92); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; max-width: 86vw; box-shadow: var(--shadow);
  animation: toastIn .25s ease; word-break: break-all;
}
.toast.toast-err { background: rgba(190,38,38,.95); }
.toast.toast-ok { background: rgba(21,128,61,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Modal ────────────────────────────────── */
.modal-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10, 10, 20, .55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .18s ease;
}
.modal-box {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 420px; max-height: 82vh; overflow-y: auto;
  padding: 20px; animation: popIn .2s ease;
}
.modal-box.modal-lg { max-width: 620px; }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; padding-right: 30px; }
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 8px;
  border: none; background: var(--bg-soft); color: var(--text-2); font-size: 15px;
}
.modal-box { position: relative; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

/* ── 弹窗内表单 ───────────────────────────────
   订阅前「绑定提醒邮箱」（OW.emailBindFormHtml）等表单用这一套：
   说明文字压在标题下、字段标签在上、控件占满一行、行内按钮与输入框等高不换行。
   注意全局 * { margin:0 }，段落必须显式给外边距，否则会贴着标题。 */
.modal-hint { margin: 0 0 14px; color: var(--text-2); font-size: 12.5px; line-height: 1.65; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-label { color: var(--text-2); font-size: 12px; font-weight: 600; }
.modal-row { display: flex; align-items: stretch; gap: 8px; }
.modal-row > input { flex: 1 1 auto; width: auto; min-width: 0; }
.modal-row > .btn { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; white-space: nowrap; }
.modal-form input[data-code] { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }

.action-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.action-sheet-list button {
  padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-size: 14.5px;
}
.action-sheet-list button:hover { background: var(--bg-hover); }

/* ── 英雄快速筛选面板（英雄榜） ── */
.hf-group { margin-bottom: 4px; }
.hf-group-name { font-size: 12.5px; font-weight: 600; color: var(--text-3); padding: 8px 0 6px; }
.hf-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-hero {
  width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); cursor: pointer;
}
.hf-hero:hover { background: var(--bg-hover); }
.hf-hero.active { border-color: var(--accent); background: var(--bg-hover); }
.hf-hero img, .hf-hero-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.hf-hero-name { font-size: 11px; color: var(--text-2); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 24px 0; }

/* ── 首页 ─────────────────────────────────── */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 26px 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f0f1a 55%, #312e81 100%);
  color: #fff;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; }
.hero-orb-1 { width: 180px; height: 180px; background: #f97316; top: -60px; right: -30px; }
.hero-orb-2 { width: 150px; height: 150px; background: #3b82f6; bottom: -60px; left: 10%; }
.hero-orb-3 { width: 120px; height: 120px; background: #facc15; top: 20%; left: 45%; opacity: .25; }
.hero-inner { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-logo-lg { width: 58px; height: 58px; object-fit: contain; }
.hero-titles h1 { font-size: 22px; }
.hero-sub-row { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; margin-top: 2px; }
.hero-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.14); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.hero-actions { margin-left: auto; display: flex; gap: 8px; }
.hero-actions button {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10); color: #fff; font-size: 18px;
}
.hero-actions button:hover { background: rgba(255,255,255,.2); }

.season-banner, .comp-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 10px; font-size: 13.5px; cursor: pointer;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 6px rgba(34,197,94,.8); }
.banner-name { font-weight: 600; }
.banner-date { color: var(--text-3); font-size: 12.5px; }
.banner-tag { margin-left: auto; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(34,197,94,.14); color: var(--ok); font-weight: 600; }
.banner-tag.upcoming { background: rgba(59,130,246,.14); color: var(--accent); }
.banner-tag.ended { background: var(--bg-soft); color: var(--text-3); }

.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rec-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 4px 0; }
.rec-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: var(--shadow); }
.rec-name { font-size: 12px; color: var(--text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }

.tool-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow);
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.tool-card-inner { display: flex; align-items: center; gap: 12px; }
.tool-icon-box { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.tool-text { flex: 1; min-width: 0; }
.tool-name-row { display: flex; align-items: center; gap: 6px; }
.tool-name { font-weight: 700; font-size: 14.5px; }
.tool-badge { font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.tool-desc { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-arrow { color: var(--text-3); }

/* ── 比赛卡片 ─────────────────────────────── */
.match-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.match-card.live { border-color: rgba(239,68,68,.55); }
.match-card.stale { opacity: .75; }
.match-card.waiting { border-style: dashed; }
.match-row { display: flex; align-items: center; gap: 10px; }
.match-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.match-team.right { justify-content: flex-end; }
.team-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.team-logo-ph { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-soft); flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--text-3);}
.team-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-center { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 74px; }
.score { font-size: 19px; font-weight: 800; }
/* 已结束场次的胜方比分：中文习惯用红色高亮，负方弱化 */
.score-win { color: var(--err); }
.score-lose { color: var(--text-3); }
.vs-label { color: var(--text-3); font-size: 13px; font-weight: 600; }
.score-row { display: inline-flex; align-items: center; gap: 3px; }
.live-label { color: var(--err); font-weight: 800; font-size: 13px; animation: pulse 1.2s infinite; }
.waiting-label { color: var(--warn); font-weight: 700; font-size: 12px; }
@keyframes pulse { 50% { opacity: .45; } }
.match-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.region-tag { background: var(--bg-soft); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: 11px; color: var(--text-2); }
.countdown-tag { border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: 11px; background: rgba(59,130,246,.13); color: var(--accent); }
.countdown-tag.countdown-minutes { background: rgba(239,68,68,.13); color: var(--err); }
.countdown-tag.countdown-days { background: rgba(148,163,184,.16); color: var(--text-2); }
.sub-btn { border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-2); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; cursor: pointer; }
.sub-btn.subscribed { background: rgba(34,197,94,.14); color: var(--ok); border-color: transparent; }
.replay-chip { background: rgba(168,85,247,.14); color: #a855f7; border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: 11px; }

.group-head { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; margin: 18px 0 8px; }
.group-line { flex: 1; height: 1px; background: var(--line); }

/* 排名表 */
.rank-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rank-table th, .rank-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.rank-table th { color: var(--text-3); font-weight: 600; font-size: 12px; }
.rank-table td:first-child, .rank-table th:first-child { width: 40px; }
.rank-team-cell { display: flex; align-items: center; gap: 8px; text-align: left; }
.rank-team-cell img { width: 22px; height: 22px; object-fit: contain; }

/* 数据条形 */
.bar-track { background: var(--bg-soft); border-radius: 999px; height: 6px; overflow: hidden; min-width: 56px; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.delta-up { color: var(--ok); font-size: 11px; }
.delta-down { color: var(--err); font-size: 11px; }
.delta-flat { color: var(--text-3); font-size: 11px; }

/* 英雄榜表格 */
.lb-table-wrap { overflow-x: auto; }
.lb-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.lb-table th { color: var(--text-3); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.lb-table th.sorted { color: var(--brand); }
.lb-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-table tbody tr[data-trend-id] { cursor: pointer; transition: background .15s ease; }
.lb-table tbody tr[data-trend-id]:hover { background: var(--bg-hover); }
.lb-hero { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.lb-hero img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }
.hero-patch-badge {
  display: inline-flex; align-items: center; margin-left: 5px; padding: 1px 5px; border-radius: 5px;
  color: #b45309; background: rgba(250, 204, 21, .18); border: 1px solid rgba(250, 204, 21, .35);
  font-size: 10px; line-height: 16px; font-weight: 700; white-space: nowrap;
}
.hero-patch-badge.stadium { color: #6d28d9; background: rgba(139, 92, 246, .13); border-color: rgba(139, 92, 246, .28); }
.lb-num { font-weight: 600; white-space: nowrap; }
/* 手机端列太挤：去掉数据条只留数值与涨跌，并收紧到一屏放得下（不横滑） */
@media (max-width: 767px) {
  .lb-table { min-width: 0; }
  .lb-table .bar-track { display: none; }
  .lb-table th, .lb-table td { padding-left: 4px; padding-right: 4px; }
  .lb-hero { min-width: 0; gap: 6px; }
  .lb-hero img { width: 26px; height: 26px; }
}

/* ── 英雄趋势 ──────────────────────────────── */
.hero-trend-modal { max-width: 720px; }
.hero-trend-modal .modal-title { margin-bottom: 2px; }
.hero-trend-chart { height: 280px; margin-top: 4px; border-radius: 10px; background: var(--bg-soft); }
.hero-trend-chart canvas { width: 100%; height: 100%; display: block; }
.hero-trend-hint { text-align: center; margin-top: 2px; }
#heroTrendTip {
  position: absolute; top: 6px; left: 0; display: none; z-index: 2;
  max-width: 180px; padding: 4px 8px; border-radius: 6px;
  background: rgba(15,15,26,.88); color: #fff; font-size: 11px;
  pointer-events: none; white-space: nowrap;
}

/* ── Tier List（拖拽）─────────────────────── */
.tier-board { display: flex; flex-direction: column; gap: 10px; }
.tier-row {
  display: flex; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card); min-height: 86px;
  transition: outline .1s;
}
.tier-row.drag-over { outline: 2px dashed var(--brand); outline-offset: -2px; }
.tier-label-col {
  width: 84px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #1c1400; font-weight: 800; padding: 8px 4px; cursor: default;
}
.tier-label-actions { display: flex; gap: 4px; }
.tier-label-actions button { border: none; background: rgba(0,0,0,.18); color: inherit; border-radius: 6px; width: 22px; height: 20px; font-size: 11px; }
.tier-cards { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; align-content: flex-start; }
.tier-insert-marker { width: 3px; background: var(--brand); border-radius: 2px; align-self: stretch; }
.tier-item {
  width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab;
  touch-action: none; user-select: none; position: relative;
}
.tier-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); pointer-events: none; }
.tier-item span { font-size: 10.5px; color: var(--text-2); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.tier-item.selected { outline: 2px solid var(--brand); border-radius: 12px; }
.drag-ghost { position: fixed; z-index: 5000; pointer-events: none; opacity: .9; transform: translate(-50%, -50%); }
.drag-ghost img { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.pool-section { margin-top: 14px; }
.pool-cards { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.pool-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.tier-note-text { font-size: 11px; color: var(--text-3); padding: 0 10px 6px; }

/* ── 新闻 / 文案列表 ──────────────────────── */
.post-card { display: flex; gap: 12px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.post-thumb { width: 108px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
.post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-excerpt { font-size: 12.5px; color: var(--text-3); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 4px; font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-chip { background: var(--bg-soft); padding: 1px 8px; border-radius: 999px; }

.article-body { font-size: 15.5px; line-height: 1.85; word-break: break-word; }
.article-body img { border-radius: 12px; margin: 10px auto; display: block; cursor: zoom-in; }
.article-body p { margin: 10px 0; }
.article-body h1, .article-body h2, .article-body h3 { margin: 18px 0 8px; }
.article-body blockquote { border-left: 3px solid var(--brand); padding-left: 12px; color: var(--text-2); margin: 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 6px 8px; }
.article-body pre { background: var(--bg-soft); padding: 12px; border-radius: 10px; overflow-x: auto; }

#lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }

/* ── 图表（Steam）────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat-cell .num { font-size: 21px; font-weight: 800; }
.stat-cell .lbl { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.chart-canvas-wrap { width: 100%; height: 280px; position: relative; }
.chart-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

/* ── 直播 ─────────────────────────────────── */
.streamer-card { display: flex; gap: 10px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.streamer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.streamer-avatar-ph { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;}
.streamer-info { flex: 1; min-width: 0; }
.streamer-name { font-weight: 700; font-size: 14px; }
.streamer-meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.status-live { color: #fff; background: var(--err); }
.status-offline { background: var(--bg-soft); color: var(--text-3); }
.status-rotate { color: #fff; background: var(--warn); }
.group-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 2px; font-weight: 700; }
/* 整组订阅行：始终可见，不受分组折叠影响 */
.group-sub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0 8px; }
.group-sub-btn { font-weight: 700; }
.title-sub-btn { white-space: nowrap; }
/* 标题变更提示：本页只做「已订阅主播」的本地比对结果，不做服务端推送 */
.title-change-box { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--bg-card); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
.title-change-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.title-change-item { padding: 6px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.title-change-item:first-of-type { border-top: 0; }

/* ── 动图转换 ─────────────────────────────── */
.ac-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.ac-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--warn)); transition: width .18s ease; }
@media (prefers-reduced-motion: reduce) { .ac-bar-fill { transition: none; } }

/* ── 选手百科 ─────────────────────────────── */.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kv-cell { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.kv-k { font-size: 11.5px; color: var(--text-3); }
.kv-v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.hot-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-card); cursor: pointer; font-size: 13px; }
.hot-chip .team { font-size: 11px; color: var(--text-3); }
.cand-list button { width: 100%; text-align: left; margin-bottom: 6px; }

/* 滑块验证码 */
.slider-captcha { background: var(--bg-soft); border-radius: 12px; padding: 16px; text-align: center; }
.sc-track { position: relative; height: 40px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; margin-top: 14px; overflow: hidden; }
.sc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(250,204,21,.35), rgba(249,115,22,.35)); }
.sc-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; user-select: none; }
.sc-handle { position: absolute; top: 3px; left: 3px; width: 54px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, #facc15, #f97316); color: #1c1400; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: grab; touch-action: none; user-select: none; z-index: 2; }
.sc-handle.dragging { cursor: grabbing; }
.sc-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-handle.ok { background: linear-gradient(135deg, #4ade80, #22c55e); }

/* ── 活动（卡片交换）──────────────────────── */
.act-post { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.act-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.type-give { background: rgba(34,197,94,.14); color: var(--ok); }
.type-exchange { background: rgba(59,130,246,.14); color: var(--accent); }
.type-request { background: rgba(245,158,11,.16); color: var(--warn); }
.fulfilled-tag { background: var(--bg-soft); color: var(--text-3); }
.post-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.pcard-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border-radius: 10px; padding: 4px 10px 4px 4px; font-size: 12.5px; cursor: pointer; border: 1px solid var(--line); }
.pcard-chip img, .pcard-img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.pcard-emoji { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-hover); display:inline-flex;align-items:center;justify-content:center;font-size:15px; }
.post-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.post-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.card-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.card-pick-item { border: 2px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; cursor: pointer; background: var(--bg-card); }
.card-pick-item.selected { border-color: var(--brand); background: rgba(249,115,22,.08); }
.card-pick-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.card-pick-item .nm { font-size: 11.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); margin-bottom: 8px; cursor: pointer; }
.notif-item.unread { border-left: 3px solid var(--brand); }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.inbox-message { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); padding: 14px; margin-bottom: 9px; cursor: pointer; }
.inbox-message.unread { border-left: 3px solid var(--brand); }
.inbox-message-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.inbox-message-head time { margin-left: auto; }
.inbox-message h2 { font-size: 15px; margin-bottom: 4px; }
.inbox-message-content { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* 视图切换 tab 条 */
.view-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.view-tabs::-webkit-scrollbar { display: none; }
.view-tab { flex-shrink: 0; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--bg-card); color: var(--text-2); font-family: inherit; font-size: 13.5px; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.view-tab:hover { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); color: var(--text); }
.view-tab:active { transform: scale(.98); }
.view-tab:focus { outline: none; }
.view-tab:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }
.view-tab.active { background-image: var(--btn-brand-grad); border-color: transparent; color: #fff; font-weight: 700; }
.view-tab.active:focus-visible { box-shadow: var(--btn-ring); }

/* ── EDPI ─────────────────────────────────── */
.edpi-result { text-align: center; padding: 18px 0 8px; }
.edpi-value { font-size: 46px; font-weight: 900; background: linear-gradient(135deg, #facc15, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edpi-bar { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 14px 0 6px; position: relative; }
.edpi-bar-fill { height: 100%; border-radius: 999px; transition: width .3s ease; background: linear-gradient(90deg, #22c55e, #eab308, #f97316, #ef4444); }
.pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
.pro-card { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 10px; padding: 8px; text-align: center; cursor: pointer; font-size: 12px; }
.pro-card b { display: block; font-size: 13.5px; }

input[type="range"].slider { width: 100%; accent-color: var(--brand); }

/* ── 反应力测试 ───────────────────────────── */
.reaction-notice { max-width: 620px; margin: 0 auto 14px; padding: 12px 14px; border: 1px solid rgba(245,158,11,.34); border-radius: var(--radius); background: rgba(245,158,11,.10); }
.reaction-notice-title { color: var(--warn); font-size: 14px; }
.reaction-notice-text { display: block; margin-top: 4px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.reaction-card, .reaction-stats-card { max-width: 620px; margin-left: auto; margin-right: auto; }
.reaction-stage { min-height: 330px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; text-align: center; cursor: pointer; user-select: none; touch-action: manipulation; transition: background-color .12s ease, color .12s ease; }
.reaction-stage-content { width: 100%; padding: 38px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.reaction-stage.state-idle, .reaction-stage.state-result { color: var(--text); background: linear-gradient(145deg, rgba(14,165,233,.13), rgba(99,102,241,.16)); }
.reaction-stage.state-waiting { color: var(--text); background: var(--bg-soft); }
.reaction-stage.state-ready { color: #052e16; background: #4ade80; }
.reaction-stage.state-early { color: #fff; background: linear-gradient(145deg, #ef4444, #dc2626); }
.reaction-stage-title { font-size: 32px; font-weight: 900; line-height: 1.2; }
.reaction-stage-hint { max-width: 500px; margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.state-ready .reaction-stage-hint, .state-early .reaction-stage-hint { color: rgba(255,255,255,.82); }
.reaction-target { width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; border: 10px solid rgba(255,255,255,.76); border-radius: 50%; background: #f8fafc; box-shadow: 0 14px 30px rgba(21,128,61,.24), inset 0 0 0 4px rgba(34,197,94,.2); color: #15803d; font-size: 26px; font-weight: 900; }
.reaction-wait-dot { width: 24px; height: 24px; margin-bottom: 22px; border: 4px solid var(--line); border-top-color: #0ea5e9; border-radius: 50%; animation: reaction-spin .8s linear infinite; }
@keyframes reaction-spin { to { transform: rotate(360deg); } }
.reaction-result-label { color: var(--text-2); font-size: 14px; }
.reaction-result-value { margin-top: 5px; color: #0ea5e9; font-size: 62px; font-weight: 900; line-height: 1.05; }
.reaction-result-value small { font-size: 22px; }
.reaction-rating { margin-top: 10px; color: #6366f1; font-size: 22px; }
.reaction-action { margin-top: 14px; }
.reaction-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.reaction-stats-grid { display: flex; align-items: stretch; }
.reaction-stat { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.reaction-stat-last { border-right: 0; }
.reaction-stat-value { max-width: 100%; overflow: hidden; color: #0ea5e9; font-size: 24px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.reaction-stat-label { margin-top: 5px; color: var(--text-3); font-size: 12px; }

/* ── 尺子 ─────────────────────────────────── */
.ruler-stage { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 480px; touch-action: none; }
.ruler-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }

/* ── 设置 / 个人中心 ──────────────────────── */
.setting-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-main { flex: 1; }
.setting-title { font-size: 14.5px; font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--text-3); margin-top: 1px; }
/* 资料页账号绑定状态徽标：已绑定=绿、未绑定=灰（读取中沿用灰） */
.bind-on { background: rgba(34,197,94,.14); color: var(--ok); }
.bind-off { background: var(--bg-soft); color: var(--text-2); }
.profile-hero { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; }
.profile-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--bg-soft); display:flex;align-items:center;justify-content:center;font-size:30px;}

/* 认证页 */
.auth-wrap { max-width: 400px; margin: 4vh auto 0; }
body[data-page="recovery"] .auth-wrap { width: 100%; max-width: 400px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; box-shadow: var(--shadow); }
.auth-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.auth-alt { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }

/* 登录/注册图形验证码：图片点击或「换一张」都重新签发，验证码一次性且 120 秒过期 */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { flex: 1 1 auto; min-width: 0; }
.captcha-image { flex: none; display: block; width: 116px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); cursor: pointer; }
.captcha-image:not([src]) { opacity: .5; }
.captcha-refresh { flex: none; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; }

/* 赛程筛选行 */
.filter-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.filter-label { font-size: 12.5px; color: var(--text-3); flex-shrink: 0; width: 34px; }

/* 详情弹窗内代码行 */
.code-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.code-row .g { font-size: 12px; color: var(--text-3); width: 30px; }
.code-row .c { font-weight: 700; letter-spacing: .08em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-row .replay-chip { flex: none; }

@media (max-width: 380px) {
  .tier-label-col { width: 64px; font-size: 14px; }
  .post-thumb { width: 86px; height: 64px; }
}

@media print { .topbar, .topnav, .bottom-nav { display: none !important; } }

/* ── 小游戏（大厅 + 梗测试）───────────────── */
.gp-hero { text-align: center; padding: 26px 16px; }
.gp-hero-icon { font-size: 44px; line-height: 1; }
.gp-hero-title { font-size: 19px; font-weight: 800; margin-top: 10px; }
.gp-hero-desc { font-size: 13px; color: var(--text-2); margin: 8px auto 0; max-width: 420px; }
.gp-diff-bar { justify-content: center; margin: 14px 0 2px; flex-wrap: wrap; }
.gp-stats { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.gp-start { margin: 14px auto 0; max-width: 320px; width: 100%; }
.gp-rule { font-size: 13px; color: var(--text-2); padding: 4px 0; }
.gp-round-bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; flex-wrap: wrap; }
.gp-round-pool { font-size: 12px; color: var(--text-3); }
.gp-article { font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.gp-guess-title { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.gp-guess-row { display: flex; gap: 8px; }
.gp-guess-input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: 14px; }
.gp-id-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gp-id-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background-color: var(--bg-soft); border: 1px solid var(--line); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
/* 悬停是「可点」，不是「危险」——以前变红会被误读成删除 */
.gp-id-tag:hover { border-color: var(--btn-secondary-line-hover); color: var(--brand); background-color: var(--btn-secondary-bg); }
.gp-id-tag:focus { outline: none; }
.gp-id-tag:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--btn-ring); }
.gp-hint { margin-top: 10px; font-size: 12.5px; color: var(--warn); }
.gp-hint-line + .gp-hint-line { margin-top: 3px; }
/* 提示过场：惊涛破深度思考 + 逐条揭示 */
.gp-hint-persona { color: var(--text-2); line-height: 1.7; }
.gp-hint-thinking { animation: gp-hint-pulse 1.2s ease-in-out infinite; }
.gp-hint-blurt { color: #ef4444; font-weight: 800; display: inline-block; animation: gp-hint-pop .4s cubic-bezier(.34,1.56,.64,1) both; }
.gp-hint-answer { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.gp-hint-answer-item { line-height: 1.6; animation: gp-hint-fade-in .4s ease both; }
@keyframes gp-hint-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes gp-hint-pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes gp-hint-fade-in { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.gp-guess-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gp-guess-tip { font-size: 12px; color: var(--text-3); }
.gp-result-ok { border-color: rgba(34, 197, 94, .45); }
.gp-result-bad { border-color: rgba(239, 68, 68, .4); }
.gp-result-icon { font-size: 40px; }
.gp-result-title { font-size: 19px; font-weight: 800; margin-top: 6px; }
.gp-result-title-ok { color: var(--ok); }
.gp-result-title-bad { color: var(--err); }
.gp-result-line { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.gp-result-num { color: var(--text); font-weight: 700; }
.gp-words-title { font-size: 13px; font-weight: 700; margin: 14px 0 6px; color: var(--text-2); text-align: left; }
.gp-words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gp-word-chip { padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12.5px; }
.gp-word-chip-bad { border-color: rgba(239, 68, 68, .5); color: var(--err); }
.gp-word-none { font-size: 12.5px; color: var(--text-3); }
.gp-result-stats { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.gp-result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.gp-result-actions .btn { min-width: 120px; }

@media (max-width: 420px) {
  .gp-guess-row { flex-direction: column; }
}

/* 生涯查询、赛程对阵与当日补丁（2026-09） */
[hidden] { display: none !important; }
.career-search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.career-search-row label { display: flex; gap: 8px; align-items: center; }
.career-search-row .input { width: auto; max-width: 100%; }
.career-search { display: grid; gap: 12px; }
#careerTag { flex: 1; min-width: 130px; }
#careerHistory { flex-wrap: wrap; }
#careerStatus { margin: 16px 0; }
.career-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.career-candidate { display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); cursor: pointer; }
.career-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.career-avatar-frame { position: relative; display: inline-block; flex-shrink: 0; }
.career-avatar-letter { display: flex; align-items: center; justify-content: center; background: rgba(249,115,22,.13); color: var(--brand); font-size: 22px; font-weight: 800; }
.career-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.career-stat { padding: 14px; background: var(--bg-soft); border-radius: 10px; }
.career-stat span { display: block; font-size: 12px; color: var(--text-2); }
.career-stat strong { font-size: 22px; }
#careerBody h3 { margin-bottom: 14px; }
#careerBody .rank-table td { padding: 10px; }
#careerBody .rank-table td:first-child { text-align: left; }
#careerProfile h2 { overflow-wrap: anywhere; }
.patch-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
#heroTrendPatch { margin-top: 16px; }
#heroTrendPatch section + section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.bracket-scroll { overflow: auto; max-width: 100%; margin-top: 16px; padding-bottom: 12px; }
.bracket-canvas { position: relative; }
.bracket-match,.bracket-heading,.bracket-line { position: absolute; }
.bracket-line { background: var(--text-3); }
.bracket-match { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bracket-heading { font-weight: 600; padding: 10px 0; }
.bracket-opponent { display: flex; align-items: center; height: 48px; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.bracket-opponent img { width: 28px; height: 28px; object-fit: contain; }
.bracket-opponent span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-opponent.winner { background: var(--bg-soft); color: var(--ok); font-weight: 600; }
/* 赛段详情视图 */
.sdetail-card { margin-bottom: 12px; }
.sdetail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sdetail-head h3 { font-size: 16px; }
.sdetail-head .btn { flex: none; }
.sdetail-panel { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.sdetail-block { margin-bottom: 16px; }
.sdetail-block:last-child { margin-bottom: 0; }
.sdetail-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.sdetail-pool { margin-bottom: 10px; }
.sdetail-pool-mode { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.sdetail-pool-mode .tag { flex: none; }
.sdetail-ban-table { margin-bottom: 12px; }
.sdetail-ban-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sdetail-ban-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex: none; }
.sdetail-ban-name { width: 96px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdetail-ban-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.sdetail-ban-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.sdetail-ban-count { width: 48px; flex: none; text-align: right; color: var(--text-2); }
.sdetail-ban-more { margin-top: 6px; }
.sdetail-country { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sdetail-country:last-child { border-bottom: 0; }
.sdetail-country-name { font-weight: 600; margin-right: 8px; }
.sdetail-team { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sdetail-team:last-child { border-bottom: 0; }
.sdetail-team-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sdetail-group-title { font-weight: 700; margin: 8px 0 4px; color: var(--text-2); }
.sdetail-member { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sdetail-member-name { font-weight: 600; }
@media(max-width: 560px) {
  .sdetail-ban-name { width: 68px; }
  .sdetail-ban-count { width: 36px; }
}
@media(max-width: 560px) {
  .career-search-row { gap: 8px; }
}

.career-search-row .input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--text); font: inherit; }
.career-search-row .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.16); }
#careerBody .rank-table td { white-space: nowrap; }
#careerProfile { position: relative; overflow: hidden; }
.career-namecard { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.career-profile-content { position: relative; }
@media(max-width: 560px) {
  .career-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .career-candidate { grid-column: 1 / -1; }
  .career-search-row label { flex-wrap: wrap; }
}

/* ── 幸运转盘（wheel，对应小程序 subpkg/pages/wheel）────────────────────────────── */
.wheel-card, .wheel-preset-card, .wheel-options-card { max-width: 620px; margin-left: auto; margin-right: auto; }
.wheel-card { padding: 16px 14px 20px; }
.wheel-stage { width: 300px; max-width: 100%; aspect-ratio: 1 / 1; height: auto; margin: 0 auto; position: relative; }
.wheel-disc { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border: 4px solid rgba(255,255,255,.84); border-radius: 50%; background: #6366f1; overflow: hidden; transform: rotate(var(--wheel-rotation, 0deg)); transition: var(--wheel-transition, none); box-shadow: 0 9px 21px rgba(15,23,42,.22), inset 0 0 0 2px rgba(15,23,42,.2); }
.wheel-boundaries, .wheel-labels { position: absolute; inset: 0; }
.wheel-ring { position: absolute; inset: 0; border: 2px solid rgba(15,23,42,.24); border-radius: 50%; pointer-events: none; }
.wheel-boundary { position: absolute; left: 50%; top: 50%; width: 50%; height: 1px; transform-origin: 0 50%; background: rgba(255,255,255,.62); pointer-events: none; }
.wheel-label { position: absolute; width: 30%; min-height: 21px; padding: 2px 4px; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(15,23,42,.32); z-index: 2; pointer-events: none; }
.wheel-label-text { width: 100%; display: flex; align-items: center; justify-content: center; transform: rotate(var(--wheel-counter, 0deg)); transition: var(--wheel-transition, none); }
.wheel-label-text .wheel-text { max-width: 100%; font-size: 12px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.wheel-label-compact .wheel-label-text .wheel-text { font-size: 10px; }
.wheel-label-icon { width: 17px; height: 17px; flex-shrink: 0; margin-right: 3px; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 1px 3px rgba(15,23,42,.26); }
.wheel-label-initial { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 9px; font-weight: 800; }
.wheel-label-icon-only { width: 20px; min-height: 20px; padding: 0; }
.wheel-label-icon-only .wheel-label-text { width: 20px; height: 20px; }
.wheel-label-icon-only .wheel-label-icon { width: 15px; height: 15px; margin-right: 0; }
.wheel-label-icon-only .wheel-label-initial { width: 15px; height: 15px; font-size: 8px; }
.wheel-pointer { position: absolute; top: 0; left: 50%; z-index: 5; width: 0; height: 0; margin-left: -11px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 24px solid #facc15; }
.wheel-center { position: absolute; left: 50%; top: 50%; z-index: 6; width: 77px; height: 77px; margin: -38.5px 0 0 -38.5px; display: flex; align-items: center; justify-content: center; border: 4px solid rgba(255,255,255,.84); border-radius: 50%; background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 5px 12px rgba(234,88,12,.32); color: #fff; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, opacity .15s ease; }
.wheel-center:active { transform: scale(.96); }
.wheel-center[disabled] { opacity: .84; cursor: default; }
.wheel-status, .wheel-result { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 27px; margin-top: 4px; }
.wheel-status { color: var(--text-3); font-size: 12px; }
.wheel-result-label { color: var(--text-3); font-size: 11px; }
.wheel-result-value { max-width: 90%; margin-top: 2px; color: var(--brand); font-size: 20px; font-weight: 900; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.wheel-preset-card { padding: 12px 12px 10px; }
.wheel-preset-heading { display: flex; align-items: baseline; min-width: 0; margin-bottom: 9px; }
.wheel-preset-title { color: var(--text); font-size: 15px; font-weight: 800; }
.wheel-preset-hint { margin-left: 6px; color: var(--text-3); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-preset-list { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 1px 0 3px; }
.wheel-preset-item { flex: 0 0 auto; min-width: 71px; height: 52px; padding: 7px 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); color: var(--text-2); cursor: pointer; font-family: inherit; }
.wheel-preset-item-active { border-color: var(--brand); background: rgba(249,115,22,.13); color: var(--brand); box-shadow: 0 3px 8px rgba(249,115,22,.16); }
.wheel-preset-icon { height: 20px; font-size: 16px; line-height: 20px; }
.wheel-preset-label { margin-top: 3px; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; }
.wheel-preset-desc { display: block; margin-top: 7px; color: var(--text-3); font-size: 10px; line-height: 1.45; }
.wheel-options-card { padding: 14px 12px 12px; }
.wheel-options-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.wheel-options-heading > div:first-child { display: flex; align-items: baseline; min-width: 0; }
.wheel-options-title { color: var(--text); font-size: 15px; font-weight: 800; }
.wheel-options-count { margin-left: 6px; color: var(--text-3); font-size: 10px; }
.wheel-reset-option { flex-shrink: 0; padding: 3px 0 3px 10px; border: 0; background: transparent; color: var(--brand); font-size: 11px; cursor: pointer; font-family: inherit; }
.wheel-heading-actions { display: flex; align-items: center; flex-shrink: 0; }
.wheel-option-row { display: flex; align-items: center; min-width: 0; margin-bottom: 6px; padding: 3px 6px 3px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.wheel-option-index { width: 23px; height: 23px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(249,115,22,.13); color: var(--brand); font-size: 11px; font-weight: 800; }
.wheel-option-avatar { width: 23px; height: 23px; flex-shrink: 0; margin-left: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: rgba(249,115,22,.13); color: var(--brand); font-size: 10px; font-weight: 800; }
.wheel-option-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wheel-option-input { min-width: 0; flex: 1; margin-left: 7px; min-height: 0; padding: 5px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; font-family: inherit; }
.wheel-option-text { min-width: 0; flex: 1; margin-left: 7px; color: var(--text); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.wheel-option-delete { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--text-3); font-size: 19px; font-weight: 300; cursor: pointer; }
.wheel-add-option { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 36px; margin-top: 2px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--brand); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.wheel-add-option-icon { margin-right: 4px; font-size: 16px; font-weight: 400; }
.wheel-options-tip { display: block; margin-top: 9px; color: var(--text-3); font-size: 10px; line-height: 1.55; text-align: center; }

/* ─── Tier board: poster title bar & custom items ─── */
.poster-title-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 8px 8px 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; }
.poster-title-bar-text { min-width: 0; flex: 1; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-title-bar-text.empty { color: var(--text-3); font-weight: 400; }
.poster-title-bar-edit { flex-shrink: 0; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-2); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.tier-item-nopic { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, rgba(249,115,22,.28), rgba(234,88,12,.16)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--text); pointer-events: none; }
.drag-ghost-text { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-card); border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: var(--text); }
.custom-add-row { display: flex; gap: 12px; }
.custom-avatar-box { position: relative; width: 84px; height: 84px; flex-shrink: 0; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-soft); overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.custom-avatar-preview { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: 11px; }
.custom-avatar-preview img { width: 84px; height: 84px; object-fit: cover; display: block; }
.custom-avatar-plus { font-size: 22px; line-height: 1; }
.custom-add-fields { flex: 1; min-width: 0; }
.custom-name-input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-family: inherit; }
.custom-exist-label { font-size: 12px; color: var(--text-3); margin: 10px 0 6px; }
.custom-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 6px 4px 4px; background: var(--bg-soft); border-radius: 10px; }
.custom-chip img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.custom-chip-img { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, rgba(249,115,22,.28), rgba(234,88,12,.16)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--text); }
.custom-chip-name { max-width: 58px; font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-chip-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--err, #ef4444); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }

/* ── 站点语言切换（assets/js/i18n.js 注入） ── */
.ow-lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bg-soft); flex: 0 0 auto; }
.ow-lang-switch.floating { position: fixed; right: 14px; bottom: 72px; z-index: 60; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.ow-lang-btn { border: 0; background: transparent; color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; cursor: pointer; letter-spacing: .02em; }
.ow-lang-btn:hover { color: var(--text); }
.ow-lang-btn.active { background: var(--accent, #f97316); color: #fff; }

/* ── 登录设备（登录超限弹窗 + 资料页列表） ── */
.session-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.session-pick-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); cursor: pointer; }
.session-pick-row input { margin: 2px 0 0; flex: 0 0 auto; }
.session-pick-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.session-pick-title { font-size: 14px; color: var(--text); word-break: break-word; }
.session-pick-meta { font-size: 12px; color: var(--text-2); }
.session-pick-hint { font-size: 12px; line-height: 1.6; color: var(--text-2); }

