/* ==========================================================================
   足球作业班 Demo · 全局样式
   - 主题变量
   - 移动端优先（375 基准），PC 端：窄屏居中手机视图 / 宽屏左导航 + 右内容
   ========================================================================== */

:root {
  --brand: #2b6dff;
  --brand-dark: #1e56d6;
  --brand-soft: #eaf1ff;
  --brand-soft-2: #f4f8ff;

  --red: #ff3b30;
  --red-soft: #ffeceb;
  --green: #00b578;
  --green-soft: #e6f7f1;
  --orange: #ff8a00;
  --orange-soft: #fff3e6;
  --purple: #7b61ff;
  --purple-soft: #f0edff;

  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #14171f;
  --text-2: #5b6373;
  --text-3: #9aa1ae;
  --line: #eef1f6;
  --line-2: #e4e9f2;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow: 0 2px 12px rgba(20, 23, 31, 0.06);
  --shadow-l: 0 10px 30px rgba(20, 23, 31, 0.12);

  --header-h: 52px;
  --tabbar-h: 58px;
  --sidebar-w: 232px;

  --num-font: 'DIN Alternate', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: #e9edf5;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #d3dae6;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================ 布局骨架 ============================ */

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + 12px);
  overflow-x: hidden;
}

.app.no-tabbar {
  padding-bottom: 12px;
}

.page-body {
  padding: 12px;
}

.sidebar {
  display: none;
}

/* 顶部栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
  padding: 0 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.topbar .topbar-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .topbar-left,
.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
}

.topbar .topbar-right {
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.icon-btn:active {
  background: var(--line);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* 品牌栏（首页用） */
.brandbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
  padding: 0 14px;
  background: linear-gradient(135deg, #2b6dff, #4f8bff);
  color: #fff;
}

.brandbar .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 15px;
}

.brandbar .brand-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brandbar .brand-sub {
  font-size: 11px;
  opacity: 0.85;
}

/* ============================ 底部导航 ============================ */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  height: var(--tabbar-h);
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.15s;
}

.tabbar .tab-item svg {
  width: 22px;
  height: 22px;
}

.tabbar .tab-item.active {
  color: var(--brand);
  font-weight: 600;
}

/* ============================ 通用组件 ============================ */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.card.flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 2px 10px;
  font-size: 15px;
  font-weight: 600;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}

.muted {
  color: var(--text-3);
}

.text-2 {
  color: var(--text-2);
}

.num {
  font-family: var(--num-font);
  font-variant-numeric: tabular-nums;
}

.red {
  color: var(--red);
}
.green {
  color: var(--green);
}
.orange {
  color: var(--orange);
}
.brand {
  color: var(--brand);
}

.row {
  display: flex;
  align-items: center;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap-4 {
  gap: 4px;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.flex-1 {
  flex: 1;
  min-width: 0;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mb-0 {
  margin-bottom: 0;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-xs {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 999px;
}

.btn-ghost {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-light {
  background: #f2f4f8;
  color: var(--text-2);
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-red {
  background: var(--red);
}

.btn-warm {
  background: linear-gradient(135deg, #ff8a00, #ff6a3d);
}

.btn-gold {
  background: linear-gradient(135deg, #f6c14b, #e79b1f);
  color: #5a3a00;
}

.btn[disabled],
.btn.disabled {
  background: #dfe4ee;
  color: #a8b0bf;
  cursor: not-allowed;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag-red {
  background: var(--red-soft);
  color: var(--red);
}
.tag-green {
  background: var(--green-soft);
  color: var(--green);
}
.tag-orange {
  background: var(--orange-soft);
  color: var(--orange);
}
.tag-purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.tag-gray {
  background: #f2f4f8;
  color: var(--text-2);
}
.tag-black {
  background: #eceef1;
  color: #2b2f36;
}
.tag-solid {
  background: var(--red);
  color: #fff;
}
.tag-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--brand);
}

/* 印章：中奖 / 未中奖 / 待开奖 状态（红=中奖，黑=未中） */
.stamp {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid currentColor;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(-12deg);
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.stamp::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}
.stamp-win { color: #e23b3b; background: rgba(226,59,59,.07); }
.stamp-lose { color: #2b2f36; background: rgba(43,47,54,.06); }
.stamp-pending { color: #4a9ff0; background: rgba(74,159,240,.08); }
/* 「红 / 黑」为单字，字号加大使印章依然饱满 */
.stamp-win, .stamp-lose { font-size: 20px; }

/* 小号印章（广场卡片 / 弹层标题旁用） */
.stamp-sm {
  width: 42px;
  height: 42px;
  border-width: 2px;
  font-size: 11px;
  letter-spacing: 0;
  transform: rotate(-10deg);
}
.stamp-sm::after { inset: 3px; }
.stamp-sm.stamp-win, .stamp-sm.stamp-lose { font-size: 16px; }

/* 赛果核验一行：真实赛果 + 预测对比 */
.settle-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  background: #f5f7fb;
  color: var(--text-3);
  border: 1px solid #eef2f9;
}
.settle-line.win { background: #fdf3f3; border-color: #fadcdc; color: #a83232; }
.settle-line.lose { background: #f5f6f8; border-color: #eceef1; color: #6b7280; }
.settle-line.pending { background: #f3f8ff; border-color: #e2edff; color: #4a7fbf; }
.settle-line b { color: var(--text-1); }
.settle-line.win b { color: #e23b3b; }

.sl-tag {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: #9aa3ad;
}
.sl-tag.win { background: #e23b3b; }
.sl-tag.lose { background: #9aa3ad; }
.sl-tag.pending { background: #4a9ff0; }

/* 核验行 + 印章的组合容器 */
.verify-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.verify-row .settle-line { margin-top: 0; flex: 1; }

/* 头像 */
.avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex: none;
  overflow: hidden;
  background: linear-gradient(135deg, #4f8bff, #2b6dff);
}

.avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.avatar.lg {
  width: 60px;
  height: 60px;
  font-size: 22px;
}

.avatar .v-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  color: #fff;
  font-size: 9px;
}

/* 分段 tabs */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f2f4f8;
}

/* 后台标签多了（8 个）以后不能平分，否则每个只剩几十像素；
   改成不压缩 + 横向滚动，PC 上仍是一行胶囊。 */
#adminTabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#adminTabs::-webkit-scrollbar {
  display: none;
}
#adminTabs .tab {
  flex: 0 0 auto;
  padding: 0 14px;
}

.tabs .tab {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.tabs .tab.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(20, 23, 31, 0.08);
}

/* 胶囊 chips（横向滚动） */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.chip.today {
  position: relative;
}

/* 搜索框 */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f4f8;
}

.searchbar svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex: none;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

/* 列表项 */
.list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item:active {
  background: #fafbfe;
}

.list-item .li-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  flex: none;
}

.list-item .li-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.list-item .li-value {
  color: var(--text-3);
  font-size: 13px;
}

.list-item .li-arrow {
  color: #c4cbd8;
  font-size: 16px;
  line-height: 1;
}

/* 数据格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-s);
  background: #f8fafd;
}

.stat .stat-num {
  font-family: var(--num-font);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat .stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
}

/* 空态 / 加载态 */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease infinite;
}

@keyframes skeleton {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 付费打码 */
.locked {
  position: relative;
  overflow: hidden;
}

.locked .locked-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.locked .locked-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
}

/* 遮罩 / 底部抽屉 / 弹窗 */
.mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 20, 32, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.mask.show {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet.show {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e2e6ee;
  margin: -6px auto 12px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  width: calc(100% - 64px);
  max-width: 320px;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-radius: var(--radius-l);
  padding: 20px 18px 16px;
  text-align: center;
  transition: all 0.2s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal .modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal .modal-body {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Toast */
.toast-layer {
  position: fixed;
  left: 50%;
  top: 42%;
  z-index: 200;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 70vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 23, 31, 0.86);
  color: #fff;
  font-size: 13px;
  animation: toast-in 0.22s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 表单 */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  outline: 0;
  transition: border-color 0.15s;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--brand);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 表格（后台） */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table th {
  background: #f8fafd;
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
}

.table tbody tr:hover {
  background: #fafbfe;
}

.table .t-wrap {
  white-space: normal;
  min-width: 160px;
}

/* ============================ PC 端适配 ============================ */

@media (min-width: 768px) {
  .app {
    box-shadow: 0 0 0 1px rgba(20, 23, 31, 0.05);
    min-height: 100vh;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--sidebar-w);
    background: #eef1f7;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    background: #fff;
    border-right: 1px solid var(--line);
  }

  .sidebar .sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .sb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2b6dff, #4f8bff);
    color: #fff;
    font-size: 16px;
  }

  .sidebar .sb-name {
    font-size: 15px;
    font-weight: 700;
  }

  .sidebar .sb-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
  }

  .sidebar .sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .sidebar .sb-item svg {
    width: 19px;
    height: 19px;
  }

  .sidebar .sb-item:hover {
    background: #f5f8ff;
    color: var(--brand);
  }

  .sidebar .sb-item.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
  }

  .sidebar .sb-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--text-3);
  }

  .tabbar {
    display: none;
  }

  .app {
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 12px;
    box-shadow: 0 0 40px rgba(20, 23, 31, 0.08);
  }
}

/* 宽屏下后台页铺满 */
@media (min-width: 1024px) {
  .app.wide {
    max-width: 1080px;
    margin: 0 auto;
  }

  .app.wide .tabbar {
    display: none;
  }
}

/* ============================ 比分页 · 赛事卡片 ============================ */

.mc {
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mc:active {
  border-color: var(--brand);
}

/* 头部：竞彩编号 + 日期时间 + 状态 + 联赛标签 */
.mc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12px;
}

.mc-num {
  font-weight: 600;
  color: var(--text-2);
}

.mc-time,
.mc-status {
  color: var(--text-3);
}

.mc-league {
  flex: none;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* 中部：主队 VS/比分 客队 */
.mc-teams {
  display: flex;
  align-items: center;
}

.mc-team {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
}

.mc-team.home {
  justify-content: flex-end;
}

.mc-team.away {
  justify-content: flex-start;
}

.mc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-score {
  flex: none;
  min-width: 86px;
  padding: 0 6px;
  text-align: center;
}

.mc-score-num {
  font-size: 19px;
  font-weight: 700;
}

.mc-odds {
  font-size: 10px;
  margin-top: 2px;
}

/* 让球数配色：正数（受让）红、负数（让球）绿 —— 沿用全站红/绿语义 */
.gl-pos {
  color: var(--red);
}

.gl-neg {
  color: var(--green);
}

/* 让球数徽标 */
.mc-gl {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mc-gl.gl-pos {
  background: var(--red-soft);
}

.mc-gl.gl-neg {
  background: var(--green-soft);
}

/* 玩法结果行：胜平负 / 让球胜平负 / 比分 / 总进球 / 半全场 */
.mc-plays {
  display: flex;
  gap: 6px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.mc-play {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f5fa;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* 详情抽屉：玩法开奖结果明细 */
.play-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.play-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  background: #f6f8fc;
  font-size: 13px;
}

.play-item b {
  color: var(--brand);
}

/* 数据仅供参考提示条 */
.notice {
  margin: 0;
  padding: 9px 12px;
  background: var(--orange-soft);
  color: #b26500;
  font-size: 12px;
  line-height: 1.4;
}

/* 分区小标题：已结束 / 未开赛 */
.mc-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 2px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mc-sec i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* 联赛分组标题 */
.mc-group {
  margin: 12px 2px 6px;
  font-size: 12px;
  color: var(--text-3);
}

/* 第三方赛程预告标记 */
.mc-pre {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange);
}

.mc-tip {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
  padding: 14px 4px 2px;
}

/* 比分页日期选择：一行固定 7 天（过去三天 + 今天 + 未来三天），不换行不滚动 */
#dateChips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

#dateChips .chip {
  padding: 0 2px;
  height: 42px;
  justify-content: center;
}

/* 未来日期：底色更浅，提示「尚未开赛 / 赛程待公布」 */
#dateChips .chip-future {
  background: #f7f9fc;
  color: var(--text-2);
}

#dateChips .chip-future.active {
  background: var(--brand);
  color: #fff;
}

/* 宽屏下日期条不必拉得过宽 */
@media (min-width: 768px) {
  #dateChips {
    max-width: 520px;
  }
}

/* ==========================================================================
   作业广场 · 新版方案卡（头像角标关注 + 方案盒子 + 解锁胶囊）
   ========================================================================== */

/* 头像左下角的 + 关注 角标 */
.follow-corner {
  position: absolute;
  left: -6px;
  bottom: -7px;
  height: 18px;
  padding: 0 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(43, 109, 255, .35);
}
.follow-corner.followed {
  background: #c3cadd;
  box-shadow: none;
}

/* 右上角「主页」按钮 */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.home-btn:active {
  background: var(--brand-soft-2);
}

/* 方案盒子：浅蓝灰内嵌圆角 */
.scheme-box {
  background: #f5f8fd;
  border: 1px solid #edf2fa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}

/* 盒内小胶囊标签 */
.pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-outline {
  border: 1px solid #7db8f7;
  color: #3b96f0;
  background: #fff;
}
.pill-soft {
  background: #e3f0ff;
  color: #2b8ff5;
}
.pill-warm {
  background: #fff1e6;
  color: #ff6a2b;
}

/* 串关场次列表 */
.match-list {
  margin-top: 4px;
}
.match-line {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 0;
  letter-spacing: .5px;
}

/* 底部统计小标签 */
.mini-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
}

/* 作业广场：博主名（过长省略，给右侧红单徽章让位） */
.sq-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
}

/* 作业广场：红单数徽章 —— 卡片上的视觉重点
   形态：左「红底白字数字」块 + 右「白底红字连红」块，整体红描边圆角胶囊
   0 红单自动降级为灰，既不误导也不抢眼 */
.red-badge {
  flex: none;
  display: inline-flex;
  align-items: stretch;
  height: 24px;
  border: 1.5px solid #e5373f;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(216, 30, 38, .2);
}

.red-badge b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0 7px;
  background: #e5373f;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.red-badge i {
  display: flex;
  align-items: center;
  padding: 0 7px;
  background: #fff;
  color: #e5373f;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .5px;
}

.red-badge.zero {
  border-color: #dde2ec;
  box-shadow: none;
}

.red-badge.zero b {
  background: #f1f4f9;
  color: var(--text-3);
}

.red-badge.zero i {
  color: var(--text-3);
  font-weight: 700;
}

/* 解锁胶囊按钮 */
.unlock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b6dff, #4f8bff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 109, 255, .3);
}
.unlock-pill.free {
  background: linear-gradient(135deg, #00b578, #27c98a);
  box-shadow: 0 4px 10px rgba(0, 181, 120, .25);
}


/* ==========================================================================
   方案智能录入 · 解析结果卡片（admin.html）
   ========================================================================== */
.pv-card {
  border: 1px solid #e7edf7;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fbfcff;
}
.pv-card.pv-bad {
  border-color: #f3c9c9;
  background: #fff8f8;
}
.pv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pv-idx {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(43, 109, 255, .1);
  border-radius: 6px;
  padding: 2px 7px;
}
.pv-raw {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 10px;
}
.pf {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf > span {
  font-size: 11px;
  color: var(--text-3);
}
.pv-in {
  padding: 6px 8px;
  font-size: 12.5px;
}
.pv-warn {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #c9861a;
  background: #fff8ec;
  border: 1px solid #f6e3c2;
  border-radius: 8px;
  padding: 6px 9px;
}
.pv-card.pv-bad .pv-warn {
  color: #c0392b;
  background: #fdeceb;
  border-color: #f5cdc9;
}
