/* 底部信息样式 */
.footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: flex;
    gap: 80px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.footer-left {
    flex: 0 0 150px;
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 12px;
    color: #bdc3c7;
}

.footer-center {
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #f7fafc;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 12px;
}

.link-group a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.link-group a:hover {
    color: #EF4444;
    padding-left: 8px;
}

.footer-right {
    flex: 0 0 250px;
}

.contact-info h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #f7fafc;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-info p {
    font-size: 15px;
    color: #cbd5e0;
    margin-bottom: 12px;
    line-height: 1.6;
}

.hotline {
    font-size: 24px !important;
    color: #EF4444 !important;
    font-weight: 700 !important;
    margin: 16px 0 !important;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 5px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(239, 68, 68, 0.6);
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestions div {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-suggestions div:hover {
    background-color: #f8f9fa;
}

.search-suggestions div:last-child {
    border-bottom: none;
}

/* 表单错误提示 */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

/* 图片懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 桌面端隐藏移动端专用元素 */
.mobile-quick-actions {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        gap: 40px;
    }
}

/* 移动端专用页脚设计 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
        background: #2c3e50;
        color: white;
    }
    
    .footer-content {
        display: block !important;
        text-align: center;
        max-width: 100%;
    }
    
    /* 移动端页脚重新布局：联系方式优先 */
    .footer-right {
        order: 1;
        width: 100% !important;
        margin-bottom: 25px;
        padding: 20px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }
    
    .contact-info h4 {
        font-size: 18px !important;
        margin-bottom: 15px;
        color: #fff;
    }
    
    .contact-info p {
        font-size: 13px;
        margin-bottom: 5px;
        color: #ecf0f1;
    }
    
    /* 移动端热线电话可点击 */
    .hotline {
        font-size: 22px !important;
        font-weight: bold;
        color: #e74c3c !important;
        display: block;
        margin: 10px 0;
        padding: 12px;
        background: rgba(255,255,255,0.15);
        border-radius: 8px;
        text-decoration: none;
        border: 2px solid rgba(231, 76, 60, 0.3);
        transition: all 0.3s;
    }
    
    .hotline:hover,
    .hotline:active {
        background: rgba(231, 76, 60, 0.2);
        border-color: #e74c3c;
        transform: translateY(-1px);
    }
    
    /* 移动端添加快速操作按钮 */
    .mobile-quick-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 15px 0;
    }
    
    .quick-action-btn {
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
        background: rgba(255,255,255,0.1);
        color: #ecf0f1;
        text-decoration: none;
        border-radius: 20px;
        font-size: 12px;
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s;
    }
    
    .quick-action-btn:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: #e74c3c;
        color: white;
    }
    
    .quick-action-btn i {
        margin-right: 5px;
        font-size: 14px;
    }
    
    /* 二维码区域简化 */
    .footer-left {
        order: 2;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .qr-code {
        display: inline-block;
        padding: 15px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }
    
    .qr-code img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }
    
    .qr-code p {
        font-size: 12px;
        margin-top: 8px;
        color: #bdc3c7;
    }
    
    /* 链接区域紧凑布局 */
    .footer-center {
        order: 3;
        width: 100% !important;
    }
    
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .link-group {
        text-align: center;
    }
    
    .link-group h4 {
        font-size: 14px !important;
        margin-bottom: 10px;
        color: #e74c3c;
        font-weight: 600;
    }
    
    .link-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .link-group ul li {
        margin-bottom: 8px;
    }
    
    .link-group a {
        color: #bdc3c7;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s;
    }
    
    .link-group a:hover {
        color: #e74c3c;
    }
    
    /* 版权信息 */
    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .copyright {
        text-align: center;
    }
    
    .copyright p {
        font-size: 11px;
        color: #95a5a6;
        margin-bottom: 5px;
        line-height: 1.4;
    }
    
    /* 返回顶部按钮优化 */
    .back-to-top {
        width: 50px;
        height: 50px;
        background: #e74c3c !important;
        border: none;
        border-radius: 25px;
        color: white;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
        transition: all 0.3s;
    }
    
    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    }
}

/* 超小屏幕页脚优化 */
@media (max-width: 480px) {
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-right {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .contact-info h4 {
        font-size: 16px !important;
    }
    
    .hotline {
        font-size: 20px !important;
    }
    
    /* 链接区域改为2列 */
    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .link-group h4 {
        font-size: 13px !important;
        margin-bottom: 8px;
    }
    
    .link-group a {
        font-size: 11px;
    }
    
    /* 二维码更小 */
    .qr-code {
        padding: 12px;
    }
    
    .qr-code img {
        width: 60px;
        height: 60px;
    }
    
    .qr-code p {
        font-size: 10px;
        margin-top: 5px;
    }
    
    /* 版权信息更小 */
    .copyright p {
        font-size: 10px;
    }
    
    /* 返回顶部按钮适配小屏 */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
}
