/* 首页和详情的预测发布区沿用各自容器的内容宽度。 */
.home-forecast .home-forecast-retry {
    margin: 0 var(--hf-inset) 16px;
    cursor: pointer;
}

.home-forecast-sections.is-reference-forecast {
    --fr-body: 15pt;
    --fr-heading: 24px;
}

@media (max-width: 500px) {
    .home-forecast-sections.is-reference-forecast {
        --fr-body: 14pt;
        --fr-heading: 14pt;
    }
}

.home-forecast-sections.is-reference-forecast .home-forecast-reference-block {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 5px auto;
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    color: #444;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    font-size: 15pt;
    font-size: var(--fr-body);
    font-weight: 700;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.home-forecast-sections.is-reference-forecast .home-forecast-block + .home-forecast-reference-block {
    margin-top: 5px;
}

.is-reference-forecast .home-forecast-reference-title {
    display: block;
    margin: 0;
    padding: 10px;
    border: 0;
    text-align: center;
    font-size: 24px;
    font-size: var(--fr-heading);
    font-weight: 700;
    line-height: 40px;
    letter-spacing: normal;
}

.is-reference-forecast .home-forecast-reference-title[data-reference-theme='b1'] {
    color: #f00;
    background: #18e0eb;
}

.is-reference-forecast .home-forecast-reference-title[data-reference-theme='b2'] {
    color: #25ff00;
    background: #af056a;
}

.is-reference-forecast .home-forecast-reference-title[data-reference-theme='b3'] {
    color: #25ff00;
    background: #dd78b4;
}

.is-reference-forecast .home-forecast-reference-title[data-reference-theme='b4'] {
    color: #e902c0;
    background: #031571;
}

.is-reference-forecast .home-forecast-reference-title[data-reference-theme='b5'] {
    color: #f77575;
    background: #18eb20;
}

.is-reference-forecast .home-forecast-reference-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.is-reference-forecast .home-forecast-reference-list > li {
    margin: 10px 0;
    padding: 0;
}

.is-reference-forecast .home-forecast-reference-list .home-forecast-reference-row {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    text-decoration: none;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

.is-reference-forecast a.home-forecast-reference-row:focus-visible {
    outline-offset: -2px;
}

.is-reference-forecast .home-forecast-reference-match {
    padding: 0;
    border-radius: 0;
    background: #ff0;
}

.is-reference-forecast .home-forecast-reference-block .home-forecast-reference-note,
.is-reference-forecast .home-forecast-reference-block .home-forecast-reference-empty {
    margin: 1em 0;
    text-align: center;
}

/* 每一期一肖一码，沿用紫色细线及三列的实际宽度。 */
.is-reference-forecast .home-forecast-reference-tier-table {
    width: 100%;
    border: 1px solid #7030a0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: #444;
    font: inherit;
}

.is-reference-forecast .home-forecast-reference-tier-table .home-forecast-reference-tier-period { width: 22.9246%; }
.is-reference-forecast .home-forecast-reference-tier-table .home-forecast-reference-tier-result { width: 18.558%; }

.is-reference-forecast .home-forecast-reference-tier-table th,
.is-reference-forecast .home-forecast-reference-tier-table td {
    padding: 7px 0;
    border: 1px solid #7030a0;
    color: #444;
    font: inherit;
    text-align: center;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

.is-reference-forecast .home-forecast-reference-tier-table thead th {
    color: #0070c0;
    font-family: "Microsoft YaHei", "Helvetica Neue", "PingFang SC", sans-serif;
}

.is-reference-forecast .home-forecast-reference-tier-table tbody th,
.is-reference-forecast .home-forecast-reference-tier-table tbody td:nth-child(2) {
    font-family: "Microsoft YaHei", "Helvetica Neue", "PingFang SC", sans-serif;
}

.is-reference-forecast .home-forecast-reference-tier-table tbody td:nth-child(2) { color: #f00; }
.is-reference-forecast .home-forecast-reference-tier-table tbody td:nth-child(3) { color: #000; }

/* 三期计划表依次显示期号、候选和结果。 */
.is-reference-forecast .home-forecast-reference-plan-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.is-reference-forecast .home-forecast-reference-plan-table td,
.is-reference-forecast .home-forecast-reference-plan-table th {
    padding: 7px 0;
    border: 1px solid #ddd7d7;
    font: inherit;
    text-align: center;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
}

.is-reference-forecast .home-forecast-reference-plan-table td:first-child,
.is-reference-forecast .home-forecast-reference-plan-table th:first-child {
    width: 25%;
    color: #c00000;
}

.is-reference-forecast .home-forecast-reference-plan-table td:last-child,
.is-reference-forecast .home-forecast-reference-plan-table th:last-child,
.is-reference-forecast .home-forecast-reference-plan-period,
.is-reference-forecast .home-forecast-reference-plan-result {
    width: 25%;
}

/* 精华资料保留左对齐及细分隔线，内容链接使用站内专题。 */
.is-reference-forecast .home-forecast-reference-directory {
    margin: 0;
    padding: 0;
    list-style: none;
}

.is-reference-forecast .home-forecast-reference-directory li {
    margin: 10px 0;
    padding-left: 20px;
    border-bottom: 1px solid #eae6e6;
    text-align: left;
}

.public-site .is-reference-forecast .home-forecast-reference-directory a { color: #c06; }
.public-site .is-reference-forecast .home-forecast-reference-directory a:focus-visible { outline-offset: 1px; }

.is-reference-forecast .home-forecast-reference-directory .home-forecast-reference-directory-period { color: #000; }

/* 一头一码复合栏保留四档头数及四组号码的对应布局。 */
.is-reference-forecast .home-forecast-reference-heads-issue {
    border: 1px solid #ebebeb;
    background: #fff;
    color: #000;
    font-size: 18px;
}

.is-reference-forecast .home-forecast-reference-heads-heading {
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid #ebebeb;
    background: #00a000;
    color: #ff0;
    font-size: 24px;
    text-align: center;
}

.is-reference-forecast .home-forecast-reference-heads-grid { display: flex; }

.is-reference-forecast .home-forecast-reference-heads-grid > ul {
    width: 50%;
    margin: 1em 0;
    padding: 0 0 0 40px;
    list-style: none;
}

.is-reference-forecast .home-forecast-reference-heads-grid > ul:first-child { border-right: 1px solid #ebebeb; }

.is-reference-forecast .home-forecast-reference-heads-grid > ul li {
    padding: 5px 0 5px 10px;
    border-bottom: 1px solid #ebebeb;
}

.is-reference-forecast .home-forecast-reference-heads-pick {
    color: #f00;
    font-size: 18px;
}

.is-reference-forecast .home-forecast-reference-heads-footer {
    margin: 0;
    padding: 5px 0;
    font-size: 24px;
    text-align: center;
}

.is-reference-forecast .home-forecast-reference-heads-recommended {
    color: #f00;
    font-size: xx-large;
}

@media (max-width: 720px) {
    .is-reference-forecast .home-forecast-reference-heads-issue { font-size: 16px; }
    .is-reference-forecast .home-forecast-reference-heads-heading,
    .is-reference-forecast .home-forecast-reference-heads-footer { font-size: 18px; }
    .is-reference-forecast .home-forecast-reference-heads-grid { display: block; }
    .is-reference-forecast .home-forecast-reference-heads-grid > ul { width: 100%; }
    .is-reference-forecast .home-forecast-reference-heads-grid > ul:first-child { border-right: 0; }
    .is-reference-forecast .home-forecast-reference-heads-grid > ul li { padding-left: 6px; }
}
