/* ============================================
   底部 footer 样式 - 全站统一版
   ============================================ */

   .footer {
    background: #f8f9fa;
    color: #555;
    padding: 50px 0 20px;
    margin-top: 50px;
    font-size: 13px;
    border-top: 1px solid #e9ecef;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 信任标识区 ========== */
.footer-trust {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.footer-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.footer-trust .trust-icon {
    font-size: 32px;
}

.footer-trust .trust-content {
    display: flex;
    flex-direction: column;
}

.footer-trust .trust-content strong {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.footer-trust .trust-content span {
    font-size: 12px;
    color: #888;
}

/* ========== 主链接区 ========== */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.link-column {
    flex: 1;
    min-width: 160px;
}

.link-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column ul li {
    margin-bottom: 10px;
}

.link-column ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

.link-column ul li a:hover {
    color: #DD302D;
}

/* 联系方式列 */
.contact-column .contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.contact-column .contact-list .contact-icon {
    font-size: 16px;
    min-width: 24px;
}

.contact-column .contact-list a {
    color: #DD302D;
    text-decoration: none;
}

.contact-column .contact-list a:hover {
    text-decoration: underline;
}

/* 社交图标 */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e9ecef;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    color: #666;
}

.social-links .social-icon:hover {
    background: #DD302D;
    color: white;
    transform: translateY(-2px);
}

/* ========== 底部版权区 ========== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 10px;
}

.copyright {
    font-size: 12px;
    color: #888;
}

.copyright a {
    color: #DD302D;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.payment-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icon {
    font-size: 12px;
    color: #666;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 20px;
}

/* ========== PC端客服卡片（始终显示） ========== */
.customer-service-card {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block !important;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #DD302D;
    color: white;
}

.card-icon {
    font-size: 18px;
    margin-right: 8px;
}

.card-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.card-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.card-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-body {
    padding: 16px;
    display: block;
}

.card-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.card-contact-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-contact-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.card-contact-info {
    flex: 1;
}

.card-contact-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-contact-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.card-contact-value a {
    color: #DD302D;
    text-decoration: none;
}

.card-contact-value a:hover {
    text-decoration: underline;
}

.card-qr {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-qr img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.card-qr span {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* PC端返回顶部按钮（卡片底部） */
.card-back-to-top {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #DD302D;
    font-size: 13px;
    font-weight: 500;
}

.card-back-to-top:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.back-to-top-icon {
    font-size: 16px;
}

.back-to-top-text {
    font-size: 13px;
}

/* ========== 手机端浮动按钮（默认隐藏，992px以下显示） ========== */
.mobile-float-buttons {
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 24px;
}

.service-mobile-btn {
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #DD302D;
}

.service-mobile-btn:hover {
    transform: scale(1.05);
    background: #DD302D;
    color: #ffffff;
}

.back-to-top-mobile {
    background: #DD302D;
    color: white;
    border: none;
    font-size: 24px;
    display: none;
}

.back-to-top-mobile:hover {
    background: #b02623;
    transform: translateY(-3px);
}

/* ========== 弹窗样式（手机端使用） ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #DD302D;
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-image img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: block;
}

.qr-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.modal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.modal-contact-item:last-child {
    border-bottom: none;
}

.modal-contact-icon {
    font-size: 20px;
    width: 36px;
    text-align: center;
}

.modal-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-contact-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-contact-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.modal-contact-value a {
    color: #DD302D;
    text-decoration: none;
}

.modal-contact-value a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 12px 20px 20px;
    text-align: center;
}

.modal-footer button {
    background: #DD302D;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-footer button:hover {
    background: #b02623;
}

/* ========== 响应式 ========== */
/* PC端（≥993px）：显示客服卡片，隐藏手机按钮 */
@media (min-width: 993px) {
    .customer-service-card {
        display: block !important;
    }
    .mobile-float-buttons {
        display: none !important;
    }
}

/* 平板/手机端（≤992px）：隐藏客服卡片，显示手机按钮 */
@media (max-width: 992px) {
    .customer-service-card {
        display: none !important;
    }
    .mobile-float-buttons {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 30px;
    }
    .footer-trust {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }
    .footer-trust .trust-item {
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 25px;
        padding-bottom: 25px;
    }
    .link-column {
        text-align: center;
    }
    .link-column h3 {
        margin-bottom: 12px;
    }
    .contact-column .contact-list li {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .payment-icons {
        justify-content: center;
    }
    
    .mobile-float-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    .footer-trust .trust-icon {
        font-size: 24px;
    }
    .footer-trust .trust-content strong {
        font-size: 12px;
    }
    .footer-trust .trust-content span {
        font-size: 10px;
    }
    .link-column h3 {
        font-size: 14px;
    }
    .link-column ul li a {
        font-size: 12px;
    }
    .modal-content {
        max-width: 300px;
    }
    .qr-image img {
        width: 120px;
        height: 120px;
    }
    .mobile-float-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}