/* 永安小学足球队 · 手机端样式（FIFA 球员卡风格） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-y: scroll;             /* 始终保留滚动条空间，页面/底栏宽度在各标签页间保持一致 */
  scrollbar-gutter: stable;
}
body {
  height: 100%;
  background: #070a14;
  color: #f1f5fb;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, select { font-family: inherit; }
input[type="date"], input[type="time"], input[type="month"] { color-scheme: dark; }

#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(11, 15, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar .logo { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: block; }
.t-title { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: baseline; gap: 8px; flex: 1; }
.t-title span { font-size: 11px; font-weight: 400; color: #98a3bb; letter-spacing: 2px; margin-left: auto; }

/* ---------- 主区域与标签栏 ---------- */
#page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.pad { padding: 12px 14px 0; }
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 30;
  display: flex;
  background: rgba(13, 18, 33, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px; color: #8b95ad; font-size: 12px; transition: color 0.15s;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: #7bd47f; font-weight: 600; }
/* 第四等份留空：给托管平台角标（由ZCode托管）让位，避免遮挡设置按钮 */
.tabbar .tab-spacer { flex: 1; pointer-events: none; }

/* ---------- 分段选择 / 标签 ---------- */
.seg {
  display: flex; background: #131a2d; border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 10px;
}
.seg button {
  flex: 1; padding: 8px 0; border-radius: 9px; font-size: 15px; color: #9aa4bc; transition: all 0.15s;
}
.seg button.on { background: linear-gradient(135deg, #2f7d3b, #245c2d); color: #fff; font-weight: 600; }
.seg.small button { padding: 6px 0; font-size: 13px; }
.seg.block-seg button.on { background: linear-gradient(135deg, #2f7d3b, #245c2d); }
/* 三段式中的添加学员按钮 */
.seg .seg-add {
  color: #7bd47f; font-weight: 600;
  background: rgba(76, 175, 80, 0.12); border: 1px dashed rgba(76, 175, 80, 0.45);
}
.seg .seg-add:active { background: rgba(76, 175, 80, 0.25); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.chips.nowrap {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
  touch-action: pan-x; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  mask-image: linear-gradient(to right, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
}
.chips.nowrap::-webkit-scrollbar { display: none; }

/* 成长轨迹：10项指标两排按键 */
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.metric-grid .chip { text-align: center; padding: 7px 0; border-radius: 10px; }
.chip {
  padding: 6px 14px; border-radius: 20px; font-size: 14px;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.08); color: #a8b2c8;
  white-space: nowrap; transition: all 0.15s;
}
.chip.on { background: linear-gradient(135deg, #2f7d3b, #26512d); border-color: #3f9c4f; color: #eafff0; font-weight: 600; }
.chip.sm { padding: 4px 10px; font-size: 13px; }

/* ---------- 搜索 ---------- */
.searchbox { margin-bottom: 10px; }
.searchbox input {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 15px;
  background: #121a2e; border: 1px solid rgba(255, 255, 255, 0.08); color: #f1f5fb; outline: none;
}
.searchbox input:focus { border-color: #3f9c4f; }

/* ---------- 球员列表 ---------- */
.pgroup { margin-bottom: 14px; }
.pgroup-title {
  font-size: 13px; color: #9aa4bc; margin: 4px 2px 8px;
  display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.pgroup-title span { font-size: 11px; background: #1a2340; padding: 1px 8px; border-radius: 10px; color: #a8b2c8; }
.plist-item {
  display: flex; align-items: center; gap: 12px;
  background: #121a2d; border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #3d4a68;
  border-radius: 14px; padding: 10px 12px; margin-bottom: 8px;
  transition: transform 0.1s;
}
.plist-item:active { transform: scale(0.985); }
.plist-item.tier-gold { border-left-color: #d9b64a; }
.plist-item.tier-silver { border-left-color: #b9c3d6; }
.plist-item.tier-bronze { border-left-color: #c98d5c; }
.plist-item.tier-rookie { border-left-color: #5f83c9; }
.plist-item.tier-icon { border-left-color: #f2d16b; }

.avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: #26304c; border: 2px solid rgba(255, 255, 255, 0.12);
}
.avatar.rect { border-radius: 10px; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
.avatar.xl.rect { width: 84px; height: 112px; border-radius: 12px; }

.pinfo { flex: 1; min-width: 0; }
.pname { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnum { font-size: 13px; color: #98a3bb; margin-left: 5px; font-weight: 400; }
.pmeta { font-size: 13px; color: #98a3bb; margin-top: 3px; }
.pright { text-align: right; flex-shrink: 0; }
.prating { font-size: 26px; font-weight: 800; line-height: 1; font-style: italic; }
.prating.sm { font-size: 22px; }
.plist-item.tier-gold .prating, .pcard.tier-gold .pcard-rating { color: #eccf6d; }
.plist-item.tier-silver .prating, .pcard.tier-silver .pcard-rating { color: #ccd6e6; }
.plist-item.tier-bronze .prating, .pcard.tier-bronze .pcard-rating { color: #dba279; }
.plist-item.tier-rookie .prating, .pcard.tier-rookie .pcard-rating { color: #8fb1e8; }
.plist-item.tier-icon .prating, .pcard.tier-icon .pcard-rating { color: #f7de9a; }

.pstatus { font-size: 11px; margin-top: 4px; display: inline-block; padding: 2px 7px; border-radius: 8px; }
.st-official { background: rgba(217, 78, 76, 0.18); color: #ef8b89; border: 1px solid rgba(217, 78, 76, 0.35); }
.st-reserve { background: rgba(230, 160, 60, 0.16); color: #eab56a; border: 1px solid rgba(230, 160, 60, 0.3); }
.st-interest { background: rgba(90, 140, 220, 0.15); color: #8fb5e8; border: 1px solid rgba(90, 140, 220, 0.3); }

.empty { text-align: center; color: #8b95ad; padding: 44px 0; font-size: 15px; line-height: 1.9; }
.empty.small { padding: 22px 0; }
.empty small { color: #626d87; font-size: 12px; }

/* ---------- 全屏浮层 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  max-width: 520px; margin: 0 auto;
  background: #0a0e1b;
  transform: translateX(102%); transition: transform 0.22s ease-out;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.overlay.show { transform: translateX(0); }
.ov-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(10, 14, 27, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ov-head > span { font-size: 16px; font-weight: 600; }
.ov-head .back { font-size: 30px; color: #7bd47f; width: 44px; text-align: center; line-height: 1; padding-bottom: 4px; }
.ov-head .head-edit { color: #7bd47f; font-size: 14px; padding: 6px 10px; }
.ov-head .head-sp { width: 44px; }
.ov-body { padding: 14px 14px 0; }

/* ---------- FIFA 球员卡 ---------- */
.pcard {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 16px 16px;
  border: 1.5px solid #3d4a68;
  background: linear-gradient(160deg, #1a2340, #10172b);
  margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.pcard::after {
  content: ''; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%);
}
.pcard.tier-gold { border-color: #b99b45; background: linear-gradient(160deg, #3a3116, #211c0c); }
.pcard.tier-silver { border-color: #9aa7bd; background: linear-gradient(160deg, #2c3444, #171d29); }
.pcard.tier-bronze { border-color: #b07c50; background: linear-gradient(160deg, #3c2c1e, #211710); }
.pcard.tier-rookie { border-color: #4f6ea8; background: linear-gradient(160deg, #1e2c4a, #121b30); }
.pcard.tier-icon { border-color: #e6c866; background: linear-gradient(160deg, #2c2618, #14110a); }
.pcard .avatar { border-color: rgba(255, 255, 255, 0.25); }
.pcard-mid { flex: 1; min-width: 0; }
.pcard-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.pcard-sub { font-size: 14px; color: #bcc5d8; margin-top: 4px; }
.pcard-sub2 { font-size: 13px; color: #98a3bb; margin-top: 2px; }
.pcard-tier { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 8px; margin-top: 7px; background: rgba(255, 255, 255, 0.1); color: #d6deee; }
.pcard-right { text-align: center; flex-shrink: 0; min-width: 64px; }
.pcard-rating { font-size: 48px; font-weight: 900; font-style: italic; line-height: 1; }
.pcard-rating-label { font-size: 12px; color: #9aa4bc; margin-top: 3px; letter-spacing: 3px; }

.trend { font-size: 13px; font-weight: 700; display: inline-block; margin-top: 5px; }
.trend.up { color: #7bd47f; }
.trend.down { color: #ef8b89; }

.status-seg { display: flex; gap: 6px; margin-bottom: 14px; }
.status-seg button {
  flex: 1; padding: 9px 0; border-radius: 11px; font-size: 13px;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.08); color: #9aa4bc;
}
.status-seg button.on.st-official { background: linear-gradient(135deg, #d94e4c, #a83533); border-color: #ff9d9b; color: #fff; font-weight: 800; box-shadow: 0 3px 12px rgba(217, 78, 76, 0.45); }
.status-seg button.on.st-reserve { background: linear-gradient(135deg, #e6a03c, #b97e22); border-color: #ffd39b; color: #fff; font-weight: 800; box-shadow: 0 3px 12px rgba(230, 160, 60, 0.4); }
.status-seg button.on.st-interest { background: linear-gradient(135deg, #5a8cdc, #3c66ad); border-color: #a6c6fa; color: #fff; font-weight: 800; box-shadow: 0 3px 12px rgba(90, 140, 220, 0.4); }

/* ---------- 区块 ---------- */
.sect { background: #101830; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.sect-title {
  font-size: 15px; font-weight: 700; color: #d6deee; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; letter-spacing: 1px;
}
.mini-btn { font-size: 12px; padding: 4px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); color: #9aa4bc; }
.mini-btn.on { border-color: #3f9c4f; color: #7bd47f; }
.legend { text-align: center; font-size: 12px; color: #9aa4bc; margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: middle; }
.lg-now { background: #7bd47f; }
.lg-first { background: none; border-top: 2px dashed #b9c4d8; height: 0; }

/* 身体档案 */
.profile-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pcell {
  flex: 1; min-width: 90px; background: #141c31; border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.pcell.wide { flex-basis: 100%; }
.pcell span { font-size: 12px; color: #98a3bb; }
.pcell b { font-size: 17px; font-weight: 700; }

/* 指标条 */
.srow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.srow:last-child { margin-bottom: 0; }
.slabel { width: 56px; font-size: 14px; color: #bcc5d8; flex-shrink: 0; }
.sbar { flex: 1; height: 8px; border-radius: 5px; background: #1b2440; overflow: hidden; }
.sbar .fill { height: 100%; border-radius: 5px; }
.fill.tier-gold, .pcard-rating.tier-gold { background: linear-gradient(90deg, #a8862e, #eccf6d); }
.fill.tier-silver { background: linear-gradient(90deg, #7e8ba3, #ccd6e6); }
.fill.tier-bronze { background: linear-gradient(90deg, #96603a, #dba279); }
.fill.tier-rookie { background: linear-gradient(90deg, #3d5e9e, #8fb1e8); }
.fill.tier-none { background: #3d4a68; }
.fill.tier-icon { background: linear-gradient(90deg, #b99b45, #f7de9a); }
.sval { width: 34px; text-align: right; font-size: 15px; font-weight: 700; font-style: italic; }

/* 成长记录 */
.rec-list { margin-top: 12px; }
.rec-item {
  position: relative; background: #141c31; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.rec-main { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rec-score { color: #7bd47f; font-weight: 800; font-style: italic; }
.rec-sub { font-size: 12px; color: #98a3bb; margin-top: 3px; }
.rec-note { font-size: 12px; color: #bcc5d8; margin-top: 3px; background: rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 5px 8px; }
.rec-by { font-size: 11px; color: #8b95ad; margin-top: 3px; }
.rec-del { position: absolute; right: 10px; top: 8px; font-size: 11px; color: #8b95ad; padding: 3px 6px; }
.rec-item:last-child .rec-del { top: 8px; }

/* ---------- 按钮 ---------- */
.big-btn {
  display: block; width: 100%; padding: 13px 0; border-radius: 14px; margin-top: 4px;
  background: linear-gradient(135deg, #37a24a, #26703a); color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(45, 160, 75, 0.25);
}
.big-btn:active { filter: brightness(0.92); }
.big-btn small { font-weight: 400; font-size: 11px; opacity: 0.85; display: block; margin-top: 2px; }
.danger-ghost {
  background: none; border: 1px solid rgba(224, 90, 90, 0.45); color: #ef8b89;
  box-shadow: none; margin-top: 10px;
}
.ghost-btn {
  padding: 9px 16px; border-radius: 11px; font-size: 14px;
  background: #1a2340; border: 1px solid rgba(255, 255, 255, 0.1); color: #d6deee;
}
.ghost-btn.primary { background: linear-gradient(135deg, #2f7d3b, #245c2d); border-color: #3f9c4f; color: #fff; }
.ghost-btn.danger { border-color: rgba(224, 90, 90, 0.45); color: #ef8b89; }
.ghost-btn.block, .ghost-btn.danger.block { display: block; width: 100%; text-align: center; }

/* ---------- 表单 ---------- */
.photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.photo-row .ghost-btn { margin-right: 8px; margin-bottom: 0; }
.frow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.frow.col { flex-direction: column; align-items: stretch; gap: 8px; }
.frow label { width: 92px; font-size: 14px; color: #9aa4bc; flex-shrink: 0; }
.frow.col label { width: auto; }
.frow input, .frow select, .frow .seg {
  flex: 1; margin: 0;
}
.frow input[type="text"], .frow input[type="number"], .frow input[type="date"], .frow input[type="time"], .frow input[type="month"], .frow input[type="password"], .frow select, .frow.col input {
  width: 100%; padding: 12px 13px; border-radius: 11px; font-size: 16px;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.1); color: #f1f5fb; outline: none;
}
.frow input:focus, .frow select:focus { border-color: #3f9c4f; }
.frow select { appearance: none; -webkit-appearance: none; }

/* 评估滑杆 */
.ev-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.ev-row > span { width: 56px; font-size: 14px; color: #bcc5d8; flex-shrink: 0; }
.ev-val { width: 34px; text-align: right; font-size: 16px; font-style: italic; }
input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 4px; background: #1b2440; outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #4cc45f, #2f7d3b); border: 2px solid #dff5e2;
  box-shadow: 0 2px 8px rgba(45, 160, 75, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #4cc45f, #2f7d3b); border: 2px solid #dff5e2;
}

/* ---------- 球场与阵容 ---------- */
.pitch-wrap { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.pitch {
  position: relative; width: 100%; padding-top: 128%;
  background: repeating-linear-gradient(0deg, #2c8541 0 12.5%, #28793b 12.5% 25%);
}
.pitch::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.pitch::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 50%;
}
.penalty { position: absolute; left: 24%; right: 24%; height: 10%; border: 2px solid rgba(255, 255, 255, 0.4); }
.penalty.top { top: 0; border-top: none; }
.penalty.bottom { bottom: 0; border-bottom: none; }
.goal-box { position: absolute; left: 38%; right: 38%; height: 4.5%; border: 2px solid rgba(255, 255, 255, 0.4); }
.goal-box.top { top: 0; border-top: none; }
.goal-box.bottom { bottom: 0; border-bottom: none; }

.slot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; width: 74px;
}
.slot-avatar { position: relative; width: 44px; height: 44px; }
.slot-avatar .avatar { width: 44px; height: 44px; font-size: 17px; border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.slot-avatar.empty {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.45);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  color: rgba(255, 255, 255, 0.65); opacity: 0.65;
}
.slot-avatar.empty + .slot-name { opacity: 0.6; font-size: 10px; }
.slot-rating {
  position: absolute; right: -8px; bottom: -4px; font-size: 10px; font-weight: 800; font-style: italic;
  background: #0e1526; color: #ffd97b; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px; padding: 0 4px; line-height: 16px;
}
.slot-name {
  font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.slot.filled .slot-name { background: rgba(0, 0, 0, 0.4); padding: 1px 6px; border-radius: 7px; }
.slot-role {
  font-size: 10px; color: rgba(255, 255, 255, 0.9); background: rgba(0, 0, 0, 0.45);
  padding: 0 5px; border-radius: 6px; line-height: 15px;
}

/* ---------- 球场拖拽 ---------- */
.slot { touch-action: none; }
.slot.drag-source { opacity: 0.3; }
.slot.drop-target .slot-avatar { outline: 3px dashed #7bd47f; outline-offset: 3px; border-radius: 50%; }
.drag-ghost {
  position: fixed; z-index: 90; pointer-events: none;
  transform: translate(-50%, -60%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.drag-ghost .avatar { width: 48px !important; height: 48px !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55); }
.drag-ghost .slot-rating { display: none; }
.drag-ghost > span {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(10, 14, 27, 0.88); padding: 1px 7px; border-radius: 7px; white-space: nowrap;
}

.lu-info { text-align: center; font-size: 14px; color: #9aa4bc; margin: 12px 0; }
.lu-info b { color: #f1f5fb; font-size: 16px; }
.lu-btns { display: flex; gap: 10px; margin-top: 10px; }
.lu-btns .ghost-btn { flex: 1; text-align: center; }

.bench { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bench-chip {
  display: flex; align-items: center; gap: 6px; background: #141c31;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 20px; padding: 4px 8px 4px 4px;
}
.bench-chip .avatar { width: 30px; height: 30px; font-size: 13px; border-width: 1px; }
.bench-chip span { font-size: 14px; }
.bench-chip b { font-size: 14px; color: #eccf6d; font-style: italic; }
.bench-chip button { color: #8b95ad; font-size: 12px; padding: 2px 4px; }
.bench-empty { font-size: 12px; color: #8b95ad; padding: 8px 2px; }

.tip { font-size: 13px; color: #8b95ad; line-height: 1.8; margin-top: 10px; }

/* ---------- 底部弹层 ---------- */
.sheet-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.sheet-back.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 105%);
  width: 100%; max-width: 520px; z-index: 61;
  background: #101830; border-radius: 20px 20px 0 0;
  max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transition: transform 0.22s ease-out; padding-bottom: env(safe-area-inset-bottom);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet::before {
  content: ''; position: sticky; display: block; top: 0; margin: 0 auto;
  width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18);
}
.sheet-title { text-align: center; font-size: 15px; font-weight: 700; padding: 10px 14px 6px; }
.sheet-body { padding: 6px 12px 16px; }
.sheet .big-btn { margin: 8px 12px 10px; width: calc(100% - 24px); }
.sheet .ghost-btn.block { margin: 8px 12px 12px; width: calc(100% - 24px); }

.pick-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 8px;
  border-radius: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pick-row:active { background: rgba(255, 255, 255, 0.05); }
.pick-where { font-size: 11px; color: #98a3bb; margin-left: 6px; }

/* ---------- 设置页 ---------- */
.set-card {
  background: #101830; border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 14px; font-size: 14px; color: #9aa4bc; line-height: 1.8;
}
.set-card .lu-btns { margin-top: 10px; }
.set-card p { margin-bottom: 6px; }
.about { text-align: center; color: #626d87; font-size: 13px; padding: 20px 0 4px; letter-spacing: 1px; }
.storage-meter { font-size: 12px; color: #9aa4bc; background: #141c31; border-radius: 10px; padding: 8px 12px; margin-bottom: 4px; }
.storage-meter b { color: #d6deee; }
.storage-meter.warn { color: #ef8b89; border: 1px solid rgba(224, 90, 90, 0.4); }
.storage-meter.warn b { color: #ffb4b2; }

/* ---------- 精彩瞬间照片墙 ---------- */
.moment-count { font-size: 11px; background: #1a2340; padding: 1px 8px; border-radius: 10px; color: #a8b2c8; font-weight: 400; }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.moment-cell {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.07);
}
.moment-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-cell.add {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03);
}
.moment-cell.add span { font-size: 26px; color: rgba(255, 255, 255, 0.55); font-weight: 300; }
.moment-flag {
  position: absolute; right: 4px; top: 4px; font-style: normal; font-size: 10px;
  background: rgba(14, 21, 38, 0.85); color: #7bd47f; border-radius: 6px; padding: 1px 5px;
}

/* 照片查看器 */
#moment-viewer {
  position: fixed; inset: 0; z-index: 80; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  background: rgba(5, 8, 16, 0.97); padding: 16px;
}
#moment-viewer.show { display: flex; }
.mv-head {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
.mv-head span { font-size: 15px; font-weight: 600; }
.mv-head button { font-size: 18px; color: #a8b2c8; padding: 4px 8px; }
.mv-img-wrap { width: 100%; display: flex; justify-content: center; }
.mv-img-wrap img { max-width: 100%; max-height: 58vh; border-radius: 14px; }
.mv-note { color: #dfe6f2; font-size: 16px; margin-top: 16px; text-align: center; max-width: 92%; line-height: 1.6; }
.mv-note i { color: #8b95ad; font-style: normal; font-size: 13px; }
.mv-date { color: #8b95ad; font-size: 13px; margin-top: 6px; }
.mv-btns { display: flex; gap: 10px; margin-top: 20px; }

/* 照片备注输入 */
#moment-note-input {
  width: 100%; min-height: 88px; padding: 12px; border-radius: 12px; font-size: 15px;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.1); color: #f1f5fb;
  outline: none; resize: none; margin-bottom: 10px;
}
#moment-note-input:focus { border-color: #3f9c4f; }

/* ---------- 登录页 ---------- */
.login-page {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: flex-start;
  padding-top: 8vh; overflow-y: auto;
  background: radial-gradient(120% 100% at 50% 0%, #16213c 0%, #0b0f1c 55%, #070a14 100%);
}
.login-page.show { display: flex; }
.login-box {
  width: 84%; max-width: 330px; text-align: center;
  padding: 30px 24px 22px; border-radius: 22px;
  background: rgba(16, 24, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}
.login-logo { width: 152px; height: 152px; border-radius: 50%; margin-bottom: 14px; }
.login-box h1 { font-size: 21px; letter-spacing: 3px; }
.login-sub { font-size: 14px; color: #98a3bb; letter-spacing: 4px; margin: 8px 0 22px; }
.login-form input {
  width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 16px;
  background: #121a2e; border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5fb; outline: none; margin-bottom: 12px;
}
.login-form input:focus { border-color: #3f9c4f; }
.login-err { color: #ef8b89; font-size: 12px; min-height: 18px; margin-bottom: 4px; }
.login-hint { font-size: 11px; color: #626d87; line-height: 1.9; margin-top: 18px; }
.login-copyright {
  text-align: center; font-size: 11px; color: #4a5468; letter-spacing: 1px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* 查看模式标识（顶栏） */
.view-badge {
  display: none; font-style: normal; font-size: 10px; color: #8fb5e8;
  background: rgba(90, 140, 220, 0.15); border: 1px solid rgba(90, 140, 220, 0.35);
  padding: 1px 7px; border-radius: 8px; margin-left: 8px; vertical-align: 1px;
}
body.role-viewer .view-badge { display: inline-block; }

/* ---------- 球衣号码徽章 ---------- */
.num-badge {
  display: inline-block; font-style: italic; font-weight: 800; font-size: 16px;
  color: #eccf6d; background: rgba(217, 182, 74, 0.14);
  border: 1px solid rgba(217, 182, 74, 0.4);
  padding: 0 8px; border-radius: 8px; margin-left: 8px; vertical-align: 2px;
}

/* ---------- 队长袖标 ---------- */
.cap-badge {
  display: inline-block; font-style: normal; font-size: 10px; font-weight: 700;
  color: #3a2c08; background: linear-gradient(135deg, #f2d16b, #d9b64a);
  padding: 1px 7px; border-radius: 7px; margin-left: 7px; vertical-align: 2px;
  letter-spacing: 1px;
}
.slot-cap {
  position: absolute; left: -7px; top: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, #f2d16b, #d9b64a); color: #3a2c08;
  font-size: 10px; font-weight: 800; font-style: italic;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}
.cap-btn { margin: -4px 0 14px; border-color: rgba(217, 182, 74, 0.5); color: #eccf6d; }

/* ---------- 赛程页 ---------- */
.match-card {
  display: flex; gap: 10px; align-items: stretch;
  background: #121a2d; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  padding: 16px 12px; margin-bottom: 10px; min-height: 104px;
}
.mc-date {
  text-align: center; flex-shrink: 0; width: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mc-date span { font-size: 11px; color: #9aa4bc; white-space: nowrap; letter-spacing: 0.5px; }
.mc-date i { font-style: normal; font-size: 14px; color: #f1f5fb; font-weight: 700; white-space: nowrap; }
.mc-main {
  flex: 1; min-width: 0; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 3px;
}
.mc-main b { font-size: 14px; display: block; line-height: 1.5; }
.up-team, .up-opp { font-size: 14px; }
.vs-mid { display: block; font-style: italic; font-size: 12px; color: #8b95ad; letter-spacing: 2px; }
.up-meta { display: block; font-size: 11px; color: #9aa4bc; margin-top: 4px; }
.mc-note { color: #7bd47f !important; font-size: 11px; }
.mc-side { text-align: center; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.score-line { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.score-line .score-big { font-size: 24px; }
.score-line i { font-style: italic; color: #8b95ad; font-size: 16px; }
.score-line em { font-style: normal; font-size: 14px; font-weight: 700; color: #d6deee; }
.count-badge { font-size: 10px; color: #ffd97b; background: rgba(217, 182, 74, 0.15); border: 1px solid rgba(217, 182, 74, 0.35); padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.count-badge.today { color: #7bd47f; background: rgba(76, 175, 80, 0.15); border-color: rgba(76, 175, 80, 0.4); }
.count-badge.past { color: #8b95ad; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); }
.score-big { font-size: 18px; font-weight: 800; font-style: italic; color: #eccf6d; }

/* 近期赛程：转为已赛（竖排按钮，带背景色） */
.tomatch-btn {
  flex-shrink: 0; width: 48px; padding: 10px 0; border-radius: 10px; align-self: center;
  background: rgba(76, 175, 80, 0.16); border: 1px solid rgba(76, 175, 80, 0.5);
  color: #7bd47f; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center;
}
.tomatch-btn:active { background: rgba(76, 175, 80, 0.3); }

/* 历史交战：竖排三行（主队 / 比分 / 客队） */
.mc-teams {
  flex: 1; min-width: 0; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mt-name { font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.mt-name.away { color: #bcc5d8; }
.mt-score { font-size: 21px; font-weight: 900; font-style: italic; color: #eccf6d; white-space: nowrap; }
.mt-score i { font-size: 13px; color: #8b95ad; font-style: italic; margin: 0 3px; }

/* 比赛类型竖排徽章（不同类型不同底色） */
.comp-tag {
  flex-shrink: 0; width: 42px; padding: 9px 0; border-radius: 10px; align-self: center;
  font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center;
  border: 1px solid;
}
.ct-l { background: rgba(90, 140, 220, 0.18); border-color: rgba(90, 140, 220, 0.5); color: #8fb5e8; }
.ct-c { background: rgba(170, 110, 220, 0.18); border-color: rgba(170, 110, 220, 0.5); color: #c9a1ee; }
.ct-y { background: rgba(76, 175, 80, 0.16); border-color: rgba(76, 175, 80, 0.5); color: #7bd47f; }
.ct-t { background: rgba(230, 160, 60, 0.16); border-color: rgba(230, 160, 60, 0.5); color: #eab56a; }
.ct-o { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #bcc5d8; }

/* 射手榜 / 助攻榜 */
.board-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.board-row:last-child { border-bottom: none; }
.rank {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-style: italic;
  background: #1a2340; color: #9aa4bc;
}
.rank.r1 { background: linear-gradient(135deg, #f2d16b, #d9b64a); color: #3a2c08; }
.rank.r2 { background: linear-gradient(135deg, #ccd6e6, #9aa7bd); color: #232a38; }
.rank.r3 { background: linear-gradient(135deg, #dba279, #b07c50); color: #3a2414; }
.rank-team { font-style: normal; font-size: 11px; color: #8b95ad; margin-left: 4px; }
.board-n { font-size: 18px; font-weight: 800; font-style: italic; color: #eccf6d; }
.pick-row.picked { background: rgba(76, 175, 80, 0.12); }
.pick-row.dimmed { opacity: 0.3; pointer-events: none; }
.pick-row.picked .pname::after { content: ' ✓'; color: #7bd47f; }
.wl { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 9px; }
.wl.win { background: rgba(76, 175, 80, 0.2); color: #7bd47f; border: 1px solid rgba(76, 175, 80, 0.4); }
.wl.draw { background: rgba(255, 255, 255, 0.08); color: #bcc5d8; border: 1px solid rgba(255, 255, 255, 0.2); }
.wl.lose { background: rgba(229, 115, 115, 0.18); color: #ef8b89; border: 1px solid rgba(229, 115, 115, 0.4); }

.match-head { text-align: center; padding: 20px 12px 16px; background: #101830; border-radius: 16px; margin-bottom: 14px; }
.mh-team { font-size: 15px; font-weight: 700; color: #d6deee; }
.mh-score { font-size: 52px; font-weight: 900; font-style: italic; line-height: 1.1; margin: 4px 0; }
.mh-score i { font-style: italic; color: #8b95ad; margin: 0 8px; font-size: 40px; }
.mh-meta { font-size: 12px; color: #9aa4bc; margin-top: 6px; }
.mh-meta .wl { margin-left: 6px; }
.mvp-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #3a3116, #211c0c); border: 1px solid #b99b45;
  border-radius: 14px; padding: 10px 14px; margin-bottom: 14px;
}
.mvp-card div { flex: 1; }
.mvp-card span { display: block; font-size: 11px; color: #eccf6d; letter-spacing: 2px; }
.mvp-card b { font-size: 17px; color: #f7de9a; }
.card-dot { display: inline-block; font-size: 10px; font-weight: 800; color: #0e1322; border-radius: 5px; padding: 2px 6px; margin-right: 6px; }
.card-dot.yellow { background: #f2d16b; }
.card-dot.red { background: #ef8b89; }
.rate-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rate-row:last-child { border-bottom: none; }
.rate-name { flex: 1; font-size: 14px; }
.rate-ctl { display: flex; align-items: center; gap: 12px; }
.rate-ctl button {
  width: 32px; height: 32px; border-radius: 10px; font-size: 19px;
  background: #1a2340; border: 1px solid rgba(255, 255, 255, 0.12); color: #f1f5fb;
}
.rate-ctl b { font-size: 17px; font-style: italic; width: 26px; text-align: center; }
.rate-v { font-size: 16px; font-style: italic; font-weight: 800; }
.rate-v.good, .rate-ctl b.good { color: #7bd47f; }
.rate-v.bad, .rate-ctl b.bad { color: #ef8b89; }

/* ---------- 比赛实录 ---------- */
.live-entry {
  background: linear-gradient(135deg, #1d3a52, #12233a); border: 1px solid rgba(90, 170, 255, 0.35);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 5px;
}
.live-entry.has { border-color: rgba(76, 175, 80, 0.6); background: linear-gradient(135deg, #1c3f2a, #12291a); }
.le-badge { font-size: 11px; font-weight: 700; color: #8fb5e8; letter-spacing: 2px; }
.live-entry.has .le-badge { color: #7bd47f; }
.live-entry b { font-size: 16px; }
.live-entry span { font-size: 12px; color: #9aa4bc; }
.live-entry { flex-direction: row; align-items: center; }
.le-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.le-reset {
  flex-shrink: 0; width: 52px; padding: 12px 0; border-radius: 10px; margin-left: 8px;
  background: rgba(224, 90, 90, 0.14); border: 1px solid rgba(224, 90, 90, 0.5);
  color: #ef8b89; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center;
}
.le-reset:active { background: rgba(224, 90, 90, 0.3); }
.live-clock-box {
  text-align: center; background: #101830; border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
#live-clock { font-size: 44px; font-weight: 900; font-style: italic; color: #7bd47f; letter-spacing: 3px; }
.live-phase { font-size: 13px; font-weight: 700; color: #ffd97b; letter-spacing: 3px; }
.live-half-tip { font-size: 11px; color: #8b95ad; }
.live-clock-box.paused { border-color: rgba(255, 217, 123, 0.5); }
.live-clock-box.paused #live-clock { color: #ffd97b; }
.live-phase.paused { color: #ffd97b; }
.live-phase.extra { color: #ef8b89; }
.lv-pause-btn { margin-top: 10px; background: linear-gradient(135deg, #8a6d1f, #6b520f); }
.lv-pause-btn.resuming { background: linear-gradient(135deg, #37a24a, #26703a); }

/* 上场名单（首发+替补+换人） */
.lp-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.lp-row:last-child { border-bottom: none; }
.lp-num { font-size: 12px; font-style: italic; font-weight: 800; color: #eccf6d; width: 30px; flex-shrink: 0; }
.lp-name { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.lp-sub-info { font-size: 11px; color: #8b95ad; margin-left: auto; text-align: right; line-height: 1.4; }
.lp-wrap { font-size: 13px; color: #bcc5d8; line-height: 1.8; word-break: break-all; }
.sheet-sub-title { font-size: 13px; font-weight: 700; color: #d6deee; margin: 6px 2px; }
.goal-them { color: #ef8b89; font-weight: 700; }
#note-text {
  width: 100%; min-height: 96px; padding: 12px; border-radius: 12px; font-size: 15px;
  background: #141c31; border: 1px solid rgba(255, 255, 255, 0.1); color: #f1f5fb;
  outline: none; resize: none; margin-bottom: 10px;
}
#note-text:focus { border-color: #3f9c4f; }
.avatar .av-ph { font-size: 20px; letter-spacing: 3px; margin-left: 3px; }

/* ---------- 账号管理列表 ---------- */
.acct-list { display: flex; flex-direction: column; }
.acct-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.acct-row:last-child { border-bottom: none; }
.acct-row .pinfo { flex: 1; min-width: 0; }
.ghost-btn.sm { padding: 6px 12px; font-size: 13px; }

/* ---------- 查看模式：隐藏所有编辑入口 ---------- */
body.role-viewer .edit-only { display: none !important; }

/* ---------- 轻提示 ---------- */
#toast {
  position: fixed; bottom: calc(100px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%) translateY(10px); z-index: 99;
  background: rgba(20, 28, 49, 0.96); border: 1px solid #3f9c4f;
  color: #dff5e2; font-size: 14px; padding: 10px 20px; border-radius: 22px;
  opacity: 0; pointer-events: none; transition: all 0.2s; max-width: 80%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= v45：1-10 分制评估按钮组 ================= */
.ev-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.ev-row:last-child { border-bottom: none; }
.ev-label { width: 62px; flex: none; font-size: 13px; color: #cfd8ea; }
.ev-nums { display: flex; gap: 4px; flex: 1; }
.ev-nums button {
  flex: 1; min-width: 0; padding: 8px 0; font-size: 13px; line-height: 1;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: #cfd8ea; cursor: pointer;
}
.ev-nums button.on {
  background: linear-gradient(135deg, #57b85c, #3d8f41);
  border-color: transparent; color: #fff; font-weight: 700;
}

/* ================= v45：球员备注模板 ================= */
.note-chip.used { opacity: .4; }
.sheet-body textarea, .ov-body textarea {
  width: 100%; min-height: 88px; padding: 12px; border-radius: 12px; font-size: 15px;
  font-family: inherit; background: #141c31; border: 1px solid rgba(255,255,255,.1);
  color: #f1f5fb; outline: none; resize: none; margin: 8px 0 10px;
}
.sheet-body textarea:focus, .ov-body textarea:focus { border-color: #3f9c4f; }
.tpl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.tpl-row span { flex: 1; }

/* ================= v45：实录备注 & 赛后确认 ================= */
.lv-note-text { color: #c9d4e8; }

/* ================= v45：智能模块（训练建议 / 学期报告） ================= */
.drill-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.drill-card b { display: block; font-size: 14px; margin-bottom: 4px; }
.drill-card p { font-size: 12.5px; color: #b9c4d8; line-height: 1.55; margin: 0; }
.drill-home { margin-top: 6px; color: #8fd0a0 !important; }
.weak-tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px;
  font-weight: 400; margin-left: 6px; vertical-align: 1px;
  background: rgba(224,90,90,.16); color: #ff9e9c;
}
.ability-delta { display: flex; align-items: center; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }

/* ================= v46：设置页折叠区块 ================= */
.collapse-head { cursor: pointer; user-select: none; }
.coll-arrow { font-style: normal; color: #9aa4bc; margin-left: 8px; font-size: 13px; }

/* ================= v47：已毕业（档案锁定） ================= */
.st-graduated { background: rgba(163, 168, 184, 0.16); color: #aab6cf; border: 1px solid rgba(163, 168, 184, 0.35); }
.status-seg button.on.st-graduated { background: linear-gradient(135deg, #6b7a99, #47536e); border-color: #aebadb; color: #fff; font-weight: 800; box-shadow: 0 3px 12px rgba(107, 122, 153, 0.4); }
.grad-lock {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: rgba(163, 168, 184, 0.12); border: 1px dashed rgba(163, 168, 184, 0.4);
  color: #aab6cf; text-align: center; letter-spacing: 1px;
}

/* ================= v48：雷达对比标签 ================= */
.radar-cmp-tag { font-size: 12px; color: #8b95ad; font-weight: 400; letter-spacing: 0; }

/* ================= v51：训练计划 ================= */
.plan-item { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.06); align-items: flex-start; }
.plan-item:last-child { border-bottom: none; }
.plan-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: none; color: transparent; font-size: 14px; flex: none; margin-top: 2px; cursor: pointer; padding: 0; line-height: 1; }
.plan-check.on { background: #3d8f41; border-color: transparent; color: #fff; }
.plan-check.ghost { border-color: rgba(255,255,255,.14); }
.plan-item.done .plan-title { text-decoration: line-through; opacity: .55; }
.plan-item.done .plan-meta, .plan-item.done .plan-desc, .plan-item.done .plan-home { opacity: .5; }
.plan-main { flex: 1; min-width: 0; }
.plan-title { font-size: 14px; font-weight: 700; color: #dfe7f5; }
.plan-meta { font-size: 12px; color: #8fd0a0; margin-top: 2px; }
.plan-desc { font-size: 12.5px; color: #b9c4d8; line-height: 1.5; margin-top: 4px; }
.plan-home { font-size: 12px; color: #8fd0a0; margin-top: 3px; }
.plan-ctl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9aa4bc; margin-top: 6px; flex-wrap: wrap; }
.pi-num { width: 60px; padding: 5px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: #141c31; color: #f1f5fb; font-size: 13px; text-align: center; }

/* ================= v52：金银足球图标 / 设置折叠标题加高 / 计划标签 ================= */
.ball-ic { display: inline-block; margin-right: 4px; }
.ball-ic.gold { filter: sepia(1) saturate(7) brightness(0.95) hue-rotate(-6deg); }
.ball-ic.silver { filter: grayscale(1) brightness(1.75) contrast(0.85); }
.collapse-head { padding: 17px 6px; min-height: 56px; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16.5px; }
.coll-body { margin-bottom: 6px; }
.plan-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 400; margin-left: 6px; vertical-align: 1px; background: rgba(224,90,90,.16); color: #ff9e9c; }
.plan-tag.good { background: rgba(102,187,106,.15); color: #8fd0a0; }

/* ================= v57：教练看板 / 训练点名 / 海报 ================= */
.hb-match { position: relative; padding: 4px 2px 10px; }
.hb-match b { display: block; font-size: 20px; color: #eaf2ff; }
.hb-match span { display: block; font-size: 13px; color: #9aa4bc; margin-top: 4px; }
.hb-count { position: absolute; right: 4px; top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: #7bd47f; background: rgba(102,187,106,.14); border: 1px solid rgba(102,187,106,.3); padding: 3px 10px; border-radius: 12px; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.att-row:last-child { border-bottom: none; }
.att-row .plan-check { cursor: pointer; }
.inj-badge { font-style: normal; margin-left: 2px; }
.po-img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 8px 30px rgba(0,0,0,.4); }

/* ================= v58：设置页标题框增大 / 方形退出按钮 / 体测输入 ================= */
.who-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logout-sq {
  width: 40px; height: 40px; flex: none; border-radius: 10px; font-size: 20px; line-height: 1;
  border: 1px solid rgba(224, 90, 90, 0.45); background: rgba(224, 90, 90, 0.10); color: #ef8b89;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.logout-sq:active { filter: brightness(1.3); }
.te-fit { width: 90px; }

/* ================= v60：站位图编辑模式 / 替补多选 ================= */
.pitch-wrap { position: relative; }
.pitch-edit-btn {
  position: absolute; right: 8px; top: 8px; z-index: 10;
  padding: 5px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2); background: rgba(11,15,28,.85); color: #9aa4bc;
  cursor: pointer;
}
.pitch-edit-btn.on {
  background: linear-gradient(135deg, #57b85c, #3d8f41); border-color: transparent; color: #fff;
}
.pitch.editing .slot { cursor: pointer; }
.pitch.editing .slot.filled { box-shadow: 0 0 0 2px rgba(87,184,92,.4); }

/* ================= v61：天气 / 比赛双入口卡片 ================= */
.hb-weather { display: block; font-size: 14px; font-style: normal; color: #8fd0a0; margin-top: 4px; }
.match-entries { display: flex; gap: 10px; margin-bottom: 14px; position: relative; }
.match-entry {
  flex: 1; padding: 14px 12px; border-radius: 14px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.match-entry.active { background: rgba(102,187,106,.08); border-color: rgba(102,187,106,.3); }
.match-entry .me-icon { font-size: 28px; }
.match-entry .me-title { font-size: 15px; font-weight: 700; color: #dfe7f5; }
.match-entry b { font-size: 13px; color: #c9d4e8; }
.match-entry .me-sub { font-size: 12px; color: #8b95ad; }
.match-entry .me-status { font-size: 12px; font-weight: 700; }
.match-entry .me-status.live { color: #ff6b6b; }
.match-entry .me-status.ended { color: #ffd97b; }
.match-entry .me-status.dim { color: #66708a; }
.me-reset {
  position: absolute; right: -4px; top: -4px; padding: 4px 10px; font-size: 12px;
  border-radius: 8px; border: 1px solid rgba(224,90,90,.4); background: rgba(11,15,28,.9); color: #ef8b89;
  cursor: pointer;
}

/* ================= v102：积分榜表格 ================= */
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { padding: 8px 4px; text-align: center; color: #8b95ad; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.st-table td { padding: 7px 4px; text-align: center; color: #dfe7f5; border-bottom: 1px solid rgba(255,255,255,.05); }
.st-table .st-team { text-align: left; padding-left: 8px; font-weight: 600; white-space: nowrap; }
.st-table .st-pts { font-weight: 700; color: #ffd97b; }
.st-table tr.st-hl { background: rgba(102,187,106,.08); }
.st-table tr.st-hl .st-team { color: #7bd47f; }
.st-center { text-align: center; justify-content: center; }
.ko-round { margin-top: 12px; font-size: 14px; font-weight: 700; color: #ffd97b; }
.ko-match { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; margin-top: 4px; background: rgba(255,255,255,.03); border-radius: 8px; font-size: 13px; }
.ko-match b { color: #dfe7f5; font-size: 15px; flex: none; margin: 0 10px; }
.ko-match span { flex: 1; }
.ko-match span:first-child { text-align: right; }
.st-hl-row { background: rgba(102,187,106,.08); border-radius: 8px; padding: 2px 4px; }
.st-hl-row .rate-name { color: #7bd47f; font-weight: 700; }
.hb-match-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hb-match-row span { text-align: right; }
.hb-match-row .hb-vs { text-align: right; font-size: 20px; color: #eaf2ff; }

/* ================= v110：比赛信息头（队名大 + vs小 + 主客标注） ================= */
.mh-team { font-size: 22px; font-weight: 800; color: #eaf2ff; }
.mh-team .mh-tag { font-style: normal; font-size: 13px; font-weight: 400; color: #8b95ad; margin-left: 2px; }
.mh-score.mh-vs { font-size: 18px; font-weight: 600; color: #9aa4bc; }
.pos-edit { cursor: pointer; }
.chips .chip.pos-edit:not(.on) { opacity: .6; }

/* ================= v113：教练员训练系统 ================= */
.tbadge { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); color: #9aa4bc; margin-left: 6px; white-space: nowrap; flex-shrink: 0; }
.tbadge.good { border-color: rgba(123,212,127,.45); color: #7bd47f; }
.tbadge.bad { border-color: rgba(239,139,137,.45); color: #ef8b89; }
.tbadge.warn { border-color: rgba(255,196,87,.45); color: #ffc457; }
.tbadge.plan { border-color: rgba(122,180,255,.45); color: #7ab4ff; }
.tbadge.off { border-color: rgba(255,255,255,.12); color: #6c7a94; }
.tbadge.edit { border-color: rgba(200,140,255,.45); color: #c98cff; }
.ts-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.ts-row:last-child { border-bottom: none; }
.ts-row:active { background: rgba(255,255,255,.04); }
.ts-date { flex-shrink: 0; width: 56px; text-align: center; }
.ts-date b { display: block; font-size: 15px; }
.ts-date span { font-size: 11px; color: #8b95ad; }
.ts-main { flex: 1; min-width: 0; }
.ts-main b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-main span { font-size: 12px; color: #98a3bb; }
.seg-row { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.seg-row:last-child { border-bottom: none; }
.seg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.seg-head b { font-size: 14px; }
.seg-mins { font-size: 11px; color: #7bd47f; border: 1px solid rgba(123,212,127,.35); padding: 1px 7px; border-radius: 10px; }
.seg-cnt { font-size: 13px; color: #b9c3d8; line-height: 1.55; }
.seg-row.reinforce .seg-cnt { color: #efb1af; }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.stage-bar:last-child { border-bottom: none; }
.stage-bar .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.stage-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3f9c4f, #7bd47f); }
.sect-title .tbadge { margin-left: 0; }

/* ================= v114：训练系统改版 / 伤停 / 奖状图片 ================= */
.ts-today { border-color: rgba(123, 212, 127, 0.45); background: linear-gradient(160deg, rgba(63, 156, 79, 0.12), #101830 55%); }
.rest-div { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.14); color: #8b95ad; font-size: 12px; }
.honor-thumb { width: 86px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); display: block; }
.ov-body ul { color: #b9c3d8; font-size: 13px; line-height: 1.7; }
.ov-body ul li { margin-bottom: 4px; }
.rate-row > div { flex: 1; min-width: 0; text-align: left; }

/* ================= v115：伤情分级 / 学期向导 / 模板卡片 ================= */
.tbadge.lv-sev { border-color: rgba(239, 139, 137, 0.55); color: #ef8b89; background: rgba(239, 139, 137, 0.08); }
.tbadge.lv-mid { border-color: rgba(255, 196, 87, 0.5); color: #ffc457; }
.tbadge.lv-light { border-color: rgba(122, 180, 255, 0.5); color: #7ab4ff; }
.tpl-card { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
.tpl-card b { display: block; font-size: 15px; color: #eaf2ff; margin-bottom: 3px; }
.tpl-card span { font-size: 12.5px; color: #98a3bb; line-height: 1.5; }
.tpl-card.on { border-color: #3f9c4f; background: rgba(63, 156, 79, 0.12); }
.tpl-card.on b { color: #7bd47f; }

/* ================= v117：训练方向多选 + 比重滑块（独立百分制/20格/红色警示） ================= */
.mix-rows { margin-top: 6px; }
.mix-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mix-row:last-child { border-bottom: none; }
.mix-name { flex: 0 0 92px; font-size: 13px; color: #dfe7f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-track { flex: 1; min-width: 0; padding: 2px 0; }
.mix-track input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; margin: 0; background: transparent;
}
.mix-track input[type="range"]:focus { outline: none; }
.mix-track input[type="range"]::-webkit-slider-runnable-track {
  height: 12px; border-radius: 6px;
  background: linear-gradient(180deg, #1b2540, #141c33);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}
.mix-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -7px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #b9f0bc, #3f9c4f 70%);
  border: 2px solid #eaf2ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.mix-track input[type="range"]::-moz-range-track {
  height: 12px; border-radius: 6px; background: #1b2540; border: 1px solid rgba(255, 255, 255, 0.18);
}
.mix-track input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #b9f0bc, #3f9c4f 70%);
  border: 2px solid #eaf2ff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); cursor: pointer;
}
.mix-pct { flex: 0 0 48px; text-align: right; font-size: 14px; font-weight: 700; color: #7bd47f; font-style: normal; }
.mix-sum { padding: 8px 0 2px; font-size: 12.5px; color: #98a3bb; }
.mix-sum b { color: #7bd47f; }
.mix-sum b.bad, .mix-sum .bad { color: #ef8b89; }
/* 合计超过 100%：全部滑块框体红色警示 */
.mix-rows.over .mix-track input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(180deg, #4a2027, #38161c);
  border-color: rgba(239, 139, 137, 0.65);
}
.mix-rows.over .mix-track input[type="range"]::-moz-range-track {
  background: #4a2027; border-color: rgba(239, 139, 137, 0.65);
}
.mix-rows.over .mix-pct { color: #ef8b89; }

/* 头像固定 34x45（伤停/伤情、评估提醒） */
.avatar.av-fixed { width: 34px !important; height: 45px !important; flex: 0 0 34px; object-fit: cover; border-radius: 9px; }
