/* ===== 评委评分系统 通用样式（紫色科技风） ===== */
:root {
  --accent: #8b5cf6;
  --accent2: #6d28d9;
  --deep: #2e1065;
  --deep2: #4c1d95;
  --panel: #ffffff;
  --ink: #1c2b4a;
  --muted: #7a8bb0;
  --line: #e3eaf7;
  --bg: #eef3fb;
  --red: #e6432d;
  --green: #12b76a;
  --orange: #ff7a00;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(109, 40, 217, .10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px;
}
h1,h2,h3,h4 { margin: 0 0 .5em; font-weight: 600; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 8px; padding: 9px 18px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; font-weight: 600; transition: .15s; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn.gray { background: #f2effa; color: var(--ink); border: 1px solid var(--line); }
.btn.red { background: linear-gradient(135deg, #ff5f45, #e6432d); }
.btn.green { background: linear-gradient(135deg, #16c47f, #0d9e5f); }
.btn.orange { background: linear-gradient(135deg, #ffa53c, #ff7a00); }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn.big { padding: 13px 22px; font-size: 17px; border-radius: 10px; width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* 表单 */
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; background: #fff; outline: none; transition: .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.input.w80 { width: 80px; }
.input.w120 { width: 120px; }
.radio-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* 卡片 */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent2)); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { background: #f8f6fd; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl tr:hover td { background: #faf8fe; }
.tbl .thumb { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; display: block; }
.tbl-wrap { overflow-x: auto; }

/* 标签 */
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag.blue { background: #f3e8ff; color: #7c3aed; }
.tag.green { background: #e2f8ee; color: #0d9e5f; }
.tag.orange { background: #fff2e2; color: #e07c00; }
.tag.red { background: #ffeae6; color: #d63a24; }
.tag.gray { background: #eef2fa; color: var(--muted); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(35, 16, 70, .5); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { margin-bottom: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* Toast */
#toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(35, 16, 70, .92); color: #fff; padding: 10px 22px;
  border-radius: 30px; z-index: 200; font-size: 14px; display: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

/* 数字键盘 */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button {
  padding: 16px 0; font-size: 24px; font-weight: 700; border: none; border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eef3fc); color: var(--ink);
  box-shadow: 0 3px 0 #e4dcf5, 0 4px 10px rgba(90,50,170,.12); cursor: pointer;
}
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #e4dcf5; }
.keypad .k-func { background: linear-gradient(180deg, #f5f1ff, #eae2fb); color: var(--accent2); font-size: 19px; }
.keypad .k-submit { grid-column: span 3; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; font-size: 19px; box-shadow: 0 3px 0 #4c1d95; }
.score-display {
  font-size: 44px; font-weight: 800; text-align: center; color: var(--accent2);
  background: #faf7ff; border: 2px dashed #dccdf7; border-radius: 12px;
  padding: 10px; margin-bottom: 14px; letter-spacing: 2px; min-height: 40px;
  font-variant-numeric: tabular-nums;
}

/* 工具类 */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.flex1 { flex: 1; }
.hidden { display: none !important; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.scroll { overflow-y: auto; }
