/* ============================================
   底部区域样式 - Footer
   BEM 命名规范: .footer 块 / .footer__element 元素 / .footer--modifier 修饰符
   所有样式仅作用于 .footer 作用域内，避免影响其他区域
   ============================================ */

.footer {
    /* 背景色：深蓝灰 */
    background-color: #393B43;
    color: #ffffff;
    padding: 60px 0 0;
    width: 100%;
}

.footer__container {
    max-width: var(--banxin-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------
   标题区 - CONTACT US
   -------------------------------------------- */
.footer__title {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin: 0 0 40px;
    letter-spacing: 2px;
}

/* --------------------------------------------
   主体内容：左右两栏布局
   -------------------------------------------- */
.footer__main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 20px;
}

/* --------------------------------------------
   左侧：联系信息 + 二维码 + 社交图标
   -------------------------------------------- */
.footer__info {
    flex: 0 0 380px;
    max-width: 380px;
}

/* 联系信息列表 */
.footer__contact {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.footer__contact-item {
    font-size: 14px;
    line-height: 1.9;
    color: var(--header-color-text-secondary);
    display: flex;
    align-items: flex-start;
}

.footer__contact-label {
    flex-shrink: 0;
    margin-right: 4px;
}

.footer__contact-value {
    color: var(--header-color-text-secondary);
    text-decoration: none;
    word-break: break-word;
}

.footer__contact-value:hover {
    color: var(--header-color-accent-2, #fcbc04);
}

/* 地址项允许换行 */
.footer__contact-item--address .footer__contact-value {
    flex: 1;
}

/* 二维码区域 */
.footer__qr {
    margin-bottom: 14px;
}

.footer__qr-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px;
}

.footer__qr-img {
    width: 170px;
    height: 170px;
    /* background-color: #ffffff; */
    padding: 4px;
    display: inline-block;
    line-height: 0;
    border-radius: 2px;
}

.footer__qr-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__qr-name {
    font-size: 14px;
    color: #ffffff;
    margin: 10px 0 0;
    font-weight: bold;
}

/* 平板及以下才显示的并排文本包装，默认隐藏避免桌面端重复 */
.footer__qr-text {
    /* display: none; */
}

/* 社交媒体图标列表 */
.footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.footer__social-item {
    display: inline-block;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2a3441;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background-color: var(--header-color-accent-2, #fcbc04);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer__social-link svg {
    display: block;
}

/* --------------------------------------------
   右侧：留言表单
   样式已迁移至 /public/static/whl/form/form.css
   -------------------------------------------- */

/* --------------------------------------------
   底部导航
   -------------------------------------------- */
.footer__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.footer__nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: var(--header-font-size-md);
    transition: color 0.2s ease;
}

.footer__nav-link:hover {
    color: var(--header-color-accent-2, #fcbc04);
}

/* --------------------------------------------
   版权信息
   -------------------------------------------- */
.footer__copyright {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    padding: 35px 0;
    line-height: 1.5;
    border-top: 1px solid var(--header-color-text-secondary);
    margin-top: 20px;
}

.footer__copyright-link {
    color: #ffffff;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.footer__copyright-link:hover {
    color: var(--header-color-accent-2, #fcbc04);
}



.footer__social-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* --------------------------------------------
   中屏桌面：缩小间距与字号，保持双栏
   -------------------------------------------- */
@media (max-width: 1279px) {
    .footer {
        padding: 56px 0 0;
    }

    .footer__title {
        font-size: 44px;
        margin-bottom: 36px;
    }

    .footer__main {
        gap: 40px;
    }

    .footer__info {
        flex: 0 0 320px;
        max-width: 320px;
    }

    .footer__nav {
        gap: 48px;
    }
}

/* --------------------------------------------
   平板：转为上下两栏，间距收紧
   -------------------------------------------- */
@media (max-width: 1023px) {
    .footer {
        padding: 50px 0 0;
    }

    .footer__title {
        font-size: 38px;
        margin-bottom: 32px;
        letter-spacing: 1.5px;
    }

    .footer__main {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer__info {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .footer__qr {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .footer__qr-img {
        flex-shrink: 0;
    }

    /* 隐藏原独立的标题/名称，启用并排文本包装 */
    .footer__qr>.footer__qr-title,
    .footer__qr>.footer__qr-name {
        display: none;
    }

    .footer__qr-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer__qr-text .footer__qr-title--text {
        margin: 0;
    }

    .footer__qr-name {
        margin-top: 0;
    }

    .footer__social-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 36px;
    }
}

/* --------------------------------------------
   大屏手机 / 平板竖屏：紧凑布局
   -------------------------------------------- */
@media (max-width: 767px) {
    .footer {
        padding: 44px 0 0;
    }

    .footer__title {
        font-size: 32px;
        margin-bottom: 28px;
        letter-spacing: 1px;
    }

    .footer__container {
        padding: 0 16px;
    }

    .footer__main {
        gap: 32px;
        margin-bottom: 24px;
    }

    .footer__contact-item {
        font-size: 13px;
        line-height: 1.8;
    }

    .footer__qr-title {
        font-size: 15px;
    }

    .footer__qr-img {
        width: 130px;
        height: 130px;
    }

    /* 社交图标放大触摸区域至 44px */
    .footer__social-link {
        width: 44px;
        height: 44px;
    }

    .footer__social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer__nav {
        gap: 16px 28px;
    }

    .footer__nav-link {
        font-size: 15px;
    }

    .footer__copyright {
        font-size: 12px;
        padding: 24px 16px;
        margin-top: 16px;
    }
}

/* --------------------------------------------
   小屏手机：进一步精简
   -------------------------------------------- */
@media (max-width: 480px) {
    .footer {
        padding: 36px 0 0;
    }

    .footer__title {
        font-size: 26px;
        margin-bottom: 24px;
        letter-spacing: 0.5px;
    }

    .footer__container {
        padding: 0 14px;
    }

    .footer__main {
        gap: 28px;
    }

    /* 小屏隐藏二维码文字描述，避免拥挤 */
    .footer__qr {
        justify-content: center;
    }

    .footer__qr-img {
        width: 110px;
        height: 110px;
    }

    .footer__qr-name {
        font-size: 13px;
    }

    .footer__contact-item {
        font-size: 12px;
    }

    /* .footer__nav {
        flex-direction: column;
        gap: 14px;
    } */

    .footer__nav-link {
        font-size: 14px;
    }

    .footer__copyright {
        font-size: 11px;
        padding: 20px 12px;
    }
}

/* --------------------------------------------
   大屏优化：xl 以上加宽留白
   -------------------------------------------- */
@media (min-width: 1440px) {
    .footer {
        padding: 72px 0 0;
    }

    .footer__title {
        font-size: 56px;
        margin-bottom: 48px;
    }

    .footer__main {
        gap: 80px;
        margin-bottom: 28px;
    }

    .footer__info {
        flex: 0 0 420px;
        max-width: 420px;
    }
}

/* --------------------------------------------
   减少动效：尊重用户偏好设置
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .footer__social-link,
    .footer__nav-link,
    .footer__contact-value,
    .footer__copyright-link {
        transition: none;
    }

    .footer__social-link:hover {
        transform: none;
    }
}