/* 艺升舞蹈 统一样式：管理端 / 裁判端 / 大屏 / 打印 */
* { box-sizing: border-box; }
:root {
  --primary: #6c3fc5; --primary-d: #552da3; --bg: #f4f5fa; --card: #fff;
  --line: #e5e6ef; --text: #26263a; --muted: #8a8aa3;
  --green: #1daa6a; --red: #e04848; --amber: #e8a13c;
}
html, body { margin: 0; padding: 0; }
body { font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; }
h3 { margin: 0 0 12px; font-size: 15px; }
code { background: #eef0f6; padding: 1px 6px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.muted { color: var(--muted); font-weight: normal; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

/* ===== 登录 ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b1a56 0%, #4a2a8a 45%, #6c3fc5 100%) fixed;
  background-attachment: fixed; position: relative; overflow: hidden; }
.login-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.login-orbs .orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: orbFloat 20s ease-in-out infinite; }
.login-orbs .lo1 { width: 40vw; height: 40vw; background: #a06cf0; top: -12vw; left: -6vw; opacity: .4; }
.login-orbs .lo2 { width: 32vw; height: 32vw; background: #e8a13c; bottom: -10vw; right: 4%; opacity: .2; animation-delay: -7s; }
.login-orbs .lo3 { width: 26vw; height: 26vw; background: #4f7df9; top: 38%; left: 58%; opacity: .32; animation-delay: -13s; }
.login-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 80%); }

.login-box { background: rgba(255,255,255,.97); border-radius: 20px; padding: 38px 36px 28px; width: 400px;
  box-shadow: 0 24px 70px rgba(10,5,35,.45); position: relative; z-index: 1;
  animation: loginIn .7s cubic-bezier(.16,.84,.24,1) both; }
@keyframes loginIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.login-logo { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px;
  background: linear-gradient(135deg, #6c3fc5, #a06cf0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(108,63,197,.4); }
.login-logo svg { width: 32px; height: 32px; }

.brand { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.brand span { color: var(--amber); }
.brand.big { font-size: 29px; text-align: center; letter-spacing: 2px; }
.brand.big span {
  background: linear-gradient(180deg, #ffc351, #f08c00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.login-sub { text-align: center; color: #8a7ab8; margin: 6px 0 24px; font-size: 13px; letter-spacing: 1px; }
.login-box .input-icon { position: relative; margin-bottom: 14px; }
.login-box .input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: #a99bc9; pointer-events: none; }
.login-box .input-icon input { width: 100%; height: 46px; padding: 0 14px 0 40px; font-size: 15px;
  border: 1.5px solid #e3d9f7; border-radius: 11px; background: #fbfaff; transition: all .25s; }
.login-box .input-icon input:focus { border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(108,63,197,.12); outline: none; }
.login-page .btn.primary { height: 46px; font-size: 15px; font-weight: 700; letter-spacing: 6px;
  border-radius: 11px; border: none; background: linear-gradient(135deg, #6c3fc5, #8b5cf0);
  box-shadow: 0 8px 22px rgba(108,63,197,.35); transition: all .25s; margin-top: 4px; }
.login-page .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108,63,197,.45); }
.login-page .btn.primary:active { transform: translateY(0); }
.login-divider { height: 1px; background: linear-gradient(90deg, transparent, #e3d9f7, transparent); margin: 18px 0 12px; }
.login-tip { font-size: 12px; color: #8a7ab8; text-align: center; margin: 0; line-height: 1.8; }

input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #d9c8f7; border-color: var(--primary); }
textarea { resize: vertical; }

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 190px; background: #241640; color: #cfc6e8; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; margin-bottom: 14px; padding-left: 6px; }
.sidebar .brand span { color: var(--amber); }
.comp-switch { margin-bottom: 14px; }
.comp-switch select { background: #37235f; border-color: #4a3380; color: #fff; font-size: 12px; }
.sidebar nav a { display: block; color: #cfc6e8; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; font-size: 13px; }
.sidebar nav a:hover { background: #37235f; text-decoration: none; }
.sidebar nav a.on { background: var(--primary); color: #fff; }
.side-foot { margin-top: 20px; padding: 10px 6px 0; border-top: 1px solid #37235f; font-size: 12px; }
.side-foot a { color: #a99bd6; }
.admin-name-link { color: #fff !important; font-weight: 600; border-bottom: 1px dashed rgba(255,255,255,.5); padding-bottom: 1px; }
.admin-name-link:hover { color: var(--amber) !important; text-decoration: none; border-bottom-color: var(--amber); }
.side-links { display: flex; gap: 12px; margin-top: 4px; }
.main { flex: 1; padding: 20px 26px; min-width: 0; }
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.comp-tag { color: var(--muted); font-size: 13px; }

/* ===== 卡片/表格 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #faf9fe; }
.row-on td { background: #f3edff !important; }
.row-adv td { background: #edfaf3; }
.row-done td { background: #f2fbf6; }
.row-top1 td { background: linear-gradient(90deg, #fff8e0, transparent); }
.row-top2 td { background: linear-gradient(90deg, #f0f4fa, transparent); }
.row-top3 td { background: linear-gradient(90deg, #faf3ea, transparent); }
.nowrap { white-space: nowrap; }
.head-ops { float: right; display: flex; gap: 8px; align-items: center; }

/* ===== 控件 ===== */
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 7px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; }
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); color: #fff; }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.btn.danger { color: var(--red); border-color: #f3c8c8; }
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn.block { width: 100%; }
.btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ops { white-space: nowrap; }
.ops .btn, .ops form, .ops select { display: inline-block; vertical-align: middle; }
.ops form { margin: 0 2px; }
.ops select { width: auto; font-size: 12px; padding: 3px 6px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input[type=text], .inline-form input[type=password] { width: auto; }
.form label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.form .row { display: flex; gap: 10px; }
.form .row label { flex: 1; }
.form .btn { margin-top: 4px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .ml { margin-left: auto; }
.cat-assign { flex-wrap: wrap; gap: 4px; max-width: 420px; }
.cat-assign .inline { font-size: 12px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #eef0f6; color: #555; }
.badge.green { background: #e2f6ec; color: var(--green); }
.badge.warn { background: #fdf1dc; color: #b57708; }
.st-green { color: var(--green); }
.st-gray { color: var(--muted); }
.st-red { color: var(--red); }
.st-dark { color: #333; background: #ddd; }
.bib { display: inline-block; min-width: 34px; text-align: center; background: #241640; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.judge-code { display: inline-block; min-width: 26px; text-align: center; background: var(--amber); color: #fff; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.token { font-size: 12px; }
.rank-badge { display: inline-block; min-width: 26px; text-align: center; border-radius: 6px; padding: 1px 6px; font-weight: 700; background: #eef0f6; }
.rank-badge.r1 { background: #ffd54d; }
.rank-badge.r2 { background: #cfd8e3; }
.rank-badge.r3 { background: #e8b98a; }
.recall-line { color: var(--green); font-size: 13px; margin: 8px 0 0; }

.flash { padding: 9px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.flash-ok { background: #e2f6ec; color: var(--green); }
.flash-err { background: #fde8e8; color: var(--red); }
.flash-warn { background: #fdf1dc; color: #b57708; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 7px 16px; border-radius: 8px 8px 0 0; color: var(--muted); font-size: 13px; }
.tabs a.on { background: #fff; color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); margin-bottom: -2px; }

.stat-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; text-align: center; min-width: 92px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.green b { color: var(--green); }
.stat.red b { color: var(--red); }
.stat.dark b { color: #444; }
.stat.grow { flex: 1; min-width: 200px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.progress { height: 10px; background: #eef0f6; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #a06cf0); }

/* ===== 分组卡片 / 拖拽 ===== */
.group-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.group-card { min-width: 250px; flex: 1; }
.group-card.dropzone.over { outline: 2px dashed var(--primary); outline-offset: -4px; }
.group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.group-head h3 { margin: 0; }
.group-head small { color: var(--muted); font-weight: normal; }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: #fff; }
.stage-item.absent { opacity: .55; background: #f6f6f8; }
.stage-item.absent .stage-name { text-decoration: line-through; }
.stage-item.draggable { cursor: grab; }
.stage-name { flex: 1; font-size: 13px; }
.stage-ops { display: flex; gap: 4px; }
.round-progress { margin-left: auto; color: var(--muted); }

/* ===== 打分明细矩阵 ===== */
.matrix-wrap { overflow-x: auto; margin-bottom: 10px; }
.matrix-title { margin: 14px 0 6px; }
.matrix th, .matrix td { text-align: center; padding: 4px 8px; font-size: 13px; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix .cell.yes { color: var(--green); font-weight: 700; }
.matrix .cell.no { color: var(--red); }
.matrix .cell { min-width: 40px; }

/* ===== 裁判端 ===== */
body.judge { background: #f0eef7; }
.judge-top { display: flex; justify-content: space-between; align-items: center; background: #241640; color: #fff; padding: 10px 18px; }
.judge-top .brand { color: #fff; font-size: 18px; }
.judge-top .brand span { color: var(--amber); }
.judge-top em { font-style: normal; font-size: 12px; color: #a99bd6; margin-left: 6px; }
.judge-info { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.judge-info a { color: #a99bd6; }
.judge-name-link { color: #fff !important; font-weight: 600; border-bottom: 1px dashed rgba(255,255,255,.5); padding-bottom: 1px; }
.judge-name-link:hover { color: var(--amber) !important; text-decoration: none; border-bottom-color: var(--amber); }
.judge-wrap { max-width: 1060px; margin: 16px auto; padding: 0 12px; }
.score-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sync-box { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sync { padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.sync.ok { background: #e2f6ec; color: var(--green); }
.sync.saving { background: #fdf1dc; color: #b57708; }
.sync.err { background: #fde8e8; color: var(--red); }
.pad { font-size: 15px; }
.pad th { text-align: center; font-size: 12px; }
.pad td { text-align: center; padding: 5px; }
.pad td:first-child { text-align: left; }
.pad-cell { min-width: 64px; }
.pad-btn { width: 52px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; color: #999; }
.pad-btn:hover { border-color: var(--primary); }
.pad-btn.yes { background: #e2f6ec; color: var(--green); border-color: #a9e0c6; }
.pad-btn.no { background: #fde8e8; color: var(--red); border-color: #f3c8c8; }
.pad-btn.has { background: #ede4ff; color: var(--primary); border-color: #c9b3f2; }
.score-cell { display: inline-flex; align-items: center; gap: 4px; }
.score-cell button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 17px; cursor: pointer; }
.score-cell button:hover { border-color: var(--primary); color: var(--primary); }
.score-val { display: inline-block; min-width: 40px; font-weight: 700; font-size: 16px; }
.pad-help { margin: 10px 0 0; }

/* ===== 现场大屏 ===== */
body.display { background: #0d0a1a; color: #fff; min-height: 100vh; }
.display-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 34px; background: linear-gradient(90deg, #1b1039, #3a1f6e); }
.display-brand { font-size: 26px; font-weight: 800; letter-spacing: 4px; color: #fff; white-space: nowrap; }
.display-brand span { color: var(--amber); }
.display-head h1 { font-size: 22px; }
.display-head .venue { color: #b3a6dd; font-size: 14px; }
.clock { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--amber); }
.display-body { padding: 26px 34px; }
.display-loading { color: #8f83bd; text-align: center; padding: 60px; font-size: 18px; }
.cat-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.cat-title small { font-size: 14px; color: #b3a6dd; font-weight: normal; margin-left: 10px; }
.live { background: var(--red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-left: 10px; vertical-align: middle; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.current-group { color: #b3a6dd; margin-bottom: 16px; font-size: 15px; }
.current-group b { color: #fff; }
.display-table { width: 100%; border-collapse: collapse; font-size: 19px; }
.display-table th { text-align: left; color: #8f83bd; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid #2c2350; }
.display-table td { padding: 10px 12px; border-bottom: 1px solid #221b42; }
.display-table tr.adv td { background: rgba(108, 63, 197, .14); }
.rank-big { display: inline-block; min-width: 44px; text-align: center; border-radius: 8px; padding: 2px 8px; font-weight: 800; background: #2c2350; }
.rank-big.r1 { background: #ffd54d; color: #241640; }
.rank-big.r2 { background: #cfd8e3; color: #241640; }
.rank-big.r3 { background: #e8b98a; color: #241640; }
.display-table em { font-style: normal; color: var(--amber); font-size: 12px; }

/* ===== 现场大屏 · 动效美化 ===== */
body.display { overflow-x: hidden; }

/* 动态光斑背景 + 网格 */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .38; animation: orbFloat 20s ease-in-out infinite; }
.orb.o1 { width: 46vw; height: 46vw; background: #6c3fc5; top: -14vw; left: -8vw; }
.orb.o2 { width: 38vw; height: 38vw; background: #b02a8a; bottom: -12vw; right: 6%; animation-delay: -7s; }
.orb.o3 { width: 30vw; height: 30vw; background: #1f6feb; top: 32%; left: 52%; animation-delay: -13s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, -3vw) scale(1.1); }
  66% { transform: translate(-3vw, 2.5vw) scale(.94); }
}
.grid-overlay { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 28%, #000 30%, transparent 78%);
}
.display-head, .display-body { position: relative; z-index: 1; }
.display-head { background: linear-gradient(90deg, rgba(27,16,57,.92), rgba(58,31,110,.92)); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.07); }

/* 品牌流光 */
.display-brand { text-shadow: 0 0 26px rgba(255, 213, 77, .28); }
.display-brand span {
  background: linear-gradient(180deg, #fff3c4 0%, #ffd54d 45%, #ff9d00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 180, 0, .45));
}

/* 时钟 */
.clock-wrap { text-align: right; }
.clock-date { display: block; font-size: 13px; color: #8f83bd; margin-top: 2px; letter-spacing: 1px; }

/* 加载 spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: #ffd54d; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 分类面板切换动画 */
.cat-enter { animation: catIn .65s cubic-bezier(.16,.84,.24,1) both; }
@keyframes catIn { from { opacity: 0; transform: translateX(52px); } to { opacity: 1; transform: none; } }

/* 分类指示点 */
.cat-dots { display: flex; gap: 10px; margin: 0 0 14px; }
.cat-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); cursor: pointer; transition: all .3s; position: relative; }
.cat-dots .dot:hover { background: rgba(255,255,255,.5); }
.cat-dots .dot.on { background: #ffd54d; box-shadow: 0 0 12px rgba(255,213,77,.8); transform: scale(1.3); }
.cat-dots .dot.live-dot::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(224,72,72,.8); animation: dotPing 1.6s ease-out infinite; }
@keyframes dotPing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* 实时角标 */
.live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 2px; animation: blink 1.2s infinite; }

/* 当前上场 + 打分进度条 */
.current-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #b3a6dd; font-size: 15px; margin-bottom: 18px; }
.current-group b { color: #fff; font-size: 17px; }
.cg-label { background: rgba(108,63,197,.35); border: 1px solid rgba(160,108,240,.45); color: #d9c8f7; padding: 2px 12px; border-radius: 20px; font-size: 12px; letter-spacing: 3px; }
.cg-stage, .cg-prog { font-size: 13px; font-variant-numeric: tabular-nums; }
.live-bar { flex: 1 1 180px; height: 8px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.live-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6c3fc5, #a06cf0, #ffd54d); box-shadow: 0 0 12px rgba(160,108,240,.6); transition: width .8s cubic-bezier(.2,.8,.3,1); }

/* 表格行动画与单元格 */
.display-table tbody tr { animation: rowIn .5s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.display-table tr.adv td { background: linear-gradient(90deg, rgba(108,63,197,.22), rgba(108,63,197,.04)); }
.display-table tr.adv td:first-child { box-shadow: inset 3px 0 0 #a06cf0; }
.bib-cell { color: #fff; font-variant-numeric: tabular-nums; }
.name-cell em { color: #ffd54d; font-style: normal; margin: 0 3px; }
.unit-cell { color: #fff; font-size: 16px; }
.score-cell b { font-size: 22px; color: #ffd54d; font-variant-numeric: tabular-nums; }

/* 奖牌名次 */
.rank-big.r1 { background: linear-gradient(135deg, #ffe98a, #ffb300); color: #241640; box-shadow: 0 0 26px rgba(255,190,60,.5); }
.rank-big.r2 { background: linear-gradient(135deg, #f2f6fb, #aebdd2); color: #241640; box-shadow: 0 0 20px rgba(200,215,235,.35); }
.rank-big.r3 { background: linear-gradient(135deg, #f6c89a, #c9713a); color: #241640; box-shadow: 0 0 20px rgba(201,113,58,.4); }

/* ===== 积分规则网格 ===== */
.pts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pts-grid label { font-size: 12px; color: var(--muted); margin: 0; }
.dance-pick { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.dance-grp { margin-bottom: 6px; }
.dance-grp b { font-size: 12px; color: var(--muted); margin-right: 8px; }
.inline { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: 13px; color: var(--text); }
.inline input { width: auto; }
.tips { margin: 0; padding-left: 20px; color: #555; }
.tips li { margin-bottom: 6px; }

/* ===== 登录后主题：与登录页同款紫色渐变 ===== */
body.admin, body.judge {
  background: linear-gradient(135deg, #2b1a56 0%, #4a2a8a 45%, #6c3fc5 100%) fixed;
  background-attachment: fixed;
}

/* 侧栏：深紫渐变 */
.sidebar {
  background: linear-gradient(180deg, rgba(30,19,56,.97), rgba(47,27,92,.97));
  border-right: 1px solid rgba(255,255,255,.08);
}
.side-foot { border-top-color: rgba(255,255,255,.12); }

/* 页面标题 */
.page-head h1 { color: #fff; text-shadow: 0 2px 14px rgba(20,10,50,.45); }
.comp-tag { color: #d9c8f7; }

/* 白卡（登录框同款） */
.card {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 34px rgba(16,8,42,.28);
}
.stat {
  background: #fff;
  border: none;
  box-shadow: 0 8px 26px rgba(16,8,42,.22);
}
.stat span { color: #7a6da0; }
.stat.green b { color: #12995c; }
.stat.red b { color: #d33c3c; }
.stat.dark b { color: #444; }
.progress { background: #e9e2f8; }

/* 玻璃工具条 / 标签页 / 打分台头 */
.toolbar, .tabs, .score-head {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
}
.toolbar { padding: 10px 12px; }
.toolbar .muted { color: #d9c8f7; }
.tabs { padding: 6px; border-bottom: none; display: inline-flex; gap: 6px; }
.tabs a { color: #d9c8f7; border-bottom: none; }
.tabs a.on { background: #fff; color: #552da3; margin-bottom: 0; border-bottom: none; box-shadow: 0 4px 14px rgba(16,8,42,.25); }
.score-head { padding: 10px 14px; color: #fff; }
.round-progress { color: #d9c8f7; }

/* 表格与文字色系（紫灰） */
.table th { color: #6f5aa0; border-bottom-color: #e3d9f7; }
.table td { border-bottom-color: #ede7fa; }
.table tr:hover td { background: #f7f4fd; }
.form label { color: #7a6da0; }
.muted { color: #7a6da0; }
.empty { color: #8a7ab8; }
code { background: #f0eafb; }
.badge { background: #efe9fb; color: #5b3fa8; }
.badge.warn { background: #fdf1dc; color: #b57708; }

/* 输入框紫色描边 */
input, select, textarea { border-color: #d9cdf0; }

/* 裁判端顶栏 */
.judge-top { background: linear-gradient(90deg, #1e1338, #3a1f6e); border-bottom: 1px solid rgba(255,255,255,.1); }

/* ===== 打印 ===== */
@media print {
  body.admin, body.judge { background: #fff !important; }
  .page-head h1 { color: #000; text-shadow: none; }
  .card, .stat { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .score-head { display: none !important; }
  .sidebar, .no-print, .toolbar, .tabs, .tabs a, .flash, .no-print-block, .page-head, .print-ops { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .card { border: none; padding: 0; margin: 0 0 10px; }
  .table th, .table td { border: 1px solid #999; }
  .matrix { page-break-inside: avoid; }
}
body.print { background: #fff; padding: 20px; }
.print-ops { margin-bottom: 14px; }
.print-title { text-align: center; font-size: 22px; }
.print-meta { text-align: center; color: #555; }
.print-table .sign-cell { width: 90px; height: 34px; }
.print-foot { margin-top: 24px; }
@media print { body.print { padding: 0; } }
