/* ===== 比赛预测总览页（模型概率 + 策略初测/复核 + 复盘）===== */
.ma-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 14px 0;
}

/* 页面头 */
.ma-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.ma-head-left h3 {
    font-size: 18px;
    color: #111;
    margin: 0 0 4px;
    font-weight: 700;
}
.ma-head-left p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}
.ma-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ma-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: inherit;
}
.ma-date .layui-icon {
    font-size: 10px;
    color: #999;
}
/* 顶部日期选择器下拉 */
.ma-date-dropdown {
    position: relative;
    display: inline-block;
}
.ma-date-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 130px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 0.8px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
}
.ma-date-menu.show {
    display: block;
}
/* 下方视口空间不足时向上弹出（js 判断后加 .up） */
.ma-date-menu.up {
    top: auto;
    bottom: calc(100% + 6px);
}
.ma-stats-menu.up {
    top: auto;
    bottom: calc(100% - 2px);   /* 向上弹出方向同样再上移 4px */
}
/* 菜单内部滚动不传导到页面：手机滑动菜单列表不会把整页带滚、导致菜单“消失” */
.ma-date-menu,
.ma-stats-menu {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.ma-date-item {
    display: block;
    padding: 9px 12px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 0.8px solid #f3f4f6;
}
.ma-date-item:last-child {
    border-bottom: none;
}
.ma-date-item:hover {
    background: #f9fafb;
    color: #111;
}
.ma-date-item.ma-date-cur {
    color: #111;
    font-weight: 600;
    background: #f3f4f6;
}
.ma-date-tag {
    color: #111;
    font-weight: 600;
    margin-left: 4px;
}
.ma-count {
    font-size: 12px;
    color: #fff;
    background: #111;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
}
.ma-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ma-head-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ma-stat-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.ma-stat-link:hover {
    color: #111;
}

/* 流程引导 */
.ma-flow {
    position: relative;   /* 承载 .ma-stats-drop 下拉的层叠层级，避免被下方统计卡片(hover z-index:2)盖住 */
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    background: #fff;
    border: 0.8px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ma-flow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.25);
}
.ma-flow:active {
    transform: translateY(-1px) scale(.995);
}
.ma-flow-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}
.ma-flow-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}
.ma-flow-item-end {
    background: #f3f4f6;
    color: #666;
}
.ma-flow-item-end i { background: #111; color: #fff; }
.ma-flow .ma-flow-item-cur {
    background: #40ae2a;
    color: #fff;
}
.ma-flow .ma-flow-item-cur i { background: #fff; color: #40ae2a; }
.ma-flow-arrow {
    font-size: 7px;
    color: #c0c4cc;
}
/* 流程步骤组：始终水平单行；手机端自身占满一行，不足时组内横向滚动 */
.ma-flow-steps {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
}
.ma-flow-stat {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 5px 12px;
    white-space: nowrap;
}
.ma-flow-stat-txt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
/* 统计条“选项”按钮 + 菜单：样式与顶部“今日”按钮一致 */
.ma-stats-drop {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.ma-stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #666;
    background: transparent;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    font-family: inherit;
}
.ma-stats-btn .layui-icon {
    font-size: 10px;
    color: #999;
}
.ma-stats-menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);   /* 统计选择层相对按钮上移：6px→2px→-2px，已与按钮下缘重叠 2px */
    right: 0;
    min-width: 132px;
    background: #fff;
    border: 0.8px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
}
.ma-stats-menu.show {
    display: block;
}
.ma-flow-stat-txt b {
    font-weight: 700;
    color: #111;
}
.ma-flow-stat-note {
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    color: #9ca3af;
    margin-left: 6px;
}
.ma-st-win {
    color: #16a34a;
}
.ma-st-loss {
    color: #e54d42;
}
@media (max-width: 900px) {
    /* 已完赛 N 场 + 选项按钮：独立一行（两端排布，宽度不足时可折行） */
    .ma-flow-stat {
        width: 100%;
        margin: 8px 0 0 0;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 10px;
        white-space: normal;
    }
}
.ma-flow-m { display: none; }
@media (max-width: 900px) {
    .ma-flow-d { display: none; }
    .ma-flow-m { display: inline; }
}

/* 比赛行：一场一行 */
.ma-row {
    display: grid;
    /* 用 fr 而非百分比：百分比轨道合计100%后再叠加两个12px gap，
       会让第三列右端溢出卡片（详情链接被挤出白卡约8px） */
    grid-template-columns: 30fr 35fr 35fr;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 9px 16px 14px;
    margin-bottom: 12px;
    border: 0.8px solid #f0f1f3;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ma-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.25);
}
.ma-row:active {
    transform: translateY(-1px) scale(.995);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.2);
}
.ma-col {
    min-width: 0;
}

/* 左列：比赛信息 */
.ma-col-info {
    display: flex;
    flex-direction: column;
    padding: 6px 10px 6px 0;
}
.ma-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.ma-single {
    font-size: 11px;
    color: #fff;
    background: #222;
    border-radius: 999px;
    padding: 2px 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.ma-no {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: 0.8px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 9px;
}
.ma-league {
    font-size: 11px;
    color: #666;
    background: #fff;
    border: 0.8px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 9px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ma-status {
    font-size: 11px;
    color: #666;
    margin-left: auto;
}
.ma-status-live { color: #e54d42; }
.ma-status-end { color: #9ca3af; }
.ma-vs .ma-status {
    display: inline-block;
    margin-left: 0;
    background: #f3f4f6;
    color: #666;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
}
/* 进行中：文字左侧红色闪缩圆点 */
.ma-vs .ma-status.ma-status-live {
    position: relative;
    padding-left: 19px;
}
.ma-vs .ma-status.ma-status-live::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e54d42;
    animation: maDotBlink 1.1s ease-in-out infinite;
}
@keyframes maDotBlink {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.3; transform: translateY(-50%) scale(0.7); }
}
.ma-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.ma-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}
.ma-team img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.ma-team-txt { min-width: 0; }
.ma-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ma-rank {
    font-size: 10px;
    color: #9ca3af;
    display: inline-block;
    margin-top: 2px;
}
.ma-vs {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 11px;
    min-width: 70px;
}
.ma-vs b {
    font-size: 22px;
    color: #111;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}
.ma-vs .ma-vs-time {
    font-size: 10px;
    color: #9ca3af;
}
.ma-vs .ma-vs-vs {
    font-size: 18px;
    color: #d1d5db;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
}
.ma-time { color: #4b5563 !important; }
.ma-score { color: #111 !important; }
.ma-sec-ghost {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
/* ① 预估概率标题行：标题靠左 + 「查看预估报告」链接靠右 */
.ma-ghost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.ma-report-link {
    font-size: 12px;
    color: #2d6cdf;
    text-decoration: none;
    white-space: nowrap;
}
.ma-report-link:hover {
    color: #1a4fb3;
    text-decoration: underline;
}
/* 左列底部：① 预估概率 + 主胜/平局/客胜三按钮（桌面/手机均并排一行） */
.ma-flow2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}
.ma-pbtns {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.ma-pbtn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    background: #fff;
    border: 0.8px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 2px;
    white-space: nowrap;
    overflow: hidden;
}
.ma-pbtn i {
    font-style: normal;
    color: #666;
}
.ma-pbtn b {
    font-weight: 600;
    color: #111;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 无预估概率：整行灰色居中提示「正在预估中」 */
.ma-est-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 35px;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
    background: #fff;
    border: 0.8px dashed #d1d5db;
    border-radius: 6px;
}
/* layui 灯泡图标：思考/预估中 */
.ma-est-wait .layui-icon {
    font-size: 16px;
}

/* 中/右列共用分区 */
.ma-sec {
    padding: 2px;
}
.ma-sec + .ma-sec {
    margin-top: 16px;
    border-top: 1px solid #eef0f3;
    padding-top: 16px;
}
/* 中/右列与比赛信息列之间用细分隔线划分（整块不再可点击跳转）
   桌面端 ②/③ 间的虚线由复核列左边框改为独立伪元素，并整体右移4px */
.ma-col-pred {
    border-left: 0.8px dashed #e9ebee;
}
.ma-col-pred,
.ma-col-check {
    padding-left: 16px;
}
.ma-col-check {
    position: relative;
}
/* 初测与复核存在分歧时，骑跨在「策略-复核」左侧虚线分隔线上的标签 */
.ma-diff-badge {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: #111;
    border-radius: 999px;
    padding: 4px 7px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.ma-col-check.ma-has-divergence .ma-diff-badge {
    display: block;
}
/* 桌面端：②/③ 间的分隔虚线独立出来，相对复核列原左边框位置右移4px */
@media (min-width: 901px) {
    .ma-col-check::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 4px;
        width: 0;
        border-left: 0.8px dashed #e9ebee;
        pointer-events: none;
    }
    /* 分歧标签同步右移，仍骑跨在移动后的虚线上 */
    .ma-col-check.ma-has-divergence .ma-diff-badge {
        transform: translateX(calc(-50% + 4px));
    }
}
/* 中/右列标题行：标题靠左 + 「详情」链接靠右（与「① 预估概率」行同一模式） */
.ma-sec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
}
.ma-sec-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.ma-sec-title i {
    font-style: normal;
    font-size: 12px;
    color: #ff7f50;
}
.ma-col-pred .ma-sec-title i,
.ma-col-check .ma-sec-title i { color: #111; }
/* 标题行右侧的“详情”文字链接 */
.ma-sec-link {
    flex: none;
    padding: 4px 0 4px 8px;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}
.ma-sec-link:hover {
    color: #111;
    text-decoration: underline;
}

/* 预估概率 */
.ma-rate-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.ma-rate-item span {
    width: 34px;
    flex-shrink: 0;
    font-size: 12px;
    color: #666;
}
.ma-bar {
    flex: 1;
    height: 7px;
    background: #f0f1f3;
    border-radius: 999px;
    overflow: hidden;
}
.ma-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffa37f, #ff7f50);
    border-radius: 999px;
    transition: width 0.8s ease;
}
.ma-rate-item b {
    width: 46px;
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #ff7f50;
}
.ma-odds {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 11px;
    color: #9ca3af;
}
.ma-odds span {
    color: #9ca3af;
    margin-right: 2px;
}
.ma-odds b {
    font-weight: 600;
    color: #4b5563;
    background: #f6f7f8;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
}

/* 策略推荐行 */
.ma-rec {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.ma-rec:last-child { margin-bottom: 0; }
.ma-rec-tag {
    flex-shrink: 0;
    width: 34px;
    text-align: center;
    font-size: 11px;
    color: #666;
    background: #f3f4f6;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 2px 0;
    margin-top: 1px;
    position: relative;
}
.ma-tag-mark {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: normal;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
/* 覆盖 layui 字体图标默认 30px 字号/灰色等 */
/* 覆盖 layui 字体图标默认样式：字形绝对定位到圆中心，不再受基线/flex 影响 */
.ma-tag-mark.layui-icon {
    font-size: 9px;
    line-height: 1;
    color: #fff;
}
.ma-tag-mark.layui-icon::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.ma-tag-mark.layui-icon.layui-icon-close {
    font-size: 8px;
}
.ma-tag-hit { background: #40ae2a; }
.ma-tag-draw { background: #9ca3af; }
.ma-tag-miss { background: #e54d42; }
.ma-val {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    word-break: break-all;
}
/* 亚盘推荐选项：悬停/点击查看分析正文 */
.ma-val.ma-hg-tip {
    cursor: pointer;
    display: inline-block;
}
/* hover：亚盘/大小球推荐胶囊变为黑底无边白色文字（同步弹出分析悬浮层） */
.ma-val.ma-hg-tip .ma-cap {
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ma-val.ma-hg-tip .ma-cap:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
/* “？”提示小图标：默认隐藏（移动端点按整粒胶囊即可），仅在桌面可悬停设备显示 */
.ma-val.ma-hg-tip .ma-tip-q {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .ma-val.ma-hg-tip .ma-tip-q {
        display: inline-block;
        color: #8b95a3;
        font-size: 13px;
        font-weight: 600;
        vertical-align: middle;
        cursor: help;
        margin: 0 2px;
        transition: color 0.15s ease;
    }
    .ma-val.ma-hg-tip:hover .ma-tip-q {
        color: #000;
    }
}
/* 亚盘推荐「----」后分析正文的悬浮层 */
.ma-hg-tip-pop {
    position: fixed;
    z-index: 1200;
    max-width: 300px;
    padding: 9px 11px;
    background: rgba(17, 17, 17, 0.9);
    color: #fff;
    font-size: 12px;
    line-height: 1.65;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    word-break: break-word;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.ma-hg-tip-pop.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
.ma-hg-tip-pop .ma-hg-pop-txt {
    display: block;
    text-align: left;
}
/* 「预测详情」文字链接：换行单独一行、靠右、带下划线 */
.ma-hg-tip-pop .ma-hg-link {
    display: none;
    margin-top: 7px;
    color: #7fb5f2;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.ma-hg-tip-pop .ma-hg-link.has {
    display: block;
    text-align: right;
}
.ma-hg-tip-pop .ma-hg-link:hover {
    color: #fff;
}
/* 指向推荐框的箭头（默认层在按钮下方，箭头朝上；层在按钮上方时 .above 箭头朝下） */
.ma-hg-tip-pop .ma-hg-arrow {
    position: absolute;
    top: -7px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid rgba(17, 17, 17, 0.9);
    pointer-events: none;
}
.ma-hg-tip-pop.above .ma-hg-arrow {
    top: auto;
    bottom: -7px;
    border-bottom: none;
    border-top: 7px solid rgba(17, 17, 17, 0.9);
}

/* 推荐值胶囊 */
.ma-cap {
    display: inline-block;
    padding: 3px 7px;
    line-height: 1.4;
    font-size: 11px;
    font-weight: 500;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
    margin: 1px 4px 1px 0;
}
.ma-cap-pick {
    background: #fff;
    border: 0.8px solid #e6e7eb;
    color: #666;
}
.ma-cap-skip {
    background: #fff;
    border: 0.8px solid #e6e7eb;
    color: #8a8a8a;
}
.ma-cap-diff {
    background: #f0f9eb;
    border: 0.8px solid #c9e5bd;
    color: #2f7a1f;
}
/* 命中比分胶囊：整粒变绿，不带对勾 */
.ma-cap-hit {
    background: #40ae2a;
    border-color: #40ae2a;
    color: #fff;
}

/* 空态 */
.ma-empty {
    font-size: 12px;
    color: #9ca3af;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    border-right: none;
    border-top: 0.8px dashed #dfe3e8;
    border-bottom: 0.8px dashed #dfe3e8;
}
.ma-empty-txt {
    margin: 0;
    text-align: center;
    line-height: 1.6;
}
.ma-empty-txt .ma-empty-sub {
    font-size: 11px;
    color: #b6bcc4;
}
/* 【由 Agent 完成】2026-10-01 预测列表空态加虚线框（原为纯白底无边框，视觉上不像一个容器） */
.ma-empty-box {
    background: #fff;
    border: 1px dashed #d2d7dd;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}
.ma-empty-box p {
    font-size: 16px;
    color: #666;
    margin: 0 0 6px;
}
.ma-empty-box span {
    font-size: 12px;
    color: #9ca3af;
}

/* 复盘入口 */
.ma-replay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.ma-replay:hover { opacity: 0.85; color: #fff; }
.ma-replay .layui-icon { font-size: 13px; }

/* 声明 */
.ma-declare {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 18px 0 6px;
}

/* 手机端：三大模块切换为上中下排列 */
@media (max-width: 900px) {
    .ma-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "info info"
            "pred check";
    }
    .ma-col-info { grid-area: info; }
    .ma-col-pred { grid-area: pred; }
    .ma-col-check { grid-area: check; }
    .ma-col-pred,
    .ma-col-check {
        border-left: none;
        padding-left: 0;
    }
    .ma-col-pred {
        position: relative;
        padding-right: 8px;
    }
    /* 手机端 ②/③ 分隔虚线：独立出来，相对初测列右边缘右移5px */
    .ma-col-pred::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 0;
        transform: translateX(5px);
        border-right: 1px dashed #dfe3e8;
        pointer-events: none;
    }
    /* 手机端：分歧「歧」标签随虚线同步右移5px */
    .ma-col-check.ma-has-divergence .ma-diff-badge {
        transform: translateX(calc(-50% + 5px));
    }
    .ma-col-check {
        padding-left: 8px;
    }
    .ma-head {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    .ma-head-left {
        flex: 1;
        min-width: 0;
    }
    .ma-head-left h3 {
        white-space: nowrap;
    }
    .ma-head-left p {
        white-space: normal;
        overflow: visible;
    }
    .ma-flow {
        padding: 10px 8px;
    }
    /* 步骤组在手机端独占一行强制不换行，放不下时组内横向滚动 */
    .ma-flow-steps {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ma-flow-steps::-webkit-scrollbar {
        display: none;
    }
    .ma-col-info {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding-right: 0;   /* 让底部 ① 预估概率 /「查看预估报告」与卡片右缘对齐 */
    }
    .ma-meta {
        width: 100%;
        margin-bottom: 4px;
    }
    .ma-teams {
        flex: 1;
        min-width: 0;
    }
    .ma-flow2 {
        width: 100%;
        margin-top: 6px;
    }
    .ma-diff-badge {
        left: -12px;
        right: auto;
        transform: translateX(-50%);
    }
}

/* 电脑端：logo 与竞彩编号标签间距增加 6px */
@media (min-width: 901px) {
    .ma-col-info .ma-meta {
        margin-bottom: 11px;
    }
    .ma-col-pred,
    .ma-col-check {
        margin-top: 8px;
    }
    /* 电脑端：② 策略-初测内容右移（16px → 21px → 26px，共右移10px） */
    .ma-col-pred {
        padding-left: 26px;
    }
    /* 电脑端：③ 策略-复核内容右移（16px → 21px → 26px，共右移10px） */
    .ma-col-check {
        padding-left: 26px;
    }
    .ma-sc-top,
    .ma-sc-hwd,
    .ma-sc-pct {
        width: 100%;
        max-width: 100%;
    }
    .ma-empty {
        width: 90%;
    }
}

/* 右下角：向上/向下滚动按钮（风格与比赛列表页一致） */
.ma-totop-wrap {
    position: fixed;
    right: 24px;
    bottom: 40px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ma-jump-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.ma-jump-btn:hover {
    background: #222222;
    color: #ffffff;
}
/* 手机端缩小并贴近边缘；
   层级降到左侧导航(999)与侧栏遮罩(998)之下：展开左侧抽屉时按钮不浮在导航上 */
@media (max-width: 900px) {
    .ma-totop-wrap {
        right: 16px;
        bottom: 24px;
        gap: 10px;
        z-index: 997;
    }
    .ma-jump-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* 统计卡片：流程条下方 3 张白底卡片，跟随右上角口径（全部/策略-初测/策略-复核）切换，左对齐紧凑排版 */
.ma-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.ma-stat-card {
    position: relative;
    background: #fff;
    border: 0.8px solid #f0f1f3;
    border-radius: 10px;
    padding: 9px 0 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.ma-stat-card:hover,
.ma-stat-card:active {
    z-index: 2;
    transform: scale(1.1);
    background: linear-gradient(135deg, #2ec4f0 0%, #1d7cf0 100%);
    border-color: #fff;
    box-shadow: 0 12px 24px rgba(29, 124, 240, 0.35);
}
.ma-stat-card:hover .ma-sc-title,
.ma-stat-card:hover .ma-sc-num,
.ma-stat-card:hover .ma-sc-hwd,
.ma-stat-card:hover .ma-sc-hwd b,
.ma-stat-card:hover .ma-sc-pct,
.ma-stat-card:hover .ma-sc-pct-n,
.ma-stat-card:hover .ma-sc-pct-s,
.ma-stat-card:hover .ma-sc-hit,
.ma-stat-card:hover .ma-sc-miss,
.ma-stat-card:hover .ma-sc-draw,
.ma-stat-card:active .ma-sc-title,
.ma-stat-card:active .ma-sc-num,
.ma-stat-card:active .ma-sc-hwd,
.ma-stat-card:active .ma-sc-hwd b,
.ma-stat-card:active .ma-sc-pct,
.ma-stat-card:active .ma-sc-pct-n,
.ma-stat-card:active .ma-sc-pct-s,
.ma-stat-card:active .ma-sc-hit,
.ma-stat-card:active .ma-sc-miss,
.ma-stat-card:active .ma-sc-draw {
    color: #fff;
}
.ma-sc-title,
.ma-sc-num,
.ma-sc-hwd,
.ma-sc-pct-n,
.ma-sc-pct-s {
    transition: opacity .2s ease;
}
/* 放大渐变态下的层级弱化：
   第一行：标题「全部/初测/复核」100%，右侧数量 N 50%；
   第二行：赢/输/走 80%；
   第三行：百分比大数字 100%，“% 胜率”小字 50% */
.ma-stat-card:hover .ma-sc-title,
.ma-stat-card:active .ma-sc-title {
    opacity: 1;
}
.ma-stat-card:hover .ma-sc-num,
.ma-stat-card:active .ma-sc-num {
    opacity: .5;
}
.ma-stat-card:hover .ma-sc-hwd,
.ma-stat-card:active .ma-sc-hwd {
    opacity: .8;
}
.ma-stat-card:hover .ma-sc-pct-n,
.ma-stat-card:active .ma-sc-pct-n {
    opacity: 1;
}
.ma-stat-card:hover .ma-sc-pct-s,
.ma-stat-card:active .ma-sc-pct-s {
    opacity: .5;
}
/* 整卡放大渐变态：进度条轨转半透明白、填充转纯白 */
.ma-stat-card:hover .ma-sc-bar,
.ma-stat-card:active .ma-sc-bar {
    background: rgba(255, 255, 255, .28);
}
.ma-stat-card:hover .ma-sc-bar-fill,
.ma-stat-card:active .ma-sc-bar-fill {
    background: #fff;
}
.ma-sc-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0 8px;
    line-height: 1.4;
    width: 85%;
    max-width: 85%;
    margin: auto;
    margin-bottom: 3px;
}
.ma-sc-title {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}
.ma-sc-pre {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}
.ma-sc-num {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.2;
}
.ma-sc-hwd {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 5px;
    line-height: 1.4;
    white-space: nowrap;
    width: 85%;
    margin: auto;
}
.ma-sc-hwd b {
    font-size: 11px;
    font-weight: 400;
}
.ma-sc-sep {
    color: #d1d5db;
}
/* 胜率进度条行：上行 = 大数字胜率(带%) + “胜率”标签，下行 = 圆角进度条
   填充色按胜率档位：≥70% 绿 / ≥45% 橙 / <45% 红；hover 整卡变蓝渐变态填充转白 */
.ma-sc-pct {
    width: 85%;
    max-width: 85%;
    margin: 2px auto 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ma-sc-pct-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 8px;
    width: 100%;
    line-height: 1;
}
.ma-sc-pct-n {
    font-size: 20px;
    font-weight: 400;
    color: #111827;
    line-height: 1;
}
.ma-sc-pct-s {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}
.ma-sc-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
    flex: none;
}
.ma-sc-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80, #16a34a);
    transition: width .5s ease, background .2s ease;
}
.ma-sc-bar-fill.s-mid {
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
}
.ma-sc-bar-fill.s-low {
    background: linear-gradient(90deg, #fca5a5, #ef4444);
}

/* 比赛列表区块标题 */
.ma-list-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 21px 0 10px;
    line-height: 1.2;
}
.ma-list-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #ff7f50;
}
@media (max-width: 900px) {
    .ma-stat-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .ma-stat-card {
        padding: 7px 4px 16px;
        border-radius: 8px;
        gap: 0;
    }
    .ma-sc-top,
    .ma-sc-hwd,
    .ma-sc-pct {
        width: 85%;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
    .ma-sc-title {
        font-size: 11px;
    }
    .ma-sc-num {
        font-size: 16px;
    }
    .ma-sc-hwd {
        font-size: 11px;
        white-space: nowrap;
        flex-wrap: nowrap;
        overflow: visible;
    }
    .ma-sc-hwd b {
        font-size: 11px;
        font-weight: 400;
    }
    .ma-sc-pct {
        margin-top: 4px;
        gap: 5px;
    }
    .ma-sc-pct-n {
        font-size: 16px;
    }
    .ma-sc-bar {
        height: 6px;
    }
}

/* ============ 顶部条右上角「预测精选」钻石按钮 ============ */
.ma-diamond-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
}

.ma-diamond-btn .layui-icon {
    font-size: 20px;
}

.ma-diamond-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #222;
}

/* ============ 预测精选说明弹层（圆角白卡片 + 标题 + 正文 + 双按钮） ============ */
/* layui 会把 skin 值直接作为 class 加在外框上（jc-help-layer） */
.jc-help-layer {
    background: transparent !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden !important;
    border: none !important;
}

.jc-help-layer .layui-layer-content {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

/* 弹层打开时锁定页面滚动 */
body.jc-no-scroll {
    overflow: hidden !important;
}

/* 手机端：弹层宽度 320px（不超过屏幕 95%）并保持水平居中 */
@media (max-width: 768px) {
    .jc-help-layer {
        width: 320px !important;
        max-width: 95% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.jc-help-box {
    width: 100%;
    padding: 28px 24px 24px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
}

.jc-help-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.jc-help-body {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 24px;
}

.jc-help-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.jc-help-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.jc-help-btn:active {
    transform: scale(0.98);
}

.jc-help-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.jc-help-cancel:hover {
    background: #e5e7eb;
}

.jc-help-ok {
    background: #ef4444;
    color: #fff;
}

.jc-help-ok:hover {
    background: #dc2626;
}

/* 预测列表卡片滚动进入视口时逐个淡入上浮（类名由 JS 按需添加） */
.ma-row.ma-anim {
    opacity: 0;
    will-change: opacity, transform;
}
.ma-row.ma-anim.ma-anim-in {
    animation: maRowIn .46s cubic-bezier(.22, .61, .36, 1) both;
}

/* 动画结束后 JS 会移除 ma-anim 类，恢复原样式（保证 hover/active 交互正常） */
@keyframes maRowIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-row.ma-anim {
        opacity: 1;
    }
    .ma-row.ma-anim.ma-anim-in {
        animation: none;
    }
}

/* ============ 统一普通提示层皮肤（member_ui.js 的 mcToast 使用）============
   圆角 + 柔和阴影；是否带遮罩由 mcToast 的 shade 参数控制（默认 0.5 带遮罩） */
.mc-msg-layer {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}
.mc-msg-layer .layui-layer-content {
    border-radius: 12px !important;
}
