/* impamro 页脚：Toprak 风格 — 顶角半圆 + 居中 logo 半嵌 */
:root {
    --footer-logo-size: 104px;
    --footer-logo-overhang: calc(var(--footer-logo-size) / 2);
    --footer-content-gap: 56px;
    --footer-top-spacing: calc(var(--footer-logo-overhang) + var(--footer-content-gap));
}

.footer {
    position: relative;
    margin-top: var(--footer-top-spacing);
    color: rgba(255, 255, 255, 0.82);
    overflow: visible;
    background: transparent;
}

.footer-shell {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 88px;
    border-top-right-radius: 88px;
    background: #0f172a;
}

.footer-bg {
    position: absolute;
    inset: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    filter: saturate(0.85);
}

.footer-overlay {
    position: absolute;
    inset: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(15, 23, 42, 0.96) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.footer--has-bg .footer-overlay {
    background:
        linear-gradient(180deg, rgba(8, 15, 26, 0.78) 0%, rgba(8, 15, 26, 0.9) 50%, rgba(8, 15, 26, 0.95) 100%),
        radial-gradient(ellipse at 50% 20%, rgba(16, 185, 129, 0.14) 0%, transparent 60%);
}

.footer-top-logo {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: var(--footer-logo-size);
    height: var(--footer-logo-size);
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.22),
        0 0 0 6px rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.footer-top-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    text-decoration: none;
}

.footer-top-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-top-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.footer-inner {
    position: relative;
    z-index: 1;
    padding: 72px 24px 28px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

.footer-section h3 {
    color: #6ee7b7;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.footer-section p.english {
    opacity: 0.88;
    font-size: 13px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-bottom a {
    color: #6ee7b7;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-version {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.footer-supplier-login {
    margin-top: 14px;
}

.footer-supplier-login a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(110, 231, 183, 0.45);
    color: #6ee7b7;
    text-decoration: none;
    font-size: 13px;
}

.footer-supplier-login a:hover {
    background: rgba(110, 231, 183, 0.12);
    text-decoration: none;
}

/* 分页/列表底栏：避免被页脚 logo 遮挡 */
.pagination-wrapper,
.pagination-bar,
.list-pagination {
    position: relative;
    z-index: 3;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-shell {
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

@media (max-width: 500px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --footer-logo-size: 76px;
        --footer-content-gap: 40px;
    }

    .footer {
        margin-top: var(--footer-top-spacing);
    }

    .footer-shell {
        border-top-left-radius: 48px;
        border-top-right-radius: 48px;
    }

    .footer-top-logo {
        width: 76px;
        height: 76px;
        padding: 10px;
        box-shadow:
            0 6px 20px rgba(15, 23, 42, 0.2),
            0 0 0 4px rgba(255, 255, 255, 0.92);
    }

    .footer-top-logo-text {
        font-size: 22px;
    }

    .footer-content {
        display: none !important;
    }

    .footer-inner {
        padding: 48px 16px calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .footer-bottom {
        margin-top: 0;
        padding-top: 16px;
        padding-bottom: 8px;
    }

    .footer-version {
        margin-bottom: 4px;
    }

    .footer-bottom .footer-mobile-hide {
        display: none !important;
    }

    .footer-supplier-login {
        display: none !important;
    }
}
