/*
 * 通用页脚移动端适配 CSS
 * 作者: WHMCSHome
 * 创建时间: 2025-09-01
 * 设计原则: 蓝色渐变、卡片化、触摸友好、现代简洁
 */

/* ================================
   移动设备主要适配 (768px及以下)
   ================================ */
@media (max-width: 768px) {
    
    /* ================================
       页脚主体结构
       ================================ */
    footer#footer {
        margin-top: 0 !important;
        overflow: hidden !important;
    }
    
    /* 页脚顶部区域 - 渐变背景设计 */
    footer .footer-top {
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
        padding: 40px 0 30px 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* 添加装饰性波浪效果 */
    footer .footer-top::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        animation: rotate 40s linear infinite;
    }
    
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    footer .footer-top .container {
        position: relative;
        z-index: 1;
        padding: 0 15px !important;
    }
    
    /* ================================
       Logo和公司信息区域
       ================================ */
    footer .footer-top .col-md-3:first-child {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Logo样式 */
    footer .logo img {
        width: 180px !important;
        height: auto !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
        filter: brightness(1.1) !important;
    }
    
    /* 联系信息卡片 */
    footer .footer-nav-wrap:first-child {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 25px 20px !important;
        margin-bottom: 25px !important;
        animation: fadeInUp 0.5s ease;
    }
    
    footer .footer-nav-wrap:first-child p {
        color: #FFFFFF !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
        opacity: 0.95 !important;
    }
    
    /* ================================
       社交媒体图标
       ================================ */
    footer .social-list {
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 20px !important;
        padding: 0 !important;
    }
    
    footer .social-list .list-inline-item {
        margin: 0 !important;
    }
    
    footer .social-list a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        color: #FFFFFF !important;
        font-size: 20px !important;
        transition: all 0.3s ease !important;
    }
    
    footer .social-list a:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* 隐藏桌面版工具提示 */
    footer .tooltip-item {
        display: none !important;
    }
    
    /* ================================
       导航链接区域 - 手风琴式布局
       ================================ */
    footer .col-md-9 {
        width: 100% !important;
    }
    
    footer .footer-top-wrap {
        margin: 0 !important;
    }
    
    /* 导航栏目容器 */
    footer .col-md-3.col-sm-6 {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    /* 导航栏目卡片样式 */
    footer .footer-nav-wrap {
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        animation: fadeInUp 0.6s ease backwards;
    }
    
    /* 动画延迟 */
    footer .col-md-3.col-sm-6:nth-child(1) .footer-nav-wrap { animation-delay: 0.1s; }
    footer .col-md-3.col-sm-6:nth-child(2) .footer-nav-wrap { animation-delay: 0.2s; }
    footer .col-md-3.col-sm-6:nth-child(3) .footer-nav-wrap { animation-delay: 0.3s; }
    footer .col-md-3.col-sm-6:nth-child(4) .footer-nav-wrap { animation-delay: 0.4s; }
    
    /* 栏目标题 - 去掉点击展开功能 */
    footer .footer-nav-wrap h4 {
        margin: 0 !important;
        padding: 18px 20px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    footer .footer-nav-wrap h4:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 导航列表 - 始终显示 */
    footer .footer-nav-wrap .nav {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 10px 10px !important;
        background: transparent !important;
    }
    
    /* 导航链接样式 - 双列布局 */
    footer .nav-item {
        width: 50% !important;
        margin: 0 !important;
        padding: 5px !important;
        box-sizing: border-box !important;
    }
    
    footer .nav-link {
        padding: 12px 10px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 15px !important;
        text-decoration: none !important;
        display: block !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    
    footer .nav-link:hover {
        color: #FFFFFF !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-2px) !important;
    }
    
    /* ================================
       页脚底部版权区域
       ================================ */
    footer .footer-bottom {
        background: #0052CC !important;
        padding: 20px 15px !important;
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    footer .footer-bottom p,
    footer .footer-bottom span {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 5px !important;
    }
    
    footer .footer-bottom a {
        color: #FFFFFF !important;
        text-decoration: underline !important;
    }
    
    /* ================================
       返回顶部按钮
       ================================ */
    .back-to-top-btn {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999 !important;
    }
    
    .back-to-top {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        background: linear-gradient(135deg, #0169FD 0%, #0052CC 100%) !important;
        border-radius: 8px !important;
        color: #FFFFFF !important;
        font-size: 20px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(1, 105, 253, 0.3) !important;
        transition: all 0.3s ease !important;
        opacity: 0;
        visibility: hidden;
    }
    
    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }
    
    .back-to-top:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(1, 105, 253, 0.4) !important;
        color: #FFFFFF !important;
    }
    
    /* ================================
       动画效果
       ================================ */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ================================
       所有导航都显示，不需要默认展开设置
       ================================ */
}

/* ================================
   小屏手机设备优化 (480px及以下)
   ================================ */
@media (max-width: 480px) {
    /* 更紧凑的间距 */
    footer .footer-top {
        padding: 30px 0 20px 0 !important;
    }
    
    footer .logo img {
        width: 150px !important;
    }
    
    footer .footer-nav-wrap:first-child {
        padding: 20px 15px !important;
    }
    
    footer .footer-nav-wrap h4 {
        padding: 15px !important;
        font-size: 16px !important;
        border-radius: 8px;
    }
    
    footer .nav-link {
        padding: 10px 8px !important;
        font-size: 14px !important;
    }
    
    footer .social-list a {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    footer .footer-bottom {
        padding: 15px 10px !important;
    }
    
    footer .footer-bottom p,
    footer .footer-bottom span {
        font-size: 12px !important;
    }
}

/* ================================
   注意: JavaScript交互已移除
   所有导航菜单默认展开显示
   ================================ */