/**
 * Footer 页脚组件样式
 * 文件名：footer.css
 * 功能：网站页脚样式，保持设计一致性
 */

/* 主容器样式 */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
}

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

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 主要内容区域 */
.footer__main {
    margin-bottom: 3rem;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 栏目样式 */
.footer__column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer__column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    border-radius: 1px;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link-item {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.footer__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    transition: width 0.3s ease;
}

.footer__link:hover {
    color: #60a5fa;
    transform: translateX(8px);
}

.footer__link:hover::before {
    width: 100%;
}

/* 底部区域 */
.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* 版权信息 */
.footer__copyright {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__copyright {
        text-align: left;
    }
}

/* 社交媒体链接 */
.footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.5);
}

.footer__social-link:hover {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.footer__social-icon {
    font-size: 1.125rem;
}

.footer__social-text {
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer__container {
        padding: 0 1rem;
    }
    
    .footer__main {
        margin-bottom: 2rem;
    }
    
    .footer__columns {
        gap: 2rem;
    }
    
    .footer__column-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer__link {
        font-size: 0.95rem;
    }
    
    .footer__social-link {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer__columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__social {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer__social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}