/* ===== 网站底部样式文件 ===== */
/* 专用于网站底部footer区域的样式 */

/* Footer 主要样式 */
.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

.footer-desc {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap; /* PC端也允许换行 */
    gap: 8px; /* 统一间距 */
    align-items: flex-start;
}

.footer-link {
    display: inline-block;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* 统一字号 */
    padding: 4px 10px; /* 统一内边距 */
    background: rgba(255, 255, 255, 0.08); /* PC端轻微背景 */
    border-radius: 6px; /* 圆角 */
    white-space: nowrap; /* 防止文字换行 */
}

.footer-link:hover {
    color: #3b82f6;
    background: rgba(255, 255, 255, 0.15); /* 悬停效果 */
}

.footer-contact .contact-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-label {
    color: #888;
    min-width: 60px;
}

.contact-value {
    color: #e0e0e0;
}

/* ===== 标签云样式 ===== */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.tag-cloud-item {
    display: inline-block;
    padding: 4px 10px; /* 与分类链接保持一致 */
    background: rgba(255, 255, 255, 0.08); /* 与分类链接保持一致 */
    color: #b0b0b0; /* 与分类链接保持一致 */
    text-decoration: none;
    border-radius: 6px; /* 与分类链接保持一致 */
    font-size: 0.9rem !important; /* 统一字号，使用!important覆盖后面的规则 */
    font-weight: 400; /* 统一字重 */
    transition: all 0.3s ease;
    border: none; /* 移除边框 */
    line-height: 1.2;
    white-space: nowrap; /* 防止文字换行 */
}

.tag-cloud-item:hover {
    background: rgba(255, 255, 255, 0.15); /* 与分类链接保持一致 */
    color: #3b82f6; /* 与分类链接保持一致 */
    transform: none; /* 移除过度动画效果 */
}

/* 已移除根据使用频率调整标签大小的规则，统一使用标准样式 */

.no-tags {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

.footer-note {
    color: #666;
    font-size: 0.85rem;
}

.footer-divider {
    margin: 0 8px;
    color: #555;
}

.icp-filing {
    color: #777;
    font-weight: 500;
}

/* 返回顶部按钮 - 已移至悬浮工具栏，注释掉避免冲突 */
/*
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}
*/

/* ===== 响应式设计 - Footer专用 ===== */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 35px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px 15px;
        margin-bottom: 25px;
    }
    
    /* 第一行：品牌信息 | 热门栏目 */
    .footer-section:first-child {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* 第二行：实用工具 | 热门标签 */
    .footer-section:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-section:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-section h4.footer-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
        text-align: left;
    }
    
    .footer-desc {
        display: none; /* 在平板端隐藏长描述，节省空间 */
    }
    
    /* 让品牌section的描述在移动端显示 */
    .brand-section .footer-desc {
        display: block; /* 品牌描述在移动端显示 */
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .footer-social {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .social-link {
        padding: 5px 10px;
        font-size: 0.8rem;
        border-radius: 12px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap; /* 允许换行 */
        gap: 8px; /* 统一间距 */
        align-items: flex-start;
    }
    
    .footer-link {
        display: inline-block;
        font-size: 0.85rem; /* 统一字号 */
        padding: 4px 10px; /* 统一内边距 */
        background: rgba(255, 255, 255, 0.1); /* 轻微背景 */
        border-radius: 6px; /* 圆角 */
        white-space: nowrap; /* 防止文字换行 */
        transition: all 0.3s ease;
        color: #b0b0b0;
        text-decoration: none;
    }
    
    .footer-link:hover {
        background: rgba(255, 255, 255, 0.2); /* 悬停效果 */
        color: #3b82f6;
    }
    
    /* 移动端标签云样式 */
    .footer-tags {
        gap: 6px;
        justify-content: flex-start;
        max-height: 120px; /* 限制最大高度 */
        overflow: hidden; /* 隐藏超出部分 */
    }
    
    .tag-cloud-item {
        padding: 3px 8px; /* 与分类链接移动端样式保持一致 */
        font-size: 0.85rem !important; /* 与分类链接移动端字号保持一致 */
        border-radius: 4px; /* 与分类链接移动端样式保持一致 */
        font-weight: 400 !important;
        white-space: nowrap; /* 防止标签换行 */
        background: rgba(255, 255, 255, 0.1) !important; /* 与分类链接保持一致 */
        color: #b0b0b0 !important; /* 与分类链接保持一致 */
    }
    
    .tag-cloud-item:hover {
        transform: none; /* 移动端移除hover动画 */
        background: rgba(255, 255, 255, 0.2) !important; /* 与分类链接悬停效果保持一致 */
        color: #3b82f6 !important; /* 与分类链接悬停效果保持一致 */
    }
    
    .footer-bottom-content {
        text-align: center;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .footer-note {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 25px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 20px;
    }
    
    /* 移除所有grid定位，让它们自然垂直排列 */
    .footer-section:first-child,
    .footer-section:nth-child(2),
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        grid-column: unset;
        grid-row: unset;
    }
    
    .footer-section h4.footer-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }
    
    .footer-desc {
        display: none; /* 继续隐藏 */
    }
    
    /* 小屏设备上的品牌描述 */
    .brand-section .footer-desc {
        display: block; /* 品牌描述在小屏设备上也显示 */
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .footer-social {
        gap: 6px;
    }
    
    .social-link {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .footer-links {
        gap: 6px; /* 小屏设备减少间距 */
        flex-wrap: wrap; /* 确保换行 */
    }
    
    .footer-link {
        font-size: 0.8rem; /* 小屏字号 */
        padding: 3px 8px; /* 小屏设备内边距 */
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        white-space: nowrap;
    }
    
    /* 小屏标签云样式 */
    .footer-tags {
        gap: 5px;
        max-height: 100px; /* 小屏限制更低的高度 */
        overflow: hidden;
    }
    
    .tag-cloud-item {
        padding: 3px 8px; /* 与分类链接小屏样式保持一致 */
        font-size: 0.8rem !important; /* 与分类链接小屏字号保持一致 */
        border-radius: 4px; /* 与分类链接小屏样式保持一致 */
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.1) !important; /* 与分类链接保持一致 */
        color: #b0b0b0 !important; /* 与分类链接保持一致 */
        font-weight: 400 !important; /* 与分类链接保持一致 */
    }
    
    .tag-cloud-item:hover {
        background: rgba(255, 255, 255, 0.2) !important; /* 与分类链接悬停效果保持一致 */
        color: #3b82f6 !important; /* 与分类链接悬停效果保持一致 */
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .copyright {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .footer-note {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    /* 返回顶部按钮移动端样式 - 已移至悬浮工具栏 */
    /*
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    */
}

/* 备案号样式 */
.footer-divider {
    margin: 0 8px;
    color: #555;
}

.icp-filing {
    color: #777;
    font-weight: 500;
    text-decoration: none;
}

.icp-filing:hover {
    color: #999;
    text-decoration: underline;
} 