/* ============================================================
   footer.css — 页脚样式（ThinkCMF 版）
   原 Vue 3 项目：src/components/navbar/Footer.vue <style scoped>
   ============================================================ */

/* ===== 基础样式 ===== */
.footer {
    background-color: #18181C;
    color: #fff;
    padding: 80px 64px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 40px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.social-icons a,
.social-icons i {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-section {
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-middle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.section-title {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.section-title.no-toggle {
    cursor: default;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.section-list.show {
    display: block;
}

.section-list li {
    margin-bottom: 8px;
}

.section-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 3px 0;
    transition: color 0.2s ease;
}

.section-list li a:hover {
    color: #26bbff;
}

/* 与顶栏 column_groups 一致：组标题 + 链接列表（PC 为 subtle 小标题） */
.footer-section--grouped .footer-list-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 12px;
    margin-bottom: 4px;
    pointer-events: none;
}

.footer-section--grouped .section-list > .footer-list-label:first-child {
    margin-top: 0;
}

.footer-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.footer-bottom > div {
    flex: 1;
}

.copyright {
    font-size: 12px;
    margin-bottom: 10px;
    color: #aaa;
}

.bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bottom-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.bottom-links li a:hover {
    color: #26bbff;
}

.back-to-top {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    height: 40px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin-left: 20px;
}

.back-to-top:hover {
    background-color: #555;
}

/* 为公众号图标添加特殊样式 */
.official-account-icon {
    position: relative;
    display: inline-block;
}

.official-account {
    color: #1aad19;
}

.account-label {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #ffffff;
    white-space: nowrap;
}

/* 个人微信使用不同的颜色 */
.wechat-personal {
    color: #07c160;
}

/* 移动端折叠图标 */
.mobile-only {
    display: none;
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

/* ===== 响应式：PC端 (>=769px) ===== */
@media (min-width: 769px) {
    .section-list {
        display: block !important;
    }

    .section-title {
        justify-content: flex-start;
        cursor: default;
    }
}

/* ===== 响应式：移动端 (<=768px) ===== */
@media (max-width: 768px) {
    .footer {
        background-color: #18181C;
        color: #fff;
        padding: 80px 16px;
    }

    .footer-section {
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-middle {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
    }

    .section-list {
        padding-bottom: 20px;
    }

    .section-list li {
        text-align: left;
        margin-left: 20px;
    }

    .section-list li a {
        font-size: 16px;
        padding-left: 0;
        color: #FFFFFFA6;
    }

    /* 分栏页脚：label 贴左，可点项统一右缩进（对齐顶栏移动子菜单） */
    .footer-section--grouped .footer-list-label {
        margin-left: 0;
        margin-top: 14px;
        padding: 0 0 6px;
        font-size: 12px;
    }

    .footer-section--grouped .footer-list-link {
        margin-left: 0;
    }

    .footer-section--grouped .footer-list-link a {
        padding-left: 32px;
        box-sizing: border-box;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom > div {
        width: 100%;
    }

    .bottom-links {
        justify-content: center;
    }

    .back-to-top {
        margin-left: 0;
        margin-top: 20px;
    }

    .social-icons {
        gap: 5px;
    }

    .mobile-only {
        display: inline-block;
        margin-left: 8px;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .section-title.active .mobile-only {
        transform: rotate(180deg);
    }
}