/* 首页弹窗公告：与社区弹窗同一套配色与圆角语言，内容由管理员后台实时发布。 */
.home-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(11, 32, 43, 0);
    backdrop-filter: blur(0);
    opacity: 0;
    transition: opacity .22s ease, background-color .22s ease, backdrop-filter .22s ease;
}

.home-popup[hidden] { display: none; }
.home-popup.is-open { opacity: 1; background: rgba(11, 32, 43, .58); backdrop-filter: blur(3px); }

.home-popup__panel {
    transform: translateY(14px) scale(.97);
    transition: transform .24s cubic-bezier(.2, .7, .3, 1);
}
.home-popup__panel.is-open { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .home-popup, .home-popup__panel { transition: none; }
}

.home-popup__panel {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    width: min(100%, 860px);
    max-height: min(86vh, 720px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(9, 40, 55, .4);
}

.home-popup__rail {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 26px 20px;
    background: linear-gradient(170deg, #2b8f8c, #1c6f74);
    color: #eafaf7;
}

.home-popup__sigil { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; font-size: 16px; }
.home-popup__rail strong { font-size: 19px; letter-spacing: .04em; }
.home-popup__rail span { color: rgba(234, 250, 247, .82); font-size: 10px; letter-spacing: .18em; }
.home-popup__rail i { display: block; width: 34px; height: 2px; margin: 4px 0; background: rgba(255, 255, 255, .5); }
.home-popup__rail small { color: rgba(234, 250, 247, .78); font-size: 11px; line-height: 1.6; }

.home-popup__body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 26px 26px 22px;
    overflow-y: auto;
    color: var(--community-ink, #173b4d);
}

.home-popup__kicker { margin: 0; color: #238f8e; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.home-popup__title { margin: 0; font-size: 24px; line-height: 1.35; }
.home-popup__image { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; background: var(--community-surface, #f5fbfb); }
.home-popup__text { margin: 0; color: var(--community-copy, #55747d); font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.home-popup__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }

.home-popup__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: #1f7f7c;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.home-popup__button--ghost { background: #eaf4f3; color: #1f7f7c; }

.home-popup__nav { display: flex; align-items: center; gap: 10px; margin-top: 2px; color: var(--community-muted, #55747d); font-size: 11px; }
.home-popup__nav span { margin-right: auto; font-variant-numeric: tabular-nums; }
.home-popup__nav button { min-height: 30px; padding: 0 12px; border: 1px solid #d5e4e0; border-radius: 8px; background: #fff; color: #1f7f7c; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.home-popup__nav button:disabled { opacity: .45; cursor: default; }

.home-popup__mute { display: flex; align-items: center; gap: 7px; color: var(--community-muted, #55747d); font-size: 11px; cursor: pointer; }
.home-popup__mute input { width: 15px; height: 15px; accent-color: #1f7f7c; }
.home-popup__close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(23, 59, 77, .08); color: var(--community-ink, #173b4d); font-size: 15px; cursor: pointer; }
.home-popup__close:hover { background: rgba(23, 59, 77, .16); }

@media (max-width: 720px) {
    .home-popup__panel { grid-template-columns: 1fr; max-height: 88vh; }
    .home-popup__rail { grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; padding: 16px 18px; }
    .home-popup__rail i, .home-popup__rail small { display: none; }
    .home-popup__body { padding: 20px 18px; }
    .home-popup__title { font-size: 20px; }
}
