/* FOOTER */
:root{
    --site-footer-home-brand-main: #3b82f6;
    --site-footer-home-accent: #2563eb;
    --site-footer-home-transition: all 0.3s ease;
    --site-footer-home-accent-pink: #ec4899;
    --site-footer-home-white: #ffffff;
    --site-footer-home-text-dark: #1e293b;
}
/* FOOTER 核心样式 */
.site-footer-home {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 80px 5% 40px;
}

.site-footer-home .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer-home .footer-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.site-footer-home .footer-logo a {
    text-decoration: none;
    color: #d9e4f4;
}

.site-footer-home .footer-menu {
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

.site-footer-home .footer-list {
    list-style: none;
    margin-top: 15px;
    padding: 0;
}

.site-footer-home .footer-list li {
    margin-bottom: 10px;
}

.site-footer-home .footer-list a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.site-footer-home .footer-list a:hover {
    color: var(--site-footer-home-brand-main);
}

.site-footer-home .footer-subscribe-container {
    margin-top: 15px;
}

.site-footer-home .footer-subscribe-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.site-footer-home .footer-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.site-footer-home .footer-subscribe-btn {
    background: var(--site-footer-home-brand-main);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--site-footer-home-transition);
    white-space: nowrap;
}

.site-footer-home .footer-subscribe-btn:hover {
    background: var(--site-footer-home-accent);
    transform: translateY(-2px);
}

.site-footer-home .copyright-bar {
    text-align: center;
    margin-top: 50px;
    font-size: 0.8rem;
    border-top: 1px solid #334155;
    padding-top: 20px;
}
.site-footer-home .footer-cf-turnstile{
    margin-top: 10px;
    transform: scale(0.85);
    transform-origin: left top;
    width: 100px;
}

/* 回到顶部按钮样式 - 已修改背景色 */
#backToTop.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: var(--site-footer-home-brand-main); /* 修改为主题蓝 */
    color: var(--site-footer-home-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* CSS 绘制的上箭头 */
#backToTop.back-to-top .arrow-up {
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--site-footer-home-white);
    border-left: 3px solid var(--site-footer-home-white);
    transform: rotate(45deg);
    margin-top: 5px;
}

#backToTop.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

#backToTop.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--site-footer-home-white);
    background: var(--site-footer-home-accent); /* 悬停时颜色加深 */
}

/* 响应式优化 */
@media (max-width: 768px) {
    .site-footer-home .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #backToTop.back-to-top {
        right: 20px;
        bottom: 20px;
    }
}