/* components/footer/footer.css */

/* ====== Footer 基础结构 ====== */
.footer {
    position: relative;
    width: 100%;
    min-height: 430px;
    background: #0e0e0e;
    color: #d0d0d0;
    padding: 78px 0 42px;
    box-sizing: border-box;
}

.footer::before {
    content: "";
    display: block;
    width: 1320px;
    max-width: calc(100% - 40px);
    height: 1px;
    background: #2a2a2a;
    margin: 0 auto 42px;
}

.footer-inner {
    width: 1320px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 52px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    color: #d0d0d0;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

/* ====== 底部版权部分 ====== */
.footer-bottom {
    margin-top: 0;
    font-size: 14px;
    color: #d0d0d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #d0d0d0;
    margin-right: 25px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social i {
    font-size: 22px;
    margin-left: 20px;
    cursor: pointer;
    color: #ddd;
}

.footer-social i:hover {
    color: #fff;
}

/* ========== 平板 & 手机（折叠模式） ========== */
@media (max-width: 1366px) {

    .footer {
        height: auto;
        padding: 54px 0 36px;
    }

    .footer-inner {
        width: 90%;
    }

    .footer-columns {
        display: block;
        margin-bottom: 40px;
    }

    .footer-col {
        border-bottom: 1px solid #333;
        padding: 20px 0;
    }

    .footer-col h4 {
        margin: 0;
        font-size: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        position: relative;
    }

    /* 下箭头 */
    .footer-col h4::after {
        content: "⌄";
        font-size: 18px;
        color: #fff;
        transition: transform .3s;
        pointer-events: none;   /* ⭐⭐⭐⭐ 手机端必加 */
    }

    .footer-col.open h4::after {
        transform: rotate(180deg);
    }

    /* 折叠内容 */
    .footer-col a {
        display: none;
        padding-left: 5px;
    }

    .footer-col.open a {
        display: block;
        margin-top: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social {
        margin-top: 20px;
    }
}

/* ========== 手机更紧凑 ========== */
@media (max-width: 768px) {
    .footer-inner {
        width: 92%;
    }

    .footer-col h4 {
        font-size: 17px;
    }

    .footer-col a {
        font-size: 15px;
    }
}
/* ==========================
   Footer Light Theme
========================== */
.footer--light {
    background: #ffffff;
    color: #000;
}

.footer--light .footer-col h4 {
    color: #000;
}

.footer--light .footer-col a {
    color: #555;
}

.footer--light .footer-col a:hover {
    color: #000;
}

.footer--light .footer-bottom {
    color: #666;
}

.footer--light .footer-links a {
    color: #666;
}

.footer--light .footer-links a:hover {
    color: #000;
}

.footer--light .footer-social i {
    color: #666;
}

.footer--light .footer-social i:hover {
    color: #000;
}

/* 折叠线颜色（移动端） */
@media (max-width: 1366px) {
    .footer--light .footer-col {
        border-bottom: 1px solid #e5e5e5;
    }

    .footer--light .footer-col h4::after {
        color: #000;
    }
}
/* ==========================
   Light Theme Top Divider
========================== */
.footer--light {
    position: relative;
}

/* 页脚顶部横线 */
.footer--light::before {
    content: "";
    display: block;
    width: 1320px;              /* 和 footer-inner 一致 */
    max-width: calc(100% - 40px);
    height: 1px;
    background: #e5e5e5;
    margin: 0 auto 42px;        /* 下方留出间距 */
}
