/* 更新维护公告：固定在屏幕最底端，覆盖在所有视图之上。 */
.gtn-maintenance-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147482000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 18px;
    background: #ffffff;
    border-top: 1px solid rgba(198, 40, 40, 0.45);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.22);
    color: #c62828;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;
    pointer-events: none;
    -webkit-text-size-adjust: 100%;
}

.gtn-maintenance-banner[hidden] {
    display: none;
}

.gtn-maintenance-banner.is-visible {
    animation: gtn-maintenance-slide-in 240ms ease-out;
}

.gtn-maintenance-message {
    max-width: min(960px, 92vw);
    white-space: normal;
    word-break: break-word;
}

.gtn-maintenance-clock {
    color: #b71c1c;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@keyframes gtn-maintenance-slide-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 横幅盖在底部灰色状态条（.status-bar，32px）上面，把那一栏遮住；
   界面本身不再整体上移，只把底部三个浮层抬起来，免得被横幅压住。 */
html.gtn-maintenance-active .home-footer,
html.gtn-maintenance-active #gtn-tips,
html.gtn-maintenance-active #phase-chat-panel {
    translate: 0 calc(-1 * var(--gtn-maintenance-h, 40px));
}

@media (max-width: 640px) {
    .gtn-maintenance-banner {
        font-size: 13px;
        padding: 8px 12px;
    }
}
