/* ==================== 专家主页（比赛推荐页点击专家进入） ==================== */

/* 内容容器：与推荐详情页 .rd-article 同宽（920px）并水平居中 */
.eh-wrap {
    max-width: 920px;
    margin: 30px auto 40px;
    padding: 0 16px;
}

/* 擅长联赛页：内容底部留白 40px（擅长比赛列表滚到底时不贴边）。
   这里用 padding 而不是再加 margin-bottom：父级 .right-content 没有 padding-bottom，
   子元素外边距会向外塌陷、实际留不出间距，padding 才能稳定生效 */
.eh-wrap-lg-page {
    padding-bottom: 40px;
}

/* ===== 专家介绍卡片：白色外框（与详情页卡片同风格） ===== */
.eh-hero {
    margin-top: 16px;
    padding: 18px 23px 16px;   /* 内容左右各收缩 5px（原 18px） */
    position: relative;        /* 右上角胜率浮层的定位父级 */
    border-radius: 14px;
    background: #ffffff;
    border: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    color: #222222;
}

.eh-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eh-hero-avatar {
    width: 64px;
    height: 64px;
    flex: none;
    position: relative;          /* 底部认证标签的定位父级 */
    border-radius: 50%;
    overflow: visible;           /* 认证标签下移后仍完整显示，不被头像裁切 */
    background: #ffffff;
    border: 1px solid #f0f1f3;   /* 白底卡片上仍保留头像描边 */
    cursor: pointer;             /* 点击放大 */
}

/* 圆形由图片自身裁切（容器不裁，保证标签完整） */
.eh-hero-avatar img {
    border-radius: 50%;
}

/* 头像底部「认证专家」标签：与账户首页同款（红底 / 9px / 2px 白边 / 贴头像底边） */
.eh-avatar-badge {
    position: absolute;
    bottom: -2px;                /* 下移 2px：叠在头像图片层上、完整显示不遮挡 */
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 12px);    /* 左右留白各再 -4px（原 calc(100% - 20px)） */
    height: 20px;
    padding: 0 2px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #e5484d;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    pointer-events: none;        /* 不拦截头像点击放大 */
    z-index: 2;
}

.eh-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eh-hero-info {
    min-width: 0;
    flex: 1;
}

.eh-hero-name {
    margin: 0;
    font-size: 18px;          /* 原 20px，缩小一档 */
    font-weight: 700;
    line-height: 1.3;
}

.eh-hero-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #6b7280;
}

/* 胜率浮层：绝对定位在卡片右上角（与卡片内边距对齐），不占 meta 行空间 */
.eh-hero-right {
    position: absolute;
    top: 18px;
    right: 23px;
    z-index: 3;
    margin-left: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;      /* 胜率 / 百分比水平居中（关注按钮单独右对齐） */
    text-align: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
}

/* 百分比组：整组右对齐（百分比靠右），组内胜率以百分比为基准居中 */
.eh-rate-box {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* 百分比与「胜率」整体上移 7px（原 5px + 2px，transform 不影响布局，关注按钮位置不变） */
.eh-rate-label {
    font-size: 10px;
    color: #9ca3af;          /* 颜色变浅 */
    line-height: 1.2;
    transform: translateY(-7px);
}

.eh-rate-num {
    font-size: 22px;         /* 原 20px，+2 */
    font-weight: 700;
    color: #e5484d;
    line-height: 1;
    transform: translateY(-7px);
}

/* 百分号：10px，随数字底部对齐（数字仍为 22px 红色加粗） */
.eh-rate-pct {
    font-size: 10px;
    font-weight: 700;
    margin-left: 1px;
}

/* 统计范围标签里的场次 N：红色加粗（与推荐卡片「近N场命中率」同款强调） */
.eh-rate-label b {
    color: #e5484d;
    font-weight: 700;
    margin: 0 1px;
}

/* 最好成绩命中率不足 SHOW_MIN_RATE(50%) 时的占位文案 */
.eh-rate-none {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.2;
    white-space: nowrap;
    /* 位置微调：在当前基础上左移 5px、上移 5px（原 translateY(-2px) → -7px）；
       transform 不占位，关注按钮与其它元素位置不受影响 */
    transform: translate(-5px, -7px);
}

/* 称号 / 粉丝：10px 灰色边框标签 */
.eh-hero-title,
.eh-hero-fans {
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    border: 0.8px solid #d1d5db;
    color: #6b7280;
    white-space: nowrap;
}

/* 关注按钮：同行右侧黑色胶囊 */
.eh-follow-btn {
    align-self: flex-end;     /* 关注按钮右对齐 */
    margin-left: auto;
    flex: none;
    border: none;
    outline: none;
    cursor: pointer;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 7px 15px;        /* 左右各 -1px → 整体宽 -2px */
    border-radius: 999px;
    transform: translateY(-2px);   /* 上移 2px（不影响布局） */
    transition: opacity .15s ease;
}

/* 已关注：红色胶囊（与站内主色 #e5484d 一致） */
.eh-follow-btn.followed {
    background: #e5484d;
}

/* 关注提示浮层：复用推荐页 .rc-save-tip（底部居中胶囊，2.5s 自动消失）
   成功 / 失败（如「不能关注自己」）均为黑色胶囊，仅图标不同 */
.rc-save-tip.err {
    background: rgba(0, 0, 0, 0.8);
}

/* 文字介绍：11px，最多两行，超出时结尾追加「展开」 */
.eh-hero-intro {
    position: relative;
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #4b5563;
    word-break: break-all;
}

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

.eh-intro-more {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 2px;
    background: #ffffff;      /* 遮盖被截断的文字，视觉上接在结尾处 */
    color: #e5484d;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== 文章分类切换（已发布/草稿箱同款胶囊组） ===== */
.eh-type-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    padding: 0;               /* 取消内衬，选中胶囊直接贴合容器（无间隙） */
    border-radius: 999px;
    background: #ffffff;      /* 灰底改白底 */
    border: none;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.eh-type-tab {
    border: none;
    outline: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
    padding: 12px 18px;       /* 上下各 +2，按钮总高 +4 */
    margin: 0;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
}

.eh-type-tab.active {
    background: #111111;
    color: #ffffff;
    font-weight: 600;
}

/* ===== 走势卡片（命中率 / 连中） ===== */
.eh-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: none;
    box-shadow: none;
}

/* ===== 擅长联赛页：联赛统计卡片（上间距由区标题提供，去掉卡片默认 margin-top） ===== */
.eh-league-card {
    margin-top: 0;
    padding: 4px 18px 8px;
}

/* 表头：联赛 / 文章数 / 命中率 */
.eh-lg-head {
    display: flex;
    align-items: center;
    padding: 12px 2px 10px;
    font-size: 12px;
    font-weight: 600;      /* 表头加粗 */
    color: #9ca3af;
}

/* 数据行：联赛名灰 / 文章数黑 / 命中率红加粗（行间浅色分隔线） */
.eh-lg-row {
    display: flex;
    align-items: center;
    padding: 16px 2px;
    border-top: 1px solid #f0f1f3;
    font-size: 14px;
}

.eh-lg-head span,
.eh-lg-row span {
    flex: 1;
}

.eh-lg-head span:nth-child(2),
.eh-lg-row span:nth-child(2) {
    text-align: center;
}

.eh-lg-head span:nth-child(3),
.eh-lg-row span:nth-child(3) {
    text-align: right;
}

.eh-lg-name {
    color: #9ca3af;
}

.eh-lg-count {
    color: #111827;
    font-weight: 500;
}

.eh-lg-rate {
    color: #e5484d;
    font-weight: 600;
}

/* 无结算数据：表头下方补一条分隔线（下方无数据行，表头不再孤立） */
.eh-league-card-empty .eh-lg-head {
    border-bottom: 1px solid #f0f1f3;
}

/* 无结算数据 */
.eh-lg-empty {
    padding: 26px 0 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* 命中率走势：SVG 折线 + 底部轴标签 + 切换按钮 */
/* 推荐累计走势（首页「每日焦点走势」同款 Chart.js，红色系） */
.eh-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.eh-chart-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.eh-chart-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* 走势三标签（近期胜率 / 命中率 / 返还率） */
.eh-chart-tabs {
    display: flex;
    width: fit-content;
    margin: 12px auto 0;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    overflow: hidden;
}

.eh-chart-tab {
    border: none;
    outline: none;
    background: #ffffff;
    color: #e5484d;
    font-size: 13px;
    line-height: 1;
    padding: 8px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
}

.eh-chart-tab.active {
    background: #e5484d;
    color: #ffffff;
    font-weight: 600;
}

.eh-chart-box {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 10px;
}

.eh-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.eh-chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 0 2px;
    border-top: 1px dashed #f0f1f3;
    font-size: 11px;
    color: #9ca3af;
}

.eh-chart-meta b {
    font-weight: 600;
    color: #e5484d;
}

@media (max-width: 480px) {
    .eh-chart-box { height: 180px; }
}

/* 连中走势 */
.eh-streak-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.eh-streak-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

/* 标题后的方向说明「(远 -> 近)」：灰色 12 号，弱化于标题 */
.eh-streak-note {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.eh-streak-best {
    font-size: 13px;
    color: #6b7280;
}

.eh-streak-best b {
    color: #e5484d;
    font-size: 16px;
    margin: 0 2px;
}

.eh-streak-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.eh-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #6b7280;
    color: #ffffff;
    flex: none;
}

.eh-dot.hit {
    background: #e5484d;
}

/* 走水：比「未」(#6b7280) 更淡的浅灰，便于与未命中区分 */
.eh-dot.draw {
    background: #b3bac5;
}

/* 平板 / 小屏电脑：容器排不下 18 个 30px 圆点时缩一档，保证单行不换行 */
@media (min-width: 769px) and (max-width: 920px) {
    .eh-streak-dots {
        gap: 4px;
    }

    .eh-dot {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

/* 擅长联赛行 */
.eh-league-row {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

/* 整行为 <a>（主页 → 擅长联赛统计页）：去掉链接默认样式 */
a.eh-league-row {
    text-decoration: none;
    color: #6b7280;
}

.eh-league-label {
    flex: none;
}

.eh-league-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #374151;
}

/* 单个联赛：灰色边框 + 白色底胶囊 */
.eh-league-tag {
    flex: none;
    padding: 3px 10px;
    border: 0.8px solid #dcdfe6;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.eh-league-row .layui-icon-right {
    flex: none;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== 方案区标题：橙色圆角竖条 + 加粗黑字（设计稿「预测列表」样式） ===== */
.eh-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #222222;
}

.eh-sec-title::before {
    content: '';
    flex: none;
    width: 5px;
    height: 18px;
    border-radius: 3px;
    background: #f4602a;   /* 橙色竖条 */
}

/* ===== 方案卡片列表 ===== */
.eh-plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.eh-plan {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: box-shadow .15s ease;
}

.eh-plan:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

/* 方案卡片出现效果：滚动进入视口时滑出（淡入 + 轻微上移） */
.eh-plan.eh-plan-wait {
    opacity: 0;              /* 进入视口前先隐藏，由 JS 加 .eh-plan-in 播放动画 */
}

.eh-plan.eh-plan-in {
    animation: eh-plan-in .38s ease-out both;
}

@keyframes eh-plan-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 标题行：「单场」浮动在左，标题文字环绕 ——
   首行接在「单场」右侧，换行后的第二行回到容器最左（与「单场」左边对齐） */
.eh-plan-title {
    display: block;
    font-size: 12px;      /* 标题文字再缩小 2 号（16 → 14 → 12） */
    font-weight: 400;     /* 不加粗 */
    color: #222222;
    line-height: 1.5;
}

/* 「单场」标签保持 12px，不跟随标题再缩小：它是状态标签，比 10px 的标题更易读 */
.eh-plan-mode {
    float: left;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

/* 标题：自动换行完整展示，首行环绕浮动标签，次行起顶格 */
.eh-plan-name {
    display: block;
    font-size: 15px;      /* 标题文字 15px（与推荐主页 / 已发布页卡片标题同号） */
    color: #333;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 赛事行：灰底通栏（上下再各收缩 2px：padding 9 → 7 → 5） */
.eh-plan-match {
    position: relative;      /* 右上角结算印章定位父级 */
    margin-top: 8px;         /* 上方间距 -2px（原 10px） */
    padding: 3px 12px;       /* 上下内距各 -2px（原 5px） */
    border-radius: 8px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;         /* 比赛信息条文字 11px */
    color: #374151;
    cursor: pointer;         /* 点击进入比赛详情 */
}

.eh-plan-type {
    flex: none;
    font-weight: 400;    /* 类型（竞足等）：不加粗 */
    color: #222222;
}

.eh-plan-time,
.eh-plan-league,
.eh-plan-teams {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eh-plan-league,
.eh-plan-teams {
    color: #6b7280;
}

.eh-plan-arrow {
    flex: none;
    margin-left: auto;
    color: #9ca3af;
    font-size: 13px;
}

/* 完场比分（替换掉对阵中的「vs」）：灰字 + 灰色 0.8px 边框 + 白底 + 5px 圆角 */
.eh-plan-score {
    display: inline-block;
    margin: 0 4px;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #9ca3af;
    background: #ffffff;
    border: 0.8px solid #d9dce1;
    border-radius: 5px;
}

/* 已结算方案印章：比赛信息条右上方，56px（基础 96px 缩放）、80% 透明度 */
.eh-plan-stamp {
    position: absolute;
    top: -55px;      /* 在原基础上再上移 20px（-10 → -35 → -55） */
    right: -6px;     /* 右移 10px（原 4px） */
    z-index: 3;
    pointer-events: none;
    opacity: .8;     /* 60% → 80%：红色更实一些，尺寸仍为 56px */
}

.eh-plan-stamp .stamp-badge {
    transform: scale(.5833);   /* 96px → 56px */
    transform-origin: top right;
}

/* 历史方案列表：印章下移 25px（15px + 10px，最新方案保持原位） */
#ehHistoryList .eh-plan-stamp {
    top: -30px;                /* -55px + 25px */
}

/* 页面最底部：没有更多了...（固定高度 40px，居中灰字） */
.eh-no-more {
    height: 40px;
    margin: 20px 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}

/* 底部行 */
.eh-plan-foot {
    margin-top: 8px;    /* 比赛条下方间距 -2px（原 10px） */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.eh-plan-price {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #d4a017;
    font-weight: 400;    /* 不加粗 */
}

.eh-plan-price .layui-icon {
    font-size: 12px;
}

/* 问问分为 0：「免费查阅」浅灰底胶囊，整体高度 20px */
.eh-plan-price-free {
    height: 20px;
    line-height: 20px;
    padding: 0 9px;           /* 左右各 +3px（原 6px） */
    border-radius: 999px;     /* 胶囊：左右全圆 */
    background: #f1f2f4;      /* 浅灰背景 */
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.eh-plan-status {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 25px;   /* 胶囊圆角 */
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 进行中：状态标签内的闪烁红点 */
.eh-live-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: eh-live-blink 1s ease-in-out infinite;
}

@keyframes eh-live-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .2; }
}

.eh-plan-status.st-none {
    background: #3b82f6;   /* 未开始：蓝 */
}

.eh-plan-status.st-live {
    background: #e5484d;   /* 进行中：红 */
}

.eh-plan-status.st-end {
    background: #9ca3af;   /* 已完赛：灰 */
}

/* 空状态：固定 190px 白框（无阴影、虚线边框），图标 + 文案居中 */
.eh-empty {
    height: 190px;
    padding: 0;
    border: 1px dashed #dcdfe6;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* 提高特异性：layui.css 在本文件之后加载，其 .layui-icon{font-size:16px} 会覆盖单类选择器 */
.eh-empty-icon.layui-icon {
    font-size: 48px;
    line-height: 1;
    color: #d1d5db;
}

.eh-empty-text {
    font-size: 13px;
    color: #9ca3af;
}

/* 手机端适配：与详情页 rd-article 一致（左右 12px） */
@media (max-width: 768px) {
    .eh-wrap {
        margin: 16px auto 24px;
        padding: 0 12px;
    }

    .eh-trend-svg {
        height: 96px;
    }

    /* 分类栏（全部 / 竞足 / 北单 / 竞蓝 / 其他篮球）：通栏宽度，等分铺满 */
    .eh-type-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
    }

    .eh-type-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 11px 0;
        font-size: 12px;
        text-align: center;
    }

    /* 右上角胜率 + 关注按钮整体右移 5px */
    .eh-hero-right {
        right: 13px;              /* 再右移 5px（原 18px） */
    }

    /* 头像左移 5px（含底部认证标签一起移动，不影响布局占位） */
    .eh-hero-avatar {
        transform: translateX(-5px);
    }

    /* 擅长联赛统计卡：卡片内容左右各 +6px（18 → 24） */
    .eh-league-card {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* 电脑端 / 平板端：卡片内部内容左右各收缩 4px（外框宽度不变，padding 14 → 18） */
@media (min-width: 769px) {
    .eh-plan {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* 擅长联赛页 / 电脑端：联赛统计卡片内间距放大
   （原 padding: 4px 18px 8px → 左右各 +15px、上下各 +10px） */
@media (min-width: 769px) {
    .eh-league-card {
        padding: 14px 33px 18px;
    }
}

/* 擅长联赛页：专家信息卡内部下间距 +5px（原 16px → 21px） */
.eh-hero-leagues {
    padding-bottom: 21px;
}
