/* ===== 共享页脚（与首页 footer 保持一致） ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer {
    background: #111827;
    color: #fff;
    padding: 64px 0 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand .logo-text { color: #fff; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon img { width: 36px; height: 36px; border-radius: 8px; display: block; object-fit: cover; }
.logo-text { font-size: 20px; font-weight: 700; }

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: #fff; }

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 13px; }

.social-links { display: flex; gap: 12px; }

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 微信二维码弹窗 ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active { display: flex; animation: footerFadeIn 0.3s ease; }
@keyframes footerFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }

.login-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    z-index: 5;
}

.login-header { margin-bottom: 18px; }

.login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 14px;
}
.login-icon svg { width: 26px; height: 26px; }
.login-title { font-size: 1.3rem; font-weight: 700; color: #1f2937; }
.login-subtitle { font-size: 0.9rem; color: #6b7280; margin-top: 4px; }

.wx-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.wx-qrcode img { width: 100%; height: 100%; object-fit: cover; }
.wx-tip { font-size: 0.85rem; color: #6b7280; margin-top: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer { padding: 48px 0 28px; }
}