/* ========== Footer ========== */
.footer {
    background: #052050;
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    white-space: pre-line;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ========== 社交图标区域 ========== */
.footer-social {
    display: flex;
    gap: 15px;
    position: relative;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
}

.social-item {
    position: relative;
    cursor: pointer;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 200%;
    color: #052050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-item:hover .social-icon-btn {
    transform: translateY(-3px);
}

/* 悬停弹出的二维码卡片 */
.social-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 180px;
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.social-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.social-item:hover .social-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-popover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.social-popover p {
    margin: 0;
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    white-space: nowrap;
}

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

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: auto;
}

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

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
    text-decoration: none;
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
