/* ==========================================================
   赛事通 · 后台样式（Layui 增强）
   ========================================================== */
:root {
  --adm-primary: #2456e6;
  --adm-primary-dark: #1b3fa8;
  --adm-ink: #101828;
  --adm-line: #eaedf5;
  --adm-bg: #f4f6fa;
}

body { background: var(--adm-bg); }

/* --------- 登录页 --------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, #0b1428 0%, #16305f 48%, #2456e6 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(255, 122, 47, .3), transparent 62%);
}
.login-page::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(77, 123, 255, .3), transparent 62%);
}
.login-box {
  position: relative; z-index: 2;
  width: 900px; max-width: 92vw;
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(4, 12, 32, .45);
}
.login-intro {
  background: linear-gradient(150deg, #0f1c38, #1b3b7a 62%, #2456e6);
  color: #fff; padding: 56px 46px; display: flex; flex-direction: column; justify-content: center;
}
.login-intro .brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; }
.login-intro .brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a3d, #ff6b2c); font-size: 19px;
  box-shadow: 0 10px 22px rgba(255, 107, 44, .35);
}
.login-intro h2 { font-size: 28px; margin-top: 34px; line-height: 1.45; font-weight: 700; }
.login-intro p { margin-top: 14px; color: #c3d2ee; line-height: 1.95; font-size: 14px; }
.login-intro ul { margin-top: 28px; }
.login-intro li { color: #d6e2ff; font-size: 13px; padding: 6px 0; }

.login-form { padding: 54px 46px; }
.login-form h1 { font-size: 22px; font-weight: 700; color: var(--adm-ink); }
.login-form .sub { color: #98a2b3; font-size: 13px; margin: 8px 0 28px; }
.login-form .layui-input { height: 46px; border-radius: 10px; border-color: #e2e6ef; }
.login-form .layui-input:focus { border-color: var(--adm-primary) !important; box-shadow: 0 0 0 3px rgba(36, 86, 230, .1); }
.login-form .layui-form-item { margin-bottom: 18px; }
.login-form .layui-btn { width: 100%; height: 46px; line-height: 46px; border-radius: 10px; background: linear-gradient(135deg, #ff8a3d, #ff6b2c); font-size: 15px; letter-spacing: 4px; }
.login-form .tips { text-align: center; color: #98a2b3; font-size: 12px; margin-top: 20px; }

/* --------- 框架 --------- */
.layui-layout-admin .layui-header { background: #0e1a33; }
.layui-layout-admin .layui-logo {
  width: 220px; color: #fff; font-size: 17px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; padding-left: 18px;
  background: #0b1428; letter-spacing: .5px;
}
.layui-layout-admin .layui-logo .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a3d, #ff6b2c); font-size: 15px; font-weight: 700;
}
.layui-layout-admin .layui-side { background: #0f1b33; width: 220px; }
.layui-layout-admin .layui-side-scroll { width: 220px; }
.layui-layout-admin .layui-body { left: 220px; background: var(--adm-bg); bottom: 0; }
.layui-layout-admin .layui-footer { left: 220px; background: #fff; border-top: 1px solid var(--adm-line); color: #98a2b3; font-size: 12px; }

.layui-nav-tree { background: #0f1b33; }
.layui-nav-tree .layui-nav-item a { color: #b7c3da; font-size: 14px; }
.layui-nav-tree .layui-nav-item a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.layui-nav-tree .layui-nav-itemed > a,
.layui-nav-tree .layui-this > a { background: var(--adm-primary) !important; color: #fff !important; }
.layui-nav-tree .layui-nav-child dd.layui-this a { background: rgba(36, 86, 230, .22) !important; color: #fff !important; }
.layui-nav-itemed > .layui-nav-child { background: #0b1428 !important; }
.layui-nav-tree .layui-nav-child a { padding-left: 46px; font-size: 13px; }
.layui-nav-tree .layui-nav-more { right: 18px; }
.layui-nav-tree .layui-nav-bar { background-color: var(--adm-primary); }
.layui-header .layui-nav .layui-nav-item a { color: #c7d3e8; }
.layui-header .layui-nav .layui-nav-item a:hover { color: #fff; }

/* --------- 内容页 --------- */
.admin-page { padding: 20px; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-title h2 { font-size: 19px; font-weight: 700; color: var(--adm-ink); }
.page-title .desc { font-size: 12px; color: #98a2b3; margin-top: 4px; }

.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(16, 24, 40, .04); padding: 20px; }
.card + .card { margin-top: 16px; }

.search-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-bar .layui-input, .search-bar .layui-form-select { width: 180px; }
.search-bar .layui-form-select .layui-input { width: 180px; }

.layui-table-view { border-radius: 10px; }
.layui-table th { background: #f8fafd !important; font-weight: 600; color: #475467; }
.layui-btn { border-radius: 7px; }
.layui-btn-primary { border-color: #e2e6ef; }
.layui-btn-normal { background-color: var(--adm-primary); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .04); position: relative; overflow: hidden;
}
.stat-card .label { font-size: 13px; color: #98a2b3; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--adm-ink); line-height: 1.4; margin-top: 4px; }
.stat-card .ico {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-size: 18px; background: #eef2ff; color: var(--adm-primary);
}
.stat-card.warn .num { color: #d4520f; }
.stat-card.warn .ico { background: #fff2e8; color: #d4520f; }
.stat-card.ok .num { color: #12805c; }
.stat-card.ok .ico { background: #e7f7ef; color: #12805c; }
.stat-card.info .num { color: var(--adm-primary); }
.stat-card.info .ico { background: #eaf0ff; color: var(--adm-primary); }

/* 柱状图 */
.chart-box { display: flex; align-items: flex-end; gap: 18px; height: 190px; padding: 20px 6px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar {
  width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #4d7bff, #2456e6); min-height: 4px;
  position: relative; transition: .3s;
}
.chart-bar:hover { filter: brightness(1.06); }
.chart-bar span {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: #475467; font-weight: 600;
}
.chart-label { font-size: 12px; color: #98a2b3; margin-top: 10px; }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-link {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--adm-line); color: #475467; font-size: 13px; transition: .2s; background: #fff;
}
.quick-link:hover { border-color: var(--adm-primary); color: var(--adm-primary); transform: translateY(-2px); }
.quick-link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--adm-primary); }

.form-tip { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.form-card { max-width: 980px; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   赛程管理：分组 / 编排 / 赛程图
   ========================================================== */

/* ---------- 通用 ---------- */
.empty { text-align: center; color: #98a2b3; font-size: 13px; padding: 46px 0; }
.empty-ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; background: #f2f5fb; color: #b3bed2; font-size: 24px;
}
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 6px;
}
.stat-cell {
  flex: 1; min-width: 130px; background: #f8fafd; border: 1px solid #eef1f7;
  border-radius: 10px; padding: 12px 16px;
}
.stat-cell span { font-size: 12px; color: #98a2b3; display: block; }
.stat-cell b { font-size: 24px; font-weight: 800; color: #101828; line-height: 1.5; }
.c-blue { color: #2456e6 !important; }
.c-green { color: #12805c !important; }
.c-orange { color: #d4520f !important; }
.sch-btn-green { background: #12805c; color: #fff; }
.sch-btn-green:hover { background: #0e6a4c; color: #fff; }

.sch-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sch-bar-item { display: flex; align-items: center; gap: 8px; }
.sch-bar-item label { font-size: 13px; color: #475467; white-space: nowrap; }
.sch-bar-tip { font-size: 12px; color: #98a2b3; }

/* ---------- 编排配置 ---------- */
.cfg-grid { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.cfg-item > label { display: block; font-size: 12px; color: #667085; margin-bottom: 6px; }
.cfg-input { display: flex; align-items: center; gap: 6px; }
.cfg-input .layui-input { height: 36px; width: 100px; border-radius: 8px; }
.cfg-input span { font-size: 12px; color: #98a2b3; white-space: nowrap; }
.cfg-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed #eaedf5;
}
.cfg-actions .layui-btn { margin: 0; }
.cfg-summary {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: #f5f7fb; border: 1px solid #eaedf5;
  font-size: 12.5px; color: #667085; line-height: 1.7;
}
.cfg-summary b { color: #1d4ed8; font-weight: 700; }
.cfg-summary .layui-icon { margin-right: 4px; color: #98a2b3; }

/* 对阵单元格 */
.vs-cell { display: flex; align-items: center; gap: 10px; justify-content: center; }
.vs-a, .vs-b { flex: 1; font-size: 13px; color: #344054; }
.vs-a { text-align: right; }
.vs-b { text-align: left; }
.vs-a.win, .vs-b.win { color: #101828; font-weight: 700; }
.vs-score {
  min-width: 58px; text-align: center; font-style: normal; font-weight: 700;
  color: #2456e6; background: #eef2ff; border-radius: 6px; padding: 3px 6px; font-size: 12px;
}
.st-dot { font-size: 12px; }
.st-dot::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.st-dot.st-done { color: #12805c; }
.st-dot.st-done::before { background: #12805c; }
.st-dot.st-wait { color: #98a2b3; }
.st-dot.st-wait::before { background: #d0d5dd; }

/* 比分录入 */
.score-line { display: flex; align-items: center; gap: 12px; }
.score-line span { flex: 1; font-size: 13px; color: #344054; text-align: center; }
.score-line span:first-child { text-align: right; }
.score-line span:last-child { text-align: left; }
.score-line input { width: 84px; text-align: center; font-size: 20px; font-weight: 700; height: 46px; }
.score-line i { font-style: normal; color: #98a2b3; font-size: 18px; }

/* ---------- 分组 ---------- */
.group-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 14px;
}
.group-card { border: 1px solid #eaedf5; border-radius: 12px; overflow: hidden; background: #fff; }
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: linear-gradient(135deg, #f4f7ff, #eef2ff);
  border-bottom: 1px solid #eaedf5;
}
.group-badge { font-weight: 800; color: #1b3fa8; font-size: 15px; letter-spacing: .5px; }
.group-count { font-size: 12px; color: #667085; background: #fff; border-radius: 20px; padding: 2px 10px; }
.group-body { padding: 8px 8px 10px; }
.group-empty { color: #b3bed2; font-size: 12px; text-align: center; padding: 18px 0; }
.member-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px;
  border-radius: 8px; transition: .15s;
}
.member-row:hover { background: #f8fafd; }
.member-row .seat {
  width: 22px; height: 22px; border-radius: 6px; background: #eef2ff; color: #2456e6;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.m-info { flex: 1; min-width: 0; }
.m-name { font-size: 13px; color: #344054; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sub { font-size: 11px; color: #98a2b3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-act { display: flex; gap: 8px; opacity: 0; transition: .15s; flex: none; }
.member-row:hover .m-act { opacity: 1; }
.m-act a { font-size: 12px; color: #2456e6; }
.m-act a.danger { color: #d92d20; }

.unassigned-box { margin-top: 18px; border-top: 1px dashed #eaedf5; padding-top: 14px; }
.unassigned-head { font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 10px; }
.unassigned-head span { color: #d4520f; font-weight: 700; }
.unassigned-list { display: flex; flex-wrap: wrap; gap: 8px; }
.unassigned-chip {
  display: flex; align-items: center; gap: 8px; border: 1px dashed #dfe4ee;
  background: #fbfcff; border-radius: 20px; padding: 6px 12px; font-size: 12px; color: #344054;
}
.unassigned-chip em { font-style: normal; color: #98a2b3; font-size: 11px; }
.unassigned-chip a { color: #2456e6; font-size: 12px; }
.unassigned-empty { font-size: 12px; color: #98a2b3; }

/* ---------- 种子选手 ---------- */
.seed-card { margin-top: 16px; }
.seed-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seed-title { font-size: 14px; font-weight: 700; color: #1b3fa8; display: flex; align-items: center; gap: 6px; }
.seed-title .layui-icon { color: #f0a020; }
.seed-count { color: #d4520f; font-weight: 800; margin: 0 2px; }
.seed-desc { flex: 1; min-width: 240px; font-size: 12px; color: #98a2b3; }
.seed-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seed-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff8ec; border: 1px solid #f7dfae; color: #8a5a00;
  border-radius: 20px; padding: 4px 12px 4px 5px; font-size: 12.5px;
}
.seed-chip em {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  background: #f0a020; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.seed-chip i {
  font-style: normal; font-size: 11px; color: #b07a1a;
  background: #fff; border-radius: 10px; padding: 1px 6px;
}
.seed-empty-inline { font-size: 12px; color: #98a2b3; }
.seed-badge { font-size: 11px; color: #8a5a00; background: #fff4dd; border-radius: 20px; padding: 2px 9px; }
.team-warn { font-size: 11px; color: #b42318; background: #fef3f2; border-radius: 20px; padding: 2px 9px; }
.group-card.has-conflict { border-color: #fbd5d1; }
.seed-tag {
  font-size: 10.5px; color: #8a5a00; background: #fff4dd;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px; font-weight: 600; flex: none;
}
.team-chip { font-size: 11px; color: #475467; background: #f2f4f7; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.team-chip.dup { color: #b42318; background: #fef3f2; }
.team-chip.solo { color: #98a2b3; background: #f8fafc; }
.m-sub em { font-style: normal; color: #98a2b3; font-size: 11px; }
.m-name { display: flex; align-items: center; }
.member-row.is-seed { background: #fffdf7; }

/* 种子设置弹窗 */
.seed-modal { display: flex; gap: 14px; padding: 14px 16px; height: 440px; }
.seed-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.seed-col-right { border-left: 1px dashed #eaedf5; padding-left: 14px; }
.seed-col-head { font-size: 13px; font-weight: 700; color: #344054; margin-bottom: 8px; }
.seed-col-count { font-weight: 400; color: #98a2b3; font-size: 12px; margin-left: 4px; }
.seed-search { height: 34px; margin-bottom: 8px; border-radius: 8px; }
.seed-pool, .seed-picked { flex: 1; overflow: auto; border: 1px solid #eaedf5; border-radius: 10px; padding: 6px; }
.seed-opt, .seed-pick { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.seed-opt:hover, .seed-pick:hover { background: #f8fafd; }
.so-main, .sp-main { flex: 1; min-width: 0; }
.so-main b, .sp-main b { display: block; font-size: 13px; color: #344054; font-weight: 600; }
.so-main span, .sp-main span { font-size: 11px; color: #98a2b3; }
.so-add { font-size: 12px; color: #2456e6; flex: none; }
.seed-no {
  width: 22px; height: 22px; border-radius: 50%; background: #f0a020; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.sp-act { display: flex; gap: 6px; flex: none; }
.sp-act a {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid #eaedf5; color: #475467;
  font-size: 12px; display: grid; place-items: center;
}
.sp-act a.danger { color: #d92d20; border-color: #fbd5d1; }
.sp-act a.off { color: #d0d5dd; }
.seed-empty { color: #98a2b3; font-size: 12px; text-align: center; padding: 20px 0; }
.seed-foot-tip { font-size: 11.5px; color: #98a2b3; margin-top: 8px; line-height: 1.6; }

/* ---------- 赛程图：场地时间轴 ---------- */
.print-head { display: none; }
.tl-day { margin-bottom: 22px; }
.tl-day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-day-head b { font-size: 16px; color: #101828; }
.tl-day-head span {
  font-size: 12px; color: #2456e6; background: #eef2ff; border-radius: 20px; padding: 2px 9px;
}
.tl-day-head em { font-style: normal; font-size: 12px; color: #98a2b3; margin-left: auto; }
.tl-scroll { overflow-x: auto; border: 1px solid #eaedf5; border-radius: 12px; background: #fff; }
.tl-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; }
.tl-table th, .tl-table td {
  border-right: 1px solid #f1f4f9; border-bottom: 1px solid #f1f4f9;
  padding: 8px; vertical-align: top; min-width: 158px;
}
.tl-table thead th {
  position: sticky; top: 0; z-index: 2; background: #f8fafd;
  font-size: 12px; color: #475467; font-weight: 600; text-align: center; padding: 9px 6px;
  white-space: nowrap;
}
.tl-table thead th.tl-venue { left: 0; z-index: 3; text-align: left; padding-left: 14px; min-width: 110px; }
.tl-table tbody th.tl-venue {
  position: sticky; left: 0; z-index: 1; background: #fbfcff; text-align: left;
  font-size: 13px; color: #344054; font-weight: 600; min-width: 110px; padding: 12px 14px;
  white-space: nowrap;
}
.venue-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2456e6; margin-right: 7px; vertical-align: middle;
}
.mc {
  background: #f8faff; border: 1px solid #e6ecfb; border-left: 3px solid #2456e6;
  border-radius: 8px; padding: 7px 9px; margin-bottom: 6px;
}
.mc:last-child { margin-bottom: 0; }
.mc.mc-ko { border-left-color: #ff7a2f; background: #fffaf6; border-color: #fbe6d8; }
.mc.mc-done { background: #f4faf7; border-color: #dcefe5; border-left-color: #12805c; }
.mc-top { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; color: #98a2b3; margin-bottom: 4px; }
.mc-top em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-team { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #344054; line-height: 1.7; }
.mc-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-team b { color: #2456e6; font-size: 12px; }
.mc-empty { height: 34px; border-radius: 8px; background: repeating-linear-gradient(45deg, #fbfcfe, #fbfcfe 6px, #f6f8fc 6px, #f6f8fc 12px); }

/* ---------- 赛程图：淘汰赛对阵 ---------- */
.bracket-wrap {
  position: relative; overflow-x: auto; padding: 10px 4px 24px;
  background: #fbfcff; border: 1px solid #eef1f7; border-radius: 12px;
}
.bracket-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.bracket-body {
  position: relative; z-index: 1; display: flex; align-items: stretch;
  gap: 58px; min-height: 320px; padding: 8px 10px;
}
.bk-round { display: flex; flex-direction: column; min-width: 188px; }
.bk-round-title {
  font-size: 12px; font-weight: 700; color: #1b3fa8; text-align: center;
  background: #eef2ff; border-radius: 20px; padding: 4px 10px; margin-bottom: 8px; flex: none;
}
.bk-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bk-half-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: #2456e6;
  text-align: center; padding: 2px 0; border-top: 1px dashed #d7e0f5; flex: none;
}
.bk-half-label.lower { color: #7a5af8; border-top-color: #e3dbfb; }
.bk-match {
  background: #fff; border: 1px solid #e4e9f4; border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .05);
}
.bk-meta { display: flex; justify-content: space-between; font-size: 10px; color: #98a2b3; margin-bottom: 4px; }
.bk-meta em { font-style: normal; }
.bk-team { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #475467; line-height: 1.8; }
.bk-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-team b { font-size: 12px; color: #101828; }
.bk-team.win { color: #101828; font-weight: 700; }
.bk-team.win b { color: #12805c; }
.bk-champion {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 140px; background: linear-gradient(160deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa; border-radius: 12px; padding: 18px 12px; align-self: center;
}
.bk-champion .cup { font-size: 30px; line-height: 1; }
.bk-champion .ch-label { font-size: 12px; color: #b45309; margin-top: 8px; letter-spacing: 3px; }
.bk-champion .ch-name { font-size: 15px; font-weight: 800; color: #92400e; margin-top: 4px; text-align: center; }

/* ---------- 赛程图：积分榜 ---------- */
.stand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.stand-card { border: 1px solid #eaedf5; border-radius: 12px; overflow: hidden; }
.stand-head {
  padding: 10px 16px; font-weight: 800; color: #1b3fa8; font-size: 14px;
  background: linear-gradient(135deg, #f4f7ff, #eef2ff);
}
.stand-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stand-table th {
  background: #fbfcff; color: #98a2b3; font-weight: 600; font-size: 11px;
  text-align: center; padding: 8px 4px; border-bottom: 1px solid #f1f4f9;
}
.stand-table td { text-align: center; padding: 8px 4px; border-bottom: 1px solid #f5f7fb; color: #475467; }
.stand-table td.t-name { text-align: left; color: #101828; font-weight: 600; padding-left: 8px; }
.stand-table .t-player { display: flex; align-items: center; gap: 4px; }
.stand-table .t-team { font-weight: 400; font-size: 11px; color: #98a2b3; margin-top: 1px; }
.stand-table tr.advance td { background: #f6fbf8; }
.rank-badge {
  display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 6px;
  background: #f2f5fb; color: #667085; font-size: 11px; font-weight: 700;
}
.stand-table tr.advance .rank-badge { background: #12805c; color: #fff; }

/* ---------- 打印 ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; }
  .admin-page { padding: 0; }
  .no-print, .layui-tab-title { display: none !important; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-head { display: block; margin-bottom: 12px; }
  .print-head h1 { font-size: 18px; color: #101828; }
  .print-head p { font-size: 11px; color: #667085; margin-top: 4px; }
  .layui-tab-content .layui-tab-item { display: block !important; page-break-before: always; }
  .layui-tab-content .layui-tab-item:first-child { page-break-before: auto; }
  .tl-scroll, .bracket-wrap { overflow: visible; border: 0; }
  .bk-list { justify-content: space-around; }
}

/* ==================== 晋级与计分规则 ==================== */
.rule-divider {
  margin: 20px 0 12px; padding: 8px 12px; border-radius: 8px;
  background: #f2f6fc; color: #1d4ed8; font-weight: 700; font-size: 13px;
}
.rule-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.rule-block {
  flex: 1; min-width: 320px; border: 1px solid #e6ebf2; border-radius: 10px;
  padding: 14px 16px; background: #fbfcff;
}
.rule-block.rule-block-ko { background: #fffdf9; }
.rule-title { font-weight: 700; font-size: 13px; color: #1d4ed8; margin-bottom: 12px; }
.rule-title-ko { color: #b45309; }
.rule-tip { margin-top: 12px; font-size: 12px; color: #667085; line-height: 1.7; }
.rule-select { height: 38px; border: 1px solid #dfe4ee; border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; color: #344054; min-width: 100%; }
.score-rule {
  margin-bottom: 14px; padding: 8px 12px; border-radius: 8px;
  background: #f2f6fc; color: #1d4ed8; font-size: 12.5px; line-height: 1.7;
}
.score-rule .layui-icon { margin-right: 4px; }

/* ==================== 裁判管理 ==================== */
.ref-stat-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 16px;
}
.ref-stat {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .04); border-left: 3px solid #d7deec;
}
.ref-stat .rs-label { font-size: 12px; color: #98a2b3; }
.ref-stat .rs-num { font-size: 24px; font-weight: 800; color: #101828; line-height: 1.5; margin-top: 2px; }
.ref-stat.ok { border-left-color: #12805c; }
.ref-stat.ok .rs-num { color: #12805c; }
.ref-stat.warn { border-left-color: #f79009; }
.ref-stat.warn .rs-num { color: #d4520f; }
.ref-stat.danger { border-left-color: #d92d20; }
.ref-stat.danger .rs-num { color: #d92d20; }
.ref-stat.info { border-left-color: #2456e6; }
.ref-stat.info .rs-num { color: #2456e6; }

.ref-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ref-avatar {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, #2456e6, #4d7bff); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 86, 230, .25);
}
.ref-name { font-size: 19px; font-weight: 800; color: #101828; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-no {
  font-size: 12px; font-weight: 500; color: #667085; background: #f2f5fb;
  border-radius: 6px; padding: 2px 8px; letter-spacing: .5px;
}
.ref-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ref-head-actions { margin-left: auto; }

.ref-alert { margin-top: 14px; padding: 10px 14px; border-radius: 9px; font-size: 13px; line-height: 1.7; }
.ref-alert.warn { background: #fff7e8; color: #a35c00; }
.ref-alert.danger { background: #fdecec; color: #b42318; }
.ref-alert b { font-weight: 700; }

.ref-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.ref-two > * { min-width: 0; }
.ref-two .card + .card { margin-top: 16px; }
.ref-h3 { font-size: 15px; font-weight: 800; color: #101828; margin-bottom: 12px; }
.ref-tip { font-size: 12.5px; color: #98a2b3; line-height: 1.7; margin: -4px 0 12px; }
.ref-info {
  display: flex; justify-content: space-between; gap: 16px; padding: 8px 0;
  border-bottom: 1px dashed #eef1f7; font-size: 13px;
}
.ref-info:last-child { border-bottom: 0; }
.ref-info > span:first-child { color: #98a2b3; flex: none; }
.ref-info > span:last-child { color: #101828; font-weight: 600; text-align: right; word-break: break-all; }
.ref-intro {
  margin-top: 12px; padding: 10px 12px; background: #f8fafd; border-radius: 8px;
  font-size: 12.5px; color: #475467; line-height: 1.8;
}
.ref-field { margin-bottom: 12px; }
.ref-field label { display: block; font-size: 12.5px; font-weight: 600; color: #475467; margin-bottom: 6px; }
.ref-field-row { display: flex; gap: 12px; }
.ref-field-row .ref-field { flex: 1; min-width: 0; }
.ref-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ref-file { font-size: 12px; }
.ref-upload-preview { margin-top: 8px; }
.cert-thumb {
  width: 132px; height: 92px; object-fit: cover; border-radius: 8px;
  border: 1px solid #e6ebf2; cursor: zoom-in; background: #f8fafd;
}
.ref-table-wrap { overflow-x: auto; }
.ref-table-wrap .layui-table { margin: 0; min-width: 760px; }
.ref-empty { padding: 28px; text-align: center; color: #98a2b3; font-size: 13px; }

.pending-box {
  border: 1px dashed #f7c48b; background: #fffaf3; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px;
}
.pending-title { font-size: 13px; font-weight: 700; color: #b45309; margin-bottom: 6px; }

.ref-timeline { position: relative; padding-left: 16px; }
.ref-timeline::before { content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 2px; background: #eef1f7; }
.ref-tl-item { position: relative; padding: 0 0 16px 10px; }
.ref-tl-item::before {
  content: ''; position: absolute; left: -17px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: #2456e6; box-shadow: 0 0 0 3px #eaf0ff;
}
.ref-tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #101828; }
.ref-tl-src { font-size: 11px; color: #667085; background: #f2f5fb; border-radius: 4px; padding: 1px 6px; }
.ref-tl-time { font-size: 11.5px; color: #98a2b3; margin-left: auto; }
.ref-tl-body { font-size: 12.5px; color: #475467; margin-top: 4px; line-height: 1.7; }
.ref-tl-op { font-size: 11.5px; color: #98a2b3; margin-top: 2px; }

@media (max-width: 1366px) {
  .ref-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .ref-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-two { grid-template-columns: 1fr; }
  .ref-head-actions { margin-left: 0; }
}

/* ==================== 执裁流水 / 场次码 ==================== */
.mc-code {
  font-size: 11px; color: #98a2b3; letter-spacing: .4px; margin-top: 2px; font-weight: 500;
}
.vs-score i.vs-sets {
  display: block; font-style: normal; font-size: 10.5px; color: #98a2b3; font-weight: 500; margin-top: 1px;
}
.mc-sets { margin-top: 6px; font-size: 10.5px; color: #98a2b3; letter-spacing: .2px; }
.mc-flag {
  display: inline-block; margin-top: 4px; font-size: 10px; color: #b45309;
  background: #fff7e8; border-radius: 4px; padding: 0 5px;
}

.flow-warn {
  margin-top: 8px; padding: 8px 11px; background: #fff7e8; color: #a35c00;
  border-radius: 8px; font-size: 12.5px; line-height: 1.7;
}
.flow-wrap { padding: 18px 20px 24px; }
.flow-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid #eef1f7;
}
.flow-head b { font-size: 14px; color: #101828; }
.flow-score { font-size: 20px; font-weight: 800; color: #2456e6; letter-spacing: 1px; }
.flow-tag { font-size: 11.5px; color: #475467; background: #f2f5fb; border-radius: 6px; padding: 2px 8px; }
.flow-tag.warn { background: #fff7e8; color: #b45309; }
.flow-rule {
  margin-top: 10px; font-size: 12.5px; color: #667085; line-height: 1.7;
  background: #f8fafd; border-radius: 8px; padding: 8px 11px;
}
.flow-sec { font-size: 13px; font-weight: 700; color: #101828; margin: 16px 0 8px; }
.flow-sets { display: flex; gap: 8px; flex-wrap: wrap; }
.flow-set {
  display: flex; align-items: baseline; gap: 6px;
  border: 1px solid #e6ebf2; border-radius: 8px; padding: 6px 12px;
  font-size: 12px; color: #667085;
}
.flow-set b { font-size: 14px; color: #101828; }
.flow-set em { font-style: normal; font-size: 11.5px; color: #98a2b3; }
.flow-set.win { border-color: #a6e3c6; background: #f2fbf6; }
.flow-set.win em { color: #12805c; }
.flow-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.flow-table th {
  text-align: left; font-weight: 600; color: #98a2b3; background: #fafbfe;
  padding: 7px 9px; border-bottom: 1px solid #eef1f7;
}
.flow-table td { padding: 7px 9px; border-bottom: 1px solid #f4f6fa; color: #475467; }
.flow-void { color: #b42318; text-decoration: line-through; }
.flow-empty {
  padding: 22px; text-align: center; color: #98a2b3; font-size: 12.5px;
  background: #f8fafd; border-radius: 8px;
}

/* ==================== 日程范围 / 中途休息 ==================== */
.c-red { color: #d92d20 !important; }

.cfg-range {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  background: #f4f7ff; color: #2456e6; font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.cfg-range em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #667085; }

.rest-block {
  margin-top: 18px; padding: 14px 16px;
  border: 1px dashed #dfe4ee; border-radius: 12px; background: #fbfcff;
}
.rest-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rest-title { flex: 1; min-width: 200px; }
.rest-title b { font-size: 13.5px; color: #101828; margin-right: 8px; }
.rest-title span { font-size: 12px; color: #98a2b3; line-height: 1.7; }
.rest-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.rest-tools .layui-btn { margin: 0; height: 26px; line-height: 26px; font-size: 12px; border-radius: 6px; padding: 0 10px; }

.rest-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.rest-empty {
  font-size: 12.5px; color: #98a2b3; background: #fff;
  border-radius: 8px; padding: 12px 14px; line-height: 1.7;
}
.rest-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 8px 10px;
}
.rest-row .layui-input { height: 32px; border-radius: 7px; font-size: 13px; }
.rest-name { width: 160px; }
.rest-start { width: 118px; }
.rest-min { width: 82px; }
.rest-sep { font-size: 12px; color: #98a2b3; }
.rest-end {
  font-style: normal; font-size: 12px; color: #12805c;
  background: #f2fbf6; border-radius: 5px; padding: 2px 8px;
}
.rest-del {
  margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: #fdecec; color: #b42318; font-size: 16px; line-height: 1; cursor: pointer;
}
.rest-del:hover { background: #f9d5d5; }

.extend-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.extend-row label { font-size: 12.5px; color: #475467; cursor: pointer; }
.toggle {
  width: 40px; height: 22px; flex: none; border-radius: 999px; background: #d0d5dd;
  position: relative; cursor: pointer; transition: .2s;
}
.toggle i {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: .2s;
}
.toggle.on { background: #2456e6; }
.toggle.on i { left: 20px; }

.tl-rest {
  font-style: normal; font-size: 11px; color: #b45309;
  background: #fff7e8; border-radius: 5px; padding: 1px 7px;
}

@media (max-width: 900px) {
  .rest-name { width: 120px; }
  .rest-row .rest-end { margin-left: 0; }
}

/* 后台窄屏兜底：页头换行、表格容器可横向滚动 */
@media (max-width: 768px) {
  .page-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-title .desc { white-space: normal; line-height: 1.7; }
  .admin-page .card { overflow-x: auto; }
  .cfg-range { white-space: normal; height: auto; padding: 6px 10px; }
}
@media (max-width: 768px) {
  .page-title .layui-inline { width: 100% !important; flex-wrap: wrap; }
  .page-title .layui-inline select { width: 100% !important; flex: 1; min-width: 0; }
}

/* ==========================================================
   小组赛手动调整
   ========================================================== */
.mn-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.mn-sum-item { display: flex; flex-direction: column; gap: 5px; }
.mn-sum-item span { font-size: 12px; color: #98a2b3; }
.mn-sum-item b { font-size: 14px; color: #101828; font-weight: 600; line-height: 1.5; }

.mn-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mn-toolbar .layui-btn { margin: 0; }
.mn-keep { font-size: 12.5px; color: #475467; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.mn-tip { font-size: 12px; color: #98a2b3; margin-left: auto; }
.mn-tip.dirty { color: #b45309; font-weight: 600; }

.mn-conflict-bar, .mn-warn-bar {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.75; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.mn-conflict-bar { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.mn-warn-bar { background: #fffaeb; color: #b45309; border: 1px solid #fedf89; }

.mn-table-wrap { overflow-x: auto; border: 1px solid var(--adm-line); border-radius: 10px; }
.mn-table { width: 100%; min-width: 1080px; border-collapse: collapse; background: #fff; }
.mn-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: #667085;
  background: #f8fafc; padding: 10px 10px; border-bottom: 1px solid var(--adm-line); white-space: nowrap;
}
.mn-table td { padding: 8px 10px; border-bottom: 1px solid #f2f4f8; font-size: 13px; color: #344054; vertical-align: middle; }
.mn-table tr:last-child td { border-bottom: 0; }
.mn-table tr.changed td { background: #f5f8ff; }
.mn-table tr.conflict td { background: #fff6f5; box-shadow: inset 3px 0 0 #f04438; }
.mn-table tr.dragging { opacity: .45; }
.mn-table tr.drag-over td { border-top: 2px solid var(--adm-primary); }
.mn-table .mn-sub { font-size: 11.5px; color: #98a2b3; margin-top: 2px; }

.mn-drag-cell { white-space: nowrap; }
.mn-handle {
  display: inline-block; cursor: grab; color: #c3cad9; font-size: 13px;
  letter-spacing: -3px; padding-right: 4px; vertical-align: middle;
}
.mn-handle:active { cursor: grabbing; }
.mn-move {
  width: 18px; height: 18px; line-height: 1; padding: 0; margin: 0 1px;
  border: 1px solid #e4e9f2; border-radius: 4px; background: #fff;
  color: #667085; font-size: 11px; cursor: pointer;
}
.mn-move:hover { border-color: var(--adm-primary); color: var(--adm-primary); }
.mn-seq { font-style: normal; font-size: 11.5px; color: #98a2b3; margin-left: 3px; }

.mn-date, .mn-time, .mn-venue { height: 32px; border-radius: 7px; font-size: 12.5px; padding: 0 8px; }
.mn-vs span { font-weight: 500; }
.mn-vs em { font-style: normal; color: #98a2b3; font-size: 11px; margin: 0 7px; }
.mn-vs .vs-sets { font-size: 11px; color: #667085; margin-top: 2px; }
.mn-empty { padding: 40px 20px; text-align: center; color: #98a2b3; font-size: 13px; }
.mn-check-list p { font-size: 13px; line-height: 1.9; color: #b42318; }

@media (max-width: 768px) {
  .mn-tip { margin-left: 0; width: 100%; }
  .mn-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   赛事单位（后台管理）
   ========================================================== */
.unit-sub { font-size: 12px; color: #98a2b3; margin-top: 3px; }
.unit-code {
  display: inline-block; font-size: 12px; color: #2456e6; background: #f1f5ff;
  border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, Menlo, monospace;
}
.unit-tag {
  display: inline-block; font-size: 11px; color: #12805c; background: #f2fbf6;
  border-radius: 5px; padding: 1px 7px; margin-right: 4px;
}
.unit-empty { font-size: 12.5px; color: #98a2b3; padding: 14px; }

.unit-form { padding: 20px 22px 8px; }
.uf-row { display: flex; gap: 16px; flex-wrap: wrap; }
.uf-item { flex: 1; min-width: 240px; margin-bottom: 14px; }
.uf-item.uf-full { flex: 1 1 100%; }
.uf-item > label { display: block; font-size: 12.5px; color: #475467; margin-bottom: 6px; }
.uf-item > label i { color: #f04438; font-style: normal; }
.uf-item > label em { color: #98a2b3; font-style: normal; margin-left: 6px; font-size: 11.5px; }
.uf-item .layui-input { height: 38px; border-radius: 8px; border-color: #e4e9f2; }
.uf-item textarea.layui-input { height: auto; padding: 9px 12px; line-height: 1.7; }
.uf-radios { display: flex; gap: 20px; align-items: center; height: 38px; }
.uf-radios label { font-size: 13px; color: #344054; display: flex; align-items: center; gap: 6px; cursor: pointer; }

.uf-ck-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.uf-ck-tools .layui-btn { margin: 0; }
.ck-list {
  max-height: 220px; overflow-y: auto; border: 1px solid #e9edf5; border-radius: 9px;
  background: #fbfcfe; padding: 6px 10px;
}
.ck-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 4px; cursor: pointer;
  border-bottom: 1px dashed #eef1f7; font-size: 13px; color: #344054;
}
.ck-item:last-child { border-bottom: 0; }
.ck-item input { width: 15px; height: 15px; }
.ck-item span { flex: 1; }
.ck-item em { font-style: normal; font-size: 11.5px; color: #98a2b3; }

.unit-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ud-item span { display: block; font-size: 12px; color: #98a2b3; margin-bottom: 4px; }
.ud-item b { font-size: 14px; color: #101828; font-weight: 600; }
.ud-sec { margin-top: 20px; }
.ud-sec h3 { font-size: 14px; font-weight: 700; color: #101828; margin-bottom: 10px; }
.ud-grant {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid #eef1f7; border-radius: 9px; margin-bottom: 8px; background: #fff;
}
.ud-grant .g-title { flex: 1; font-size: 13px; color: #344054; }
.ud-grant .g-meta { font-size: 12px; color: #98a2b3; }
.ud-log { width: 100%; border-collapse: collapse; }
.ud-log th, .ud-log td { text-align: left; font-size: 12.5px; padding: 9px 10px; border-bottom: 1px solid #f2f4f8; }
.ud-log th { color: #667085; font-weight: 600; background: #f8fafc; }

/* ==========================================================
   赛事单位工作台
   ========================================================== */
.login-unit .login-intro {
  background: linear-gradient(150deg, #06231f, #0b4f3f 58%, #0e9f6e);
}
.login-unit .login-form .layui-btn { background: linear-gradient(135deg, #12b981, #0e9f6e); }

.uw-hero {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px;
  background: linear-gradient(120deg, #06231f, #0b4f3f 62%, #0e9f6e);
  color: #fff; border-radius: 14px; padding: 24px 26px; margin-bottom: 16px;
}
.uw-hero-main h2 { font-size: 22px; font-weight: 700; }
.uw-hero-main p { margin-top: 8px; font-size: 13px; color: #c8e9de; line-height: 1.85; max-width: 620px; }
.uw-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.uw-steps span {
  font-size: 12px; color: #e6f7f1; background: rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 5px 12px 5px 6px; display: inline-flex; align-items: center; gap: 7px;
}
.uw-steps i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #0b4f3f; font-size: 11px; font-weight: 700;
}
.uw-hero-side {
  display: grid; grid-template-columns: 1fr; gap: 10px; align-content: center;
  border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 20px;
}
.uw-hero-side div { display: flex; align-items: baseline; gap: 10px; }
.uw-hero-side b { font-size: 15px; color: #fff; font-weight: 600; }
.uw-hero-side span { font-size: 12px; color: #a8d8cb; }

.uw-sec-title { font-size: 15px; font-weight: 700; color: #101828; margin-bottom: 14px; }
.uw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.uw-card { border: 1px solid #e9edf5; border-radius: 12px; padding: 16px; background: #fdfefe; }
.uw-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.uw-card-head h3 { font-size: 14.5px; font-weight: 700; color: #101828; line-height: 1.5; }
.uw-status { font-size: 11px; border-radius: 5px; padding: 2px 8px; flex: none; background: #f2f4f7; color: #667085; }
.uw-status.s1 { background: #fff4e8; color: #b45309; }
.uw-status.s2 { background: #eaf1ff; color: #2456e6; }
.uw-status.s3 { background: #ecfdf3; color: #067647; }
.uw-meta { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.uw-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 12px; }
.uw-nums div { text-align: center; background: #f7fafc; border-radius: 8px; padding: 8px 4px; }
.uw-nums b { display: block; font-size: 17px; color: #101828; }
.uw-nums span { font-size: 11px; color: #98a2b3; }
.uw-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.uw-actions .layui-btn { margin: 0; }

.uw-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.8;
  color: #b45309; background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.uw-note b { color: #92400e; }

@media (max-width: 768px) {
  .uw-hero { grid-template-columns: 1fr; padding: 18px; }
  .uw-hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; }
  .uw-cards { grid-template-columns: 1fr; }
}

/* ==========================================================
   赛事单位 · 参赛名单
   ========================================================== */
.pl-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-toolbar .layui-btn { margin: 0; }
.pl-sep { width: 1px; height: 22px; background: #eaedf5; margin: 0 4px; }
.pl-label { font-size: 12.5px; color: #475467; }
.pl-num { width: 72px; height: 32px; border-radius: 7px; }
.pl-mode { width: 230px; height: 32px; border-radius: 7px; font-size: 12.5px; }
.pl-tip { font-size: 12px; color: #98a2b3; margin-left: auto; }

.pl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-filter .layui-input { width: 180px; height: 34px; border-radius: 7px; font-size: 12.5px; }
.pl-table-wrap { overflow-x: auto; border: 1px solid var(--adm-line); border-radius: 10px; }
.pl-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; }
.pl-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: #667085;
  background: #f8fafc; padding: 10px; border-bottom: 1px solid var(--adm-line); white-space: nowrap;
}
.pl-table td { padding: 9px 10px; font-size: 13px; color: #344054; border-bottom: 1px solid #f2f4f8; }
.pl-table tr:last-child td { border-bottom: 0; }
.pl-table .layui-btn { margin: 0 3px 0 0; }
.pl-type { font-size: 11.5px; background: #f2f4f7; border-radius: 5px; padding: 2px 7px; color: #475467; }
.pl-seed { font-size: 11.5px; color: #b45309; background: #fff7e8; border-radius: 5px; padding: 2px 7px; }
.pl-src { font-size: 11.5px; border-radius: 5px; padding: 2px 7px; }
.pl-src.unit { color: #12805c; background: #f2fbf6; }
.pl-src.pub { color: #475467; background: #f2f4f7; }

.pl-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pl-group { border: 1px solid #e9edf5; border-radius: 10px; padding: 12px; background: #fdfefe; }
.pl-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-group-head b { font-size: 14px; color: #101828; }
.pl-group-head span { font-size: 11.5px; color: #98a2b3; }
.pl-group-head .pl-warn { margin-left: auto; font-style: normal; font-size: 11px; color: #b42318; background: #fef3f2; border-radius: 5px; padding: 1px 6px; }
.pl-members { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-member {
  font-size: 12px; color: #344054; background: #f7f9fc; border-radius: 999px;
  padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px;
}
.pl-member.seed { background: #fff7e8; color: #92400e; }
.pl-member i { font-style: normal; font-size: 10px; background: #ffdfa8; border-radius: 4px; padding: 0 4px; }
.pl-unassigned-head { font-size: 12.5px; color: #b45309; margin: 16px 0 8px; font-weight: 600; }
.pl-unassigned .pl-member { background: #fffaeb; color: #92400e; }

.pl-form { padding: 20px 22px 6px; }
.pl-seed-row { display: flex; align-items: center; gap: 10px; }
.pl-ck { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #344054; white-space: nowrap; cursor: pointer; }
.pl-seed-row .layui-input { height: 36px; width: 110px; border-radius: 7px; }

@media (max-width: 768px) {
  .pl-tip { margin-left: 0; width: 100%; }
  .pl-mode { width: 100%; }
}

/* layui 表格允许单元格换行（对阵含各局比分时完整显示） */
.layui-table-view .layui-table-cell { height: auto; white-space: normal; text-overflow: clip; }
.layui-table-view .layui-table td { height: auto; }

/* ==========================================================
   组别 · 单项（通用选择器与提示）
   ========================================================== */
.evt-select { width: 230px; height: 34px; border-radius: 8px; font-size: 13px; }
.evt-notice {
  display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap;
  font-size: 12.5px; line-height: 1.85; color: #b45309;
  background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px;
  padding: 11px 14px; margin-bottom: 14px;
}
.evt-notice b { color: #92400e; }
.evt-notice a { color: #b45309; font-weight: 600; text-decoration: underline; }
.evt-notice .layui-icon { color: #d97706; }

.evt-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 14px; background: #fff;
  border: 1px solid var(--adm-line); border-radius: 12px;
}
.evt-head .evt-current { font-size: 14px; font-weight: 600; color: #101828; }
.evt-head .evt-current em { font-style: normal; color: #98a2b3; font-weight: 400; margin-left: 6px; font-size: 12px; }
.evt-head .layui-input { height: 34px; border-radius: 8px; }
.evt-head .evt-spacer { flex: 1; }

@media (max-width: 768px) {
  .evt-select { width: 100%; }
  .evt-head { padding: 12px; }
  .evt-head .evt-spacer { display: none; }
}

/* ==========================================================
   组别与单项管理页
   ========================================================== */
.evt-summary {
  display: grid; grid-template-columns: repeat(4, minmax(120px, 150px)) 1fr;
  gap: 14px; align-items: center; background: #fff; border: 1px solid var(--adm-line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
}
.es-item span { display: block; font-size: 12px; color: #98a2b3; margin-bottom: 4px; }
.es-item b { font-size: 20px; color: #101828; font-weight: 700; }
.es-tip { font-size: 12px; color: #98a2b3; line-height: 1.8; border-left: 1px dashed #e4e9f2; padding-left: 16px; }

.evt-empty { text-align: center; color: #98a2b3; padding: 80px 20px; }
.evt-empty .layui-icon { font-size: 40px; color: #d0d5dd; }
.evt-empty p { margin-top: 10px; font-size: 13px; }

.evt-wrap { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; align-items: start; }
.evt-side { background: #fff; border: 1px solid var(--adm-line); border-radius: 12px; padding: 14px; min-width: 0; }
.evt-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.evt-side-head b { font-size: 14px; color: #101828; }
.evt-side-head .layui-btn { margin: 0; }
.evt-side-tip { font-size: 11.5px; color: #98a2b3; line-height: 1.7; margin-top: 10px; }

.dv-list { display: flex; flex-direction: column; gap: 8px; }
.dv-empty { font-size: 12.5px; color: #98a2b3; padding: 16px 6px; line-height: 1.8; }
.dv-item {
  position: relative; border: 1px solid #e9edf5; border-radius: 10px;
  padding: 11px 12px; cursor: pointer; background: #fdfefe; transition: .15s;
}
.dv-item:hover { border-color: #c7d2fe; }
.dv-item.active { border-color: #2456e6; background: #f5f8ff; box-shadow: 0 0 0 3px rgba(36, 86, 230, .08); }
.dv-name { font-size: 14px; font-weight: 600; color: #101828; }
.dv-name em {
  font-style: normal; font-size: 11px; font-weight: 500; color: #2456e6;
  background: #eef3ff; border-radius: 5px; padding: 1px 6px; margin-left: 6px;
}
.dv-meta { font-size: 11.5px; color: #98a2b3; margin-top: 4px; }
.dv-remark { font-size: 11.5px; color: #667085; margin-top: 3px; }
.dv-actions { display: flex; gap: 10px; margin-top: 7px; }
.dv-actions a { font-size: 11.5px; color: #667085; }
.dv-actions a:hover { color: #2456e6; }
.dv-actions a.danger:hover { color: #d92d20; }

.evt-main { background: #fff; border: 1px solid var(--adm-line); border-radius: 12px; padding: 14px 16px 16px; min-width: 0; }
.evt-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.evt-main-head b { font-size: 15px; color: #101828; }
.evt-meta { font-size: 12px; color: #98a2b3; margin-left: 8px; }
.evt-main-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.evt-main-tools .layui-btn { margin: 0; }

.eg-table-wrap { overflow-x: auto; border: 1px solid #eef1f7; border-radius: 10px; }
.eg-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.eg-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: #667085;
  background: #f8fafc; padding: 10px; border-bottom: 1px solid #eef1f7; white-space: nowrap;
}
.eg-table td { padding: 9px 10px; font-size: 13px; color: #344054; border-bottom: 1px solid #f4f6fa; vertical-align: middle; }
.eg-table tr:last-child td { border-bottom: 0; }
.eg-table tr:hover td { background: #fbfcff; }
.eg-seq { color: #98a2b3; font-size: 12px; }
.eg-sub { font-size: 11.5px; color: #98a2b3; margin-top: 2px; }
.eg-type { font-size: 11.5px; color: #475467; background: #f2f4f7; border-radius: 5px; padding: 2px 7px; }
.eg-status { font-size: 11px; border-radius: 5px; padding: 2px 8px; }
.eg-status.on { color: #067647; background: #ecfdf3; }
.eg-status.off { color: #667085; background: #f2f4f7; }
.eg-ops a { font-size: 12px; color: #2456e6; margin-right: 10px; }
.eg-ops a.danger { color: #d92d20; }
.eg-empty { padding: 40px 16px; text-align: center; color: #98a2b3; font-size: 12.5px; }

.evt-form { padding: 18px 20px 4px; }
.ef-lead { font-size: 12.5px; color: #667085; line-height: 1.8; margin-bottom: 12px; }
.ef-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ef-item { flex: 1; min-width: 200px; margin-bottom: 14px; }
.ef-item.ef-full { flex: 1 1 100%; }
.ef-item > label { display: block; font-size: 12.5px; color: #475467; margin-bottom: 6px; }
.ef-item > label i { color: #f04438; font-style: normal; }
.ef-item > em { display: block; font-style: normal; font-size: 11.5px; color: #98a2b3; margin-top: 5px; }
.ef-item .layui-input { height: 38px; border-radius: 8px; border-color: #e4e9f2; }
.ef-range { display: flex; align-items: center; gap: 8px; }
.ef-range span { color: #98a2b3; }
.ef-range .layui-input { width: 90px; }

.pk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-item {
  display: flex; align-items: center; gap: 8px; border: 1px solid #e9edf5;
  border-radius: 9px; padding: 10px 12px; cursor: pointer; background: #fdfefe;
}
.pk-item input { width: 15px; height: 15px; }
.pk-item span { flex: 1; font-size: 13px; color: #344054; }
.pk-item em { font-style: normal; font-size: 11px; color: #98a2b3; }

@media (max-width: 900px) {
  .evt-summary { grid-template-columns: repeat(2, 1fr); }
  .es-tip { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px dashed #e4e9f2; padding-top: 10px; }
  .evt-wrap { grid-template-columns: minmax(0, 1fr); }
  .evt-side { padding: 12px; }
  .dv-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .dv-item { min-width: 190px; flex: 0 0 auto; }
  .pk-list { grid-template-columns: 1fr; }
}
