.footer {
    background-color: #ebebeb;
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-list li a:hover {
    color: var(--g-color-default);
}

.footer-contact-section {
    width: 280px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
}

.contact-label svg {
    color: #666;
}

.contact-value {
    padding-left: 24px;
    color: #333;
}

.contact-value.phone {
    font-size: 15px;
    font-weight: 500;
}

.contact-value.email {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-value.email .copy-btn {
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.contact-value.email .copy-btn:hover {
    color: var(--g-color-default);
}

.contact-value.wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.contact-value.wechat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 微信公众号二维码弹层 */
.wechat-qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.wechat-qr-modal.show {
    display: flex;
}

.wechat-qr-panel {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: wechat-qr-pop 0.18s ease-out;
}

@keyframes wechat-qr-pop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wechat-qr-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.wechat-qr-close:hover {
    color: #333;
}

.wechat-qr-image {
    width: 240px;
    height: 240px;
    max-width: 70vw;
    max-height: 70vw;
    object-fit: contain;
    background: #fafafa;
    border-radius: 6px;
}

.wechat-qr-tip {
    color: #333;
    font-size: 14px;
    text-align: center;
}

/* ============= 移动端响应式 ============= */
@media (max-width: 992px) {
    .footer {
        padding: 28px 0;
    }
    .footer-container {
        flex-wrap: wrap;
        padding: 0 20px;
        gap: 24px;
    }
    .footer-col {
        flex: 0 0 calc(50% - 12px);
        min-width: 0;
    }
    .footer-contact-section {
        width: 100%;
        margin-top: 4px;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 24px 0;
    }
    .footer-container {
        flex-direction: column;
        padding: 0 16px;
        gap: 20px;
    }
    .footer-col {
        flex: 1 1 100%;
        width: 100%;
    }
    .footer-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .footer-list li a {
        font-size: 13px;
    }
    .footer-contact-section {
        width: 100%;
        gap: 14px;
    }
    .contact-label {
        font-size: 13px;
    }
    .contact-value {
        font-size: 14px;
        word-break: break-all;
    }
    .contact-value.phone,
    .contact-value.email {
        font-size: 14px;
    }
    .wechat-qr-panel {
        padding: 20px 22px 18px;
    }
    .wechat-qr-image {
        width: 200px;
        height: 200px;
    }
}

/* 底部版权与备案信息 */
.footer-copyright {
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 16px 40px 0;
    border-top: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.footer-copyright a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-copyright a:hover {
    color: var(--g-color-default);
}

/* 悬浮客服按钮 */
.floating-contact-btn {
    position: fixed;
    right: 50px;
    bottom: 30%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-contact-btn:hover {
    transform: scale(1.08);
}

.floating-contact-btn img {
    width: 56px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .floating-contact-btn {
        right: 16px;
        bottom: 20%;
        width: 50px;
        height: 50px;
    }
    .floating-contact-btn img {
        width: 50px;
        height: auto;
    }
}