/* 公告列表页 announcements.html：历史公告 + 分页（参考资讯站列表：左 [标签]+标题 / 右日期；品牌金×深绿撞色） */

.ann-main .oh-wrap {
    padding-left: var(--oh-page-gutter);
    padding-right: var(--oh-page-gutter);
}

.ann-main {
    padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    min-height: calc(100vh - 120px);
}

.ann-main__inner {
    max-width: min(52rem, 100%);
    margin: 0 auto;
}

/* —— 历史公告：单卡片，顶栏 hd + 下列表（对标竞品 .hd，无搜索/面包屑） —— */
.ann-history__panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(45, 55, 45, 0.12);
    box-shadow:
        0 4px 22px rgba(35, 50, 40, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* 卡片内顶栏：与列表同一容器，下以金线分隔 */
.ann-history__hd {
    padding: clamp(0.95rem, 2.8vw, 1.15rem) clamp(1.05rem, 3vw, 1.3rem);
    background: linear-gradient(145deg, var(--oh-brand-green-deep) 0%, #2f3d2a 48%, #354832 100%);
    border-bottom: 2px solid var(--oh-brand-gold);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ann-history__hd-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    margin-bottom: 0.35rem;
}

.ann-history__page-title {
    margin: 0;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f0d65a;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 对标竞品 .en */
.ann-history__en {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(240, 214, 90, 0.72);
    line-height: 1;
    white-space: nowrap;
}

.ann-history__hint {
    margin: 0;
    font-size: clamp(0.86rem, 2vw, 0.92rem);
    line-height: 1.5;
    color: rgba(255, 248, 230, 0.88);
}

.ann-history__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ann-history__item {
    margin: 0;
    border-bottom: 1px solid #ededed;
}

.ann-history__item:last-child {
    border-bottom: none;
}

.ann-history__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.75rem;
    padding: 1rem 1.15rem 1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.ann-history__link:hover {
    background: rgba(240, 214, 90, 0.14);
}

.ann-history__link:hover .ann-history__title {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* 左：[标签] + 标题 */
.ann-history__mainline {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.55rem 0.75rem;
}

.ann-history__tag {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #000;
    font-variant-numeric: tabular-nums;
}

/* 列表行标题（与页头 .ann-history__page-title 分离） */
.ann-history__item .ann-history__title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ann-history__date {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.ann-history__item--empty .ann-history__link {
    pointer-events: none;
    cursor: default;
    justify-content: center;
    color: #000;
    font-size: 14px;
}

.ann-history__item--empty .ann-history__date {
    display: none;
}

/* —— 分页 —— */
.ann-pager {
    margin-top: 1.1rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(74, 92, 64, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ann-pager__meta {
    margin: 0 0 0.75rem;
    width: 100%;
    text-align: right;
    font-size: 0.88rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ann-pager__meta strong {
    color: #fff;
    font-weight: 800;
}

.ann-pager__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0.5rem 0.75rem;
}

.ann-pager__btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--oh-brand-green-deep);
    background: #fff;
    border: 1px solid rgba(210, 177, 22, 0.45);
    border-radius: 8px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.ann-pager__btn:hover:not(:disabled) {
    background: rgba(240, 214, 90, 0.2);
    border-color: var(--oh-brand-gold);
    color: var(--oh-brand-gold-deep);
}

.ann-pager__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ann-pager__btn--go {
    background: linear-gradient(180deg, #e8c82a 0%, var(--oh-brand-gold) 45%, var(--oh-brand-gold-deep) 100%);
    color: #2a3218;
    border-color: rgba(154, 130, 16, 0.65);
    font-weight: 700;
}

.ann-pager__btn--go:hover:not(:disabled) {
    background: linear-gradient(180deg, #f0d65a 0%, #e8c82a 50%, var(--oh-brand-gold) 100%);
    color: #1f2610;
}

.ann-pager__jump {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.45rem;
    font-size: 0.86rem;
    color: var(--oh-brand-green-deep);
}

.ann-pager__jump-label,
.ann-pager__jump-suffix {
    white-space: nowrap;
}

.ann-pager__input {
    width: 3.5rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.86rem;
    font-family: inherit;
    text-align: center;
    border: 1px solid rgba(210, 177, 22, 0.5);
    border-radius: 8px;
    color: var(--oh-brand-green-deep);
    background: #fff;
}

.ann-pager__input:focus {
    outline: 2px solid rgba(240, 214, 90, 0.75);
    outline-offset: 1px;
    border-color: var(--oh-brand-gold);
}

@media (max-width: 520px) {
    .ann-history__link {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.9rem 1rem;
    }

    .ann-history__mainline {
        width: 100%;
        align-items: flex-start;
    }

    .ann-history__item .ann-history__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }

    .ann-history__tag {
        margin-top: 0.12rem;
    }

    .ann-history__date {
        align-self: flex-end;
    }

    .ann-pager__jump {
        width: auto;
        max-width: 100%;
    }
}
