/* 详情页与首页共用玩法入口的颜色和格子布局。 */
.fv-site .fv-forecast-nav {
    --fv-nav-red: #ba2035;
    --fv-nav-hover: #a91b30;
    --fv-nav-active: #8d1328;
    --fv-nav-accent: #fff1a9;
    --fv-nav-rule: rgba(255, 255, 255, .15);
    min-width: 0;
    background: #ba2035;
    background: var(--fv-nav-red);
    color: #fff;
}

.fv-site .fv-forecast-shortcuts {
    position: static;
    box-shadow: none;
}

.fv-site .fv-forecast-shortcuts > a:last-child {
    border-right: 0;
}

.fv-site .fv-forecast-more {
    border-top: 1px solid var(--fv-nav-rule);
}

.fv-site .fv-forecast-more > summary {
    min-height: 36px;
    padding: 7px 12px;
    background: var(--fv-nav-hover);
    cursor: pointer;
    font-size: .84rem;
    font-weight: 760;
    line-height: 1.5;
}

.fv-site .fv-forecast-more[open] > summary,
.fv-site .fv-forecast-more > summary:hover {
    background: var(--fv-nav-active);
}

.fv-site .fv-forecast-more > summary[data-current] {
    background: var(--fv-nav-active);
    color: var(--fv-nav-accent);
    box-shadow: inset 0 -2px #f6db85;
}

.fv-site .fv-forecast-more > summary:focus-visible,
.fv-site .fv-forecast-more-links > a:focus-visible {
    outline: 2px solid var(--fv-nav-accent);
    outline-offset: -3px;
}

.fv-site .fv-forecast-more-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--fv-nav-rule);
}

.fv-site .fv-forecast-more-links > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 4px;
    border-right: 1px solid var(--fv-nav-rule);
    border-bottom: 1px solid var(--fv-nav-rule);
    color: #fff;
    font-size: .81rem;
    font-weight: 760;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.fv-site .fv-forecast-more-links > a:hover { background: var(--fv-nav-hover); }

.fv-site .fv-forecast-more-links > a[aria-current='page'] {
    background: var(--fv-nav-active);
    color: var(--fv-nav-accent);
    box-shadow: inset 0 -2px #f6db85;
}

@media (max-width: 620px) {
    .fv-site .fv-forecast-more-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
    .fv-site .fv-forecast-more-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 开奖区和下方详情内容共享同一道左右边线。 */
.fv-site .fv-detail-draw,
.fv-site .fv-detail-shell .fv-detail {
    margin-inline: -1px;
}

.fv-site .fv-detail-shell .fv-detail { padding-inline: 0; }

.fv-site .fv-detail-draw .draw-heading h2 {
    font-size: clamp(1.36rem, 3.2vw, 2.22rem);
    font-weight: 750;
    line-height: 1.2;
}

.fv-site .fv-recent-issues {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    padding: 8px clamp(12px, 2.4vw, 26px);
    border-top: 1px solid var(--pub-line);
    border-bottom: 1px solid var(--pub-line);
    background: var(--pub-soft);
}

.fv-site .fv-recent-issues-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 5.75rem));
    min-width: 0;
    gap: 4px;
}

.fv-site .fv-recent-issues-list > a,
.fv-site .fv-recent-return {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 4px 6px;
    border: 1px solid var(--pub-line);
    border-radius: 7px;
    background: var(--pub-surface);
    color: var(--pub-ink);
    font-size: .8rem;
    font-weight: 690;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.fv-site .fv-recent-issues-list > a:hover,
.fv-site .fv-recent-return:hover {
    border-color: var(--pub-accent);
}

.fv-site .fv-recent-issues-list > a[aria-current='page'] {
    border-color: var(--pub-accent);
    background: var(--pub-accent);
    color: var(--pub-accent-fg);
}

.fv-site .fv-recent-return {
    color: var(--pub-accent);
    white-space: nowrap;
}

@media (max-width: 540px) {
    .fv-site .fv-recent-issues { grid-template-columns: minmax(0, 1fr); }
    .fv-site .fv-recent-issues-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .fv-site .fv-recent-issues-list > a {
        padding-inline: 2px;
        font-size: clamp(.68rem, 3.4vw, .8rem);
    }
    .fv-site .fv-recent-return { justify-self: end; }
}

@media (max-width: 390px) {
    .fv-site .fv-recent-issues { padding-inline: 10px; }
}

@media (min-width: 391px) and (max-width: 430px) {
    .fv-site .fv-detail-draw,
    .fv-site .fv-detail-shell .fv-detail { margin-inline: 3px; }
    .fv-site .fv-recent-issues { padding-inline: 16px; }
}

/* 首页栏目的排序和配色沿用，详情区的内容收在现有容器内。 */
.fv-site #fv-current-issue,
.fv-site #fv-detail {
    scroll-margin-top: 8px;
    scroll-margin-block-start: 8px;
}

.fv-site .fv-reference-content {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.fv-site .fv-reference-content .home-forecast-reference-block {
    margin: 0 auto;
}

.fv-site .fv-reference-content .fv-reference-rule {
    max-width: 720px;
    margin: 8px auto 0;
    padding: 0 4px;
    color: var(--pub-muted);
    font-size: .84rem;
    text-align: center;
    overflow-wrap: anywhere;
}

.fv-site .fv-detail > .fv-reference-content {
    grid-column: 1 / -1;
}

.fv-site .fv-detail > .fv-detail-copy {
    grid-template-columns: minmax(0, 1fr);
}
