/* ========== XCPC 竞赛管理系统 样式 ========== */
:root {
  --primary: #004ea2;          /* 北洋蓝 */
  --primary-dark: #003876;
  --cyan: #00a0e9;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --gold: #d97706;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --border: #e2e8f0;
  --sidebar-bg: linear-gradient(180deg, #0a2a5e 0%, #061a3d 100%);
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
.link { color: var(--primary); font-weight: 500; }
.link:hover { text-decoration: underline; }
.muted { color: var(--text-2); font-size: 13px; }
.empty { color: var(--text-2); text-align: center; padding: 24px 8px; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #004ea2, #00a0e9);
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 78, 162, .45);
}
.brand-logo.big { width: 72px; height: 72px; font-size: 24px; border-radius: 20px; margin-bottom: 18px; }
.brand-text strong { display: block; color: #fff; font-size: 17px; letter-spacing: 1px; }
.brand-text span { font-size: 12px; color: #94a3b8; }

.nav { flex: 1; padding: 4px 12px; overflow-y: auto; }
.nav-section { font-size: 11px; color: #64748b; letter-spacing: 2px; padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 2px 0; border-radius: 10px;
  color: #cbd5e1; font-size: 14px; transition: all .15s;
}
.nav-item svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; flex-shrink: 0; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 12px rgba(0, 78, 162, .35);
}
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.sidebar-footer { padding: 10px 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text); }
.page-title { font-size: 18px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: #eef2ff; color: var(--primary-dark);
  padding: 5px 12px 5px 5px; border-radius: 999px; font-weight: 500;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.content { padding: 24px 28px 40px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px;
}
.card h3 { font-size: 15px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h3 { margin-bottom: 0; }
.narrow-card { max-width: 520px; }
.section-title { font-size: 15px; margin: 22px 0 12px; padding-top: 18px; border-top: 1px dashed var(--border); }
.remark { color: var(--text-2); background: #f8fafc; border-radius: 8px; padding: 10px 14px; margin-top: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 8px 16px; font-size: 14px; cursor: pointer;
  transition: all .15s; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 2px 8px rgba(0, 78, 162, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 78, 162, .4); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge-green { background: #d1fae5; color: #047857; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #e2e8f0; color: #475569; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gold { background: #fef3c7; color: #92400e; }

/* ---------- 提示 ---------- */
.flashes { margin-bottom: 16px; }
.flash {
  padding: 10px 36px 10px 14px; border-radius: 10px; margin-bottom: 8px;
  position: relative; font-size: 14px;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-danger { background: #fee2e2; color: #991b1b; }
.flash-warning { background: #fef3c7; color: #92400e; }
.flash-info { background: #dbeafe; color: #1e40af; }
.flash-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: none; font-size: 16px; cursor: pointer; color: inherit; opacity: .6;
}

/* ---------- 统计卡片 ---------- */
.season-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(120deg, #003876, #004ea2 55%, #00a0e9);
  color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 78, 162, .5);
}
.season-label { font-size: 13px; opacity: .8; }
.season-value { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.season-value span { font-size: 15px; font-weight: 400; opacity: .8; }
.season-meta strong { font-size: 26px; display: block; text-align: right; }
.season-meta span { font-size: 12px; opacity: .85; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  border-radius: var(--radius); padding: 18px; color: #fff;
  box-shadow: var(--shadow); transition: transform .15s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-num small { font-size: 14px; font-weight: 400; opacity: .75; margin-left: 4px; }
.stat-label { font-size: 13px; opacity: .9; margin-top: 2px; }
.grad-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.grad-green { background: linear-gradient(135deg, #10b981, #047857); }
.grad-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.grad-orange { background: linear-gradient(135deg, #f59e0b, #b45309); }
.grad-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* ---------- 图表 ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.chart-card.span2 { grid-column: span 1; }
.chart-box { height: 240px; display: flex; align-items: center; justify-content: center; }
.chart-box.tall { height: 260px; }
.chart-box canvas { max-height: 100%; }

.readiness-item { margin-bottom: 14px; }
.readiness-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width .6s; }
.progress.slim { height: 6px; margin: 6px 0 2px; }
.progress-bar.full { background: linear-gradient(90deg, #059669, #34d399); }

/* ---------- 视图切换（列表/看板） ---------- */
.view-toggle { display: inline-flex; background: #e2e8f0; border-radius: 10px; padding: 3px; gap: 2px; }
.toggle-btn {
  padding: 6px 18px; border-radius: 8px; font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: all .2s;
}
.toggle-btn.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.toggle-btn:not(.active):hover { color: var(--text); }

/* ---------- 排序 ---------- */
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--primary); }
.sort-link.active { color: var(--primary); font-weight: 700; }
.sort-group { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; background: #f1f5f9; border-radius: 10px; padding: 3px 8px 3px 10px; }
.sort-group .toggle-btn { padding: 5px 14px; }

/* ---------- 批量审核 ---------- */
.batch-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.batch-bar input[name="review_note"] { flex: 1; min-width: 220px; }
.col-check { width: 36px; text-align: center; }
.col-check input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 赛事照片画廊 ---------- */
.material-card.span-2 { grid-column: span 2; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: #f1f5f9; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-del {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0;
  border-radius: 50%; background: rgba(15, 23, 42, .65); color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.photo-del:hover { background: var(--red); }

/* ---------- 赛事看板 ---------- */
.board-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.bs-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.bs-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.bs-label { font-size: 12px; color: var(--text-2); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.board-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.board-card:hover { box-shadow: 0 8px 24px rgba(0, 78, 162, .10); transform: translateY(-2px); }
.board-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.board-title { font-size: 17px; font-weight: 700; }
.board-sub { margin: 6px 0 12px; font-size: 12px; }
.board-metrics { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bm-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.bm-label { color: var(--text-2); }
.bm-value { font-weight: 600; }
.bm-status { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.bm-status.ok { background: #d1fae5; color: #047857; }
.board-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px;
}

/* ---------- 两栏 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card { margin-bottom: 0; }

.award-list { list-style: none; }
.award-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.award-list li:last-child { border-bottom: none; }
.medal {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.award-info { flex: 1; min-width: 0; }
.award-info strong { display: block; font-size: 14px; }
.award-info span { font-size: 12px; color: var(--text-2); }

/* ---------- 筛选 / 表格 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter-bar input[type="search"], .filter-bar select { max-width: 220px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; color: var(--text-2); font-weight: 600; background: #f8fafc; }
tbody tr:hover { background: #f8fafc; }
.col-actions { text-align: right; }
.col-actions form { display: inline; }

.dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #e2e8f0; color: #94a3b8; font-size: 11px; margin-right: 4px;
}
.dot.on { background: #d1fae5; color: #047857; font-weight: 700; }

.material-progress { display: flex; align-items: center; }
.material-count {
  margin-left: 6px; font-size: 12px; color: var(--text-2);
  background: #f1f5f9; border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.material-count.done { background: #d1fae5; color: #047857; font-weight: 600; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.page-info { color: var(--text-2); font-size: 13px; }
.page-btns { display: flex; gap: 6px; align-items: center; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #fff; font-size: 13px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { color: var(--text-2); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.span-all, .span-all { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 12px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 78, 162, .12);
}
input[type="checkbox"] { width: auto; }
input[type="file"] { padding: 6px; }
textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.checkbox-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin: 10px 0 16px; }

.member-picker { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
.member-picker table th { position: sticky; top: 0; }
.member-picker select { padding: 4px 8px; font-size: 13px; width: 110px; }

/* 模糊搜索选择框 */
.combo { position: relative; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 35, 75, .14);
}
.combo-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; cursor: pointer; }
.combo-item.active, .combo-item:hover { background: rgba(0, 78, 162, .08); }
.combo-name { font-weight: 600; white-space: nowrap; }
.combo-meta { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-empty { padding: 12px; font-size: 13px; color: var(--text-2); text-align: center; }
.combo-invalid .combo-input { border-color: #d4380d; box-shadow: 0 0 0 3px rgba(212, 56, 13, .12); }

/* 赛季安排看板 */
.sched-card { margin-bottom: 14px; }
.sched-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.sched-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sched-date { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.sched-station { font-size: 16px; font-weight: 600; }
.sched-sub { font-size: 13px; }
.sched-people { padding: 4px 0 2px; }
.small { font-size: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; color: var(--text); background: #f8fafc; text-decoration: none;
}
a.chip:hover { border-color: var(--primary); background: rgba(0, 78, 162, .06); }
.idle-box { border-left: 4px solid #fa8c16; }
.bs-num.warn { color: #d4380d; }

/* 顶栏赛季徽章 */
.season-chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(0, 78, 162, .08); color: var(--primary);
  font-size: 13px; font-weight: 600; border: 1px solid rgba(0, 78, 162, .25);
}
.season-chip:hover { background: rgba(0, 78, 162, .14); }

/* 赛季安排表格视图 */
.sched-table td { vertical-align: top; }
.sched-table .sched-date { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-block { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.team-block:last-child { border-bottom: none; }
.team-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.inline-form { display: inline; }
.chip-x {
  border: none; background: none; cursor: pointer; color: var(--text-2);
  font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.chip-x:hover { color: #d4380d; background: rgba(212, 56, 13, .1); }
.assign-form .combo-input { padding: 6px 10px; font-size: 13px; }
.assign-form .combo-list { max-height: 220px; }

.check-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px; margin-bottom: 8px;
}
.check-item {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
  cursor: pointer; transition: all .15s;
}
.check-item:hover { border-color: var(--primary); }
.check-item:has(input:checked) { border-color: var(--primary); background: #eef2ff; }
.check-item span { font-size: 14px; }
.check-item small { display: block; color: var(--text-2); font-size: 12px; }

/* ---------- 详情页 ---------- */
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.detail-head h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-lg {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.avatar-lg.team { background: linear-gradient(135deg, #10b981, #0d9488); }
.avatar-lg.contest { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.avatar-lg.award { background: linear-gradient(135deg, #fbbf24, #d97706); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.info-item label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.info-item span { font-size: 14px; word-break: break-all; }

.file-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eef2ff; color: var(--primary-dark);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
.file-chip svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.file-none { color: #94a3b8; font-size: 12px; }

.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.material-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.material-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.upload-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-line input[type="file"] { flex: 1; min-width: 160px; }
.upload-line input[name="payment_payer"] { max-width: 120px; }

.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.team-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.team-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.team-card ul { list-style: none; }
.team-card li { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 13px; }

/* ---------- 页签 / 分享 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab { padding: 8px 16px; border-radius: 9px 9px 0 0; color: var(--text-2); font-size: 14px; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }
.tab-count { background: #e2e8f0; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tab.active .tab-count { background: #eef2ff; color: var(--primary); }
.share-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f8fafc; border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}
.share-line code { background: #eef2ff; color: var(--primary-dark); padding: 3px 10px; border-radius: 6px; }

.notice-box {
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px; font-size: 13px;
}
.notice-box ol { padding-left: 20px; margin-top: 6px; }

/* ---------- 登录 / 公开页 ---------- */
.auth-page { display: flex; min-height: 100vh; }
.auth-hero {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #061a3d 0%, #004ea2 60%, #00a0e9 100%);
  color: #fff; padding: 40px;
}
.auth-hero-inner { max-width: 420px; }
.auth-hero h1 { font-size: 30px; margin-bottom: 10px; }
.auth-hero p { opacity: .9; margin-bottom: 22px; }
.hero-points { list-style: none; }
.hero-points li { padding: 7px 0 7px 26px; position: relative; opacity: .92; }
.hero-points li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.auth-panel {
  width: 460px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px; background: #fff;
}
.auth-panel.wide { width: 640px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.auth-sub { color: var(--text-2); font-size: 13px; margin-bottom: 20px; }
.auth-foot { margin-top: 24px; color: #94a3b8; font-size: 12px; }

/* ---------- 错误 / 成功页 ---------- */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px;
}
.error-code {
  font-size: 90px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.success-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  font-size: 40px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(16, 185, 129, .5);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .chart-grid, .two-col { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .material-card.span-2 { grid-column: span 1; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -240px; z-index: 50; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-toggle { display: block; }
  .content { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel, .auth-panel.wide { width: 100%; }
  .season-meta strong { text-align: left; }
  .board-grid { grid-template-columns: 1fr; }
  .board-summary { grid-template-columns: repeat(2, 1fr); }
}
