/* Footer 组件样式 - 对比度优化版 */
.site-footer {
    background: linear-gradient(135deg, #0a0f1f 0%, #111827 100%); /* 加深渐变 */
    color: #ffffff; /* 改为纯白色: #ecf0f1 -> #ffffff */
    margin-top: auto;
    position: relative;
    border-top: 3px solid #1e40af; /* 添加上边框 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem; /* 增大内边距: 3rem 2rem 1.5rem -> 3.5rem 2rem 2rem */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem; /* 增大间距: 2rem -> 2.5rem */
    margin-bottom: 2.5rem; /* 增大间距: 2rem -> 2.5rem */
}

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

.footer-title {
    font-size: 1.2rem; /* 增大字体: 1.1rem -> 1.2rem */
    font-weight: 700; /* 增加字重: 600 -> 700 */
    margin: 0 0 1.25rem 0; /* 增大间距: 1rem -> 1.25rem */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字阴影 */
    letter-spacing: 0.5px; /* 添加字母间距 */
}

.footer-description {
    line-height: 1.7; /* 增加行高: 1.6 -> 1.7 */
    margin: 0;
    opacity: 0.9; /* 提高不透明度: 0.8 -> 0.9 */
    font-size: 0.95rem; /* 增大字体: 0.9rem -> 0.95rem */
    color: #e2e8f0; /* 添加颜色 */
    font-weight: 400; /* 增加字重 */
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 增大间距: 0.5rem -> 0.75rem */
}

.footer-links li a {
    color: #e2e8f0; /* 加深颜色: #bdc3c7 -> #e2e8f0 */
    text-decoration: none;
    font-size: 0.95rem; /* 增大字体: 0.9rem -> 0.95rem */
    transition: all 0.3s ease;
    font-weight: 500; /* 增加字重 */
    padding: 0.25rem 0; /* 添加内边距改善可点击区域 */
}

.footer-links li a:hover {
    color: #3b82f6; /* 加深蓝色: #3498db -> #3b82f6 */
    text-decoration: underline;
    text-decoration-thickness: 2px; /* 加粗下划线 */
    transform: translateX(3px); /* 添加移动效果 */
}

.social-links {
    display: flex;
    gap: 1.25rem; /* 增大间距: 1rem -> 1.25rem */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* 增大: 40px -> 44px */
    height: 44px; /* 增大: 40px -> 44px */
    background: rgba(255, 255, 255, 0.15); /* 加深背景: 0.1 -> 0.15 */
    border-radius: 50%;
    color: #e2e8f0; /* 加深颜色: #bdc3c7 -> #e2e8f0 */
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
    font-size: 1.1rem; /* 增大图标 */
}

.social-link:hover {
    background: #3b82f6; /* 加深蓝色: #3498db -> #3b82f6 */
    color: white;
    transform: translateY(-3px); /* 增大上移距离: -2px -> -3px */
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); /* 添加阴影 */
}

/* 底部区域样式 */
.footer-bottom {
    border-top: 2px solid #475569; /* 加粗边框: 1px -> 2px, 加深颜色: #34495e -> #475569 */
    padding-top: 2rem; /* 增大内边距: 1.5rem -> 2rem */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* 增大间距: 0.5rem -> 0.75rem */
}

.copyright {
    font-size: 0.95rem; /* 增大字体: 0.9rem -> 0.95rem */
    opacity: 0.9; /* 提高不透明度: 0.7 -> 0.9 */
    color: #e2e8f0; /* 添加颜色 */
    font-weight: 400; /* 增加字重 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影 */
}

/* 备案信息样式 */
.footer-icp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* 增大间距: 0.5rem -> 0.75rem */
    font-size: 0.9rem; /* 增大字体: 0.85rem -> 0.9rem */
    opacity: 0.9; /* 提高不透明度: 0.7 -> 0.9 */
    flex-wrap: wrap; /* 添加换行支持 */
}

.icp-link {
    color: #e2e8f0; /* 加深颜色: #bdc3c7 -> #e2e8f0 */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500; /* 增加字重 */
    padding: 0.25rem 0.5rem; /* 添加内边距 */
    border-radius: 4px; /* 添加圆角 */
}

.icp-link:hover {
    color: #3b82f6; /* 加深蓝色: #3498db -> #3b82f6 */
    text-decoration: underline;
    text-decoration-thickness: 2px; /* 加粗下划线 */
    background: rgba(59, 130, 246, 0.1); /* 添加背景色 */
}

.icp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0; /* 加深颜色: #bdc3c7 -> #e2e8f0 */
    opacity: 0.9; /* 提高不透明度: 0.8 -> 0.9 */
    transition: all 0.3s ease;
}

.icp-icon:hover {
    color: #3b82f6; /* 加深蓝色: #3498db -> #3b82f6 */
    transform: scale(1.2); /* 增大缩放: 1.1 -> 1.2 */
}

.icp-icon svg {
    stroke: currentColor;
    width: 16px; /* 增大: 14px -> 16px */
    height: 16px; /* 增大: 14px -> 16px */
    stroke-width: 3; /* 加粗线条: 默认 -> 3 */
}

/* 统计代码区域（隐藏但执行） */
.footer-analytics {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem; /* 调整间距 */
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2.5rem 1.5rem 1.5rem; /* 调整内边距 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 移动端美化 - 卡片式设计 */
    .footer-section {
        background: rgba(255, 255, 255, 0.08); /* 加深背景: 0.05 -> 0.08 */
        border-radius: 12px;
        padding: 2rem; /* 增大内边距: 1.5rem -> 2rem */
        border: 2px solid rgba(255, 255, 255, 0.12); /* 加粗边框: 1px -> 2px, 加深颜色: 0.08 -> 0.12 */
        transition: transform 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    }
    
    .footer-section:hover {
        transform: translateY(-3px); /* 增大上移距离: -2px -> -3px */
        background: rgba(255, 255, 255, 0.12); /* 加深悬停背景: 0.08 -> 0.12 */
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* 加深阴影 */
    }
    
    .footer-title {
        font-size: 1.25rem; /* 增大字体: 1.15rem -> 1.25rem */
        margin-bottom: 1.5rem; /* 增大间距: 1.2rem -> 1.5rem */
        color: #ffffff;
        font-weight: 800; /* 增加字重: 700 -> 800 */
    }
    
    .footer-description {
        font-size: 1rem; /* 增大字体: 0.95rem -> 1rem */
        line-height: 1.8; /* 增加行高: 1.7 -> 1.8 */
        margin-bottom: 1.25rem; /* 增大间距: 1rem -> 1.25rem */
        color: #e2e8f0; /* 确保颜色一致 */
    }
    
    .footer-links {
        gap: 1rem; /* 增大间距: 0.75rem -> 1rem */
    }
    
    .footer-links li a {
        display: block;
        padding: 1rem 1.25rem; /* 增大内边距: 0.75rem 1rem -> 1rem 1.25rem */
        background: rgba(255, 255, 255, 0.1); /* 加深背景: 0.05 -> 0.1 */
        border-radius: 10px; /* 增大圆角: 8px -> 10px */
        font-size: 1rem; /* 增大字体: 0.95rem -> 1rem */
        transition: all 0.3s ease;
        color: #ffffff; /* 改为白色 */
        font-weight: 500; /* 增加字重 */
        border: 1px solid rgba(255, 255, 255, 0.15); /* 添加边框 */
    }
    
    .footer-links li a:hover {
        background: rgba(59, 130, 246, 0.25); /* 加深悬停背景: 0.2 -> 0.25 */
        color: white;
        transform: translateX(6px); /* 增大移动距离: 4px -> 6px */
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); /* 添加阴影 */
    }
    
    .social-links {
        margin-top: 1.5rem; /* 增大间距: 1rem -> 1.5rem */
    }
    
    .social-link {
        width: 48px; /* 增大: 44px -> 48px */
        height: 48px; /* 增大: 44px -> 48px */
        background: rgba(255, 255, 255, 0.15); /* 加深背景: 0.12 -> 0.15 */
        font-size: 1.2rem; /* 增大图标: 1.1rem -> 1.2rem */
        border-width: 2px; /* 确保边框 */
    }
    
    .social-link:hover {
        background: #3b82f6;
        transform: scale(1.15); /* 调整缩放: 1.1 -> 1.15 */
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5); /* 加深阴影 */
    }
    
    /* 底部区域移动端适配 */
    .footer-bottom {
        margin-top: 2.5rem; /* 增大间距: 2rem -> 2.5rem */
        padding-top: 2rem; /* 增大间距: 1.5rem -> 2rem */
        border-top: 2px solid rgba(255, 255, 255, 0.2); /* 加深边框颜色: 0.15 -> 0.2 */
        gap: 1rem; /* 增大间距: 0.75rem -> 1rem */
    }
    
    .copyright {
        font-size: 0.9rem; /* 调整字体大小 */
        opacity: 0.9; /* 提高不透明度 */
        line-height: 1.6; /* 调整行高 */
        color: #e2e8f0; /* 确保颜色一致 */
    }
    
    .footer-icp {
        font-size: 0.85rem; /* 调整字体大小 */
        flex-direction: column;
        gap: 0.5rem; /* 调整间距 */
    }
    
    .icp-link {
        padding: 0.75rem 1.25rem; /* 增大内边距: 0.5rem -> 0.75rem 1.25rem */
        background: rgba(255, 255, 255, 0.1); /* 加深背景: 0.05 -> 0.1 */
        border-radius: 8px; /* 增大圆角: 6px -> 8px */
        color: #ffffff; /* 改为白色 */
        font-weight: 500; /* 增加字重 */
        border: 1px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
    }
    
    .icp-link:hover {
        background: rgba(59, 130, 246, 0.15); /* 调整悬停背景: 0.1 -> 0.15 */
        transform: translateY(-2px); /* 添加上移效果 */
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25); /* 添加阴影 */
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem 1.25rem; /* 调整内边距 */
    }
    
    .footer-content {
        gap: 1.75rem; /* 调整间距 */
    }
    
    .footer-section {
        padding: 1.5rem; /* 调整内边距: 1.25rem -> 1.5rem */
        border-radius: 12px; /* 保持圆角 */
        border-width: 2px; /* 保持边框 */
    }
    
    .footer-title {
        font-size: 1.2rem; /* 调整字体大小 */
        margin-bottom: 1.25rem; /* 调整间距 */
    }
    
    .footer-links li a {
        padding: 0.875rem 1.125rem; /* 调整内边距 */
        font-size: 0.95rem; /* 调整字体大小 */
    }
    
    .social-link {
        width: 46px; /* 调整大小 */
        height: 46px; /* 调整大小 */
        font-size: 1.15rem; /* 调整图标大小 */
    }
    
    /* 底部区域小屏幕适配 */
    .footer-bottom {
        padding-top: 1.75rem; /* 调整间距 */
        gap: 0.75rem; /* 调整间距 */
    }
    
    .copyright {
        font-size: 0.85rem; /* 调整字体大小 */
    }
    
    .footer-icp {
        font-size: 0.8rem; /* 调整字体大小 */
    }
    
    .icp-link {
        padding: 0.625rem 1rem; /* 调整内边距 */
        font-size: 0.8rem; /* 调整字体大小 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .footer-container {
        padding: 1.75rem 0.75rem 1rem; /* 调整内边距 */
    }
    
    .footer-section {
        padding: 1.25rem; /* 调整内边距 */
        margin: 0 0.25rem;
        border-width: 1px; /* 移动端边框稍细 */
    }
    
    .footer-links li a {
        padding: 0.75rem 1rem; /* 调整内边距 */
        font-size: 0.9rem; /* 调整字体大小 */
    }
    
    .social-link {
        width: 44px; /* 调整大小 */
        height: 44px; /* 调整大小 */
        font-size: 1.1rem; /* 调整图标大小 */
    }
    
    /* 底部区域超小屏幕适配 */
    .footer-bottom {
        padding-top: 1.5rem; /* 调整间距 */
    }
    
    .copyright {
        font-size: 0.8rem; /* 调整字体大小 */
    }
    
    .footer-icp {
        font-size: 0.75rem; /* 调整字体大小 */
    }
    
    .icp-link {
        padding: 0.5rem 0.875rem; /* 调整内边距 */
        font-size: 0.75rem; /* 调整字体大小 */
    }
}

/* 打印样式 */
@media print {
    .site-footer {
        background: none !important;
        color: #000000 !important;
        border-top: 3px solid #000000; /* 加粗边框: 2px -> 3px */
    }
    
    .footer-container {
        padding: 1rem 0;
    }
    
    .footer-content,
    .social-links,
    .footer-icp,
    .footer-analytics {
        display: none;
    }
    
    .footer-bottom {
        border-top: none;
        padding-top: 0;
    }
    
    .copyright {
        opacity: 1;
        color: #000000;
        font-weight: 700; /* 打印时加粗 */
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000000;
        color: #ffffff;
        border-top: 3px solid #ffffff;
    }
    
    .footer-section {
        border: 3px solid #ffffff; /* 加粗边框: 2px -> 3px */
        background: #000000;
    }
    
    .footer-title {
        color: #ffffff;
        text-shadow: 0 2px 4px #000000;
    }
    
    .footer-links li a {
        border: 2px solid #ffffff; /* 添加边框 */
        color: #ffffff;
    }
    
    .icp-link {
        border: 2px solid #ffffff; /* 加粗边框: 1px -> 2px */
        padding: 0.5rem 1rem;
        color: #ffffff;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .footer-section,
    .social-link,
    .footer-links li a,
    .icp-link,
    .icp-icon {
        transition: none !important;
        transform: none !important;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: linear-gradient(135deg, #000000 0%, #0f172a 100%); /* 更深的渐变 */
    }
    
    .footer-description,
    .footer-links li a,
    .copyright,
    .icp-link {
        color: #cbd5e1; /* 更亮的灰色 */
    }
}