/* 首页强制公告二级弹窗：完整详情 + 右下角「已知道」 */
.xl-home-force-notice {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.xl-home-force-notice.is-open {
    display: flex;
}

.xl-home-force-notice-mask {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 28, 0.72);
    backdrop-filter: blur(2px);
}

.xl-home-force-notice-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100vw - 28px));
    max-height: min(86vh, 860px);
    border-radius: 18px;
    border: 1px solid rgba(120, 170, 255, 0.28);
    background: #0d1730;
    background: linear-gradient(165deg, #12203d 0%, #0c1528 55%, #0a1222 100%);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    color: #e8eef8;
}

.xl-home-force-notice-head {
    flex: 0 0 auto;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(140, 170, 255, 0.14);
}

.xl-home-force-notice-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(240, 180, 41, 0.55);
    background: rgba(240, 180, 41, 0.16);
    color: #ffd978;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.xl-home-force-notice-title {
    margin: 0;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 800;
    line-height: 1.35;
    color: #f5f8ff;
}

.xl-home-force-notice-meta {
    margin: 8px 0 0;
    color: rgba(190, 210, 240, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.xl-home-force-notice-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 8px;
    -webkit-overflow-scrolling: touch;
}

.xl-home-force-notice-summary {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(104, 174, 255, 0.2);
    background: rgba(64, 143, 255, 0.1);
    color: rgba(230, 240, 255, 0.95);
    font-size: 14px;
    line-height: 1.7;
}

.xl-home-force-notice-content {
    color: rgba(225, 236, 255, 0.94);
    font-size: 15px;
    line-height: 1.85;
}

.xl-home-force-notice-content p {
    margin: 0 0 1em;
}

.xl-home-force-notice-content .notice-section {
    margin: 1.1em 0;
    padding: 0.95em 1.1em;
    border: 1px solid rgba(104, 174, 255, 0.18);
    border-left: 3px solid rgba(84, 187, 255, 0.72);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(64, 143, 255, 0.1), rgba(64, 143, 255, 0.035));
}

.xl-home-force-notice-content .notice-section-title {
    display: block;
    margin-bottom: 0.45em;
    color: #fff;
    font-weight: 750;
}

.xl-home-force-notice-content .notice-signature {
    margin-top: 1.4em;
    text-align: right;
    color: rgba(200, 220, 255, 0.75);
}

.xl-home-force-notice-content a {
    color: #63caff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.xl-home-force-notice-content img {
    max-width: 100%;
    height: auto;
}

.xl-home-force-notice-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(140, 170, 255, 0.14);
    background: rgba(8, 14, 28, 0.55);
}

.xl-home-force-notice-link {
    margin-right: auto;
    color: rgba(170, 200, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
}

.xl-home-force-notice-link:hover,
.xl-home-force-notice-link:focus {
    color: #9fd0ff;
    text-decoration: underline;
}

.xl-home-force-notice-ack {
    min-width: 120px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #2f6bff;
    background: linear-gradient(135deg, #2f6bff 0%, #20b8a8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(47, 107, 255, 0.28);
}

.xl-home-force-notice-ack:hover,
.xl-home-force-notice-ack:focus {
    filter: brightness(1.05);
}

.xl-home-force-notice-ack:active {
    transform: translateY(1px);
}

html[data-theme="light"] .xl-home-force-notice-dialog {
    background: #ffffff;
    border-color: rgba(76, 121, 205, 0.22);
    color: #162b52;
}

html[data-theme="light"] .xl-home-force-notice-title {
    color: #142b55;
}

html[data-theme="light"] .xl-home-force-notice-meta,
html[data-theme="light"] .xl-home-force-notice-link {
    color: #51647f;
}

html[data-theme="light"] .xl-home-force-notice-content {
    color: #243656;
}

html[data-theme="light"] .xl-home-force-notice-foot {
    background: rgba(245, 248, 255, 0.96);
}

body.xl-home-force-notice-open {
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    .xl-home-force-notice {
        padding: 10px;
        align-items: flex-end;
    }

    .xl-home-force-notice-dialog {
        width: 100%;
        max-height: min(90vh, 920px);
        border-radius: 16px 16px 12px 12px;
    }

    .xl-home-force-notice-foot {
        flex-wrap: wrap;
    }

    .xl-home-force-notice-link {
        width: 100%;
        margin: 0 0 4px;
        order: 2;
    }

    .xl-home-force-notice-ack {
        width: 100%;
        order: 1;
        min-height: 46px;
    }
}
