/* 
 * 现代化页脚样�? * 多列布局 + 社交媒体
 */

/* ==================== 页脚容器 ==================== */
footer {
    background: linear-gradient(135deg, 
        rgba(26, 71, 42, 0.95) 0%, 
        rgba(45, 90, 63, 0.9) 50%,
        rgba(26, 71, 42, 0.95) 100%
    ) !important;
    color: var(--color-text-light);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
    position: relative;
    overflow: hidden;
}

/* 确保背景色不被覆�?*/
body > footer {
    background: linear-gradient(135deg, 
        rgba(26, 71, 42, 0.95) 0%, 
        rgba(45, 90, 63, 0.9) 50%,
        rgba(26, 71, 42, 0.95) 100%
    ) !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='footer-grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23footer-grid)'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* ==================== 页脚内容布局 ==================== */
.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-xl);
    margin: 0 auto var(--space-2xl);
}

/* ==================== 页脚�?==================== */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-column h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-size: 0.9375rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* ==================== 页脚链接列表 ==================== */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column ul li {
    position: relative;
}

.footer-column ul li a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    border-radius: var(--radius-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 100%;
    background: var(--color-accent);
    transition: width var(--transition-base);
    transform: translateY(-50%);
    border-radius: 2px;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
}

.footer-column ul li a:hover::before {
    width: 3px;
}

/* ==================== 联系信息 ==================== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: var(--space-sm) 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item strong {
    color: var(--color-text-light);
    font-weight: 600;
}

/* ==================== 版权信息 ==================== */
.copyright {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: var(--space-xl);
}

.copyright p {
    margin: var(--space-xs) 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==================== 页脚项目 ==================== */
.footer-items {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.footer-items a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-full);
    background: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-items a:hover {
    color: #ffffff;
    background: none;
    transform: translateY(-2px);
}

.footer-items img {
    height: 24px;
    width: auto;
    transition: transform var(--transition-base);
}

.footer-items a:hover img {
    transform: scale(1.1);
}

/* ==================== 社交媒体图标 ==================== */
.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 16px rgba(212, 165, 56, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ==================== 响应式设�?==================== */

/* 大屏幕：显示完整底部导航 */
@media (min-width: 769px) {
    .footer-content {
        display: grid !important;
    }
}

/* 中等屏幕：两列布局 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕：隐藏底部导航（公司信息、快速链接、服务项目、联系信息） */
@media (max-width: 768px) {
    footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    /* 隐藏底部导航主体内容 */
    .footer-content {
        display: none !important;
    }
    
    /* 隐藏底部导航列 */
    .footer-column {
        display: none !important;
    }
    
    /* 确保社交媒体和版权信息仍然显示 */
    .social-links {
        display: flex !important;
        margin-top: var(--space-lg);
    }
    
    .copyright,
    .footer-bottom {
        display: block !important;
    }
}

/* 超小屏幕：进一步优化 */
@media (max-width: 576px) {
    footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    /* 再次确认隐藏底部导航 */
    .footer-content,
    .footer-column {
        display: none !important;
    }
    
    .copyright p {
        margin: var(--space-xs) 0;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.6;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .footer-items a {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        font-size: 0.9375rem;
        transition: all var(--transition-base);
        display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
        padding: var(--space-sm);
        border-radius: var(--radius-full);
        background: none;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== 页脚装饰元素 ==================== */
.footer-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}

.footer-decoration-2 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}









