/* ========== 桌面端页脚（仅联系信息 + 社交媒体） ========== */

.site-footer {
    background: #1a2c5a;
    color: #999;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact + Social Links */
.footer-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.footer-contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-contact-info strong {
    color: #fff;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-item {
    position: relative;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.8);
    border-color: #2a5298;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 电商平台品牌色 */
.social-link.social-tianmao {
    border-color: rgba(255, 80, 0, 0.5);
    color: #ff5000;
}

.social-link.social-tianmao:hover {
    background: #ff5000;
    border-color: #ff5000;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.4);
}

.social-link.social-jd {
    border-color: rgba(225, 37, 27, 0.5);
    color: #e1251b;
}

.social-link.social-jd:hover {
    background: #e1251b;
    border-color: #e1251b;
    color: #fff;
    box-shadow: 0 6px 20px rgba(225, 37, 27, 0.4);
}

.social-link.social-pinduoduo {
    border-color: rgba(224, 46, 36, 0.5);
    color: #e02e24;
}

.social-link.social-pinduoduo:hover {
    background: #e02e24;
    border-color: #e02e24;
    color: #fff;
    box-shadow: 0 6px 20px rgba(224, 46, 36, 0.4);
}

/* ========== 二维码弹出层（挂在 body 下，不被任何父容器裁切） ========== */
.qr-popup {
    display: none;
    position: fixed;
    z-index: 2147483647;          /* 浏览器最大 z-index */
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    pointer-events: auto;
}

.qr-popup.qr-popup--down {
    display: block;
}

.qr-popup.qr-popup--up {
    display: block;
}

/* 箭头 — 向下弹出时箭头朝上（指向上方图标）*/
.qr-popup--down .qr-popup-arrow {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

/* 箭头 — 向上弹出时箭头朝下（指向下方图标）*/
.qr-popup--up .qr-popup-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.qr-popup-img {
    display: block;
    width: 130px;
    height: 130px;
}

.qr-popup-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* Copyright Info */
.footer-bottom {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-icp,
.footer-admin {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp:hover,
.footer-admin:hover {
    color: #2a5298;
}

/* Mobile Copyright */
.mobile-footer-copyright {
    display: none;
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 12px 15px;
    background: #1a2c5a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-footer-copyright p {
    margin: 0;
}

.mobile-footer-copyright .footer-icp,
.mobile-footer-copyright .footer-admin {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-footer-copyright .footer-icp:hover,
.mobile-footer-copyright .footer-admin:hover {
    color: #2a5298;
}

/* ========== 移动端固定底部行动栏（全新设计）========== */
.sticky-footer-bar {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 62px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 -4px 24px rgba(99,102,241,0.12), 0 8px 32px rgba(0,0,0,0.08);
    z-index: 99990;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.6);
}

/* 入场动画 */
@keyframes slideUpBar {
    from { transform: translateY(80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sticky-footer-bar { animation: slideUpBar 0.5s cubic-bezier(0.16,1,0.3,1) both; }

/* 加载后延迟一小段，让页面先稳定 */
@media (max-width: 992px) {
    .sticky-footer-bar {
        display: flex !important;
        animation-delay: 0.3s;
    }
    body {
        padding-bottom: 82px !important;
    }
}

.sticky-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    gap: 3px;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    padding: 6px 2px;
}

/* 分隔线改为更柔和的渐变线 */
.sticky-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, transparent, #e8e8f0 40%, #e8e8f0 60%, transparent);
}

/* 悬停/激活反馈 */
.sticky-bar-item:hover,
.sticky-bar-item:active {
    background: rgba(99,102,241,0.06);
}

/* 点击涟漪 */
.sticky-bar-item:active::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 14px;
    background: rgba(99,102,241,0.08);
    animation: rippleIn 0.35s ease-out;
}
@keyframes rippleIn {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(1); opacity: 0; }
}

/* 图标样式优化 */
.sticky-bar-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.sticky-bar-item:hover .sticky-bar-icon,
.sticky-bar-item:active .sticky-bar-icon {
    transform: scale(1.15) translateY(-1px);
}

/* 图标弹跳动画 */
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}
.sticky-bar-item:nth-child(1):hover .sticky-bar-icon { animation: iconBounce 0.45s ease; }
.sticky-bar-item:nth-child(3):hover .sticky-bar-icon { animation: iconBounce 0.45s ease; }

.sticky-bar-label {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}
.sticky-bar-item:hover .sticky-bar-label,
.sticky-bar-item:active .sticky-bar-label {
    color: #2a5298;
}

/* ========== 主操作按钮（预约验配）—— 浮动突出设计 ========== */
.sticky-bar-item-primary {
    background: linear-gradient(135deg, #2a5298 0%, #7c54c9 100%);
    color: #fff;
    border-radius: 16px;
    margin: 5px 3px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.4), 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* 主按钮悬浮上浮 */
.sticky-bar-item-primary:hover,
.sticky-bar-item-primary:active {
    background: linear-gradient(135deg, #7a8cf0 0%, #8e62d8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102,126,234,0.5), 0 4px 8px rgba(0,0,0,0.12);
}

/* 脉冲呼吸动画 */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(102,126,234,0.4), 0 0 0 0 rgba(102,126,234,0.2); }
    50% { box-shadow: 0 4px 24px rgba(102,126,234,0.5), 0 0 0 6px rgba(102,126,234,0.08); }
}
.sticky-bar-item-primary {
    animation: pulseGlow 3s ease-in-out infinite;
}

.sticky-bar-item-primary::after { display: none; }

.sticky-bar-item-primary .sticky-bar-icon {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.sticky-bar-item-primary .sticky-bar-label {
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

/* 主按钮点击回弹 */
@keyframes pressPop {
    0% { transform: scale(1); }
    40% { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.sticky-bar-item-primary:active:not(:hover) {
    animation: pressPop 0.3s ease;
}

/* Tablet ≤992px */
@media (max-width: 992px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-contact-bar {
        padding: 18px 0;
    }

    .footer-contact-info {
        gap: 20px;
        font-size: 13px;
    }

    .footer-social {
        gap: 10px;
    }

    .social-link {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
    /* Hide original footer on mobile */
    .site-footer {
        display: none !important;
    }

    /* Show mobile copyright */
    .mobile-footer-copyright {
        display: block !important;
    }

    .footer-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-contact-info {
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Small Mobile ≤375px */
@media (max-width: 375px) {
    .sticky-bar-icon {
        font-size: 18px;
    }

    .sticky-bar-label {
        font-size: 10px;
    }
}
