/* =========================================================
 * LotteryHomeOp - 开奖大厅首页
 * ========================================================= */

.lhome {
    --lh-red: #c62828;
    --lh-red-deep: #9b1c1c;
    --lh-red-soft: #e53935;
    --lh-line: #e6e6e6;
    --lh-text: #222;
    --lh-muted: #C42017;
    --lh-ball-blue: #1e88e5;
    --lh-bg: #f3f3f3;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 10px 24px;
    box-sizing: border-box;
    color: var(--lh-text);
}

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

/* ---------- Banner ---------- */
.lhome-banner {
    margin: 12px 0 18px;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

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

/* ---------- List / Card ---------- */
.lhome-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lhome-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--lh-muted);
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: 4px;
}

.lhome-card {
    display: flex;
    align-items: stretch;
    min-height: 108px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lhome-card:hover {
    border-color: #f0cfcf;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.lhome-card__logo {
    position: relative;
    width: 118px;
    flex: 0 0 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
}

.lhome-card__logo::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 0;
    bottom: 18px;
    width: 2px;
    background: var(--lh-red);
}

/* logo 占位：后续放图到 public/images/logo/{lotCode}.png */
.lhome-logo-ph {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 1px dashed #d0d0d0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lhome-logo-ph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lhome-logo-ph__txt {
    display: none;
    padding: 6px;
    font-size: 12px;
    line-height: 1.25;
    color: var(--lh-muted);
    text-align: center;
    word-break: break-all;
}

.lhome-logo-ph.is-empty .lhome-logo-ph__txt {
    display: block;
}

.lhome-card__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 18px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.lhome-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lhome-card__title {
    font-size: 16px;
    color: var(--lh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lhome-card__title strong {
    font-weight: 700;
}

.lhome-card__issue {
    font-weight: 600;
    color: var(--lh-muted);
}

.lhome-card__time {
    flex: 0 0 auto;
    color: var(--lh-muted);
    font-size: 13px;
}

/* ---------- Balls ---------- */
.lhome-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
}

.lhome-balls--wrap {
    max-width: 520px;
}

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

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

.lhome-ball {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

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

.lhome-ball.is-sm {
    width: 28px;
    height: 28px;
}

.lhome-ball.is-sm em {
    font-size: 12px;
}

.lhome-ball.is-outline,
.lhome-ball.is-blue {
    border: 2px solid var(--lh-ball-blue);
    background: transparent;
    color: var(--lh-ball-blue);
}

.lhome-ball.is-red {
    border: 2px solid var(--lh-red);
    background: transparent;
    color: var(--lh-red);
}

/* 六合色波：仅框线 */
.lhome-ball.is-fill {
    background: transparent;
}

.lhome-ball.is-fill.c-red {
    border: 2px solid var(--lh-red);
    color: var(--lh-red);
}

.lhome-ball.is-fill.c-blue {
    border: 2px solid var(--lh-ball-blue);
    color: var(--lh-ball-blue);
}

.lhome-ball.is-fill.c-green {
    border: 2px solid #43a047;
    color: #43a047;
}

.lhome-balls--six {
    gap: 10px 14px;
    padding-bottom: 14px;
}

.lhome-balls--six .lhome-ball {
    width: 36px;
    height: 36px;
}

.lhome-ball__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    transform: translateX(-50%);
    font-style: normal;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.lhome-ball.is-special {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

/* ---------- Actions ---------- */
.lhome-card__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 10px 12px;
    /* border-left: 1px solid var(--lh-line); */
    background: #fff;
}

.lhome-action {
    width: 72px;
    min-height: 80px;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.lhome-action:hover {
    background: #fff5f5;
    color: var(--lh-red);
    text-decoration: none;
}

.lhome-action__ico,
.lhome-action__txt {
    width: 100%;
    box-sizing: border-box;
}

.lhome-action__ico {
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lhome-action__ico img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    display: block;
}

/* 图示：images/ico-result.png、ico-trend.png、ico-share.png、ico-video.png */

.lhome-action__txt {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .lhome-card {
        flex-wrap: wrap;
    }

    .lhome-card__logo {
        width: 96px;
        flex-basis: 96px;
    }

    .lhome-card__main {
        width: calc(100% - 96px);
    }

    .lhome-card__actions {
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--lh-line);
        justify-content: space-around;
        padding: 8px 6px;
    }

    .lhome-card__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .lhome-card__logo {
        display: none;
    }

    .lhome-card__main {
        width: 100%;
    }

    .lhome-ball {
        width: 30px;
        height: 30px;
    }

    .lhome-ball em {
        font-size: 13px;
    }

    .lhome-action {
        width: 72px;
    }
}
