/* 后台 · 白色主题 · PC 左右 SaaS 布局 / 移动端顶部 tabs */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --soft: #f7f8fa; --soft-2: #eef0f3; --line: #e6e8ec; --line-2: #d9dce2;
  --ink: #111827; --ink-2: #4b5563; --ink-3: #6b7280; --ink-4: #9ca3af;
  --accent: #f2662b; --accent-2: #e2551b; --accent-ink: #c2410c; --accent-bg: #fff3ec;
  --green: #059669; --green-bg: #ecfdf5; --red: #dc2626; --red-bg: #fef2f2; --gold: #b45309; --gold-bg: #fffbeb; --blue: #2563eb; --blue-bg: #eff6ff;
  --S: #ff7a45; --A: #f5b229; --B: #22a9c2; --C: #8593a3;
  --side: 240px; --top: 64px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 1px 3px rgba(17,24,39,.06);
  --font: 'MiSans', -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
[hidden] { display: none !important; }
img { display: block; }
:focus-visible { outline: 2px solid rgba(242,102,43,.55); outline-offset: 2px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 1px 1px rgba(17,24,39,.03); transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--soft); color: var(--ink); border-color: #c9cdd4; }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 1px 2px rgba(242,102,43,.3); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ok { color: #fff; background: var(--green); border-color: var(--green); }
.btn.ok:hover { background: #047857; border-color: #047857; color: #fff; }
.btn.danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #b91c1c; color: #fff; }
.btn.ghost-red { color: var(--red); }
.btn.ghost-red:hover { background: var(--red-bg); border-color: #fecaca; color: var(--red); }
.btn.ic.on { color: var(--accent-ink); background: var(--accent-bg); border-color: #fed7c3; }
.btn.block { width: 100%; height: 44px; font-size: 16px; font-weight: 600; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn.spin svg { animation: spin .7s linear; }

/* 输入 */
.field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-4); transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,102,43,.12); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--ink-4); }
.field.sel-f { position: relative; padding-right: 8px; }
.field.sel-f select { padding-right: 20px; cursor: pointer; }
.field.sel-f svg { position: absolute; right: 10px; width: 15px; height: 15px; pointer-events: none; }

/* 登录 */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(50% 40% at 50% 0%, rgba(242,102,43,.1), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 28px 28px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(17,24,39,.18); animation: rise .5s var(--out) both; }
.login-card img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 8px 20px -8px rgba(242,102,43,.6); }
.login-card h1 { margin: 6px 0 0; font-size: 20px; }
.login-card > p { margin: 0 0 8px; color: var(--ink-3); font-size: 13px; }
.login-card .field { width: 100%; height: 44px; }
.err { min-height: 20px; margin: 0; color: var(--red); font-size: 13px; align-self: flex-start; }

/* ===== 框架：PC 左侧栏 ===== */
.side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 20; width: var(--side); display: flex; flex-direction: column; padding: 16px 12px; background: var(--panel); border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: var(--ink); text-decoration: none; }
.side-brand img { width: 32px; height: 32px; border-radius: 50%; }
.side-brand b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.side-brand i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.side-k { margin: 4px 10px 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ink-4); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.nav:hover { background: var(--soft); color: var(--ink); }
.nav span { flex: 1; }
.nav i { font-style: normal; min-width: 24px; padding: 0 7px; line-height: 20px; border-radius: 999px; font-size: 12px; text-align: center; color: var(--ink-3); background: var(--soft-2); font-variant-numeric: tabular-nums; }
.nav i.hot { color: #fff; background: var(--accent); }
.nav.on { color: var(--accent-ink); background: var(--accent-bg); }
.nav.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav.on svg { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink-3); text-decoration: none; font-size: 14px; text-align: left; }
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link svg { width: 17px; height: 17px; }

.wrap { margin-left: var(--side); min-width: 0; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; height: var(--top); padding: 0 28px; background: rgba(245,246,248,.85); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.stuck { border-bottom-color: var(--line); background: rgba(255,255,255,.88); }
.m-brand { display: none; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.top-title p { margin: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-act { display: flex; gap: 8px; }
.m-only { display: none; }
.tabs { display: none; }
.main { max-width: 1320px; padding: 8px 28px 48px; }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat span { display: block; font-size: 13px; color: var(--ink-3); }
.stat b { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat.hot { border-color: #fed7c3; background: linear-gradient(180deg, #fff7f2, #fff); }
.stat.hot b { color: var(--accent-ink); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.tools .grow { flex: 1 1 260px; }
.tools .nj-f { flex: 0 1 200px; }
.tools .sel-f { flex: 0 0 140px; }
.rule { margin: 0; padding: 10px 16px 12px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); }

.bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.bulk.has { background: var(--accent-bg); }
.bulk-n { font-size: 13px; color: var(--ink-3); }
.bulk.has .bulk-n { color: var(--accent-ink); font-weight: 500; }
.bulk-act { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.bulk-act .btn { height: 30px; padding: 0 10px; font-size: 13px; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--ink-2); }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }

/* ===== 列表：PC 为表格行 ===== */
.thead, .item { display: grid; grid-template-columns: 36px minmax(220px, 1.25fr) minmax(300px, 1.3fr) 150px 230px; align-items: start; column-gap: 16px; padding: 14px 16px; }
.thead { position: sticky; top: var(--top); z-index: 4; padding-top: 10px; padding-bottom: 10px; font-size: 12px; font-weight: 500; color: var(--ink-3); background: #fafbfc; border-bottom: 1px solid var(--line); }
.swipe { overflow: hidden; }
.list { will-change: transform; }
.item { position: relative; border-bottom: 1px solid var(--line); background: var(--panel); transition: background .15s; animation: rise .35s var(--out) both; }
.item:hover { background: #fcfcfd; }
.item.sel { background: #fff8f4; }
.item.pinned { background: color-mix(in srgb, var(--accent) 4%, var(--card, #fff)); }
.it-chk { padding-top: 2px; }
.it-info, .it-title { min-width: 0; }
.it-title b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; word-break: break-all; }
.it-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--soft-2); color: var(--ink-2); }
.tag svg { width: 11px; height: 11px; }
.tag.pin { background: var(--accent-bg); color: var(--accent-ink); }
.tag.auto { background: var(--green-bg); color: var(--green); }
.tag.admin { background: var(--blue-bg); color: var(--blue); }
.tag.reach { background: var(--gold-bg); color: var(--gold); }
.note { position: relative; margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: break-all; max-height: 4.9em; overflow: hidden; }
.note.long { cursor: pointer; }
.note.long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(rgba(247,248,250,0), var(--soft)); }
.note.open { max-height: none; }
.note.open::after { display: none; }

.teams { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.teams > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.teams .vs { display: none; }
.team-l { flex: 0 0 auto; width: 28px; font-size: 12px; color: var(--ink-4); }
.team { flex: 1; min-width: 0; display: flex; gap: 6px; }
.nj { flex: 1 1 0; min-width: 0; max-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.nj .av { position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f2662b, #c94415); box-shadow: 0 0 0 1px var(--line); }
.nj .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nj .av.core { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.nj .av.empty { background: var(--soft-2); color: var(--ink-4); box-shadow: none; }
.nj span { width: 100%; font-size: 12px; line-height: 1.25; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.score .s { display: inline-flex; align-items: center; gap: 4px; }
.score .s svg { width: 14px; height: 14px; }
.score .up { color: var(--accent-ink); font-weight: 500; }
.bar { flex: 1 0 100%; height: 6px; border-radius: 999px; background: #fde2e2; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff9a5c); border-radius: inherit; }
.bar.none { background: var(--soft-2); }
.pct { font-size: 12px; }

.it-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.it-act .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.it-act .btn.ic { width: 32px; padding: 0; }
.it-act .btn.ic span { display: none; }

.empty { padding: 56px 16px; text-align: center; color: var(--ink-3); }
.empty b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink-2); }
.sk { height: 96px; margin: 12px 16px; border-radius: 8px; background: linear-gradient(100deg, #f3f4f6 30%, #e9ebee 50%, #f3f4f6 70%) 0 0/300% 100%; animation: shimmer 1.4s linear infinite; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; color: var(--ink-3); font-size: 13px; }
.pager:empty { display: none; }

/* 弹窗 */
.dlg { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 32px 64px -24px rgba(17,24,39,.35); }
.dlg.small { width: min(400px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(17,24,39,.4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dlg[open] { animation: pop .3s var(--out) both; }
.dlg form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.dlg h2 { margin: 0; font-size: 16px; }
.dlg p { margin: 0; color: var(--ink-2); }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.lbl input, .lbl textarea { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 400; outline: 0; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.lbl input:focus, .lbl textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,102,43,.12); }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 100; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 8px; color: #fff; background: #111827; font-size: 13px; box-shadow: 0 12px 32px -12px rgba(17,24,39,.5);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 中等宽度：评价列并入阵容列下方 */
@media (max-width: 1280px) and (min-width: 1024px) {
  .thead, .item { grid-template-columns: 36px minmax(200px, 1fr) minmax(280px, 1.2fr) 200px; }
  .thead span:nth-child(4) { display: none; }
  .item .score { grid-column: 2; grid-row: 2; margin-top: 10px; }
  .item .it-act { grid-column: 4; grid-row: 1 / span 2; }
}

/* ===== 平板 / 手机：顶部 tabs + 卡片 ===== */
@media (max-width: 1023px) {
  :root { --top: 56px; }
  .side { display: none; }
  .wrap { margin-left: 0; }
  .top { height: calc(var(--top) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0; background: rgba(255,255,255,.9); border-bottom-color: transparent; }
  .top.stuck { border-bottom-color: transparent; }
  .m-brand { display: block; } .m-brand img { width: 32px; height: 32px; border-radius: 50%; }
  .top-title h1 { font-size: 16px; }
  .top-title p { display: none; }
  .m-only { display: grid; }
  .icon-btn { width: 38px; height: 38px; border-color: transparent; background: transparent; }
  .icon-btn:active { background: var(--soft-2); }

  .tabs { position: sticky; top: calc(var(--top) + env(safe-area-inset-top, 0px)); z-index: 14; display: flex; gap: 4px; padding: 0 12px; height: 46px; align-items: stretch;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid var(--line);
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; color: var(--ink-3); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .25s; touch-action: manipulation; }
  .tab i { font-style: normal; min-width: 18px; padding: 0 5px; line-height: 17px; border-radius: 999px; font-size: 12px; color: var(--ink-3); background: var(--soft-2); font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
  .tab.on { color: var(--ink); font-weight: 600; }
  .tab.on i { color: #fff; background: var(--accent); }
  .tab-ind { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transition: transform .45s cubic-bezier(.34,1.3,.64,1), width .45s cubic-bezier(.34,1.3,.64,1); pointer-events: none; }
  .tabs { position: sticky; }

  .main { padding: 12px 12px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
  .stat { padding: 10px 12px; border-radius: 8px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
  .panel { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tools { padding: 0; }
  .tools .grow { flex: 1 1 100%; }
  .tools .nj-f { flex: 1 1 0; }
  .tools .sel-f { flex: 0 0 132px; }
  .field { height: 42px; }
  .field input, .field select { font-size: 16px; }
  .rule { padding: 8px 2px 10px; border: 0; }
  .bulk { position: sticky; top: calc(var(--top) + 46px + env(safe-area-inset-top, 0px)); z-index: 5; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .bulk-act { margin-left: 0; width: 100%; }
  .bulk:not(.has) .bulk-act { display: none; }
  .thead { display: none; }
  .swipe { overflow: hidden; margin: 0 -12px; padding: 0 12px; touch-action: pan-y; }
  .list { display: flex; flex-direction: column; gap: 10px; }
  .item { grid-template-columns: 24px minmax(0,1fr); row-gap: 12px; column-gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .item.pinned { box-shadow: var(--shadow); background: color-mix(in srgb, var(--accent) 4%, #fff); }
  .item.sel { border-color: #fdba98; }
  .item > .teams, .item > .score, .item > .it-act { grid-column: 1 / -1; }
  .teams { padding: 10px; border-radius: 8px; background: var(--soft); }
  .nj .av { width: 40px; height: 40px; }
  .bar { flex: 1 1 auto; }
  .score { flex-wrap: nowrap; }
  .it-act { justify-content: flex-start; padding-top: 12px; border-top: 1px dashed var(--line); }
  .it-act .btn { height: 34px; }
  .it-act .btn.ic { width: auto; padding: 0 10px; }
  .it-act .btn.ic span { display: inline; }
  .empty { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .sk { margin: 0 0 10px; height: 220px; }
  .dlg { width: 100%; max-width: none; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dlg[open] { animation: up .35s var(--out) both; }
  .dlg.small { width: calc(100% - 32px); margin: auto; border-radius: 12px; }
  .dlg.small[open] { animation: pop .3s var(--out) both; }
  .dlg-act .btn { flex: 1; height: 42px; }
}
@media (max-width: 380px) {
  .it-act .btn.ic { width: 34px; padding: 0; }
  .it-act .btn.ic span { display: none; }
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* 修正 */
.field { min-width: 0; }
@media (min-width: 1281px) {
  .thead, .item { grid-template-columns: 36px minmax(220px, 1.2fr) minmax(280px, 1.15fr) 132px auto; }
  .it-act { flex-wrap: nowrap; }
}
@media (max-width: 1280px) and (min-width: 1024px) { .it-act { max-width: 210px; justify-self: end; } }
@media (max-width: 1023px) {
  .stats { display: none; }
  .tools .nj-f { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 1281px) {
  .thead, .item { grid-template-columns: 36px minmax(220px, 1.2fr) minmax(280px, 1.15fr) 132px 300px; }
}
.thead span:last-child { text-align: right; }

/* ===================== v4：登录页左右大卡片 ===================== */
.login { position: relative; overflow: hidden; padding: 32px;
  background: radial-gradient(40% 50% at 15% 10%, rgba(242,102,43,.14), transparent 70%), radial-gradient(40% 50% at 90% 90%, rgba(90,140,230,.12), transparent 70%), var(--bg); }
.login::before, .login::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; filter: blur(70px); opacity: .35; pointer-events: none; animation: blob 22s ease-in-out infinite alternate; }
.login::before { left: -160px; top: -180px; background: #ffb38a; }
.login::after { right: -180px; bottom: -200px; background: #b9cdf5; animation-duration: 28s; animation-delay: -8s; }
@keyframes blob { 0% { transform: translate3d(0,0,0) rotate(0) scale(1); border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; } 50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; } 100% { transform: translate3d(80px,60px,0) rotate(40deg) scale(1.15); border-radius: 38% 62% 50% 50% / 62% 38% 62% 38%; } }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 920px; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; padding: 0; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 80px -32px rgba(17,24,39,.28), 0 2px 6px rgba(17,24,39,.04); animation: rise .6s var(--out) both; }
.login-art { position: relative; overflow: hidden; background: #0a1621; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: kenburns 24s ease-in-out infinite alternate; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,33,0) 50%, rgba(10,22,33,.82)); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }
.art-cap { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 1; color: #fff; }
.art-cap b { display: block; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
.art-cap span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.75); }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 56px 56px 48px; }
.lf-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.lf-brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 8px 20px -8px rgba(242,102,43,.55); }
.lf-brand b { display: block; font-size: 16px; font-weight: 700; line-height: 22px; }
.lf-brand span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.lf-head { margin-bottom: 32px; }
.lf-head h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.lf-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.lf-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--ink-2); }
.login-card .lf-field { width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; }
.lf-field svg { width: 17px; height: 17px; }
.login-form .err { min-height: 20px; margin: 8px 0 16px; line-height: 20px; }
.login-form .btn.block { height: 48px; border-radius: 8px; background: linear-gradient(110deg, #f2662b, #ff8a4c 50%, #f2662b) 0 0 / 200% 100%; transition: background-position .6s var(--out), transform .15s; }
.login-form .btn.block:hover { background-position: 100% 0; }
.lf-foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-4); }
@media (max-width: 860px) {
  .login { padding: 20px 16px; align-items: start; padding-top: max(20px, env(safe-area-inset-top)); }
  .login-card { grid-template-columns: 1fr; min-height: 0; max-width: 440px; margin: auto; }
  .login-art { height: 200px; }
  .login-art img { object-position: 50% 28%; }
  .art-cap { left: 24px; right: 24px; bottom: 18px; }
  .art-cap b { font-size: 16px; } .art-cap span { margin-top: 2px; font-size: 12px; }
  .login-form { padding: 28px 24px 24px; }
  .lf-brand { margin-bottom: 24px; }
  .lf-head { margin-bottom: 24px; } .lf-head h1 { font-size: 20px; }
  .lf-field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .login::before, .login::after, .login-art img { animation: none; } }

/* ===================== v4：侧栏 LOGO 区与 TOP 等高对齐 ===================== */
:root { --top: 72px; }
.side { padding: 0 12px 16px; }
.side-brand { height: var(--top); padding: 0 8px; margin: 0 -12px 16px; padding-left: 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.side-brand b { line-height: 20px; } .side-brand i { line-height: 18px; margin-top: 1px; }
.side-k { margin: 0 10px 8px; line-height: 18px; }
.side-nav { gap: 4px; }
.nav { height: 42px; padding: 0 12px; }
.side-link { height: 42px; padding: 0 12px; }
.side-link span { flex: 1; }
.side-link .ext { width: 14px; height: 14px; color: var(--ink-4); }
.top { height: var(--top); padding: 0 32px; background: var(--panel); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.top.stuck { background: var(--panel); }
.top-title { display: flex; align-items: center; gap: 8px; min-width: 0; height: 100%; }
.crumb { font-size: 14px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.crumb-sep { width: 15px; height: 15px; color: var(--ink-4); }
.top-title h1 { font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.top-count { font-style: normal; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 22px; color: var(--ink-3); background: var(--soft-2); font-variant-numeric: tabular-nums; }
.top-act { align-items: center; gap: 10px; }
.top-act .icon-btn { width: 38px; height: 38px; }
.btn.logout { height: 38px; padding: 0 14px; }
.main { padding: 24px 32px 48px; }
.stats { gap: 16px; margin-bottom: 24px; }
.stat { padding: 18px 20px; }
.stat span { line-height: 20px; } .stat b { margin-top: 6px; font-size: 28px; line-height: 32px; }
.tools { gap: 12px; padding: 20px 24px; align-items: center; border-bottom: 1px solid var(--line); }
.tools .field { height: 40px; }
.tools .nj-f { flex: 0 1 220px; } .tools .sel-f { flex: 0 0 160px; }
.bulk { min-height: 56px; padding: 0 24px; gap: 16px; flex-wrap: nowrap; }
.bulk .chk span, .bulk-n { line-height: 20px; white-space: nowrap; }
.bulk-act { margin-left: 0; flex-wrap: nowrap; }
.rule { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; border: 0; font-size: 13px; line-height: 20px; color: var(--ink-4); white-space: nowrap; cursor: help; }
.rule svg { width: 14px; height: 14px; }
.bulk.has .rule { display: none; }
.thead, .item { padding-left: 24px; padding-right: 24px; column-gap: 24px; }
.thead { top: var(--top); height: 44px; padding-top: 0; padding-bottom: 0; align-items: center; line-height: 20px; }
.item { padding-top: 20px; padding-bottom: 20px; align-items: center; }
.it-chk, .thead > span:first-child { align-self: center; }
.it-chk { padding: 0; display: flex; align-items: center; }
.item > .it-chk { align-self: start; height: 22px; }
.item > .it-info { align-self: start; }
.it-title b { line-height: 22px; }
.it-meta { margin-top: 6px; line-height: 20px; gap: 6px 10px; }
.note { margin-top: 12px; padding: 10px 12px; line-height: 1.7; }
.teams { gap: 12px; }
.teams > div { align-items: flex-start; }
.team-l { height: 36px; line-height: 36px; }
.nj { gap: 6px; }
.nj span { line-height: 16px; }
.score { gap: 8px 14px; }
.score .s { line-height: 20px; }
.bar { margin: 2px 0; }
.it-act { gap: 8px; align-self: center; }
.pager { padding: 20px 24px; }

@media (max-width: 1280px) and (min-width: 1024px) { .item .score { margin-top: 0; } }
@media (max-width: 1023px) {
  :root { --top: 56px; }
  .top { padding: env(safe-area-inset-top, 0px) 8px 0 12px; height: calc(var(--top) + env(safe-area-inset-top, 0px)); border-bottom: 0; }
  .crumb, .crumb-sep, .top-count { display: none; }
  .top-title h1 { font-size: 16px; }
  .top-title { gap: 10px; }
  .top-act { gap: 2px; }
  .btn.logout { width: 40px; height: 40px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-2); }
  .btn.logout span { display: none; }
  .main { padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .tools { padding: 0 0 12px; gap: 10px; border: 0; flex-wrap: wrap; }
  .tools .grow { flex: 1 1 100%; }
  .tools .nj-f { flex: 1 1 0; } .tools .sel-f { flex: 0 0 136px; }
  .tools .field { height: 44px; }
  .bulk { min-height: 52px; padding: 8px 12px; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; top: calc(var(--top) + 46px + env(safe-area-inset-top, 0px)); }
  .bulk-act { flex-wrap: wrap; width: 100%; }
  .rule { margin-left: auto; font-size: 12px; }
  .swipe { margin: 0 -16px; padding: 0 16px; }
  .list { gap: 12px; }
  .item { padding: 16px; row-gap: 14px; align-items: start; }
  .item > .it-chk { height: 22px; }
  .teams { padding: 12px; }
  .it-act { padding-top: 14px; gap: 8px; }
  .it-act .btn { height: 36px; }
}
.login-card .login-art img { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
@media (min-width: 1024px) {
  .item { align-items: start; }
  .item > * { align-self: start !important; }
  .it-act { margin-top: -5px; }
  .score { padding-top: 1px; }
  .teams > div:first-child .team-l, .teams > div:first-child .nj .av { margin-top: -7px; }
}
@media (max-width: 1023px) { .bulk { flex-wrap: nowrap; } .bulk.has { flex-wrap: wrap; } .rule span { display: none; } .rule { width: 32px; height: 32px; justify-content: center; } }
/* v5 login brand on art */
.login-card > .lf-brand { position: absolute; z-index: 3; left: 32px; top: 28px; margin: 0; gap: 10px; color: #fff; }
.login-card > .lf-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.18); }
.lf-bt { display: flex; flex-direction: column; width: max-content; }
.lf-bt b { display: block; font-size: 16px; font-weight: 700; line-height: 22px; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.lf-bt span { display: block; width: 0; min-width: 100%; font-size: 12px; line-height: 16px; margin-top: 2px; text-align: justify; text-align-last: justify; color: rgba(255,255,255,.78) !important; text-shadow: 0 1px 6px rgba(0,0,0,.35); white-space: nowrap; letter-spacing: 0; }
.login-art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; background: linear-gradient(180deg, rgba(10,22,33,.55), rgba(10,22,33,0)); pointer-events: none; }
.lf-foot { text-align: center; }
@media (max-width: 1023px) { .login-card > .lf-brand { left: 20px; top: 18px; } }
.sb-bt { display: flex; flex-direction: column; width: max-content; }
.sb-bt b { letter-spacing: .06em; }
.sb-bt i { width: 0; min-width: 100%; font-size: 12px; white-space: nowrap; letter-spacing: 0; text-align: justify; text-align-last: justify; }
