/* Footer Enhancement Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #165DFF;
    border-radius: 3px;
}

.footer-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

/* 社交媒体链接样式 */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover.fa-weixin {
    background: #07C160;
    color: white;
}

.social-link:hover.fa-weibo {
    background: #E6162D;
    color: white;
}

.social-link:hover.fa-music {
    background: #FE2C55;
    color: white;
}

.social-link:hover.fa-instagram {
    background: #E4405F;
    color: white;
}

.social-link:hover.fa-facebook {
    background: #1877F2;
    color: white;
}

/* 快速链接样式 */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1rem;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #165DFF;
    transform: translateX(5px);
}

.footer-nav a:hover::before {
    left: -3px;
}

/* 联系表单样式 */
.footer-contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact input,
.footer-contact textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-contact input:focus,
.footer-contact textarea:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.footer-contact textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-contact button {
    padding: 0.75rem 1.5rem;
    background: #165DFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-contact button:hover {
    background: #0f4dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

/* 订阅表单样式 */
.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.footer-newsletter-form button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: #165DFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-form button[type="submit"]:hover {
    background: #0f4dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.newsletter-error {
    margin-top: 0.5rem;
    color: #e74c3c;
    font-size: 0.875rem;
}

/* 底部版权区域样式 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-info p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

.site-info a {
    color: #165DFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: #0f4dd9;
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #165DFF;
}

/* 回到顶部按钮样式 */
.scroll-to-top {
    width: 45px;
    height: 45px;
    background: #165DFF;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0f4dd9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
}