/**
 * Footer Styles
 * 
 * @package Saifeng
 * @since 1.0.0
 */

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg-color, var(--gradient-dark));
    padding: 80px 80px 40px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

/* ===== FOOTER BRAND ===== */
.footer-brand {
    max-width: 380px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e50e6, #25bdff);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.footer-logo svg {
    width: 36px;
    height: 36px;
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
}

.footer-desc {
    font-size: 14px;
    color: var(--footer-text-color, var(--gray-400));
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ===== FOOTER CONTACT INFO ===== */
.footer-contact-info {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 社交媒体悬浮颜色 */
.footer-social-link[title*="微信"]:hover { background: #07C160; }
.footer-social-link[title*="微博"]:hover { background: #E6162D; }
.footer-social-link[title*="抖音"]:hover { background: #000; }
.footer-social-link[title*="QQ"]:hover { background: #1296DB; }
.footer-social-link[title*="阿里"]:hover { background: #FF6A00; }
.footer-social-link[title*="LinkedIn"]:hover { background: #0A66C2; }
.footer-social-link[title*="Facebook"]:hover { background: #1877F2; }
.footer-social-link[title*="Twitter"]:hover { background: #000; }
.footer-social-link[title*="YouTube"]:hover { background: #FF0000; }
.footer-social-link[title*="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-link[title*="WhatsApp"]:hover { background: #25D366; }

/* 微信公众号弹窗 */
.social-wechat-popup {
    cursor: pointer;
}

.social-wechat-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    width: 120px;
    height: 120px;
    z-index: 100;
}

.social-wechat-popup:hover::after {
    transform: translateX(-50%) scale(1);
}

.social-wechat-popup[data-qr]::after {
    content: '';
    background-image: var(--qr-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

/* ===== FOOTER COLUMNS ===== */
.footer-column-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

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

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

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--cyan-glow);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--gray-400);
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--cyan-glow);
}

/* ===== FOOTER BEIAN (备案信息) ===== */
.footer-beian {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.beian-link {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beian-link:hover {
    color: var(--cyan-glow);
}

.police-badge-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .footer {
        padding: 60px 40px 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 20px 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-beian {
        justify-content: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 16px 20px;
    }
}
