/* 销售工具箱 · 共用样式（电脑工作台 + 手机自适应 + 管理后台） */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1e4fd8; --primary-dark: #16368f;
  --bg: #f4f6fb; --card: #ffffff; --border: #e5e9f2;
  --text: #1f2430; --text2: #6b7385; --text3: #9aa1b2;
  --green: #16a34a; --red: #dc2626; --orange: #d97706; --blue: #2563eb;
  --sidebar-w: 240px; --tabbar-h: 62px;
  --shadow: 0 1px 4px rgba(20,30,60,.06);
}
html, body { height: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 按钮与表单 ---------- */
.btn { display: inline-block; border: none; border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer; background: var(--primary); color: #fff; transition: .15s; }
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: #f0f3fa; }
.btn.danger { background: var(--red); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none; background: #fff; }
.input:focus { border-color: var(--primary); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--text2); font-size: 13px; }
.form-row { display: flex; gap: 12px; } .form-row .field { flex: 1; }

/* ---------- 卡片/徽章/表格 ---------- */
.card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.badge.ok { background: #e8f7ee; color: var(--green); }
.badge.planned { background: #fff4e2; color: var(--orange); }
.badge.locked { background: #eef0f4; color: var(--text3); }
.badge.red { background: #fdecec; color: var(--red); }
.badge.blue { background: #e8efff; color: var(--blue); }
.badge.pink { background: #fdeef6; color: #c2417f; }   /* 需求43：情绪价值类别 */
.badge.gray { background: #eef0f4; color: var(--text2); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
.tbl th { color: var(--text2); font-weight: 500; background: #f8fafd; }
.tbl tr:hover td { background: #f6f9ff; }
.tbl-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }

/* ---------- 弹层/Toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,20,40,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: 16px; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: #232838; color: #fff; border-radius: 8px; padding: 10px 20px; font-size: 14px; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none; }
#toast.show { opacity: .96; }

/* ---------- 登录页 ---------- */
.login-mask { position: fixed; inset: 0; background: linear-gradient(135deg, #16244f 0%, #1e4fd8 100%); display: flex; align-items: center; justify-content: center; z-index: 50; }
.login-box { background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 380px; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.login-box .logo { text-align: center; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.login-box .sub { text-align: center; color: var(--text2); font-size: 13px; margin-bottom: 7px; }
.login-box .login-note { text-align: center; color: #9aa5b8; font-size: 11.5px; letter-spacing: .3px; margin-bottom: 24px; }
.login-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 8px; text-align: center; }

/* ---------- 工作台布局（桌面：左侧栏 / 手机：底部导航） ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, #14224a 0%, #1a3060 100%); color: #fff; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 10; }
.sidebar .logo { padding: 22px 20px 16px; font-size: 17px; font-weight: 600; letter-spacing: .5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .logo span { opacity: .55; font-size: 11px; display: block; margin-top: 3px; font-weight: 400; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.menu-group { color: rgba(255,255,255,.35); font-size: 11px; padding: 14px 10px 6px; letter-spacing: 1px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; color: rgba(255,255,255,.82); cursor: pointer; font-size: 14px; transition: .15s; margin-bottom: 2px; }
.menu-item:hover { background: rgba(255,255,255,.08); }
.menu-item.active { background: var(--primary); color: #fff; font-weight: 500; }
.menu-item .mi-icon { font-size: 17px; width: 22px; text-align: center; }
.sidebar .user-box { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sidebar .user-box .uname { font-weight: 600; margin-bottom: 2px; }
.sidebar .user-box .ustore { color: rgba(255,255,255,.5); font-size: 12px; margin-bottom: 10px; }
.sidebar .user-box button { width: 100%; background: rgba(255,255,255,.1); color: #fff; border: none; border-radius: 7px; padding: 8px; cursor: pointer; font-size: 13px; }
.sidebar .user-box button:hover { background: rgba(255,255,255,.2); }
.admin-entry { display: block; text-align: center; color: rgba(255,255,255,.6); font-size: 12px; padding: 8px 0; }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 24px 28px 40px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { font-size: 20px; }
.page-head .ph-desc { color: var(--text2); font-size: 13px; margin-top: 4px; }
.content { max-width: 1200px; }

/* 模块页 */
.module-hero { display: flex; align-items: center; gap: 18px; padding: 22px; }
.module-hero .mh-icon { font-size: 40px; }
.module-hero .mh-name { font-size: 18px; font-weight: 600; }
.module-hero .mh-desc { color: var(--text2); font-size: 13px; margin-top: 5px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.quick-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); cursor: pointer; transition: .15s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,30,60,.1); }
.quick-card .qc-icon { font-size: 26px; margin-bottom: 10px; }
.quick-card .qc-name { font-weight: 600; margin-bottom: 4px; }
.quick-card .qc-desc { color: var(--text3); font-size: 12px; line-height: 1.5; }

/* KPI 卡（看板） */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.kpi-card .k-label { color: var(--text2); font-size: 12px; margin-bottom: 8px; }
.kpi-card .k-value { font-size: 26px; font-weight: 700; }
.kpi-card .k-value small { font-size: 12px; color: var(--text3); font-weight: 400; }
.kpi-card.warn .k-value { color: var(--red); }

/* 管理后台顶部栏 */
.admin-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); padding: 0 28px; display: flex; align-items: center; gap: 18px; height: 58px; }
.admin-top .at-title { font-size: 17px; font-weight: 600; }
.admin-top .at-tabs { display: flex; gap: 4px; margin-left: 12px; flex: 1; overflow-x: auto; }
.admin-top .at-tab { padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--text2); white-space: nowrap; font-size: 14px; }
.admin-top .at-tab.active { background: #e8efff; color: var(--primary); font-weight: 600; }
.admin-top .at-user { color: var(--text2); font-size: 13px; white-space: nowrap; }
.admin-body { padding: 22px 28px 40px; max-width: 1280px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar select { width: auto; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; color: var(--text2); font-size: 13px; }
.risky-bar { background: #fdecec; border: 1px solid #f5c8c8; color: var(--red); border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; font-size: 13px; }
.chart-box { width: 100%; height: 320px; }
.chart-box.sm { height: 260px; }
.section-title { font-size: 15px; font-weight: 600; margin: 6px 0 12px; }
.pwd-show { background: #f6f9ff; border: 1px dashed var(--primary); border-radius: 8px; padding: 12px; text-align: center; font-size: 16px; letter-spacing: 1px; margin: 10px 0; font-family: Consolas, monospace; }

/* ---------- 手机端（<900px）：底部导航 ---------- */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); background: #fff; border-top: 1px solid var(--border); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tb-inner { display: flex; height: 100%; }
.tabbar .tb-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text2); font-size: 11px; cursor: pointer; }
.tabbar .tb-item .tb-icon { font-size: 20px; }
.tabbar .tb-item.active { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main, .admin-body { margin-left: 0; padding: 14px 12px calc(var(--tabbar-h) + 20px); }
  .admin-top { padding: 0 14px; }
  .tabbar { display: block; }
  .form-row { flex-direction: column; gap: 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head h2 { font-size: 17px; }
  .chart-box { height: 240px; }
  .module-hero { padding: 16px; }
  .tbl th, .tbl td { padding: 8px 8px; font-size: 12px; }
  .login-box { margin: 16px; }
}
/* 阅读辅助 */
.text2 { color: var(--text2); } .text3 { color: var(--text3); } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; } .flex { display: flex; gap: 10px; align-items: center; }

/* ===================== 功能模块组件 ===================== */
/* 筛选 chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.chip-row:last-child { margin-bottom: 0; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--text2); border-radius: 18px; padding: 5px 14px; font-size: 13px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 赛事早知道日期条：官方已排期数（主）/ 预估（次） */
.fc-chip-n { font-weight: 700; margin-left: 6px; }
.fc-chip-n.fc-chip-z { opacity: .4; font-weight: 600; }
.fc-chip-e { opacity: .55; margin-left: 4px; font-size: 11px; }
.chip.active .fc-chip-e { opacity: .8; }
.kpi-mini { background: #f0f4ff; border-radius: 18px; padding: 5px 13px; font-size: 13px; color: var(--text2); }
.kpi-mini b { color: var(--text); font-size: 15px; }
.kpi-sub, .k-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* 伤停 */
.inj-card { padding: 16px 18px; }
.inj-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inj-vs { display: flex; align-items: center; gap: 12px; font-size: 16px; margin: 10px 0 4px; }
.inj-vs span { color: var(--text3); font-size: 13px; }
.inj-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 720px) { .inj-sides { grid-template-columns: 1fr; } }
.inj-side { background: #f8fafd; border-radius: 10px; padding: 10px 12px; }
.inj-team { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.inj-item { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px dashed #e8ecf4; }
.inj-click { cursor: pointer; }
.inj-click:hover { background: #eef4ff; border-radius: 5px; }
.inj-item:last-child { border-bottom: none; }
.imp-big { color: var(--red); font-weight: 600; }
.imp-mid { color: var(--orange); }

/* 赔率档/赛果徽标 */
.tier-高, .tier-中, .tier-低 { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.tier-高 { background: #fdecec; color: var(--red); }
.tier-中 { background: #fff4e2; color: var(--orange); }
.tier-低 { background: #e8f7ee; color: var(--green); }

/* 紧凑表格 */
.tbl-compact th, .tbl-compact td { padding: 7px 10px; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.row-muted td { color: var(--text3); }

/* 走势网格 */
.tbl-trend th, .tbl-trend td { text-align: center; padding: 5px 8px; font-size: 12.5px; }
.tbl-trend .tcell { width: 34px; min-width: 34px; }
.tdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.tsum td { background: #f8fafd; font-size: 12px; }
.miss-hot { background: #fff4e2 !important; color: var(--orange); font-weight: 700; }

/* 历史筛选表单 */
.hist-filter .fr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hist-filter .fr label { color: var(--text2); font-size: 13px; white-space: nowrap; }
.hist-filter .input { width: auto; padding: 7px 10px; font-size: 13px; }
.ck { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); }
.ck input { accent-color: var(--primary); }

/* 分析文档 */
.ana-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.ana-row:last-child { border-bottom: none; }
.ana-name { font-size: 14px; }
.ana-ops { display: flex; gap: 8px; flex-shrink: 0; }

/* 文档预览弹层 */
.doc-modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 820px; height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.doc-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); font-weight: 600; }
.doc-scroll { overflow-y: auto; padding: 20px 26px; }
.docx-view .docx-p { font-size: 14px; line-height: 1.9; margin-bottom: 8px; }
.docx-view .docx-h1 { font-size: 19px; font-weight: 700; margin: 18px 0 10px; }
.docx-view .docx-h2 { font-size: 16px; font-weight: 600; margin: 14px 0 8px; }
.docx-view .docx-h3, .docx-view .docx-h { font-size: 14.5px; font-weight: 600; margin: 10px 0 6px; }
.docx-view .docx-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.docx-view .docx-tbl td { border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 13px; }

/* ===================== v0.3 新增组件 ===================== */
/* 文档预览大窗口化（需求15）：近全屏 + 一键真全屏 */
.doc-modal-box { max-width: 94vw !important; height: 92vh !important; }
.doc-modal-bar .btn.fullscreen-toggle { margin-right: auto; }

/* 长图预览弹层 */
.lg-modal { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lg-modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: min(960px, 92vw); height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.lg-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); font-weight: 600; gap: 10px; }
.lg-scroll { overflow-y: auto; padding: 18px; background: #f2f4f8; text-align: center; }
.lg-scroll img { max-width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,.12); border-radius: 6px; }

/* 个性化设置面板 */
.lg-set-box { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; overflow: hidden; }

/* 列显示设置面板（多列网格） */
.lg-col-box { background: #fff; border-radius: 14px; width: 100%; max-width: min(760px, 94vw); max-height: 88vh; overflow-y: auto; }
.lc-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.lc-group-name { font-weight: 700; font-size: 13.5px; color: var(--primary); margin-bottom: 8px; }
.lc-group-cols { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lc-group-cols .ck { font-size: 13px; }

/* 历史查询全屏模式（结果容器 requestFullscreen 后撑满） */
.fs-box:fullscreen { background: #fff; padding: 18px 26px; overflow: auto; }
.fs-box:fullscreen .card { max-width: none; }
.fs-box:fullscreen .tbl-wrap { overflow: visible; }
.fs-box:fullscreen table { min-width: 100%; }

/* 筛选区小组件 */
.hist-filter .fr input.input { padding: 6px 8px; }
.hist-filter .fr label { font-size: 12.5px; }
/* 文档预览真全屏态 */
.doc-modal-box.doc-fs { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
/* page-head 按钮不换行（手机窄屏） */
.page-head button { white-space: nowrap; }

/* ===================== v0.4 新增组件（第三轮需求） ===================== */
/* 二维码上传（个性化设置） */
.qr-set-row { display: flex; gap: 12px; align-items: flex-start; }
.qr-prev-box { width: 86px; height: 86px; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafd; flex-shrink: 0; }
.qr-prev-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* 单关走势 高/中/低遗漏格子（页面表格） */
.lv-hi { display: inline-block; min-width: 22px; text-align: center; background: #e8600d; color: #fff; border-radius: 5px; padding: 1px 5px; font-weight: 700; font-size: 12px; }
.lv-mid { display: inline-block; min-width: 22px; text-align: center; background: #2ecc71; color: #fff; border-radius: 5px; padding: 1px 5px; font-weight: 700; font-size: 12px; }
.lv-low { display: inline-block; min-width: 22px; text-align: center; background: #6b6b6b; color: #fff; border-radius: 5px; padding: 1px 5px; font-weight: 700; font-size: 12px; }

/* 伤停 · 赛程行 */
.sched-row { display: flex; align-items: center; gap: 7px; padding: 7px 2px; border-bottom: 1px solid var(--border); flex-wrap: nowrap; min-width: 0; }
.sched-row:last-child { border-bottom: none; }
.sched-row.has-inj { background: #fffafa; border-radius: 8px; padding-left: 8px; }
.sched-vs { font-size: 13px; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-vs b { font-weight: 600; }
.sched-vs i { color: var(--text3); font-size: 11px; font-style: normal; margin: 0 4px; }
.sched-meta { margin-left: 0; flex: 0 0 42px; font-size: 12px; }

/* 未来赛事分析 */
.fc-row { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.fc-row:last-child { border-bottom: none; }
.fc-vs { font-size: 13.5px; }
.fc-cmp-box { background: #fff; border-radius: 14px; width: 100%; max-width: min(860px, 94vw); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.fc-cmp-box > div:last-child { overflow-y: auto; }

/* 问题反馈截图上传 */
.fb-img-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fb-prev { display: flex; gap: 10px; flex-wrap: wrap; }
.fb-prev img { max-height: 90px; max-width: 160px; border-radius: 8px; border: 1px solid var(--border); }
/* 需求92：多张截图缩略图 + 单张移除 */
.fb-thumb { position: relative; line-height: 0; }
.fb-thumb-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: #dc2626; color: #fff; font-size: 13px; line-height: 18px; cursor: pointer;
  padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.fb-thumb-del:hover { background: #b91c1c; }
/* 管理后台点缩略图放大 */
.fb-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8,12,22,.86);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.fb-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* 剧本库 */
.script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 720px) { .script-grid { grid-template-columns: 1fr; } }
.script-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }

/* ===================== 手机端深度适配（v0.8） ===================== */
@media (max-width: 600px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 14px; -webkit-text-size-adjust: 100%; }
  .main, .admin-body { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .content { width: 100%; max-width: none; }
  .card { border-radius: 11px; padding: 14px; margin-bottom: 12px; }
  .page-head { align-items: flex-start; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .page-head > div:first-child { min-width: 0; flex: 1 1 220px; }
  .page-head h2 { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
  .page-head .ph-desc { line-height: 1.45; overflow-wrap: anywhere; }
  .page-head button, .page-head .btn { flex: 0 1 auto; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head > .btn:last-child { margin-left: auto; }
  .page-head > div:not(:first-child) { min-width: 0; max-width: 100%; overflow-x: auto; }
  /* 顶部操作按钮多于一个时自动换到下一行，避免被右侧裁掉 */
  .page-head:has(> .btn + .btn) > .btn { max-width: none; }
  .page-head:has(> .btn + .btn) > .btn:first-of-type { margin-left: auto; }
  .page-head:has(> .btn + .btn) > .btn:last-of-type { margin-left: 0; }
  .page-head:has(> .btn + .btn) > .btn:nth-of-type(n+2) { margin-top: 2px; }
  .page-head:has(> .btn + .btn) > div:first-child { flex-basis: 100%; }
  .page-head:has(> .btn + .btn) { row-gap: 6px; }
  .module-hero { gap: 10px; padding: 13px; }
  .module-hero .mh-icon { font-size: 30px; }
  .module-hero .mh-name { font-size: 16px; }
  .grid-cards { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { min-height: 112px; padding: 14px; }
  .quick-card .qc-icon { font-size: 24px; margin-bottom: 6px; }
  .kpi-grid { gap: 8px; }
  .kpi-card { min-width: 0; padding: 12px; }
  .kpi-card .k-value { font-size: 23px; overflow-wrap: anywhere; }
  .section-title { line-height: 1.4; }
  .btn { min-height: 38px; padding: 9px 13px; }
  .btn.small { min-height: 34px; padding: 7px 10px; }
  .input, select.input, textarea.input { min-height: 40px; }
  .chip-row { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; }
  .toolbar { gap: 7px; }
  .toolbar .input, .toolbar select, .toolbar .btn { width: 100%; }
  .toolbar .btn { flex: 1 1 auto; }
  .form-row { gap: 0; }
  .hist-filter .fr { gap: 6px; margin-bottom: 8px; }
  .hist-filter .fr label { width: 100%; }
  .hist-filter .fr .input, .hist-filter .fr select { flex: 1; min-width: 0; width: auto; }
  .hist-filter .fr input[type="text"] { min-width: 0; }
  .tbl-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: max-content; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .tbl-trend th, .tbl-trend td { padding: 6px 7px; }
  .ana-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ana-ops { width: 100%; justify-content: flex-end; }
  .inj-card { padding: 13px; }
  .inj-vs { font-size: 15px; gap: 7px; flex-wrap: wrap; }
  .inj-sides { gap: 8px; }
  .inj-side { min-width: 0; overflow: hidden; }
  .inj-item { font-size: 12px; }
  .sched-row, .fc-row { gap: 6px; align-items: flex-start; }
  .sched-vs, .fc-vs { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
  .sched-meta { margin-left: 0; width: auto; flex: 0 0 42px; }
  .script-grid { gap: 10px; }
  .script-card, .talk-card { padding: 13px; }
  .script-content, .talk-content { font-size: 14px; line-height: 1.8; padding: 11px 12px; overflow-wrap: anywhere; }
  .script-foot { gap: 6px; flex-wrap: wrap; }
  .script-foot .btn { flex: 1; }
  .doc-modal-box, .lg-modal-box, .fc-cmp-box { width: 100vw; max-width: 100vw; height: 94vh; border-radius: 12px 12px 0 0; }
  .modal-mask, .lg-modal { align-items: flex-end; padding: 0; }
  .modal { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .doc-scroll, .lg-scroll { padding: 13px; }
  .fc-cmp-box > div:last-child { min-width: 0; }
  iframe { max-width: 100%; }
  /* 周报预览：手机端保留横向阅读，不撑破外层页面 */
  #fcRepFrame { display: block; width: 100% !important; height: 400px !important; }
  /* 底部导航避开安全区，点击热区更大 */
  .tabbar { height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar .tb-item { min-width: 0; padding: 5px 2px; font-size: 10px; }
  .tabbar .tb-item .tb-icon { font-size: 19px; }
  .main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 22px); }

  /* 后台：顶部标签可横滑，指标卡不再把页面撑宽 */
  .admin-top { height: auto; min-height: 54px; padding: 8px 12px; gap: 8px; align-items: center; overflow: hidden; }
  .admin-top .at-title { font-size: 15px; flex: 0 0 auto; }
  .admin-top .at-tabs { min-width: 0; margin-left: 0; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  .admin-top .at-tabs::-webkit-scrollbar { display: none; }
  .admin-top .at-tab { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
  .admin-top .at-user { display: none; }
  .admin-body { padding: 12px 10px calc(20px + env(safe-area-inset-bottom)); }
  .admin-body .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body .chart-box { height: 220px; }
  .admin-body .card { overflow: hidden; }
  .admin-body .toolbar { align-items: stretch; }
  .admin-body .toolbar .input, .admin-body .toolbar select { width: 100%; }
  .pager { justify-content: center; flex-wrap: wrap; }
  .risky-bar { padding: 9px 11px; line-height: 1.5; }
}

/* 手机主页：一屏小窗口网格 + 更多功能抽屉 */
.mobile-menu-mask { position: fixed; inset: 0; z-index: 80; background: rgba(15,23,42,.38); display: flex; align-items: flex-end; }
.mobile-menu-panel { width: 100%; max-height: 72vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(15,23,42,.18); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mobile-menu-head button { border: 0; background: transparent; font-size: 26px; color: var(--text2); }
.mobile-menu-group { padding-top: 12px; }
.mobile-menu-group > div { color: var(--text2); font-size: 12px; margin-bottom: 7px; }
.mobile-menu-group button { width: 100%; border: 0; background: #f7f9fd; border-radius: 9px; padding: 11px 12px; margin-bottom: 7px; text-align: left; color: var(--text); font-size: 14px; }
.mobile-menu-group button span { display: inline-block; width: 28px; font-size: 18px; }
@media (max-width: 600px) {
  .home-page .page-head { margin-bottom: 8px; }
  .home-page .page-head h2 { font-size: 18px; }
  .home-card { padding: 12px; margin-bottom: 0; overflow: hidden; }
  .home-card > .section-title { margin: 0 2px 8px; font-size: 15px; }
  .home-card .grid-cards { overflow: hidden; width: 100%; max-width: 100%; grid-template-columns: repeat(2, minmax(0, calc((100% - 7px) / 2))); }
  .home-card .section-title { margin-top: 8px; }
  .home-card .grid-cards { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 7px !important; }
  .home-card .quick-card { min-width: 0; width: 100%; min-height: 72px; height: 72px; padding: 8px 9px; border: 1px solid #f0f2f7; border-radius: 10px; overflow: hidden; }
  .home-card .quick-card .qc-icon { display: inline-block; font-size: 18px; line-height: 20px; margin: 0 4px 0 0; vertical-align: middle; }
  .home-card .quick-card .qc-name { display: inline; font-size: 12px; line-height: 1.25; white-space: nowrap; }
  .home-card .quick-card .qc-desc { display: none; }
  .home-card .quick-card .badge { vertical-align: middle; }
  .home-card .section-title { margin-top: 5px; margin-bottom: 5px; }
  .home-card .badge { font-size: 10px; padding: 2px 6px; }
}

/* 历史筛选手机端紧凑布局：减少标签独占一行造成的纵向浪费 */
@media (max-width: 600px) {
  .hist-filter .fr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .hist-filter .fr > label:not(.ck) { width: auto; flex: 0 0 auto; margin: 0; }
  .hist-filter .fr > .text3 { flex: 0 0 auto; }
  .hist-filter .fr .input, .hist-filter .fr select.input { min-height: 36px; padding: 6px 8px; }
  /* 日期行独立成两行，避免日期和联赛挤在一起 */
  .hist-filter .fr:has(#hfFrom) { align-items: center; }
  .hist-filter .fr:has(#hfFrom) #hfFrom,
  .hist-filter .fr:has(#hfFrom) #hfTo { width: calc(50% - 24px) !important; flex: 1 1 120px; }
  .hist-filter .fr:has(#hfFrom) #hfLeague { width: 100% !important; flex-basis: 100%; }
  /* 赛果 / 让球赛果 / 半全场：同一行紧凑排列 */
  .hist-filter .fr:has(#hfWdl) { flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .hist-filter .fr:has(#hfWdl)::-webkit-scrollbar { display: none; }
  .hist-filter .fr:has(#hfWdl) > label { font-size: 12px; flex: 0 0 auto; }
  .hist-filter .fr:has(#hfWdl) #hfWdl,
  .hist-filter .fr:has(#hfWdl) #hfRwdl,
  .hist-filter .fr:has(#hfWdl) #hfHf { width: auto !important; min-width: 48px; flex: 1 1 0; }
  .hist-filter .fr:has(#hfWdl) #hfScore { width: 66px !important; flex: 0 1 66px; }
  /* 赔率档：高/中/低同一行 */
  .hist-filter .fr:has(#hfTg) { flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; }
  .hist-filter .fr:has(#hfTg)::-webkit-scrollbar { display: none; }
  .hist-filter .fr:has(#hfTg) .ck { width: auto; flex: 0 0 auto; }
  .hist-filter .fr:has(#hfTg) .text3 { display: none; }
  .hist-filter .fr:has(#hfTg) #hfSize { width: 62px !important; margin-left: auto; }
  /* 半场平、全场平同一行 */
  .hist-filter .fr:has(#hfChd) { gap: 14px; }
  .hist-filter .fr:has(#hfChd) .ck { width: auto; }
  /* 初赔、终赔和欧赔的胜/平/负区间尽量一行；窄屏允许自然换行 */
  .hist-filter .fr:has(#hfHmin) > input,
  .hist-filter .fr:has(#hfThmin) > input,
  .hist-filter .fr:has(#hfEuhmin) > input { width: 42px !important; min-width: 0; flex: 1 1 38px; }
  .hist-filter .fr:has(#hfHmin) > span,
  .hist-filter .fr:has(#hfThmin) > span,
  .hist-filter .fr:has(#hfEuhmin) > span { font-size: 11px; }
  .hist-filter .fr:has(#hfHmin),
  .hist-filter .fr:has(#hfThmin),
  .hist-filter .fr:has(#hfEuhmin) { gap: 3px; }
  .hist-filter .fr:has(#hfGo) { justify-content: stretch; }
  .hist-filter .fr:has(#hfGo) .btn { flex: 1; }
}

/* ===================== 需求66：球员伤停档案弹窗（复刻伤停雷达球员页） ===================== */
.pc-mask { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-box { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 60px rgba(15,23,42,.28); }
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; background: linear-gradient(135deg, #b71c1c, #e53935); color: #fff; }
.pc-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.pc-sub { font-size: 12px; opacity: .88; margin-top: 3px; }
.pc-x { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px; }
.pc-body { padding: 14px 16px 18px; overflow-y: auto; }
.pc-tip { padding: 28px 16px; text-align: center; color: var(--text2); font-size: 13px; }
.pc-id { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: #f8fafd; border-radius: 9px; }
.pc-pos { color: #8a94a0; font-size: 12px; }
.pc-val { font-size: 11px; border-radius: 3px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }
.pc-v-core { background: #fff3d6; color: #b8860b; border: 1px solid #e6c34a; }
.pc-v-main { background: #e8eef7; color: #3949ab; border: 1px solid #b0bec5; }
.pc-v-rot { background: #f5f5f5; color: #9e9e9e; border: 1px solid #e0e0e0; }
.pc-tag { font-size: 11px; color: #fff; border-radius: 3px; padding: 1px 7px; font-weight: 600; white-space: nowrap; }
.pc-tag-out { background: #d43f3f; }
.pc-tag-inj { background: #e6862e; }
.pc-tag-doubt { background: #2e86c1; }
.pc-imp { font-size: 11px; border-radius: 3px; padding: 1px 7px; font-weight: 700; white-space: nowrap; }
.pc-imp-big { background: #fdecea; color: #c62828; }
.pc-imp-mid { background: #fff3e0; color: #e65100; }
.pc-imp-small { background: #f0f0f2; color: #888; }
.pc-reason { color: #7a8290; font-size: 12px; }
.pc-meta { margin-top: 8px; color: #6b7385; font-size: 12px; line-height: 1.5; }
.pc-tac { margin-top: 10px; padding: 10px 12px; background: #eef3fb; border-radius: 8px; font-size: 13px; line-height: 1.75; color: #31528a; }
.pc-tac b { color: #1a3e72; }
.pc-tval { margin-top: 5px; color: #8d6e00; }
.pc-rec-title { margin: 14px 0 8px; font-weight: 700; font-size: 14px; color: var(--text); }
.pc-rec { border-left: 3px solid #c62828; padding: 2px 0 2px 10px; margin-bottom: 10px; }
.pc-rec-d { color: #c62828; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.pc-rec-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-rec-name { font-weight: 600; font-size: 13px; }
.pc-rec-line { color: #8a94a0; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.pc-foot { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e5e9f2; color: #9aa1b2; font-size: 11.5px; text-align: center; }
@media (max-width: 600px) {
  .pc-mask { align-items: flex-end; padding: 0; }
  .pc-box { max-width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .pc-head { padding: 14px 14px; }
  .pc-name { font-size: 17px; }
  .pc-body { padding: 12px 13px calc(16px + env(safe-area-inset-bottom)); }
  .pc-tac { font-size: 13px; line-height: 1.7; }
}

/* 超窄屏（小型手机） */
@media (max-width: 360px) {
  .main { padding-left: 9px; padding-right: 9px; }
  .kpi-grid, .admin-body .kpi-grid { grid-template-columns: 1fr; }
  .tabbar .tb-item .tb-icon { font-size: 17px; }
  .tabbar .tb-item { font-size: 9px; }
}

.script-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.script-title { font-weight: 600; font-size: 13.5px; }
.script-content { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; background: #f8fafd; border-radius: 10px; padding: 12px 14px; color: #2c3345; }
.script-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; }

/* 话术库 */
.talk-card { padding: 16px 18px; }
.talk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.talk-content { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; background: #f6f9ff; border-radius: 10px; padding: 12px 14px; color: #2c3345; }

/* 需求86：筛选折叠（更多筛选） */
details.adv > summary{cursor:pointer;font-size:13px;color:#2563eb;padding:9px 2px;list-style:none;user-select:none;}
details.adv > summary::-webkit-details-marker{display:none;}
details.adv > summary::before{content:"▸ ";}
details.adv[open] > summary::before{content:"▾ ";}
details.adv[open] > summary{margin-bottom:4px;border-bottom:1px dashed #e2e8f0;}

/* ==================== App 化改造（2026-11-11 需求90：为打包 App 准备） ==================== */
/* 全局网页行为关闭：禁双指/双击缩放、禁长按选中（输入框/复制区除外）、去点击高亮 */
html { overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; touch-action: manipulation;
       -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable], .selectable { -webkit-user-select: text; user-select: text; }
/* 需求111：管理后台反馈详情/回复文本需要可复制（body 全局禁选是为禁长按选中） */
.selectable, .fb-content, .fb-reply, .text2, .text3 { -webkit-user-select: text; user-select: text; }
.fb-content { cursor: text; }

/* TabBar 升级：98px 高、大图标、选中态着色+微缩放、按压反馈 */
.tabbar .tb-item { padding: 8px 0 10px; transition: transform .12s ease; }
.tabbar .tb-item:active { transform: scale(.92); }
.tabbar .tb-item .tb-icon { font-size: 24px; line-height: 1; filter: grayscale(.25); transition: filter .15s, transform .15s; }
.tabbar .tb-item { font-size: 11.5px; }
.tabbar .tb-item.active .tb-icon { filter: none; transform: translateY(-1px) scale(1.08); }
.tabbar .tb-item.active { position: relative; }
.tabbar .tb-item.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }

/* 触控热区 ≥44px（88px@2x）：chip / 小按钮 / 分页 */
@media (max-width: 900px) {
  .chip, .btn.small { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .btn { min-height: 44px; }
  .input { min-height: 42px; }
  .tb-item { min-height: 56px; }
}

/* 弹层 → 底部上滑面板（bottom sheet）+ 顶部拖动条 + 上滑动画 */
@media (max-width: 900px) {
  .modal, .lg-modal-box { animation: sheetUp .22s ease-out; }
  .modal::before, .lg-modal-box::before { content: ""; display: block; width: 44px; height: 5px;
    border-radius: 3px; background: #d6dde6; margin: -6px auto 12px; }
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }

/* 筛选"更多筛选"→ 底部抽屉：展开时内容浮出为主面板，不挤压数据区 */
@media (max-width: 900px) {
  details.adv { display: block; }
  details.adv > summary { min-height: 44px; display: flex; align-items: center; }
  details.adv.filt > .sheet-body { display: block; }
  details.adv.filt[open] > .sheet-body {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-radius: 16px 16px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 72vh; overflow: auto;
    box-shadow: 0 -10px 34px rgba(15, 23, 42, .22);
    animation: sheetUp .2s ease-out;
  }
  details.adv.filt[open] > summary { position: relative; z-index: 61; color: var(--primary); }
  details.adv.filt[open] > summary::after { content: "× 收起"; color: #64748b; margin-left: auto; }
  .sheet-mask { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, .38); animation: fadeIn .15s ease-out; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* 骨架屏：loading() 出图前的占位闪烁 */
.skl { padding: 18px 16px; }
.skl .skl-line { height: 14px; border-radius: 7px; margin: 10px 0;
  background: linear-gradient(90deg, #eceff4 25%, #f7f9fc 45%, #eceff4 65%);
  background-size: 240% 100%; animation: sklSweep 1.1s infinite linear; }
.skl .skl-line.w60 { width: 60%; } .skl .skl-line.w85 { width: 85%; } .skl .skl-line.w40 { width: 40%; }
@keyframes sklSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* 下拉刷新指示条 */
#ptr { position: fixed; top: 8px; left: 50%; transform: translateX(-50%) translateY(-60px);
  z-index: 80; background: var(--primary); color: #fff; font-size: 13px;
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(29,78,216,.35);
  transition: transform .2s ease; pointer-events: none; }
#ptr.show { transform: translateX(-50%) translateY(0); }

/* 版本更新提示条 */
#verBar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; display: none;
  align-items: center; justify-content: center; gap: 10px;
  background: #0f172aee; color: #fff; font-size: 13px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
#verBar.show { display: flex; }
#verBar button { background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; min-height: 32px; }

/* ==================== 第一批视觉优化（2026-11-11 阿兵拍板） ==================== */
/* 数字等宽对齐：赔率/胜率/遗漏全部列对齐 */
body { font-variant-numeric: tabular-nums; }

/* 卡片阴影统一：无边框+极浅投影（更干净） */
:root { --shadow: 0 1px 3px rgba(20,30,60,.05), 0 1px 2px rgba(20,30,60,.04); }

/* 伤停卡片左侧标识条：有伤停=红条，无伤停=灰条（列表一扫知重点） */
.inj-card { position: relative; overflow: hidden; }
.inj-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0; }
.inj-card.has-inj::before { background: #c0261f; }
.inj-card.no-inj::before { background: #dde3ea; }
.inj-card.has-inj { box-shadow: 0 1px 3px rgba(192,38,31,.10), 0 1px 2px rgba(20,30,60,.04); }

/* 第二批：伤停卡片两行式（第一行=灰小字元信息+徽章右对齐） */
.inj-head { justify-content: space-between; }
.inj-head .text3 { font-size: 12.5px; }
/* 首页"全部功能"折叠 */
.home-all > summary { font-size: 13.5px; font-weight: 600; color: var(--text); }
.home-all > summary .text2 { font-weight: 400; }

/* 需求94：伤停球员两行式（第一行名字+影响徽章，第二行状态词｜完整原因） */
.inj-item { display: block; padding: 5px 0; }
.inj-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inj-row2 { font-size: 12.5px; color: #5a6572; margin-top: 2px; }
.inj-row2 i { font-style: normal; color: #c8d0da; }
.inj-row2 .st-stop { color: #c0261f; font-weight: 600; }
.inj-row2 .st-inj { color: #ea5a10; font-weight: 600; }
.inj-imp { flex: 0 0 auto; font-size: 11px; padding: 1px 8px; border-radius: 9px; background: #eef1f6; color: #64748b; }
.inj-imp.imp-big { background: #fdecec; color: #c0261f; font-weight: 700; }
.inj-imp.imp-mid { background: #fff3e8; color: #ea5a10; }
.inj-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 需求95：伤停卡片一比一复刻原版雷达排版 */
.inj-head2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ih-num { color: #c0261f; font-weight: 800; font-size: 15px; }
.ih-lg { border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--text2); white-space: nowrap; }
.ih-teams { font-size: 18px; font-weight: 800; color: var(--text); }
.ih-teams i { color: #c0261f; font-style: normal; font-size: 13px; margin: 0 6px; font-weight: 700; }
.ih-time { margin-left: auto; color: #8a94a0; font-size: 12.5px; white-space: nowrap; }
.inj-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 620px) { .inj-sides { grid-template-columns: 1fr; } }
.inj-team { display: flex; align-items: center; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.side-tag { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 4px; color: #fff; font-size: 12px; margin-right: 6px; font-style: normal; flex: 0 0 auto; }
.side-tag.主 { background: #c0261f; }
.side-tag.客 { background: #2563eb; }
.pill { font-size: 11px; padding: 1px 7px; border-radius: 4px; flex: 0 0 auto; white-space: nowrap; }

/* 需求86：赛事情报入口——对齐伤停雷达原版 .inj 文本标签样式（12px 红字无框，有情报才显示） */
.inj-news-link { color: #e11d48; font-size: 12px; cursor: pointer; flex: 0 0 auto; white-space: nowrap;
  background: none; border: none; padding: 0; font-family: inherit; line-height: 1.4; }
.inj-news-link:hover { text-decoration: underline; }
.p-stop { background: #fdecec; color: #c0261f; font-weight: 600; }
.p-inj { background: #fff3e8; color: #ea5a10; }
.p-ok2 { background: #e8f7ee; color: #16a34a; font-weight: 600; }   /* 需求109：可能出战 */
.p-imp { background: #fdf6d8; color: #a16207; }
.p-imp-b { background: #fdecec; color: #c0261f; }
.inj-row1 { display: flex; align-items: center; gap: 6px; }
.inj-row1 .inj-name { font-weight: 700; }
.inj-row1 .pos { font-style: normal; color: #8a94a0; font-size: 12px; font-weight: 400; margin-right: 6px; }
.inj-row1 .pills { margin-left: auto; display: flex; gap: 4px; }
.inj-row2 { color: #5a6572; font-size: 12.5px; margin-top: 2px; }
.inj-team { justify-content: flex-start; }
