/**
 * 全站底欄 — 資料平台底欄樣式
 * 規格：docs/developer_ui_redesign_comparison.md §7
 *
 * 三欄結構（桌機）→ 品牌橫跨（平板）→ 單欄（手機）。
 * 內含 .status-pill 用於右側資料來源 / 最近更新顯示。
 */

.site-footer {
    margin-top: 22px;
    border: 1px solid rgba(220, 228, 234, 0.95);
    border-radius: 8px;
    background: rgba(34, 49, 63, 0.96);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 42px rgba(31, 45, 55, 0.10);
    overflow: hidden;
    font-family: "Microsoft JhengHei", "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.site-footer * {
    box-sizing: border-box;
}

.site-footer a {
    text-decoration: none;
    color: inherit;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1.25fr) minmax(170px, 0.62fr) minmax(190px, 0.74fr) minmax(210px, 0.78fr);
    gap: 22px;
    padding: 24px;
}

.site-footer .footer-brand {
    display: grid;
    gap: 12px;
    align-content: start;
}

.site-footer .footer-logo-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.site-footer .footer-logo-line img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.site-footer .footer-brand p {
    max-width: 24rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.7;
}

.site-footer .footer-section {
    display: grid;
    gap: 12px;
    align-content: start;
}

.site-footer .footer-section h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer .footer-links a,
.site-footer .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.8rem;
    font-weight: 650;
}

.site-footer .footer-links a i,
.site-footer .status-pill i {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
}

.site-footer .status-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.site-footer .status-stack {
    display: grid;
    gap: 8px;
}

.site-footer .status-pill {
    justify-content: space-between;
    width: 100%;
}

.site-footer .status-pill strong {
    color: #fff;
    font-weight: 700;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.76rem;
}

.site-footer .footer-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer .footer-bottom-links {
    gap: 14px;
}

.site-footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.62);
}

@media (hover: hover) {
    .site-footer .footer-links a:hover,
    .site-footer .footer-bottom-links a:hover {
        background: rgba(255, 255, 255, 0.11);
        color: #fff;
        text-decoration: none;
    }

    .site-footer .footer-bottom-links a:hover {
        background: transparent;
        text-decoration: underline;
    }
}

@media (max-width: 1180px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .site-footer {
        margin-top: 14px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px 18px;
    }
}
