/* ============================================================
   SwimX — 体育中考专区专属样式
   ============================================================ */

/* 概览卡片 */
.overview-card {
  background: linear-gradient(135deg,#F97316,#EA580C); border-radius: var(--r);
  padding: 24px 28px; margin: 28px 0 20px; color: #fff;
  box-shadow: 0 6px 24px rgba(249,115,22,.25);
}
.overview-card .title { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.overview-item {
  background: rgba(255,255,255,.15); border-radius: 12px; padding: 14px 16px;
  backdrop-filter: blur(4px); text-align: center;
}
.overview-item .num { font-size: 32px; font-weight: 900; line-height: 1; }
.overview-item .label { font-size: 11px; opacity: .85; margin-top: 4px; }

.overview-formula {
  margin-top: 12px; background: rgba(255,255,255,.12); border-radius: 10px;
  padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.overview-formula code { background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 4px; font-size: 14px; }

/* 筛选 */
.filter-bar {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  border: 1.5px solid var(--border); padding: 14px 18px; margin-bottom: 18px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--ts); margin-right: 4px; white-space: nowrap; }
.filter-tab {
  padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border);
  background: #fff; font-size: 12px; font-weight: 600; color: var(--ts); cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.filter-tab:hover { border-color: #F97316; color: #F97316; }
.filter-tab.active { background: #F97316; color: #fff; border-color: #F97316; }

/* 类别标题 */
.cat-head {
  display: flex; align-items: center; gap: 10px; margin: 24px 0 12px;
  padding: 12px 18px; border-radius: 12px; background: #FFF0E0; color: #EA580C;
  font-size: 14px; font-weight: 800;
}
.cat-head .badge { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: #F97316; color: #fff; }
.cat-head.required { background: #FFE0E0; color: #C62828; }
.cat-head.required .badge { background: #EF4444; }

/* 项目卡片 */
.project-card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  border: 1.5px solid var(--border); overflow: hidden; transition: all .25s; margin-bottom: 12px;
}
.project-card:hover { border-color: #F97316; }
.project-header {
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; user-select: none; transition: background .2s;
}
.project-header:hover { background: #fafafa; }

.project-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.project-icon.run { background: #FFE0E0; color: #EF4444; }
.project-icon.jump { background: #FFE0E0; color: #EF4444; }
.project-icon.strength { background: #E0F0FF; color: #3B82F6; }
.project-icon.ball { background: #D8F3DC; color: #40916C; }
.project-icon.vball { background: #FFF0D1; color: #E5A020; }
.project-icon.bball { background: #F3E8FF; color: #8B5CF6; }

.project-info { flex: 1; min-width: 0; }
.project-name { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.project-sub { font-size: 12px; color: var(--ts); }
.project-full { font-size: 13px; font-weight: 800; margin-top: 4px; }
.project-full .score { color: #EF4444; }
.project-meta { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.project-tag { font-size: 10px; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.project-tag.req { background: #FFE0E0; color: #EF4444; }
.project-tag.sel { background: #E0F0FF; color: #3B82F6; }
.project-tag.gender { background: #f5f5f5; color: var(--ts); }
.project-arrow { font-size: 18px; color: var(--tl); transition: transform .3s; flex-shrink: 0; }
.project-card.open .project-arrow { transform: rotate(180deg); }

.project-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border); }
.project-card.open .project-body { display: block; animation: fadeUp .25s ease-out; }
.project-section { margin-top: 16px; }
.project-section h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }

/* 评分表 */
.score-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.score-table th { background: #f8f8f8; padding: 7px 10px; text-align: center; font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; }
.score-table td { padding: 6px 10px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.score-table tr:last-child td { border-bottom: none; }
.score-table .full-row { background: #FFF5F5; }
.score-table .full-row td { color: #EF4444; font-weight: 700; }
.score-table .good-row { background: #FFFBF5; }
.score-table .good-row td { color: #F97316; font-weight: 700; }
.score-table .pass-row { background: #F5FBF8; }
.score-table .pass-row td { color: #40916C; font-weight: 700; }

.gender-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gender-tab {
  padding: 5px 14px; border-radius: 14px; border: 1.5px solid var(--border);
  background: #fff; font-size: 11px; font-weight: 600; color: var(--ts); cursor: pointer; transition: all .2s;
}
.gender-tab:hover { border-color: #F97316; color: #F97316; }
.gender-tab.active { background: #F97316; color: #fff; border-color: #F97316; }

/* 规则/提示 */
.rule-list, .tip-list { list-style: none; padding: 0; }
.rule-list li {
  padding: 6px 0; font-size: 13px; color: var(--ts); line-height: 1.6;
  border-bottom: 1px solid #f5f5f5; display: flex; gap: 8px;
}
.rule-list li:last-child, .tip-list li:last-child { border-bottom: none; }
.rule-list .dot { color: #F97316; font-weight: 700; }
.tip-list li {
  padding: 7px 0; font-size: 13px; color: var(--ts); line-height: 1.6;
  border-bottom: 1px solid #f5f5f5; display: flex; gap: 8px;
}
.tip-list .n {
  width: 20px; height: 20px; border-radius: 50%; background: #FFF0E0; color: #F97316;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* 综合评价 */
.eval-section {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
  border: 1.5px solid var(--border); padding: 20px 24px; margin-top: 28px;
}
.eval-section h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.eval-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 16px; }
.eval-table th { background: #f8f8f8; padding: 8px 10px; text-align: center; font-weight: 700; border: 1px solid var(--border); }
.eval-table td { padding: 7px 10px; text-align: center; border: 1px solid var(--border); }
.eval-note { font-size: 12px; color: var(--ts); line-height: 1.7; }

/* 通用 */
.info-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.info-count { font-size: 13px; color: var(--ts); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--tl); display: none; }
.empty-state .icon { font-size: 48px; margin-bottom: 10px; }

@media(max-width:600px){
  .overview-grid { grid-template-columns: repeat(2,1fr); }
  .project-header { padding: 14px; }
  .score-table { font-size: 11px; }
  .score-table th,.score-table td { padding: 5px 6px; }
}
