/* css/footer-main.css - 页尾样式 */

/* 页尾主容器 */
.footer-main {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 60px;
}

.footer-main-content {
    padding: 50px 0 30px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 公司信息区域 */
.footer-main-company h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-main-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.footer-main-social {
    display: flex;
    gap: 15px;
}

.footer-main-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-main-social-link:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* 链接区域 */
.footer-main-links h4 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-main-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

.footer-main-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main-link-item {
    margin-bottom: 12px;
}

.footer-main-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-main-link:hover {
    color: #3498db;
}

.footer-main-link i {
    font-size: 12px;
    opacity: 0.7;
}

/* 联系信息 */
.footer-main-contact h4 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-main-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

.footer-main-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main-contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-main-contact-icon {
    width: 20px;
    text-align: center;
    color: #3498db;
    flex-shrink: 0;
}

.footer-main-contact-text {
    color: #bdc3c7;
    line-height: 1.5;
}

/* 底部栏 */
.footer-main-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main-copyright {
    color: #95a5a6;
    font-size: 14px;
}

.footer-main-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-main-bottom-link {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-main-bottom-link:hover {
    color: #3498db;
}

/* 返回顶部按钮 */
.footer-main-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.footer-main-back-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-main-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-main-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-main-back-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 页尾加载动画 */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-main {
    animation: footerFadeIn 0.6s ease;
}