/* 全站 ICP 备案与法务页脚 */
.site-compliance-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-compliance-disclaimer {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.site-compliance-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    padding-top: 0;
    border-top: none;
}

.site-icp-line {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #78909c;
    text-align: center;
}

.site-icp-badge,
.site-icp-line a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #78909c;
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.site-icp-badge:hover,
.site-icp-line a:hover {
    color: var(--ds-brand-light, #2d5a9e);
    text-decoration: underline;
    background: transparent;
}

.site-icp-date,
.site-icp-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* —— 宝塔式紧凑底栏 —— */
:root {
    --site-footer-bar-height: 28px;
}

.site-footer-bar {
    flex-shrink: 0;
    width: 100%;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.1;
    text-align: left;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.site-footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 26px;
    padding: 4px 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer-bar__brand {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
}

.site-footer-bar__brand a,
.site-footer-bar__icp {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer-bar__brand a:hover,
.site-footer-bar__icp:hover {
    color: #6b7280;
    text-decoration: underline;
}

.site-footer-bar__vsep {
    display: inline-block;
    width: 1px;
    height: 9px;
    background: #d1d5db;
    margin: 0 10px;
    flex-shrink: 0;
    align-self: center;
}

.site-footer-bar__nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.site-footer-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    color: #9ca3af;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.1;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.15s;
}

.site-footer-bar__link:hover {
    color: #6b7280;
}

.site-footer-bar__link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.9;
}

.site-footer-bar--legacy .site-footer-bar__inner--legacy {
    justify-content: center;
    min-height: 32px;
    padding: 6px 16px;
}

.app-compliance-footer.site-footer-bar {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 0;
}

/* App 工作台：底栏固定视口底部（桌面端；移动端由 app-mobile 隐藏） */
body:not(.app-mobile-shell) .app-main-shell > .app-compliance-footer.site-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin-top: 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body:not(.app-mobile-shell) .app-main-shell {
    padding-bottom: calc(6px + var(--site-footer-bar-height) + env(safe-area-inset-bottom, 0));
}

.app-main-shell > .app-compliance-footer.site-footer-bar {
    margin-top: 10px;
    padding: 0;
}

.auth-site-footer.site-footer-bar {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.22);
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.42);
}

.auth-site-footer.site-footer-bar .site-footer-bar__brand,
.auth-site-footer.site-footer-bar .site-footer-bar__link {
    color: rgba(255, 255, 255, 0.42);
}

.auth-site-footer.site-footer-bar .site-footer-bar__brand a:hover,
.auth-site-footer.site-footer-bar .site-footer-bar__icp:hover,
.auth-site-footer.site-footer-bar .site-footer-bar__link:hover {
    color: rgba(255, 255, 255, 0.72);
}

.auth-site-footer.site-footer-bar .site-footer-bar__vsep {
    background: rgba(255, 255, 255, 0.14);
}

body > footer.site-footer-bar {
    border-top: 1px solid var(--line, #e5e7eb);
    padding: 0;
    text-align: left;
    color: #9ca3af;
    font-size: 12px;
}

[data-theme="dark"] .site-footer-bar,
body.theme-dark .site-footer-bar {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: var(--ds-border, rgba(255, 255, 255, 0.08));
    color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .site-footer-bar__brand,
[data-theme="dark"] .site-footer-bar__link,
body.theme-dark .site-footer-bar__brand,
body.theme-dark .site-footer-bar__link {
    color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .site-footer-bar__brand a:hover,
[data-theme="dark"] .site-footer-bar__icp:hover,
[data-theme="dark"] .site-footer-bar__link:hover,
body.theme-dark .site-footer-bar__brand a:hover,
body.theme-dark .site-footer-bar__icp:hover,
body.theme-dark .site-footer-bar__link:hover {
    color: rgba(255, 255, 255, 0.68);
}

[data-theme="dark"] .site-footer-bar__vsep,
body.theme-dark .site-footer-bar__vsep {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .site-icp-line,
body.theme-dark .site-icp-line {
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .site-icp-badge,
[data-theme="dark"] .site-icp-line a {
    color: rgba(255, 255, 255, 0.42);
    background: transparent;
    border: none;
}

[data-theme="dark"] .site-icp-badge:hover,
[data-theme="dark"] .site-icp-line a:hover {
    color: #8eb8e8;
    background: transparent;
}

[data-theme="dark"] .site-icp-date,
[data-theme="dark"] .site-icp-hint,
body.theme-dark .site-icp-date,
body.theme-dark .site-icp-hint {
    color: rgba(255, 255, 255, 0.38);
}

.app-compliance-footer .site-compliance-inner {
    gap: 0;
    align-items: center;
    padding: 0;
}

.app-compliance-footer .site-compliance-inner--icp-only {
    min-height: 0;
}

.app-compliance-footer .site-compliance-inner--icp-only .site-compliance-meta {
    border-top: none;
    padding-top: 0;
    margin: 0;
}

.app-compliance-footer .site-compliance-meta,
.site-compliance-meta--center {
    justify-content: center;
    width: 100%;
}

.app-compliance-footer .site-icp-badge {
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth-footer .site-icp-line {
    margin-top: 0;
    margin-bottom: 14px;
}

.auth-site-footer .site-footer-bar__inner {
    justify-content: center;
}

.auth-site-footer .site-compliance-meta {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    gap: 6px 10px;
}

.auth-compliance-disclaimer {
    margin: 0 auto 4px;
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
    max-width: 42rem;
}

.auth-compliance-disclaimer strong {
    color: rgba(255, 255, 255, 0.78);
}

.auth-legal-line {
    margin: 0 auto;
    font-size: 0.64rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.36);
    text-align: center;
    max-width: 640px;
}

.admin-site-footer.site-footer-bar {
    max-width: 1400px;
    margin: 0 auto;
    background: #f0f2f5;
}

.admin-site-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 16px;
}

.admin-site-footer .site-footer-bar {
    border-radius: 0;
}

.site-page-footer {
    margin-top: auto;
    padding: 0;
}

.site-page-footer__hint {
    margin: 0;
    padding: 10px 16px 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
    background: transparent;
}

.auth-site-footer-wrap,
.auth-legal-stack {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.auth-legal-stack {
    text-align: center;
}

body.auth-page-body > .auth-site-footer.site-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}

body.auth-page-body {
    padding-bottom: calc(var(--site-footer-bar-height) + var(--auth-legal-stack-height, 68px) + env(safe-area-inset-bottom, 0));
}

.admin-site-footer .admin-site-legal-hint {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

.auth-legal-hint {
    margin-bottom: 14px;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

body > footer .site-compliance-meta {
    justify-content: center;
    border-top-color: rgba(120, 144, 156, 0.18);
}

@media (max-width: 768px) {
    body.auth-page-body {
        --site-footer-bar-height: 50px;
        --auth-legal-stack-height: 82px;
    }

    .site-footer-bar__inner {
        justify-content: flex-start;
        padding: 8px 12px;
        row-gap: 6px;
    }

    .site-footer-bar__brand {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        font-size: 11px;
    }

    .site-footer-bar__inner > .site-footer-bar__vsep:first-of-type {
        display: none;
    }

    .site-footer-bar__nav {
        width: 100%;
        justify-content: center;
        row-gap: 4px;
    }

    .site-footer-bar__vsep {
        margin: 0 10px;
    }
}
