/* Footer 样式 */

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col .contact-info li {
    display: flex;
    gap: 10px;
}

.footer-col .contact-info i {
    margin-top: 3px;
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.social-icon i {
    color: var(--white);
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.1);
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.facebook:hover {
    background: #2d4373;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4);
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.linkedin:hover {
    background: #005885;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #d17d2b 0%, #c95830 25%, #b81f35 50%, #a81d53 75%, #9a1472 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.twitter:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.social-icon.pinterest {
    background: #bd081c;
}

.social-icon.pinterest:hover {
    background: #8c0615;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(189, 8, 28, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(9, 54, 132, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p,
    .footer-col li {
        font-size: 13px;
    }

    /* 社交媒体图标 - 移动端 */
    .social-links {
        gap: 10px;
        margin-top: 16px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col li {
        font-size: 12px;
    }

    /* 社交媒体图标 - 小屏手机 */
    .social-links {
        gap: 8px;
        margin-top: 14px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 15px 0;
    }
}

