/* ====================================
   潇湘爽文 - 增强页脚样式
   简洁优雅，增加视觉元素
   ==================================== */

footer, .page-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #6c757d !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 3rem !important;
    width: 100% !important;
    position: relative !important;
    clear: both !important;
    border-top: 3px solid #667eea !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    font-size: initial !important;
    line-height: initial !important;
}

/* 添加装饰性背景图案 */
footer::before, .page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #667eea 25%, 
        #764ba2 50%, 
        #667eea 75%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 页脚容器 */
footer .container,
.page-footer .container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    width: 100% !important;
    display: block !important;
}

/* 页脚装饰元素 */
.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.decoration-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
    flex: 1;
    max-width: 80px;
}

.decoration-icon {
    font-size: 1.5rem;
    margin: 0 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* 页脚主体内容 */
footer .footer-main,
.page-footer .footer-main {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* 页脚版块标题 */
footer .footer-section h4,
.page-footer .footer-section h4 {
    color: #495057 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid transparent !important;
    background: linear-gradient(90deg, #dee2e6 0%, #dee2e6 30%, transparent 30%);
    background-position: bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* 为标题添加图标 */
footer .footer-section h4::before,
.page-footer .footer-section h4::before {
    content: '⭐';
    margin-right: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 鼠标悬停效果 */
footer .footer-section:hover h4,
.page-footer .footer-section:hover h4 {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section li {
    margin-bottom: 0.5rem !important;
}

.footer-section a {
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    padding: 0.25rem 0 0.25rem 0.5rem !important;
    font-size: 0.85rem !important;
    border-left: 3px solid transparent !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.footer-section a::before {
    content: '▸';
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-section a:hover {
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 1rem;
    background-color: rgba(102, 126, 234, 0.05);
}

.footer-section a:hover::before {
    opacity: 1;
}

/* 页脚底部 */
.footer-bottom {
    padding-top: 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.footer-copyright {
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: #6c757d;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #495057;
}

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

.footer-social span {
    color: #6c757d;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.social-link:hover::before {
    left: 100%;
}

/* 特定社交媒体图标颜色 */
.social-link:nth-child(2):hover { /* 微信 */
    background: linear-gradient(135deg, #09bb07 0%, #7fb800 100%);
}

.social-link:nth-child(3):hover { /* 微博 */
    background: linear-gradient(135deg, #e6162d 0%, #f93f7e 100%);
}

.social-link:nth-child(4):hover { /* QQ */
    background: linear-gradient(135deg, #12b7f5 0%, #1e82ff 100%);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    footer .footer-main,
    .page-footer .footer-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    footer, .page-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    footer .footer-main,
    .page-footer .footer-main {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    footer .footer-section h4,
    .page-footer .footer-section h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer, .page-footer {
        padding: 1.5rem 0 1rem;
        margin-top: 1.5rem;
    }
    
    footer .footer-main,
    .page-footer .footer-main {
        gap: 1rem !important;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
} 