/* 复用 home_pc.css 的 #page-root / footer 骨架，本文件只覆盖位置与本页内容
 * 概率公示页（PC）：独立新页面，不带首页顶部导航；正文 + footer 在 .prob-scroll 内一起滚动 */

.prob-scroll {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    background:
        linear-gradient(180deg, rgba(242, 255, 132, 0.05) 0%, rgba(242, 255, 132, 0) 520px),
        #1e2423;
}

.prob-main {
    min-height: calc(100% - 352px);
    padding: 120px var(--edge-gap, 60px) 160px;
    display: flex;
    justify-content: center;
}
.prob-inner {
    width: 1640px;
    max-width: 100%;
}

/* 页面标题：与首页区块标题（.s4-section-title）同款竖线 + 大字 */
.prob-title {
    display: flex;
    align-items: flex-start;
    font-weight: inherit;
}
.prob-title-bar {
    width: 3.5px;
    height: 54.25px;
    margin-top: 6.9px;
    background: url('../img/common/character/ui/title-bar.svg') no-repeat center / contain;
    flex-shrink: 0;
}
.prob-title-text {
    margin-left: 19px;
    margin-top: 6.5px;
    font-size: 55px;
    font-weight: 700;
    color: #fefefe;
    line-height: 1.1;
    font-family: 'Inter', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
}

/* ----- 正文（富文本：目录 + 分区概率表） ----- */
.prob-content {
    margin-top: 56px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    word-break: keep-all;
}

/* 目录：확률 공시 대상。页面下滚时吸顶（.prob-content 内 sticky），
 * 吸顶后加底色 / 阴影（.is-stuck，JS 切换）；高度不变，避免内容跳动；
 * 定位回显：当前浏览模块对应的按钮高亮（.is-active，JS 切换） */
.prob-index {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 22px 32px 24px;
    background: rgba(30, 36, 35, 0.6);
    border: 1px solid rgba(242, 255, 132, 0.25);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prob-index.is-stuck {
    background: rgba(24, 29, 28, 0.97);
    border-color: rgba(242, 255, 132, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.prob-index-title {
    font-size: 22px;
    font-weight: 700;
    color: #f2ff84;
    line-height: 1;
}
.prob-index-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.prob-index-list a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(242, 255, 132, 0.6);
    color: #f2ff84;
    font-size: 20px;
    line-height: 1.3;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.prob-index-list a:hover,
.prob-index-list a.is-active {
    background: #f2ff84;
    border-color: #f2ff84;
    color: #141414;
}

/* 分区 */
.prob-section {
    margin-top: 96px;
    scroll-margin-top: calc(var(--prob-nav-h, 130px) + 32px);
}
.prob-h2 {
    padding-left: 20px;
    border-left: 4px solid #f2ff84;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}
.prob-group {
    margin-top: 56px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #f2ff84;
    scroll-margin-top: calc(var(--prob-nav-h, 130px) + 32px);
}
.prob-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 44px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    scroll-margin-top: calc(var(--prob-nav-h, 130px) + 32px);
}
.prob-caption::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #f2ff84;
    flex-shrink: 0;
}

/* 概率表 */
.prob-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}
.prob-h2 + .prob-table-wrap {
    margin-top: 32px;
}
.prob-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 20px;
    line-height: 1.5;
}
.prob-table th,
.prob-table td {
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}
.prob-table th {
    background: rgba(242, 255, 132, 0.08);
    color: #f2ff84;
    font-weight: 700;
}
.prob-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}
.prob-table tbody tr:hover td {
    background: rgba(242, 255, 132, 0.05);
}
.prob-table .num {
    width: 18%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.prob-table.is-wide .num {
    width: auto;
}

/* 回到顶部 */
.prob-top {
    position: absolute;
    right: var(--edge-gap, 60px);
    bottom: 60px;
    z-index: 600;
    width: 72px;
    height: 72px;
    border: 1px solid #f2ff84;
    background: rgba(14, 16, 16, 0.85);
    color: #f2ff84;
    font-family: 'BebasNeueProExpanded', 'Inter', sans-serif;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.16s ease, color 0.16s ease;
}
.prob-top.is-visible {
    opacity: 1;
    visibility: visible;
}
.prob-top:hover {
    background: #f2ff84;
    color: #141414;
}

/* footer：首页是滚到最后一屏才滑出的浮层，本页改为跟在正文后面的普通块 */
.prob-footer-wrap.site-footer-overlay {
    position: relative;
    top: auto;
    transform: none;
    pointer-events: auto;
}
