/**
 * Shared professional footer — works with modern-b2b.css variables + vanilla fallback.
 */
.site-footer.site-footer-pro {
    background: var(--gray-900, #111827);
    color: var(--gray-300, #d1d5db);
    margin-top: 2rem;
    padding-top: 2.25rem;
}

.site-footer-pro .footer-pro-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.15fr) repeat(4, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-pro-brand {
    min-width: 0;
}

.footer-pro-logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 10px;
}

.footer-pro-logo-img {
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

.footer-pro-brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
}

.footer-pro-brand-tagline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.footer-pro-about {
    font-size: 12px;
    line-height: 1.65;
    color: var(--gray-400, #9ca3af);
    margin: 0;
}

.footer-pro-accent {
    color: var(--primary-color, #ea580c);
    font-weight: 600;
    text-decoration: none;
}

.footer-pro-accent:hover {
    color: var(--primary-dark, #c2410c);
    text-decoration: underline;
}

.footer-pro-heading {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    padding-bottom: 8px;
}

.footer-pro-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color, #ea580c);
}

.footer-pro-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-pro-links li {
    margin-bottom: 6px;
}

.footer-pro-links a {
    font-size: 12px;
    color: var(--gray-400, #9ca3af);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-pro-links a:hover {
    color: var(--primary-color, #ea580c);
}

.footer-pro-bottom,
.site-footer-pro .footer-bottom.footer-pro-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b1220;
    padding: 14px 0;
    margin-top: 0;
}

.footer-pro-bottom-inner {
    text-align: center;
}

.footer-pro-bottom p {
    margin: 0;
    font-size: 12px;
    color: var(--gray-400, #9ca3af);
}

.footer-pro-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-pro-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 1199.98px) {
    .site-footer-pro .footer-pro-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-pro-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .site-footer-pro .footer-pro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* index.php (Alibaba theme): primary accent is --ali-orange */
body.page-index .site-footer.site-footer-pro .footer-pro-heading::after {
    background: var(--ali-orange, #f47321);
}
body.page-index .footer-pro-accent {
    color: var(--ali-orange, #f47321);
}
body.page-index .site-footer.site-footer-pro .footer-pro-links a:hover {
    color: var(--ali-orange, #f47321);
}
