/* ===== 页脚样式 ===== */
.footer {
    background: #303133;
    color: var(--text-light);
    padding: 60px 0 24px;
    margin-top: auto;
    position: relative;
}

/* 页脚顶部装饰波浪 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(114, 112, 83, 0.1) 0%, transparent 100%);
    clip-path: polygon(0 30%, 5% 25%, 10% 30%, 15% 25%, 20% 30%, 25% 25%, 30% 30%, 35% 25%, 40% 30%, 45% 25%, 50% 30%, 55% 25%, 60% 30%, 65% 25%, 70% 30%, 75% 25%, 80% 30%, 85% 25%, 90% 30%, 95% 25%, 100% 30%, 100% 100%, 0 100%);
}

/* 页脚底部装饰图案 */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(114, 112, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-brand);
}

/* 页脚Logo */
.footer-logo {
    position: relative;
    margin-bottom: 24px;
    width: 180px;
    height: 60px;
    margin-left: -12px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 隐藏文本logo */
.footer-logo .logo-cn,
.footer-logo .logo-en {
    display: none;
}

/* 联系信息 */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-item .icon {
    flex-shrink: 0;
    font-size: 16px;
}

/* 页脚链接 */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--brand-light);
    padding-left: 4px;
}

/* 社交媒体 */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    cursor: pointer;
}

.social-link:hover {
    color: var(--brand-light);
    padding-left: 8px;
}

.social-link-icon {
    font-size: 18px;
}

.social-icon-img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 社交二维码弹窗 */
.social-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.social-link:hover .social-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.social-qrcode img {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 8px;
}

.social-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

/* 页脚底部 */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--brand-light);
}

.update-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo .logo-cn {
        font-size: 20px;
    }

    .footer-logo .logo-en {
        font-size: 12px;
    }

    .contact-item {
        font-size: 13px;
    }
}

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

    .footer-content {
        gap: 24px;
    }
}
