/* ==========================================================
   通用Footer组件样式
   适用于所有页面的页脚
========================================================== */

/* ==========================================================
   📄 页面底部Footer样式
========================================================== */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
    padding: 2rem 0 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer上半部分：品牌+导航 */
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ff6b35;
}

/* Footer下半部分：版权信息 */
.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-beian {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian:hover {
    color: #6b7280;
}

.footer-slogan {
    color: #d1d5db;
    font-size: 0.8125rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 3rem;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .footer-nav {
        gap: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.8125rem;
    }
}

/* ==========================================================
   🔝 返回顶部按钮样式
========================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 1000;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.125rem;
    }
}

