/* =====================================================
  每日竞彩浏览页 - 比赛详情页样式
  基于 home.css 视觉体系扩展（左侧导航 + 右侧内容框架）
  基调：黑灰白
  ===================================================== */

.detail-container {
    padding: 24px 30px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

/* 返回链接 */
.detail-back {
    display: inline-block;
    font-size: 13px;
    color: #222222;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: #fff;
    border-radius: 6px;
    border: 0.8px solid #e5e7eb;
    transition: all 0.2s;
}

.detail-back:hover {
    color: #222222;
    border-color: #222222;
}

/* ============ 对阵横幅 ============ */
.detail-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #222222 0%, #333333 60%, #444444 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.db-team {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.db-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.db-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.db-team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-team-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}



.db-center {
    flex: 1.2;
    text-align: center;
}

.db-league {
    font-size: 14px;
    color: #e5e5e5;
    margin-bottom: 6px;
    font-weight: 500;
}

.db-score {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
    margin-top: -15px;
}

.db-half {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    margin-top: -10px;
}

.db-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    margin-top: -7px;
}

.db-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -5px;
}

.db-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
}

.db-tag-no {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 比赛状态标签：进行中（灰底胶囊+红点，可点击播放动画）、已完场（浅红） */
.db-tag-live {
    display: inline-flex;
    align-items: center;
}

.db-live-open {
    cursor: pointer;
}

.db-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    margin-right: 5px;
    animation: db-live-blink 1.2s infinite;
}

@keyframes db-live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

.db-tag-end {
    background: rgba(156, 163, 175, 0.22);
    color: #d1d5db;
}

.db-tag-single {
    background: #ffffff;
    color: #222222;
    font-weight: 600;
}

/* ============ 主内容双栏 ============ */
.detail-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
    /* 允许 grid 子列收缩到容器宽度，避免内容最小宽度把页面撑出屏幕 */
    min-width: 0;
}

.detail-left,
.detail-right {
    min-width: 0;
}
}

.d-block {
    margin-bottom: 24px;
}

.d-block-title {
    font-size: 17px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.d-block-title .layui-icon {
    color: #222222;
    font-size: 16px;
}

.d-block-title-meta {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #333333;
}

.d-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.d-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.d-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.d-label-row .d-label {
    margin-bottom: 0;
}

/* 标题行右侧「更多」文字链接（如 模型-策略预测 → 更多模型预测） */
.d-label-more {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
}
.d-label-more:hover {
    color: #666;
    text-decoration: underline;
}

/* 模型 - 策略预测：卡片标题字号 13px → 14px */
.d-ai-card .d-label-row .d-label {
    font-size: 14px;
}

.d-label-note {
    font-size: 12px;
    color: #999;
}

.d-hd-cn {
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* 分析文字 */
.d-text {
    font-size: 14px;
    line-height: 1.9;
    color: #1f2937;
}

.d-text-mt {
    margin-top: 8px;
}

.d-text-muted {
    color: #95a5a6;
}

/* 竞彩玩法卡片（参考营销首页样式） */
.d-jcplay {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 20px 19px;
}

.d-jcplay-pane {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: -6px;
    flex-wrap: wrap;
}

.d-jcplay-note {
    flex-basis: 100%;
    width: 100%;
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.6;
    text-align: right;
}

.d-jcplay-tabs {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* 数据选项标签：样式同预估胜率标签 */
.d-jcplay-tab {
    display: inline-block;
    padding: 0 14px;
    height: 26px;
    line-height: 26px;
    font-size: 11px;
    color: #666;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.d-jcplay-tab.active {
    color: #fff;
    background: #000;
}

.d-jcplay-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    font-size: 12px;
    color: #9aa0a6;
}

/* 特定项走势：Chart.js 曲线图 */
.trend-chart {
    position: relative;
    width: 100%;
    height: 260px;
    padding: 12px 16px 0;
    margin-top: -10px;
}
.trend-chart canvas {
    width: 100% !important;
    height: 100% !important;
}
.trend-chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 8px 16px 12px;
    border-top: 1px dashed #f0f1f3;
    font-size: 11px;
    color: #9aa0a6;
}
.trend-chart-meta b {
    font-weight: 600;
    color: #666;
}
.trend-results {
    display: none;
}
.trend-tag {
    min-width: 26px;
    height: 22px;
    line-height: 22px;
    padding: 0 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}
.trend-tag-win {
    background: #e8f5e9;
    color: #2e7d32;
}
.trend-tag-plate {
    background: #f5f5f5;
    color: #757575;
}
.trend-tag-lose {
    background: #ffebee;
    color: #c62828;
}

/* Crow 标签：皇冠盘口表格（让球/大小 与 独赢 分属独立容器） */
.d-crown-odds {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

/* 左侧容器：让球 + 大小 */
.d-crown-main {
    flex: 2;
    display: grid;
    grid-template-columns: 20px 1fr 1fr;
    gap: 8px;
}

/* 右侧容器：独赢组（主/客/和 独立排列） */
.d-crown-dy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.d-crown-dy-head {
    font-size: 12px;
    color: #9aa0a6;
    text-align: center;
    line-height: 1.4;
}

.d-crown-head {
    display: contents;
}

.d-crown-head span {
    font-size: 12px;
    color: #9aa0a6;
    text-align: center;
    line-height: 1.4;
}

.d-crown-row {
    display: contents;
}

.d-crown-side {
    font-size: 12px;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-crown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 6px 2px;
    min-height: 48px;
    cursor: pointer;
}

.d-crown-cell-empty {
    color: #9aa0a6;
    font-size: 13px;
}

/* 让球/大小第三行：隐藏格子边框背景（只保留独赢"和"按钮） */
.d-crown-cell-blank {
    background: transparent;
    border: none;
    min-height: 0;
}

/* 独赢组按钮（主/客/和）：固定高度 20px，外观同官方竞彩按钮 */
.d-crown-cell-dy {
    height: 33px;
    min-height: 0;
    padding: 0 2px;
    gap: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color .2s;
}

.d-crown-cell-dy:hover,
.d-crown-cell-dy.active {
    border-color: #000;
}

/* 让球/大小按钮：样式同官方竞彩按钮（白底细框、圆角3px、hover黑框） */
.d-crown-cell-rq,
.d-crown-cell-dx {
    gap: 0;
    border-radius: 3px;
    transition: border-color .2s;
}

.d-crown-cell-rq:hover,
.d-crown-cell-rq.active,
.d-crown-cell-dx:hover,
.d-crown-cell-dx.active {
    border-color: #000;
}

/* 内部间距同官方竞彩：第二行（赔率）上移 2px */
.d-crown-cell-rq > b.d-crown-water,
.d-crown-cell-dx > b.d-crown-water {
    margin-top: -2px;
}

/* 让球组：让球数为黑色（下方赔率保持红色） */
.d-crown-cell-rq .d-crown-line .d-crown-water {
    color: #202124;
}

/* 大小组：第一行数字为黑色（下方赔率保持红色） */
.d-crown-cell-dx .d-crown-line .d-crown-water {
    color: #202124;
}

.d-crown-line {
    font-size: 13px;
    color: #202124;
}

.d-crown-water {
    font-size: 13px;
    color: #d93025;
    font-weight: 700;
}

.d-jcplay-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.d-jcplay-row {
    display: flex;
    align-items: stretch;
    gap: -9px;
}

.d-jcplay-pane[data-pane="official"] .d-jcplay-row:first-child {
    margin-top: 5px;
}

.d-jcplay-tag {
    width: 30px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    text-align: center;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    color: #5f6368;
    flex-shrink: 0;
    margin-right: 10px;
}

/* 单关黑色胶囊按钮：非单关时留白 */
.d-jcplay-dg {
    width: 22px;
    height: 25px;
    line-height: 1.4;
    font-size: 11px;
    color: #fff;
    background: #000;
    border-radius: 3px;
    padding: 0;
    align-self: flex-start;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-jcplay-dg-empty {
    background: transparent;
    padding: 0;
    visibility: hidden;
}

/* 下边灰色块中的让球数：-1 或 +1 */
.d-jcplay-hc {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    border-radius: 4px;
    padding: 1px 8px;
    min-width: 26px;
    text-align: center;
}

.d-jcplay-odds {
    flex: 1;
    display: flex;
    gap: 6px;
}

.d-jcplay-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 3px;
    padding: 6px 2px;
    cursor: pointer;
    transition: border-color .2s;
}

.d-jcplay-item:hover,
.d-jcplay-item.active {
    border-color: #000;
}

.d-jcplay-name {
    font-size: 12px;
    color: #5f6368;
}

.d-jcplay-val {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-top: -2px;
}

.d-jcplay-more {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 3px;
    font-size: 13px;
    color: #5f6368;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    flex-shrink: 0;
    margin-top: 5px;
    cursor: pointer;
    transition: border-color .2s;
}

.d-jcplay-more:hover,
.d-jcplay-more.active {
    border-color: #000;
}

/* 胶囊按钮：基本面 / 积分榜 */
.d-tab-caps {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.d-tab-cap {
    display: inline-block;
    padding: 0 14px;
    height: 26px;
    line-height: 26px;
    font-size: 11px;
    color: #666;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.d-tab-cap.active {
    color: #fff;
    background: #000;
}

/* ===== 比赛信息卡片：基本面（看点灰框 + 历史交战 / 近10场战绩数据模块） ===== */
/* 看点内容灰色外框 */
.d-basic-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.d-basic-box .d-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-line;
    /* 默认只显示三行，超出折叠（配合下方「展开」按钮） */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* 已展开：显示全部内容 */
.d-basic-box .d-text.d-text-open {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* 「展开 / 收起」按钮：仅在看点超过三行时由 JS 显示 */
.d-kan-toggle {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.d-kan-toggle:active,
.d-kan-toggle:focus {
    color: #6b7280;
    opacity: 1;
}

/* 「看点」灰色标签：比灰框底色略深、白字、去掉冒号 */
.d-tag-kan {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    background: #b3b9c0;
    vertical-align: 1px;
}

/* 数据模块：2 列网格（历史交战占满整行） */
.d-basic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.d-basic-cell {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
}

.d-basic-cell-full {
    grid-column: 1 / -1;
}

.d-basic-title {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.d-basic-text {
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    word-break: break-all;
    white-space: pre-line;
}

/* 胜负平顺序小徽章：胜红 / 平灰 / 负蓝 */
.d-basic-results {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.d-basic-r {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    font-size: 10px;
    line-height: 1;
    color: #fff;
}

.d-r-win {
    background: #e60001;
}

.d-r-draw {
    background: #9fa1a6;
}

.d-r-lose {
    background: #000;
}

/* 积分榜：暂无数据占位（60px 高、100% 宽圆角灰色虚线框，文字居中） */
.d-points-empty {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #9ca3af;
    box-sizing: border-box;
}

/* 积分榜：主/客队积分排名表格（数据源 weatherVenue.Points_Ranking） */
.d-points-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.d-points-team-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
}

.d-points-badge {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: #fff;
}

.d-points-badge-home {
    background: #1677ff;
}

.d-points-badge-away {
    background: #ff6a00;
}

.d-points-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-points-team-title {
    flex: none;
    font-size: 12px;
    color: #9ca3af;
}

/* 队伍标题右侧箭头按钮（右对齐）：点击把表格横向滑到最右侧，再点滑回最左侧 */
.d-points-team-arrow {
    flex: none;
    margin-left: auto;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #c9ced6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
}

/* 图标继承按钮字号（layui-icon 默认 16px，这里覆盖以保证大小一致） */
.d-points-team-arrow .layui-icon {
    font-size: inherit;
    line-height: 1;
}

.d-points-team-arrow:hover {
    color: #1677ff;
}

/* 单队表格横向滚动容器（窄屏可左右滑动查看全部指标） */
.d-points-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.d-points-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    color: #1f2329;
    background: #fff;
}

.d-points-table th,
.d-points-table td {
    padding: 7px 4px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #eef0f2;
    box-sizing: border-box;
}

.d-points-table thead th {
    font-weight: 500;
    color: #9ca3af;
    background: #f7f8fa;
}

.d-points-table tbody tr:last-child td {
    border-bottom: none;
}

/* 首列阶段（总/主/客），宽度固定 */
.d-points-col-scope {
    width: 44px;
    color: #6b7280;
    background: #f7f8fa;
}

/* 积分 / 排名列高亮 */
.d-points-table th.d-points-col-key {
    color: #6b7280;
}

.d-points-table td.d-points-col-key {
    font-weight: 600;
    color: #e60001;
}

/* 全场（总）行加底色，便于与主/客区分 */
.d-points-row-total td {
    background: #fcfcfd;
}

.d-points-row-total td.d-points-col-scope {
    background: #f2f3f5;
    color: #1f2329;
    font-weight: 600;
}

/* 情报：赛前消息文章（保留换行，阅读友好） */
.d-news-time {
    margin: 0 0 8px;
    font-size: 11px;
    color: #9ca3af;
}
.d-news-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.9;
    color: #374151;
    white-space: pre-line;
    word-break: break-word;
}
.d-news-box b {
    font-weight: 700;
    color: #111;
}
/* 情报：按 JSON 字段结构化排版（对阵背景/伤停阵容/战意状态/赛程体能/交锋记录） */
.d-news-list {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 14px;
    display: flex;
    flex-direction: column;
}
.d-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    font-size: 13px;
    line-height: 1.9;
    color: #374151;
}
.d-news-item + .d-news-item {
    border-top: 1px dashed #e3e6ea;
}
.d-news-label {
    flex: 0 0 72px;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    padding-top: 2px;
    white-space: nowrap;
    /* 小节标题下划线：线宽 0.8px、与文字间隔 2px */
    text-decoration: underline;
    text-decoration-thickness: 0.8px;
    text-underline-offset: 2px;
}
.d-news-text {
    flex: 1;
    min-width: 0;
    white-space: pre-line;
    word-break: break-word;
}
@media (max-width: 600px) {
    .d-news-item {
        flex-direction: column;
        gap: 4px;
    }
    .d-news-label {
        flex: none;
        padding-top: 0;
    }
}

/* 预期阵容 */
.d-lineup {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.d-lineup-team {
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.d-lineup-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.d-lineup-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.d-lineup-p {
    font-size: 12px;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2px 8px;
}

.d-lineup-sub {
    width: 100%;
    font-size: 12px;
    color: #9ca3af;
}

/* 预估真实胜率 */
.d-rate {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.d-rate-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.d-rate-name {
    width: 32px;
    font-size: 13px;
    color: #374151;
    flex-shrink: 0;
}

.d-rate-bar {
    flex: 1;
    height: 10px;
    background: #f0f1f3;
    border-radius: 999px;
    overflow: hidden;
}

.d-rate-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1a73e8, #4da3ff);
    transition: width 0.8s ease;
}

.d-rate-item:nth-child(2) .d-rate-bar i {
    background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.d-rate-item:nth-child(3) .d-rate-bar i {
    background: linear-gradient(90deg, #e67e22, #f5a623);
}

.d-rate-val {
    width: 56px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    flex-shrink: 0;
}

.d-rate-msg {
    font-size: 12px;
    color: #9ca3af;
}

.d-rate-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.d-rate-ev-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.d-rate-ev-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    font-size: 11px;
    border: 0.8px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* EV-期望值表 + 概率表 无缝连成一张整体表：固定列布局保证两表等宽、列线对齐 */
.d-rate-ev-table th:first-child,
.d-rate-ev-table td:first-child {
    width: 100px;
}

/* 上方 EV 表：取消底部（第三行）左下/右下圆角，与下方概率表衔接 */
.d-rate-ev-table.d-rate-ev-first {
    border-radius: 0;
}

/* 下方概率表：上移与上表底边重叠，形成一条清晰分隔线，视觉上合成一张表 */
.d-rate-ev-table.d-rate-ev-last {
    margin-top: -1px;
}

.d-rate-ev-table th,
.d-rate-ev-table td {
    border-right: 0.8px solid #e5e7eb;
    border-bottom: 0.8px solid #e5e7eb;
    padding: 6px 8px;
    text-align: center;
}

.d-rate-ev-table th:last-child,
.d-rate-ev-table td:last-child {
    border-right: none;
}

.d-rate-ev-table tbody tr:last-child td {
    border-bottom: none;
}

.d-rate-ev-table th {
    background: #f7f8fa;
    color: #666;
    font-weight: 600;
}

.d-rate-ev-table tbody td {
    color: #666;
}

.d-rate-ev-table tbody td.ev-pos {
    color: #e74c3c;
}

.d-rate-copy {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}
.d-rate-copy .d-copy-btn {
    flex: 1;
}

/* 暂无胜率数据时的预估中占位框 */
.d-rate-loading {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.8px dashed #cbd5e1;
    border-radius: 10px;
    background: #fafafa;
}

.d-rate-loading-tip {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* 加载图标：旋转动画 */
.d-rate-loading-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #9aa5b1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: d-rate-spin 0.8s linear infinite;
    flex: none;
}

@keyframes d-rate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 按钮容器与上方表格/虚线框左右对齐：两个按钮各占一半 */
.d-rate-copy .d-copy-btn.d-copy-w120 {
    flex: 1;
    width: auto;
}

/* ===== 模型预估报告弹层 ===== */
#d-model-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
}

#d-model-report-modal.show,
#d-model-report-modal.opening {
    display: block;
}

.d-mr-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 复用 .exp-modal-body 的定位/尺寸/圆角/阴影（居中弹层，手机端为底部弹层） */
    background: #fff;
    padding: 0;
}

.d-mr-head {
    position: relative;
    flex: none;
    width: 95%;
    margin: 0 auto 10px;
    padding: 5px 30px 5px 6px;
    line-height: 32px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
    background: #fff;
}

/* 复制提示词弹层头部（标题 + 关闭按钮） */
.d-rate-set-head {
    position: relative;
    flex: none;
    padding: 5px 30px 5px 6px;
    line-height: 32px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
    background: #fff;
}

#d-prompt-modal .d-rate-set-head .exp-modal-close {
    top: 50%;
    transform: translateY(-50%);
    right: 2px;
}

#d-model-report-modal .d-mr-head .exp-modal-close {
    top: 50%;
    transform: translateY(-50%);
    right: 2px;
}

.d-mr-steps {
    flex: 1;
    min-height: 0;
    width: 95%;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px 30px;
    background: #fff;
}

/* 滚动条延右侧边缘 */
.d-mr-steps::-webkit-scrollbar {
    width: 4px;
}
.d-mr-steps::-webkit-scrollbar-track {
    background: transparent;
}
.d-mr-steps::-webkit-scrollbar-thumb {
    background: #d9dce0;
    border-radius: 2px;
}
.d-mr-steps::-webkit-scrollbar-thumb:hover {
    background: #c5c9ce;
}

.d-mr-step {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f1f3;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.d-mr-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f6feb;
    margin-bottom: 8px;
}

.d-mr-step-content {
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.d-mr-tip {
    padding: 48px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.d-copy-btn {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.d-copy-btn:hover {
    background: #e9eaed;
}

.d-copy-btn:active {
    background: #e2e3e6;
}

.d-copy-btn.d-copy-prompt {
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
}

.d-copy-btn.d-copy-prompt:hover {
    background: #fafafa;
}

.d-copy-btn.d-copy-prompt:active {
    background: #f2f2f2;
}

.d-copy-btn.d-copy-w120 {
    flex: none;
    width: 40%;
}

.d-copy-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 1;
}

#d-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    max-width: 80%;
    text-align: center;
}

#d-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 复制提示词弹层（样式同设置预估概率弹层） ===== */
#d-prompt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
}

#d-prompt-modal.show,
#d-prompt-modal.opening {
    display: block;
}

/* 弹层打开期间锁定背景页面滚动（showPromptModal 添加 / closePromptModal 移除） */
body.d-pm-lock {
    overflow: hidden;
}

.d-pm-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 复用 .exp-modal-body 的定位/尺寸/圆角/阴影（居中弹层，手机端为底部弹层） */
    background: #fff;
    padding: 0;
}

/* 提示词文字放在 input 表单中 */
.d-pm-body {
    flex: none;
    width: calc(100% - 28px);
    margin: 14px 14px;
    height: 360px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

.d-pm-body:focus {
    border-color: #409eff;
}

/* 一键复制按钮 */
.d-pm-copy-btn {
    flex: none;
    align-self: center;
    /* 按钮相对原位置下移 15px（顶部留白 15px） */
    margin: 15px 0 18px;
    width: 200px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    font-size: 13px;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.d-pm-copy-btn:disabled {
    opacity: 0.6;
}

.d-pm-copy-btn:active {
    opacity: 0.85;
}

/* 模型分析-热度分析（必发交易） */
.d-hot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.d-hot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #ececec;
    font-size: 13px;
}

.d-hot-row:last-child {
    border-bottom: none;
}

.d-hot-name {
    color: #9ca3af;
    flex-shrink: 0;
}

.d-hot-val {
    color: #374151;
    text-align: right;
    word-break: break-all;
}

.d-poisson {
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px 12px;
}

.d-poisson .d-hot-row {
    border-bottom: none;
    padding: 2px 0;
}

/* 全部游戏弹出层：比分 / 进球数 / 半全场 */
.game-layer {
    font-size: 13px;
    color: #333;
}

.game-layer-section {
    margin-bottom: 18px;
}

.game-layer-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    padding-left: 6px;
    border-left: 3px solid #000;
}

.game-layer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.game-layer-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.game-layer-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.game-layer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 4px;
    min-height: 43px;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.game-layer-cell:hover {
    background: #e9f2ff;
    border-color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.game-layer-cell.active {
    background: #e9f2ff;
    border-color: #000;
    box-shadow: inset 0 0 0 1px #000;
    transform: none;
}

.game-layer-key {
    font-size: 13px;
    color: #111;
    margin-bottom: 0;
}

.game-layer-val {
    font-size: 12px;
    color: #666;
}

.game-layer-other {
    background: #f3f4f6;
}

/* 全部游戏弹出层容器（样式同经验分享详情弹层） */
.exp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
}

.exp-modal.show,
.exp-modal.opening {
    display: block;
}

.exp-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.exp-modal-body {
    position: relative;
    width: 92%;
    max-width: 720px;
    max-height: 86vh;
    margin: 7vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.exp-modal-close:hover {
    background: #eee;
    color: #333;
}

.exp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 40px;
}

.exp-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin: 0 0 6px;
}

.exp-modal-subtitle {
    font-size: 12px;
    color: #999;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.exp-modal-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 24px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-right: -24px;
    padding-right: 20px;
}

.exp-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f3efe8;
    color: #8a6d3b;
    white-space: nowrap;
}

.exp-time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 泊松分布计算器 */
.poisson-calculator {
    background: #fafafa;
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #333;
}

.pc-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.pc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.pc-label {
    color: #888;
    flex-shrink: 0;
}

.pc-input {
    width: 90px;
    height: 34px;
    padding: 0 10px;
    font-size: 16px;
    color: #d32f2f;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    outline: none;
}

.pc-input:focus {
    border-color: #999;
}

/* 禁止点击输入框时页面放大（iOS 要求字号 >= 16px） */
.d-tab-body input,
.d-tab-body textarea,
.d-tab-body select,
.d-tab-body button {
    font-size: 16px;
}

.pc-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 10px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
}

.pc-prob {
    font-size: 16px;
    font-weight: 600;
    color: #009688;
}

.pc-split {
    color: #ccc;
}

.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-btn {
    height: 34px;
    padding: 0 18px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.pc-btn:active {
    background: #000;
    color: #fff;
    border: 1px solid transparent;
}

.pc-btn.selected {
    background: #000;
    color: #fff;
    border: 1px solid transparent;
}

.pc-total {
    color: #888;
    font-size: 13px;
}

.pc-total b {
    color: #333;
    font-weight: 600;
}

/* 比赛动画覆盖层：点击"动画"后在深色卡片下方展开播放 */
.db-live-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    height: 240px;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    z-index: 10;
    display: none;
}

/* 平板（768-1199px）：与电脑端统一动画层高度，保持全宽 */
@media (min-width: 768px) and (max-width: 1199px) {
    .db-live-overlay {
        height: 420px;
    }
}

/* 电脑端：与左列"比赛信息"卡片同宽，水平居中 */
@media (min-width: 1200px) {
    .db-live-overlay {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc((100% - 24px) * 1.2 / 2.2);
        height: 420px;
    }
}

.detail-banner.live-active .db-live-overlay { display: block; }

.db-live-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* 比分预测高亮 */
.d-score-predict {
    background: #fafafa;
    border-color: #dddddd;
}

.d-predict-score {
    font-size: 32px;
    font-weight: 800;
    color: #222222;
    text-align: center;
    letter-spacing: 2px;
}

/* ============ 赔率表格 ============ */
.d-odds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.d-odds-table thead th {
    background: #222222;
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
}

.d-odds-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.d-odds-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.d-odds-table tbody td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
}

.d-odds-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.d-odds-table tbody tr:hover {
    background: #f7f7f7;
}

.d-odds-val {
    color: #222222;
    font-weight: 700;
    font-size: 15px;
}

/* 皇冠独赢赔率 */
.d-euro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.d-euro-item {
    text-align: center;
    padding: 14px 8px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    transition: all 0.2s;
}

.d-euro-item:hover {
    border-color: #999999;
    background: #f7f7f7;
}

.d-euro-name {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.d-euro-val {
    font-size: 20px;
    font-weight: 800;
    color: #222222;
}

/* 亚盘盘口表 */
.d-handicap-table thead th {
    background: #333333;
}

/* ============ 空状态 ============ */
.d-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    color: #95a5a6;
    font-size: 15px;
}

.d-empty a {
    color: #222222;
    margin-left: 8px;
}

/* ============ 响应式 ============ */
/* 平板与手机：单栏堆叠 */
@media (max-width: 1199px) {
    .detail-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 手机端：比赛信息近10场战绩数据模块改单列 */
    .d-basic-grid {
        grid-template-columns: 1fr;
    }

    /* 手机端：竞彩玩法（图标+标题+卡片）整体上移20px */
    .d-block-jc {
        margin-top: -20px;
    }

    .detail-container {
        padding: 16px 16px 40px;
    }

    .detail-banner {
        padding: 20px 14px;
        margin-top: 5px;
    }

    .db-logo {
        width: 48px;
        height: 48px;
    }

    .db-logo img {
        width: 36px;
        height: 36px;
    }

    .db-team-name {
        font-size: 14px;
    }

    .db-score {
        font-size: 28px;
    }

    /* 手机端显示排名与身价 */
    .db-team-info {
        display: block;
    }

    /* 手机端天气场地固定宽度，超出横向滚动 */
    .d-block-title-meta {
        flex: 1;
        max-width: 75%;
        overflow-x: auto;
        white-space: nowrap;
        text-align: right;
        color: #888888;
    }

    .d-block-title-meta::-webkit-scrollbar {
        display: none;
    }

    .d-card {
        padding: 14px 16px;
    }

    .d-odds-table {
        font-size: 13px;
    }

    /* 手机端：单关/让球容器宽度 */
    .d-jcplay-tag {
        width: 30px;
    }

    /* 手机端：竞彩卡片内部宽度同样-10 */
    .d-jcplay {
        padding: 14px 20px 19px;
    }

    /* 手机端：预估概率复制按钮宽度拉满 */
    .d-rate-copy {
        gap: 8px;
    }
    .d-rate-copy .d-copy-w120 {
        width: 50%;
    }

    /* 手机端：全部选项弹层从屏幕底部向上滑出，贴底、全宽、高80%屏 */
    .exp-modal-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: none;
        max-height: 80vh;
        height: 80vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .exp-modal.show .exp-modal-body {
        transform: translateY(0);
    }
    .exp-modal.closing .exp-modal-body {
        transform: translateY(100%);
    }
    /* 模型预估报告弹层：高度为屏幕 85%，从底部向上滑出动画（transform 走通用 .exp-modal-body 规则）；
       覆盖通用 body 内边距：顶部 20px→10px（标题上移），左右 16px→0（标题贴左缘） */
    #d-model-report-modal .exp-modal-body {
        height: 85vh;
        max-height: 85vh;
        padding: 10px 0 0;
    }
    /* 手机端：复制提示词弹层内容为 input，高度 46% 屏 */
    #d-prompt-modal .d-pm-body {
        flex: none;
        height: 56vh;
        padding: 10px 10px;
    }
    /* 复制提示词弹层：覆盖通用 body 内边距，顶部 20px→10px（标题上移） */
    #d-prompt-modal .exp-modal-body {
        padding: 10px 16px 0;
    }
    /* 弹层内灰色标题条左上/右上圆角 */
    #d-model-report-modal .d-mr-head,
    #d-prompt-modal .d-rate-set-head {
        border-radius: 16px 16px 0 0;
    }
}

/* 桌面端：模型预估报告 / 复制提示词弹层水平 + 垂直居中 */
@media (min-width: 769px) {
    #d-model-report-modal .exp-modal-body,
    #d-prompt-modal .exp-modal-body {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    /* 桌面端：模型预估报告内容较多，加大弹层尺寸便于阅读 */
    #d-model-report-modal .exp-modal-body {
        width: 660px;
        max-width: 92vw;
        height: 82vh;
        max-height: 82vh;
    }
}

/* ===== AI 策略预测卡片：Match_Report.conclusion 内容 ===== */
.d-ai-card {
    margin-bottom: 24px;
}
/* AI 策略预测：初测/复核/复盘 选项切换（胶囊按钮样式与数据选项标签一致） */
.d-ai-switch {
    display: flex;
    gap: 6px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}
.d-ai-switch-btn {
    display: inline-block;
    padding: 0 14px;
    height: 24px;
    line-height: 24px;
    font-size: 11px;
    color: #666;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.d-ai-switch-btn.active {
    color: #fff;
    background: #000;
}
.d-ai-pane {
    display: none;
}
.d-ai-pane.active {
    display: block;
}
.d-ai-pane-empty {
    margin-top: 16px;
}
/* 初测/复核面板顶部时间：靠右对齐，行高 25px */
.d-ai-time-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 25px;
    margin: 0 0 6px;
}
.d-ai-time {
    font-size: 11px;
    color: #9ca3af;
}
.d-ai-body {
    margin-top: 4px;
}
.d-ai-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fafafa;
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 8px;
}
.d-ai-item-main {
    flex: 1;
    min-width: 0;
}
.d-ai-item-main .d-ai-val {
    flex: none;
}
.d-ai-picks {
    display: none;
    margin-top: 8px;
}
.d-ai-card.expanded .d-ai-picks {
    display: block;
}
.d-ai-picks-row {
    display: flex;
    gap: 6px; /* 行内按钮左右间距 8px → 6px（减少2px） */
    margin-bottom: 8px;
}
.d-ai-picks-row:last-child {
    margin-bottom: 0;
}
/* 竞彩：胜平负/让球胜平负两行盘口按钮之间间距 8px → 5px（减少3px） */
.d-ai-card .d-ai-item:first-child .d-ai-picks-row:not(:last-child) {
    margin-bottom: 5px;
}
/* 竞彩：行首窄标签按钮（第一行显示 0，第二行显示竞彩让球数）宽度 40px → 12px
   双类选择器提高特异性，覆盖 .d-ai-pick 的 flex:1，避免被拉伸占满整行；
   去掉边框与背景，仅保留文字 */
.d-ai-pick.d-ai-pick-hc {
    flex: none;
    width: 12px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border: none;
}
.d-ai-pick {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 0.8px solid #f3f4f6;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.2;
    color: #666;
    white-space: nowrap;
    min-width: 0;
}
.d-ai-pick b {
    font-weight: normal;
}
.d-ai-pick span {
    margin-left: 8px;
    font-size: 11px;
    color: #666;
}
.d-ai-item:last-child {
    margin-bottom: 0;
}
/* 复盘总结面板：普通块级正文，PC 端 pre-line 换行自然分段；
   默认以高度限制展示真实 15 行（行高 1.7 × 15），超长再经“展开全文”查看 */
.d-ai-val-summary {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    white-space: pre-line;
    word-break: break-word;
    max-height: 25.5em;   /* 15 行：13px × 1.7 × 15 = 331.5px */
    overflow: hidden;
}
.d-ai-card.expanded .d-ai-val-summary {
    max-height: none;
}
.d-ai-tag {
    flex: none;
    width: 44px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    color: #fff;
    background: #111;
    border-radius: 5px;
    margin-top: 1px;
}
/* 策略-复盘结构化字段：复用情报小结样式，标签更长故放宽宽度 */
.d-ai-pane .d-news-label {
    flex: 0 0 auto;
    min-width: 72px;
}
/* 复盘面板时间与「策略-复核」时间行同高 */
.d-ai-pane[data-ai-pane="third"] .d-news-time {
    height: 25px;
    line-height: 25px;
    margin: 0 0 6px;
}
/* 复盘默认高度对齐「策略-复核」：复核默认 = 4 个 3 行条目 ≈ 369px（含 body 上边距） */
.d-ai-pane[data-ai-pane="third"] .d-news-list {
    max-height: 369px;
    overflow: hidden;
}
.d-ai-card.expanded .d-ai-pane[data-ai-pane="third"] .d-news-list {
    max-height: none;
    overflow: visible;
}
.d-ai-tag-risk {
    background: #e60000;
}
.d-ai-val {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563; /* 分析内容文字颜色 #374151 → #4b5563 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-all;
}
.d-ai-card.expanded .d-ai-val {
    -webkit-line-clamp: unset;
    display: block;
}
.d-ai-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.d-ai-foot-note {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
    margin-left: auto;
    text-align: right;
}
.d-ai-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #666;
    padding: 4px 14px;
    cursor: pointer;
    border-radius: 999px;
}
.d-ai-toggle:hover {
    background: #f2f2f2;
    color: #111;
}

/* ===== AI 策略预测：---- 前段盘口胶囊 + 比分胶囊 ===== */
.ai-cap {
    display: inline-block;
    padding: 4px 12px;
    line-height: 1;
    font-size: 12px;
    color: #666;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
    margin: 1px 6px 1px 0;
}
.ai-cap-pick {
    /* 竞彩/亚盘/大小 推荐项胶囊：珊瑚红底、无边框、白字 */
    background: #ff7f50;
    border: none;
    color: #fff;
}
.ai-cap-score {
    cursor: pointer;
    margin-top: -2px;
    padding: 3.5px 12px;
    background: #fff;
    border-color: #e5e7eb;
    border-width: 0.8px;
}
.ai-cap-score:hover,
.ai-cap-score:active {
    border-color: #000;
}
.ai-cap-skip {
    /* 建议跳过胶囊：白底、灰边、灰色文字 */
    background: #fff;
    border: 0.8px solid #e6e7eb;
    color: #8a8a8a;
}
.ai-cap-rest {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.55;
    color: #9ca3af;
    word-break: break-all;
}
.d-ai-card.expanded .ai-cap-rest {
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* ===== 模型预估报告：标签页八步推理报告 ===== */
.d-mr-tab {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.d-mr-tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 0;
}
.d-mr-tab-note {
    font-size: 12px;
    color: #9ca3af;
}
.d-mr-tab-foot {
    line-height: 20px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin: 0 0 2px;
}
.d-mr-tab-all {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 11px !important;
    line-height: 1.4 !important;
    padding: 0 9px !important;
    height: 22px;
    cursor: pointer;
    transition: all .2s;
}
.d-mr-tab-all:hover {
    background: #f2f2f2;
    color: #111;
}
.d-mr-tab-step {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.d-mr-tab-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.d-mr-tab-step.open .d-mr-tab-head {
    background: #fafbfc;
}
.d-mr-tab-no {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1f6feb;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.d-mr-tab-step.open .d-mr-tab-no {
    background: #111;
}
.d-mr-tab-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.d-mr-tab-arrow {
    flex: none;
    font-style: normal;
    color: #9ca3af;
    transition: transform .2s;
}
.d-mr-tab-arrow::before {
    content: '▾';
    font-size: 11px;
}
.d-mr-tab-step.open .d-mr-tab-arrow {
    transform: rotate(180deg);
}
.d-mr-tab-body {
    display: none;
    margin: 0 14px 13px 47px;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.85;
    color: #4b5563;
    white-space: pre-wrap;
    word-break: break-word;
}
.d-mr-tab-step.open .d-mr-tab-body {
    display: block;
}
.d-lineup-empty {
    height: 60px;
    width: 100%;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
