/* ========== Footer 基础布局 ========== */
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
    background: #222;
    color: #fff;
    text-align: center;
}

/* 三行布局 */
.footer-row {
    width: 100%;
}

/* 第一行：版权 */
.footer-row-top p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* 第二行：左-联系我们 中-社交 右-联盟LOGO */
.footer-row-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer 左侧：联系我们邮箱 */
.footer-left.footer-contact {
    justify-content: flex-start;
    font-size: 14px;
    color: #ccc;
    flex: 1 1 200px; /* 保证左侧宽度 */
}

.footer-left.footer-contact a {
    color: #E64A19;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left.footer-contact a:hover {
    color: #ff7043;
    text-decoration: underline;
}

/* 社交图标 */
.footer-center {
    justify-content: center;
    flex: 1 1 200px; /* 居中显示 */
}

.footer-center a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 50%;
    background: #333;
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer-center a i {
    font-size: 20px;
}

/* Hover 效果 */
.footer-center a:hover {
    transform: scale(1.2);
    background: #E64A19;
}

/* 各平台颜色 */
.footer-center a[href*="twitter"] i { color: #1DA1F2; }
.footer-center a[href*="facebook"] i { color: #1877F2; }
.footer-center a[href*="instagram"] i { color: #E4405F; }
.footer-center a[href*="linkedin"] i { color: #0077B5; }
.footer-center a[href*="youtube"] i { color: #FF0000; }
.footer-center a[href*="github"] i { color: #fff; }
.footer-center a[href*="tiktok"] i { color: #000; }
.footer-center a[href*="pinterest"] i { color: #BD081C; }
.footer-center a[href*="reddit"] i { color: #FF4500; }
.footer-center a[href*="medium"] i { color: #00AB6C; }

/* 联盟LOGO */
.footer-right {
    justify-content: flex-end;
    flex: 1 1 200px; /* 保证右侧宽度 */
}

.footer-right .affiliate-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.footer-right .affiliate-logos a img {
    height: 28px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-right .affiliate-logos a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* 第三行：联盟免责声明 */
.footer-row-bottom p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    text-align: center;
}

/* ===== 响应式调整 ===== */
@media (min-width: 768px) {
    .footer-row-middle {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .footer-row-middle {
        flex-direction: column;
        gap: 15px;
    }
    .footer-left, .footer-center, .footer-right {
        justify-content: center;
    }
}
