/* ==========================================================
   汇旺在线 · 首页开奖卡片（新版布局）
   响应式双列网格 + 立体彩球 + 底部操作栏
   ========================================================== */

.lhome {
    --lh-red: #e53935;
    --lh-red-deep: #b2120e;
    --lh-blue: #1e88e5;
    --lh-green: #43a047;
    --lh-gold: #ffd700;
    --lh-line: #ececec;
    --lh-text: #333;
    --lh-muted: #999;
    max-width: 1080px;
    margin: 0 auto 40px;
    padding: 0 12px 24px;
    box-sizing: border-box;
    color: var(--lh-text);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.lhome *,
.lhome *::before,
.lhome *::after {
    box-sizing: border-box;
}

/* ---------- 顶部横幅 ---------- */
.lhome-banner {
    margin: 12px 0 16px;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.lhome-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- 板块标题 ---------- */
.lhome-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #b2120e;
}
.lhome-section-title::before {
    content: "";
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ffd700, #e53935);
    box-shadow: 0 2px 6px rgba(213, 46, 34, 0.35);
}
.lhome-section-title small {
    font-size: 12px;
    font-weight: 400;
    color: var(--lh-muted);
    margin-left: 4px;
}

/* ---------- 卡片网格 ---------- */
.lhome-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.lhome-empty {
    grid-column: 1 / -1;
    padding: 56px 16px;
    text-align: center;
    color: #b2120e;
    font-size: 15px;
    background: #fff;
    border: 1px dashed #e0c0ba;
    border-radius: 14px;
}

/* ---------- 卡片主体 ---------- */
.lhome-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lhome-card:hover {
    transform: translateY(-4px);
    border-color: #ffc9c1;
    box-shadow: 0 16px 32px rgba(213, 46, 34, 0.15);
}

/* 卡片头部：logo + 名称 + 期号 */
.lhome-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 8px;
}

.lhome-card__logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #f7f7f7);
    border: 2px solid #ffd9d3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(213, 46, 34, 0.14);
}
.lhome-card__logo img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    display: block;
}

.lhome-card__info {
    flex: 1 1 auto;
    min-width: 0;
}

.lhome-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #b2120e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lhome-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.lhome-card__issue {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #e53935, #c62828);
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(213, 46, 34, 0.25);
    white-space: nowrap;
}

.lhome-card__time {
    font-size: 12px;
    color: var(--lh-muted);
    white-space: nowrap;
}

/* ---------- 开奖号码球 ---------- */
.lhome-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 6px 16px 14px;
}

.lhome-balls--wrap {
    max-width: 100%;
}

.lhome-balls__break {
    flex: 0 0 100%;
    height: 0;
}

.lhome-balls--empty {
    color: var(--lh-muted);
    font-size: 13px;
    padding: 4px 0;
}

.lhome-ball {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease;
}
.lhome-ball:hover {
    transform: scale(1.15);
}

.lhome-ball em {
    font-style: normal;
    font-size: 13px;
    line-height: 1;
}

.lhome-ball.is-sm {
    width: 24px;
    height: 24px;
}
.lhome-ball.is-sm em {
    font-size: 11px;
}

/* 球体配色：渐变立体 */
.lhome-ball.c-red {
    background: linear-gradient(180deg, #ff6b5e, #d32f2f);
}
.lhome-ball.c-blue {
    background: linear-gradient(180deg, #64b5f6, #1976d2);
}
.lhome-ball.c-green {
    background: linear-gradient(180deg, #81c784, #388e3c);
}
.lhome-ball.c-gray {
    background: linear-gradient(180deg, #b0bec5, #607d8b);
}

/* 六合彩特码金色光环 */
.lhome-balls--six {
    gap: 10px 12px;
    padding-bottom: 18px;
}
.lhome-balls--six .lhome-ball {
    width: 32px;
    height: 32px;
}
.lhome-ball.is-special {
    box-shadow: 0 0 0 3px var(--lh-gold), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
}

/* 生肖小标注 */
.lhome-ball__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    transform: translateX(-50%);
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    white-space: nowrap;
    text-shadow: none;
}

/* ---------- 底部操作栏 ---------- */
.lhome-card__actions {
    display: flex;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.lhome-action {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px 9px;
    text-decoration: none;
    color: #666;
    border-right: 1px solid #f0f0f0;
    transition: background 0.18s ease, color 0.18s ease;
}
.lhome-action:last-child {
    border-right: 0;
}
.lhome-action:hover {
    background: linear-gradient(180deg, #fff6f4, #ffece8);
    color: #d52e22;
    text-decoration: none;
}

.lhome-action__ico {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lhome-action__ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lhome-action__txt {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .lhome-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .lhome-section-title {
        font-size: 16px;
    }
    .lhome-card__head {
        padding: 12px 12px 6px;
    }
    .lhome-balls {
        padding: 4px 12px 12px;
    }
    .lhome-ball {
        width: 27px;
        height: 27px;
    }
    .lhome-ball em {
        font-size: 12px;
    }
    .lhome-ball.is-sm {
        width: 22px;
        height: 22px;
    }
    .lhome-ball.is-sm em {
        font-size: 10px;
    }
}
