/* =================================
   Mobile Footer Styles
   移动端页脚优化样式
   ================================= */

@media (max-width: 768px) {
    
    /* 页脚基础优化 */
    footer {
        padding: 3rem 1rem 2rem 1rem !important;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a1a1a 100%) !important;
    }
    
    footer .max-w-7xl {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* 页脚网格布局 - 移动端单列 */
    footer .grid.grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* 公司信息区块 */
    footer .grid > div:first-child {
        text-align: center !important;
        padding: 2rem 1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    footer .grid > div:first-child .flex.items-center {
        justify-content: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    footer .grid > div:first-child img {
        height: 2.5rem !important;
        width: auto !important;
    }
    
    footer .grid > div:first-child .text-xl {
        font-size: 1.5rem !important;
        background: linear-gradient(45deg, #60a5fa, #34d399) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    footer .grid > div:first-child .text-xs {
        font-size: 0.875rem !important;
        color: #cbd5e1 !important;
    }
    
    footer .grid > div:first-child p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #e2e8f0 !important;
    }
    
    /* 链接分组 */
    footer .grid > div:not(:first-child) {
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 1.5rem !important;
        border-radius: 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* 分组标题 */
    footer h4 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        color: #f1f5f9 !important;
        position: relative !important;
        padding-bottom: 0.75rem !important;
    }
    
    footer h4::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 3rem !important;
        height: 2px !important;
        background: linear-gradient(90deg, #60a5fa, #34d399) !important;
        border-radius: 1px !important;
    }
    
    /* 链接列表 */
    footer ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    footer ul li {
        width: 100% !important;
        text-align: center !important;
    }
    
    footer ul li a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 0.75rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #cbd5e1 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    footer ul li a::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    footer ul li a:hover::before {
        left: 100% !important;
    }
    
    footer ul li a:hover {
        background: rgba(96, 165, 250, 0.15) !important;
        border-color: rgba(96, 165, 250, 0.3) !important;
        color: #60a5fa !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 16px rgba(96, 165, 250, 0.2) !important;
    }
    
    /* 联系信息特殊样式 */
    footer .space-y-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        align-items: center !important;
    }
    
    footer .space-y-3 > div {
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }
    
    footer .space-y-3 > div:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }
    
    footer .space-y-3 i {
        font-size: 1.25rem !important;
        margin-right: 0.75rem !important;
        color: #60a5fa !important;
    }
    
    footer .space-y-3 span {
        font-size: 1rem !important;
        color: #e2e8f0 !important;
        word-break: break-all !important;
    }
    
    /* 版权信息 */
    footer .border-t {
        border-color: rgba(255, 255, 255, 0.15) !important;
        padding-top: 2rem !important;
        margin-top: 2rem !important;
    }
    
    footer .border-t p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        color: #94a3b8 !important;
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 0.75rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    footer .border-t a {
        color: #60a5fa !important;
        text-decoration: underline !important;
        text-decoration-color: rgba(96, 165, 250, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    footer .border-t a:hover {
        color: #34d399 !important;
        text-decoration-color: rgba(52, 211, 153, 0.5) !important;
    }
}

/* 超小屏幕进一步优化 */
@media (max-width: 480px) {
    footer {
        padding: 2rem 0.75rem 1.5rem 0.75rem !important;
    }
    
    footer .grid.grid-cols-4 {
        gap: 2rem !important;
    }
    
    footer .grid > div:first-child {
        padding: 1.5rem 0.75rem !important;
    }
    
    footer .grid > div:not(:first-child) {
        padding: 1.25rem 0.75rem !important;
    }
    
    footer h4 {
        font-size: 1.125rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    footer ul li a {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.9375rem !important;
    }
    
    footer .space-y-3 > div {
        padding: 0.875rem !important;
    }
    
    footer .space-y-3 span {
        font-size: 0.875rem !important;
    }
}

/* 添加页脚动画效果 */
@media (max-width: 768px) {
    footer .grid > div {
        animation: fadeInUp 0.6s ease-out !important;
        animation-fill-mode: both !important;
    }
    
    footer .grid > div:nth-child(1) { animation-delay: 0.1s !important; }
    footer .grid > div:nth-child(2) { animation-delay: 0.2s !important; }
    footer .grid > div:nth-child(3) { animation-delay: 0.3s !important; }
    footer .grid > div:nth-child(4) { animation-delay: 0.4s !important; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
