/* 开奖记录页 — 与 play.html 同系风格 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.zh-page {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 100%);
    min-height: 100vh;
    padding-bottom: 32px;
}

.zh-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.zh-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    color: #5c6bc0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.zh-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(30, 40, 90, 0.08);
    overflow: visible;
    margin-bottom: 12px;
}

.zh-card__head {
    padding: 18px 20px;
    color: #fff;
    background: linear-gradient(135deg, #5c6bc0 0%, #7e57c2 100%);
}

.zh-card__head h1 {
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 700;
}

.zh-card__head p {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.zh-kj-wrap {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #eceff5;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.zh-kj-wrap .home-lottery-iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 220px;
    overflow: visible;
}

@media (min-width: 651px) {
    .zh-kj-wrap .home-lottery-iframe {
        min-height: 250px;
    }
}

.zh-body {
    padding: 14px 12px 18px;
    position: relative;
    z-index: 2;
    background: #fff;
}

.zh-section-title {
    font-size: 14px;
    color: #5c6bc0;
    font-weight: 600;
    margin: 0 0 10px;
    padding-left: 8px;
    border-left: 3px solid #5c6bc0;
}

.zh-lottery-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.zh-lottery-label strong {
    color: #5c6bc0;
}

.zh-list {
    list-style: none;
}

.zh-item {
    padding: 11px 10px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    border: 1px solid #e8ecf4;
}

.zh-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 7px;
    font-size: 13px;
}

.zh-item__period {
    font-weight: 700;
    color: #1a237e;
}

.zh-item__period em {
    font-style: normal;
    color: #c41e3a;
    margin-left: 4px;
}

.zh-item__time {
    color: #64748b;
    font-size: 12px;
}

.zh-item__balls {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 1px;
}

.zh-ball {
    flex: 0 0 auto;
    min-width: 36px;
    max-width: 42px;
    text-align: center;
}

.zh-ball__img {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh-ball--red .zh-ball__img { background-image: url(/red.png); }
.zh-ball--blue .zh-ball__img { background-image: url(/blue.png); }
.zh-ball--green .zh-ball__img { background-image: url(/green.png); }
.zh-ball--gray .zh-ball__img,
.zh-ball--pending .zh-ball__img {
    background-image: none;
    background-color: #bdbdbd;
    border-radius: 50%;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.zh-ball--gray .zh-ball__num,
.zh-ball--pending .zh-ball__num {
    color: #666;
    font-size: 15px;
    text-shadow: none;
}
.zh-ball--gray .zh-ball__sx,
.zh-ball--pending .zh-ball__sx {
    color: #888;
}

/* 特码：仅一层球图，勿再加 box-shadow/第二背景（易叠成双圈） */
.zh-ball--special.zh-ball--red .zh-ball__img { background-image: url(/red.png); }
.zh-ball--special.zh-ball--blue .zh-ball__img { background-image: url(/blue.png); }
.zh-ball--special.zh-ball--green .zh-ball__img { background-image: url(/green.png); }

.zh-ball__num {
    font-size: 16px;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.zh-ball__sx {
    margin-top: 3px;
    font-size: 9px;
    color: #444;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 3px;
    padding: 1px 0;
    line-height: 1.15;
}

.zh-plus {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0 1px;
    margin-top: calc(18px - 0.5em);
    line-height: 1;
    font-size: 18px;
    font-weight: 700;
    color: #999;
}

.zh-ball--special .zh-ball__sx {
    border-color: rgba(196, 30, 58, 0.5);
    color: #b71c1c;
    font-weight: 700;
}

.zh-loading,
.zh-empty,
.zh-error {
    text-align: center;
    padding: 24px 12px;
    font-size: 14px;
    color: #64748b;
}

.zh-error { color: #c41e3a; }

@media (max-width: 380px) {
    .zh-ball {
        min-width: 32px;
        max-width: 36px;
    }
    .zh-ball__img {
        width: 30px;
        height: 30px;
    }
    .zh-ball__num {
        font-size: 14px;
    }
    .zh-ball__sx {
        font-size: 8px;
        margin-top: 2px;
    }
    .zh-plus {
        margin-top: calc(15px - 0.5em);
        font-size: 16px;
    }
}
