/**
 * 开奖详情页 / 列表页
 */

/* ========== 详情页（白底卡片内） ========== */
.lottery-detail-page .lottery-detail-content {
    color: #334155;
}

.lottery-detail-content .lottery-detail-article {
    line-height: 1.65;
}

/* 摘要区 */
.lottery-detail-content .ld-summary {
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.lottery-detail-content .ld-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 14px;
}

@media (min-width: 769px) {
    .lottery-detail-content .ld-summary-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px 28px;
    }

    .lottery-detail-content .ld-summary-grid .ld-stat {
        flex: 1 1 0;
        min-width: 0;
        text-align: left;
    }
}

.lottery-detail-content .ld-stat {
    min-width: 0;
    white-space: nowrap;
}

.lottery-detail-content .ld-stat-label {
    display: inline;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

.lottery-detail-content .ld-stat-value {
    display: inline;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
}

.lottery-detail-content .ld-stat-value.ld-stat-highlight {
    color: #b91c1c;
}

.lottery-detail-content .ld-balls-block {
    padding-top: 12px;
    border-top: 1px dashed #dde3ea;
}

.lottery-detail-content .ld-balls-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 10px;
}

.lottery-detail-content .ld-balls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lottery-detail-content .ld-balls-row.ld-balls-kl8 {
    display: grid;
    grid-template-columns: repeat(10, auto);
    justify-content: center;
    justify-items: center;
    gap: 6px;
    max-width: 100%;
}

.lottery-detail-content .ld-balls-row.ld-balls-qlc {
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
}

@media (min-width: 769px) {
    .lottery-detail-content .ld-balls-row.ld-balls-kl8 {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }

    .lottery-detail-content .ld-ball-kl8 {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }
}

.lottery-detail-content .ld-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}

.lottery-detail-content .ld-ball-red {
    background: linear-gradient(145deg, #ff5f6d, #e53935);
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.35);
}

.lottery-detail-content .ld-ball-blue {
    background: linear-gradient(145deg, #4dabf7, #1971c2);
    box-shadow: 0 2px 6px rgba(25, 113, 194, 0.35);
}

.lottery-detail-content .ld-ball-3d {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    background: linear-gradient(145deg, #ff5f6d, #e53935);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

.lottery-detail-content .ld-ball-kl8 {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    background: linear-gradient(145deg, #ff5f6d, #e53935);
    box-shadow: 0 1px 4px rgba(229, 57, 53, 0.3);
}

.lottery-detail-content .ld-ball-plus {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 2px;
}

/* 章节标题 */
.lottery-detail-content .ld-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 12px;
    padding-left: 10px;
    border-left: 4px solid #b91c1c;
    line-height: 1.3;
}

/* PC：中奖情况 + 参照表并排 */
.lottery-detail-content .ld-dual-panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 22px 0 18px;
}

.lottery-detail-content .ld-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lottery-detail-content .ld-panel .ld-section-title {
    margin-top: 0;
    margin-bottom: 10px;
    min-height: 1.3em;
    text-align: left;
    align-self: stretch;
    width: 100%;
}

.lottery-detail-content .ld-panel .ld-table-wrap {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.lottery-detail-content .ld-panel-result,
.lottery-detail-content .ld-panel-ref {
    width: 100%;
}

.lottery-detail-content .ld-ref-table-wrap {
    margin-bottom: 0;
    overflow: visible;
}

.lottery-detail-content .ld-dual-panel .ld-table-wrap {
    overflow: visible;
}

.lottery-detail-content .ld-ref-table td {
    position: relative;
    overflow: visible;
}

.lottery-detail-content .ld-ref-table {
    min-width: 320px;
}

.lottery-detail-content .ld-ref-table th,
.lottery-detail-content .ld-ref-table td {
    padding: 8px 6px;
    font-size: 0.82rem;
    vertical-align: middle;
}

.lottery-detail-content .ld-ref-table thead th {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.lottery-detail-content .ld-ref-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.lottery-detail-content .ld-ref-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.lottery-detail-content .ld-ref-table td:nth-child(4) {
    text-align: left;
    padding-left: 8px;
    padding-right: 8px;
}

.lottery-detail-content .ld-ref-table-3d td:nth-child(3) {
    text-align: left;
    line-height: 1.45;
}

.lottery-detail-content .ld-ref-table-qlc td:nth-child(3) {
    text-align: left;
    padding-left: 8px;
    padding-right: 8px;
}

.lottery-detail-content .ld-ref-table-kl8 th,
.lottery-detail-content .ld-ref-table-kl8 td {
    padding: 6px 5px;
    font-size: 0.76rem;
}

.lottery-detail-content .ld-ref-table-kl8 td:first-child {
    white-space: nowrap;
}

.lottery-detail-content .ld-ref-table-kl8 td.ld-kl8-play {
    font-weight: 700;
    vertical-align: middle;
    border-right: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
}

.lottery-detail-content .ld-ref-table-kl8-grouped,
.lottery-detail-content .ld-kl8-detail-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.lottery-detail-content tbody.ld-kl8-play-spacer td {
    height: 10px;
    padding: 0 !important;
    border: none !important;
    line-height: 0;
    background: transparent;
}

.lottery-detail-content .ld-kl8-match strong {
    font-weight: 700;
    color: #334155;
}

/* 快乐8：选十中十、选九中九…最高奖级行 */
.lottery-detail-content tr.ld-kl8-top-prize td {
    background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
}

.lottery-detail-content tr.ld-kl8-top-prize td.ld-kl8-play {
    background: #fde68a;
    color: #92400e;
    font-weight: 800;
}

.lottery-detail-content tr.ld-kl8-top-prize .ld-kl8-match {
    box-shadow: inset 3px 0 0 #f59e0b;
}

.lottery-detail-content tr.ld-kl8-top-prize .ld-kl8-match strong {
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.lottery-detail-content tr.ld-kl8-top-prize .ld-money,
.lottery-detail-content tr.ld-kl8-top-prize td:last-child {
    color: #b91c1c;
    font-weight: 700;
}

.lottery-detail-content .ld-dual-panel-kl8 .ld-panel-result .ld-section-title:first-child {
    margin-top: 0;
}

/* PC：快乐8 双栏行高对齐（本期中奖详情 ↔ 奖金对照表） */
@media (min-width: 769px) {
    .lottery-detail-content .ld-dual-panel-kl8 {
        align-items: stretch;
    }

    .lottery-detail-content .ld-dual-panel-kl8 .ld-panel .ld-section-title {
        min-height: 1.65em;
        margin-bottom: 10px;
    }

    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped {
        --ld-kl8-row-h: 36px;
        --ld-kl8-head-h: 42px;
        --ld-kl8-gap-h: 10px;
        width: 100%;
    }

    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table thead th,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped thead th {
        height: var(--ld-kl8-head-h);
        min-height: var(--ld-kl8-head-h);
        padding: 0 4px;
        line-height: 1.2;
        vertical-align: middle;
        box-sizing: border-box;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table tbody.ld-kl8-play-group tr td,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped tbody.ld-kl8-play-group tr td {
        height: var(--ld-kl8-row-h);
        min-height: var(--ld-kl8-row-h);
        max-height: var(--ld-kl8-row-h);
        padding: 0 4px;
        line-height: 1.2;
        vertical-align: middle;
        box-sizing: border-box;
        font-size: 0.76rem;
        overflow: hidden;
    }

    .lottery-detail-content .ld-dual-panel-kl8 tbody.ld-kl8-play-spacer td {
        height: var(--ld-kl8-gap-h) !important;
        min-height: var(--ld-kl8-gap-h);
        max-height: var(--ld-kl8-gap-h);
    }

    .lottery-detail-content .ld-dual-panel-kl8 tr.ld-kl8-top-prize .ld-kl8-match strong {
        font-size: 0.76rem;
    }
}

@media (min-width: 769px) {
    .lottery-detail-content .ld-dual-panel-kl8 .ld-panel-ref-kl8 {
        position: sticky;
        top: 12px;
        align-self: stretch;
    }
}

.lottery-detail-content .ld-ref-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 3px;
    border-radius: 50%;
    background: #b91c1c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
    position: relative;
    border: none;
    padding: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.lottery-detail-content .ld-ref-tip.is-open {
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.35);
}

#ld-tip-popover {
    position: fixed;
    z-index: 10000;
    max-width: min(300px, calc(100vw - 16px));
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.96);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

#ld-tip-popover[hidden] {
    display: none !important;
}

.lottery-detail-page .article-card,
.lottery-detail-page .article-card .article-content {
    overflow: visible;
}

.lottery-detail-page .article-card .article-content {
    padding-bottom: 12px;
}

/* 覆盖 article.css 对 table 的 display:block / width:100% / text-align:left */
.lottery-detail-page .article-card .article-content .ld-table-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.lottery-detail-page .article-card .article-content table.ld-prize-table {
    display: table;
    width: auto;
    max-width: none;
    margin: 0 auto;
    border-collapse: collapse;
}

.lottery-detail-page .article-card .article-content table.ld-prize-table thead,
.lottery-detail-page .article-card .article-content table.ld-prize-table tbody {
    display: table-row-group;
}

.lottery-detail-page .article-card .article-content table.ld-prize-table tr {
    display: table-row;
}

.lottery-detail-page .article-card .article-content table.ld-prize-table th,
.lottery-detail-page .article-card .article-content table.ld-prize-table td {
    display: table-cell;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
    border-left: none;
    border-right: none;
    border-top: none;
}

.lottery-detail-page .article-card .article-content table.ld-ref-table td:nth-child(4),
.lottery-detail-page .article-card .article-content table.ld-ref-table-3d td:nth-child(3),
.lottery-detail-page .article-card .article-content table.ld-ref-table-qlc td:nth-child(3) {
    text-align: left;
}

.lottery-detail-page .article-card .article-content table.ld-ref-table-kl8-grouped,
.lottery-detail-page .article-card .article-content table.ld-kl8-detail-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.lottery-detail-page .article-card .article-content tbody.ld-kl8-play-spacer td {
    height: 10px;
    padding: 0 !important;
    border: none !important;
    line-height: 0;
    background: transparent;
}

.lottery-detail-page .article-card .article-content table.ld-ref-table-kl8-grouped tbody.ld-kl8-play-group tr:not(:last-child) td,
.lottery-detail-page .article-card .article-content table.ld-kl8-detail-table tbody.ld-kl8-play-group tr:not(:last-child) td {
    border-bottom: 1px solid #eef2f6;
}

@media (min-width: 769px) {
    .lottery-detail-page .article-card .article-content .ld-dual-panel-kl8 .ld-kl8-detail-table thead th,
    .lottery-detail-page .article-card .article-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped thead th,
    .lottery-detail-page .article-card .article-content .ld-dual-panel-kl8 .ld-kl8-detail-table tbody.ld-kl8-play-group tr td,
    .lottery-detail-page .article-card .article-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped tbody.ld-kl8-play-group tr td {
        display: table-cell;
        box-sizing: border-box;
    }
}

.lottery-detail-content .ld-panel {
    align-items: center;
}

.lottery-detail-content .ld-panel .ld-table-wrap {
    align-self: center;
}

.lottery-detail-content .ld-ball-demo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
}

.lottery-detail-content .ld-mini {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.lottery-detail-content .ld-mini-red {
    background: linear-gradient(145deg, #ff5f6d, #e53935);
    box-shadow: 0 1px 2px rgba(229, 57, 53, 0.35);
}

.lottery-detail-content .ld-mini-blue {
    background: linear-gradient(145deg, #4dabf7, #1971c2);
    box-shadow: 0 1px 2px rgba(25, 113, 194, 0.35);
}

.lottery-detail-content .ld-mini-empty {
    background: #fff;
    border: 1px solid #d1d5db;
}

.lottery-detail-content .ld-mini-blue-slot {
    border-color: #93c5fd;
}

/* 表格：边框容器与表格内容居中对齐 */
.lottery-detail-content .ld-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.lottery-detail-content .ld-prize-table {
    width: auto;
    min-width: 280px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.lottery-detail-content .ld-prize-table th,
.lottery-detail-content .ld-prize-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
}

.lottery-detail-content .ld-prize-table thead th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

.lottery-detail-content .ld-th-short {
    display: none;
}

.lottery-detail-content .ld-prize-table tbody tr:last-child td {
    border-bottom: none;
}

.lottery-detail-content .ld-prize-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.lottery-detail-content .ld-prize-table td:first-child {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.lottery-detail-content .ld-prize-table td.ld-money {
    color: #b91c1c;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lottery-detail-content .ld-prize-table td.ld-count {
    font-variant-numeric: tabular-nums;
    color: #475569;
}

/* 快乐8 双栏：覆盖 .ld-prize-table 默认 padding，统一左右行高 */
@media (min-width: 769px) {
    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table.ld-prize-table thead th,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table.ld-prize-table tbody.ld-kl8-play-group tr td,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped.ld-prize-table thead th,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped.ld-prize-table tbody.ld-kl8-play-group tr td {
        height: var(--ld-kl8-row-h, 36px);
        min-height: var(--ld-kl8-row-h, 36px);
        max-height: var(--ld-kl8-row-h, 36px);
        padding: 0 4px;
        line-height: 1.2;
        font-size: 0.76rem;
        vertical-align: middle;
        box-sizing: border-box;
        overflow: hidden;
    }

    .lottery-detail-content .ld-dual-panel-kl8 .ld-kl8-detail-table.ld-prize-table thead th,
    .lottery-detail-content .ld-dual-panel-kl8 .ld-ref-table-kl8-grouped.ld-prize-table thead th {
        height: var(--ld-kl8-head-h, 42px);
        min-height: var(--ld-kl8-head-h, 42px);
        max-height: var(--ld-kl8-head-h, 42px);
    }
}

.lottery-detail-content .ld-source {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 8px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #eef2f6;
    line-height: 1.5;
}

.lottery-detail-page .article-card .article-content p.ld-source {
    margin-bottom: 0;
}

/* ========== 列表页 ========== */
.ld-list-main {
    min-height: 60vh;
    padding: 24px 16px 40px;
    color: #fff;
    max-width: 760px;
    margin: 0 auto;
}

.lottery-detail-list-page .ld-list-breadcrumb,
.lottery-detail-list-page .ld-channel-breadcrumb,
.lottery-detail-page .ld-channel-breadcrumb {
    margin-bottom: 12px;
}

.lottery-detail-list-page .ld-list-breadcrumb.article-breadcrumb,
.lottery-detail-list-page .ld-channel-breadcrumb.article-breadcrumb,
.lottery-detail-page .ld-channel-breadcrumb.article-breadcrumb {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.lottery-detail-list-page .ld-channel-breadcrumb .article-breadcrumb-current,
.lottery-detail-page .ld-channel-breadcrumb .article-breadcrumb-current {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-list-container {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px 18px;
    backdrop-filter: blur(6px);
}

.ld-list-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.ld-list-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.55;
}

.ld-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.ld-issue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ld-issue-item a {
    flex: 1 1 auto;
    min-width: 0;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.ld-issue-item a:hover {
    color: #b91c1c;
}

.ld-issue-date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
}

.ld-issue-item:last-child {
    border-bottom: none;
}

.ld-list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 8px;
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

.ld-list-pagination-summary {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.ld-list-pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.ld-list-page-btn,
.ld-list-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ld-list-page-btn:hover,
.ld-list-page-num:hover {
    background: rgba(255, 217, 102, 0.22);
    border-color: rgba(255, 217, 102, 0.45);
    color: #fff;
}

.ld-list-page-num.is-current {
    background: rgba(255, 217, 102, 0.32);
    border-color: rgba(255, 217, 102, 0.55);
    color: #fff;
    font-weight: 700;
}

.ld-list-page-btn.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.ld-list-page-ellipsis {
    color: rgba(255, 255, 255, 0.55);
    padding: 0 2px;
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .ld-list-main {
        padding: 12px 8px 28px;
    }

    .lottery-detail-list-page .ld-list-breadcrumb.article-breadcrumb,
    .lottery-detail-list-page .ld-channel-breadcrumb.article-breadcrumb {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .ld-list-container {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .ld-list-title {
        font-size: 1.2rem;
    }

    .ld-list-desc {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .ld-issue-item {
        gap: 8px;
        padding: 11px 10px;
    }

    .ld-issue-item a {
        font-size: 0.88rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ld-issue-date {
        font-size: 0.75rem;
    }

    .ld-list-pagination {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .ld-list-pagination-links {
        justify-content: center;
    }
}

/* 首页卡片「开奖详情」+ 下期奖池 */
.result-card .result-subrow {
    align-items: center;
    gap: 6px;
}

.result-card .result-date {
    flex: 1 1 auto;
    min-width: 0;
}

.result-card .result-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    max-width: 68%;
    min-width: 0;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 217, 102, 0.42);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.result-card .result-detail-chip:hover {
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.34) 0%, rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 217, 102, 0.72);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.result-card .result-detail-chip-pool {
    color: #ffe08a;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5em;
}

.result-card .result-detail-chip-pool::before {
    content: '下期奖池';
    margin-right: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.result-card .result-detail-chip-sep {
    color: rgba(255, 255, 255, 0.42);
    font-weight: 400;
    margin: 0 1px;
}

.result-card .result-detail-chip-action {
    font-weight: 600;
    color: #fff;
}

.result-card .result-detail-chip-arrow {
    font-size: 0.95em;
    font-weight: 700;
    color: #ffd966;
    line-height: 1;
}

.result-card .result-detail-chip:not(:has(.result-detail-chip-pool)) .result-detail-chip-sep {
    display: none;
}

/* 兼容旧类名 */
.result-card .result-detail-link {
    display: inline-block;
    font-size: 0.78rem;
    color: #ffd966;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.result-card .result-detail-link:hover {
    text-decoration: underline;
    color: #fff;
}

@media (max-width: 768px) {
    .lottery-detail-page .article-page-main {
        padding: 0;
    }

    .lottery-detail-page .article-breadcrumb {
        margin: 0 0 10px;
        border-radius: 0;
    }

    .lottery-detail-page .article-card {
        border-radius: 0;
    }

    .lottery-detail-page .article-card-header {
        text-align: center;
        padding: 18px 14px 14px;
    }

    .lottery-detail-page .article-card .article-content {
        padding: 16px 12px 10px;
        text-align: center;
    }

    .lottery-detail-page .article-card-footer {
        justify-content: center;
        padding: 14px 12px 18px;
    }

    .lottery-detail-content .ld-summary {
        padding: 14px 12px;
        text-align: center;
    }

    .lottery-detail-content .ld-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: stretch;
    }

    .lottery-detail-content .ld-stat {
        text-align: left;
        width: 100%;
    }

    .lottery-detail-content .ld-balls-label {
        text-align: center;
    }

    .lottery-detail-content .ld-dual-panel {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 18px;
    }

    .lottery-detail-content .ld-panel {
        width: 100%;
    }

    .lottery-detail-content .ld-panel .ld-section-title {
        text-align: center;
        padding-left: 0;
        border-left: none;
        position: relative;
    }

    .lottery-detail-content .ld-section-title::before {
        content: '';
        display: block;
        width: 36px;
        height: 3px;
        margin: 0 auto 8px;
        background: #b91c1c;
        border-radius: 2px;
    }

    .lottery-detail-content .ld-source {
        text-align: center;
    }

    .lottery-detail-content .ld-ball {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    .lottery-detail-content .ld-ball-3d {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .lottery-detail-content .ld-balls-row.ld-balls-kl8 {
        gap: 5px;
    }

    .lottery-detail-content .ld-ball-kl8 {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .lottery-detail-content .ld-balls-row.ld-balls-qlc,
    .lottery-detail-content [data-lottery-type="qlc"] .ld-balls-row {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 3px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .lottery-detail-content .ld-balls-qlc .ld-ball,
    .lottery-detail-content [data-lottery-type="qlc"] .ld-balls-row .ld-ball {
        width: 29px;
        height: 29px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .lottery-detail-content .ld-balls-qlc .ld-ball-plus,
    .lottery-detail-content [data-lottery-type="qlc"] .ld-balls-row .ld-ball-plus {
        font-size: 0.9rem;
        flex-shrink: 0;
        padding: 0;
    }

    .lottery-detail-content .ld-prize-table th,
    .lottery-detail-content .ld-prize-table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    /* 移动端：表格撑满内容区宽度 */
    .lottery-detail-page .article-card .article-content .ld-table-wrap,
    .lottery-detail-content .ld-table-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        align-self: stretch;
        box-sizing: border-box;
    }

    .lottery-detail-page .article-card .article-content table.ld-prize-table,
    .lottery-detail-content .ld-prize-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .lottery-detail-content .ld-dual-panel {
        align-items: stretch;
    }

    .lottery-detail-content .ld-panel .ld-table-wrap {
        align-self: stretch;
        width: 100%;
    }

    .lottery-detail-content .ld-ref-table {
        min-width: 0;
    }

    .lottery-detail-content .ld-kl8-detail-table th:nth-child(1),
    .lottery-detail-content .ld-kl8-detail-table td.ld-kl8-play {
        width: 13%;
    }

    .lottery-detail-content .ld-kl8-detail-table th:nth-child(2),
    .lottery-detail-content .ld-kl8-detail-table td.ld-kl8-match {
        width: 30%;
    }

    .lottery-detail-content .ld-kl8-detail-table th:nth-child(3),
    .lottery-detail-content .ld-kl8-detail-table td.ld-count {
        width: 28%;
    }

    .lottery-detail-content .ld-kl8-detail-table th:nth-child(4),
    .lottery-detail-content .ld-kl8-detail-table td.ld-money {
        width: 29%;
    }

    .lottery-detail-content .ld-ref-table-kl8-grouped th:nth-child(1),
    .lottery-detail-content .ld-ref-table-kl8-grouped td.ld-kl8-play {
        width: 20%;
    }

    .lottery-detail-content .ld-ref-table-kl8-grouped th:nth-child(2),
    .lottery-detail-content .ld-ref-table-kl8-grouped td.ld-kl8-match {
        width: 42%;
    }

    .lottery-detail-content .ld-ref-table-kl8-grouped th:nth-child(3) {
        width: 38%;
    }

    .lottery-detail-content .ld-kl8-detail-table thead th,
    .lottery-detail-content .ld-ref-table-kl8-grouped thead th {
        white-space: normal;
        font-size: 0.72rem;
        padding: 6px 3px;
        line-height: 1.25;
        word-break: keep-all;
    }

    .lottery-detail-content .ld-th-full {
        display: none;
    }

    .lottery-detail-content .ld-th-short {
        display: inline;
    }

    .lottery-detail-content .ld-kl8-detail-table td,
    .lottery-detail-content .ld-ref-table-kl8-grouped td {
        padding: 6px 3px;
        font-size: 0.74rem;
        line-height: 1.25;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .lottery-detail-content .ld-kl8-detail-table td.ld-kl8-play,
    .lottery-detail-content .ld-ref-table-kl8-grouped td.ld-kl8-play {
        word-break: keep-all;
        font-size: 0.72rem;
    }

    .lottery-detail-content .ld-kl8-detail-table td.ld-count,
    .lottery-detail-content .ld-kl8-detail-table td.ld-money {
        font-size: 0.72rem;
        font-variant-numeric: tabular-nums;
    }

    .lottery-detail-content tr.ld-kl8-top-prize .ld-kl8-match strong {
        font-size: 0.68rem;
        letter-spacing: 0;
        white-space: normal;
        line-height: 1.15;
    }

    /* 七乐彩 / 双色球 参照表：号码示例列防溢出 */
    .lottery-detail-content .ld-ref-table {
        min-width: 0;
        table-layout: fixed;
    }

    .lottery-detail-content .ld-ref-table-qlc th,
    .lottery-detail-content .ld-ref-table-qlc td {
        padding: 6px 3px;
        font-size: 0.74rem;
    }

    .lottery-detail-content .ld-ref-table-qlc th:nth-child(1),
    .lottery-detail-content .ld-ref-table-qlc td:nth-child(1) {
        width: 20%;
    }

    .lottery-detail-content .ld-ref-table-qlc th:nth-child(2),
    .lottery-detail-content .ld-ref-table-qlc td:nth-child(2) {
        width: 24%;
    }

    .lottery-detail-content .ld-ref-table-qlc th:nth-child(3),
    .lottery-detail-content .ld-ref-table-qlc td:nth-child(3) {
        width: 56%;
        padding-left: 3px;
        padding-right: 3px;
    }

    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) th,
    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) td {
        padding: 6px 3px;
        font-size: 0.74rem;
    }

    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) th:nth-child(1),
    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) td:nth-child(1) {
        width: 18%;
    }

    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) th:nth-child(2),
    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) td:nth-child(2) {
        width: 22%;
    }

    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) th:nth-child(3),
    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) td:nth-child(3) {
        width: 18%;
    }

    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) th:nth-child(4),
    .lottery-detail-content .ld-ref-table:not(.ld-ref-table-qlc):not(.ld-ref-table-3d):not(.ld-ref-table-kl8) td:nth-child(4) {
        width: 42%;
        padding-left: 3px;
        padding-right: 3px;
    }

    .lottery-detail-content .ld-ref-table .ld-ball-demo {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px;
        max-width: 100%;
        justify-content: flex-start;
    }

    .lottery-detail-content .ld-ref-table .ld-mini {
        width: 11px;
        height: 11px;
        flex-shrink: 1;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .lottery-detail-content .ld-summary-grid {
        grid-template-columns: 1fr;
    }

    .lottery-detail-content .ld-ref-table .ld-mini {
        width: 10px;
        height: 10px;
    }
}
