/* 页脚组件样式 - 深色主题简约版 */

.footer-widget {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 60px 0 25px;
    position: relative;
    overflow: hidden;
}

/* 装饰背景 */
.footer-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.5;
}

.footer-widget::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* 容器 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 品牌区域 - 居中布局 */
.footer-brand {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.brand-logo i {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.brand-desc {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.brand-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.brand-social a {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--theme-black-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 18px;
    transition: var(--transition);
}

.brand-social a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* 分隔线 */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--theme-black-lighter) 20%, var(--theme-black-lighter) 80%, transparent 100%);
    margin-bottom: 25px;
}

/* 底部版权栏 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 12px;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* ==================== 响应式适配 ==================== */

@media screen and (max-width: 768px) {
    .footer-widget {
        padding: 50px 0 20px;
    }

    .footer-brand {
        margin-bottom: 40px;
    }

    .brand-logo i {
        font-size: 30px;
    }

    .brand-logo span {
        font-size: 1.5rem;
    }

    .brand-desc {
        font-size: 1rem;
    }

    .brand-social a {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }
}

@media screen and (max-width: 480px) {
    .footer-widget {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .brand-logo span {
        font-size: 1.5rem;
    }

    .brand-desc {
        font-size: 1rem;
    }

    .copyright,
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* 底飘广告区域 */
.bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark); /* 背景色，防止图片未加载时显示空白 */
}

.bottom-ad-content {
    position: relative;
    width: 100%;
}

.bottom-ad-link {
    display: block;
    width: 100%;
}

.bottom-ad-img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-ad-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-ad-close:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--bg-dark);
}

/* 仅在移动端显示底飘广告 */
@media (max-width: 768px) {
    .bottom-ad {
        display: flex;
    }
}