.migration-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #002663 0%, #003380 100%);
    color: #fff;
    z-index: 2000;
    box-shadow: 0 2px 12px rgba(0, 38, 99, 0.25);
    animation: bannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.migration-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    padding: 11px 20px;
}

.migration-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.migration-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.migration-banner-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.migration-banner-text .banner-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.migration-banner-url {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 1px 8px;
    font-weight: 700;
    font-family: monospace;
    font-size: 13px;
    color: #fff;
    transition: background 0.2s;
    text-decoration: none;
}

.migration-banner-url:hover {
    background: rgba(255, 255, 255, 0.28);
    text-decoration: underline;
}

.migration-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.migration-banner-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 橫幅顯示時，body 往下推 */
body.banner-visible {
    padding-top: 56px;
}

@media (max-width: 480px) {
    .migration-banner-inner {
        padding: 10px 14px;
    }
    .migration-banner-text {
        font-size: 12px;
    }
    .migration-banner-text strong {
        font-size: 13px;
    }
    body.banner-visible {
        padding-top: 68px;
    }
}
