* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f2f5; color: #333; min-height: 100vh;
}
.container { max-width: 900px; margin: 0 auto; padding: 16px; }

/* 顶部栏 */
.topbar {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff; padding: 16px; border-radius: 12px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; font-size: 14px; opacity: 0.9; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 20px; border: none; border-radius: 8px;
  background: #1e88e5; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none;
  text-align: center;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: #1e88e5; }
.btn-success { background: #43a047; }
.btn-warn { background: #fb8c00; }
.btn-danger { background: #e53935; }
.btn-light { background: #fff; color: #1e88e5; border: 1px solid #1e88e5; }
.btn-block { display: block; width: 100%; }

/* 卡片 */
.card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h3 { font-size: 16px; margin-bottom: 10px; }

/* 赛事列表项 */
.tour-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: #fff; border-radius: 10px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); cursor: pointer;
}
.tour-item .date { font-size: 16px; font-weight: 600; }
.tour-item .meta { font-size: 13px; color: #888; margin-top: 4px; }
.tour-item .arrow { color: #bbb; font-size: 20px; }

/* 选手表单 */
.player-row { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.player-row input[type=text] {
  flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
}
.player-row-v2 {
  display: flex; gap: 8px; margin-bottom: 10px; align-items: center;
}
.player-row-v2 .av-preview {
  width: 44px; height: 44px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0; overflow: hidden; border: 1px solid #e0e0e0;
}
.player-row-v2 input[type=text] {
  flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
}
.player-row-v2 .del-row {
  width: 32px; height: 32px; border: none; background: #ffebee; color: #c62828;
  border-radius: 50%; font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.lib-chip {
  display: inline-flex; align-items: center; padding: 6px 10px;
  background: #f5f5f5; border-radius: 16px; cursor: pointer; font-size: 13px;
  border: 1px solid #e0e0e0;
}
.lib-chip:active { background: #e3f2fd; border-color: #1e88e5; }
.avatar-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.avatar-picker span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #f5f5f5; border-radius: 8px; cursor: pointer; font-size: 20px;
  border: 2px solid transparent;
}
.avatar-picker span.sel { border-color: #1e88e5; background: #e3f2fd; }

/* 比赛列表 */
.match-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; border-bottom: 1px solid #f0f0f0;
}
.match-row:last-child { border-bottom: none; }
.match-row .teams { flex: 1; }
.match-row .team { font-size: 14px; line-height: 1.6; }
.match-row .team .vs { color: #999; margin: 0 6px; }
.match-row .score-badge {
  background: #e3f2fd; color: #1565c0; padding: 4px 10px; border-radius: 12px;
  font-size: 13px; font-weight: 600; margin-left: 8px;
}
.match-row .score-badge.done { background: #e8f5e9; color: #2e7d32; }

/* 积分榜 */
.standings-row {
  display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.standings-row .rank { width: 28px; font-weight: 700; color: #888; }
.standings-row .rank.first { color: #fb8c00; }
.standings-row .avatar { font-size: 22px; margin: 0 8px; }
.standings-row .name { flex: 1; font-size: 15px; }
.standings-row .num { font-size: 13px; color: #666; margin-left: 10px; min-width: 40px; text-align: right; }

/* ========== 记分牌 ========== */
.scoreboard {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px;
  margin-top: 10px;
}
.team-card {
  border-radius: 14px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column;
}
.team-card.red { background: #e53935; }
.team-card.blue { background: #1e88e5; }
.team-head {
  padding: 12px; text-align: center; font-size: 17px; font-weight: 600;
  background: rgba(255,255,255,0.25); line-height: 1.3; word-break: break-all;
}
.team-players {
  padding: 8px; text-align: center; font-size: 13px; opacity: 0.9;
  background: rgba(0,0,0,0.1); min-height: 36px;
}
.big-score {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 120px; font-weight: 700; text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 20px 0;
}
.mini-btns { display: grid; grid-template-columns: 1fr 1fr; }
.mini-btns button {
  padding: 14px; border: none; background: rgba(255,255,255,0.2); color: #fff;
  font-size: 18px; cursor: pointer;
}
.mini-btns button:active { background: rgba(255,255,255,0.35); }

.center-panel { display: flex; flex-direction: column; gap: 10px; }
.timer-box {
  background: #fff; border-radius: 12px; padding: 12px; text-align: center;
  font-size: 22px; font-weight: 600; color: #333; font-variant-numeric: tabular-nums;
}
.sub-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sub-scores div {
  background: #fff; border-radius: 10px; padding: 14px; text-align: center;
  font-size: 32px; font-weight: 700;
}
.sub-scores .sa { color: #e53935; }
.sub-scores .sb { color: #1e88e5; }
.center-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.center-btns button {
  padding: 12px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer;
  background: #fff; color: #333; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.center-btns button.primary { background: #1e88e5; color: #fff; }
.center-btns button.warn { background: #fb8c00; color: #fff; }
.center-btns button.danger { background: #e53935; color: #fff; }

/* 手机端竖排 */
@media (max-width: 640px) {
  .scoreboard { grid-template-columns: 1fr; }
  .big-score { font-size: 90px; padding: 10px 0; }
  .center-panel { order: -1; }
  .topbar h1 { font-size: 16px; }
}
/* （注：内容由AI生成） */
