/* ============================================
   页脚组件样式 - Footer Component Styles
   使用 BEM 命名规范
   ============================================ */

/* ============================================
   页脚基础样式
   ============================================ */

/* 页脚根元素 */
.footer {
    /* 浅灰色背景，与截图一致 */
    background-color: #f5f5f5;
    /* 顶部细边框 */
    border-top: 1px solid #e0e0e0;
    /* 基础文字颜色 */
    color: #666666;
    /* 字体大小 */
    font-size: 14px;
    /* 内边距 */
    padding: 30px 0;
}

/* 页脚内容容器 */
.footer__container {
    /* 最大宽度与头部保持一致 */
    /* max-width: 1600px; */
    /* 水平居中 */
    margin: 0 auto;
    /* 左右内边距 */
    padding: 0 24px;
}

/* ============================================
   页脚第一行：导航链接和社交媒体
   ============================================ */

/* 第一行容器 */
.footer__top {
    /* 弹性布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 垂直居中 */
    align-items: center;
    /* 底部间距 */
    margin-bottom: 20px;
}

/* ============================================
   导航链接区域
   ============================================ */

/* 导航列表 */
.footer__nav-list {
    /* 去除默认列表样式 */
    list-style: none;
    /* 去除默认外边距 */
    margin: 0;
    /* 去除默认内边距 */
    padding: 0;
    /* 弹性布局 */
    display: flex;
    /* 项目间距 */
    gap: 0;
}

/* 导航项 */
.footer__nav-item {
    /* 相对定位用于分隔线 */
    position: relative;
    /* 内边距用于点击区域 */
    padding: 0 16px;
}

/* 导航项之间的竖线分隔符 */
.footer__nav-item:not(:last-child)::after {
    /* 伪元素内容 */
    content: "|";
    /* 绝对定位 */
    position: absolute;
    /* 右侧定位 */
    right: 0;
    /* 垂直居中 */
    top: 50%;
    /* 垂直居中偏移 */
    transform: translateY(-50%);
    /* 分隔符颜色 */
    color: #cccccc;
    /* 字体大小 */
    font-size: 12px;
}

/* 第一个导航项无左内边距 */
.footer__nav-item:first-child {
    padding-left: 0;
}

/* 最后一个导航项无右内边距 */
.footer__nav-item:last-child {
    padding-right: 0;
}

/* 导航链接 */
.footer__nav-link {
    /* 文字颜色 */
    color: #000;
    /* 去除下划线 */
    text-decoration: none;
    /* 过渡效果 */
    transition: color 0.3s ease;
    /* 字体大小 */
    font-size: 14px;
}

/* 导航链接悬停效果 */
.footer__nav-link:hover {
    /* 悬停时变为深蓝色 */
    color: var(--datai-color);
}

/* ============================================
   社交媒体图标区域
   ============================================ */

/* 社交媒体容器 */
.footer__social {
    /* 弹性布局 */
    display: flex;
    /* 图标间距 */
    gap: 12px;
}

/* 社交媒体链接 */
.footer__social-link {
    /* 圆形背景 */
    width: 36px;
    height: 36px;
    /* 圆形 */
    border-radius: 50%;
    /* 深灰色背景 */
    background-color: #999999;
    /* 弹性布局居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 白色图标 */
    color: #ffffff;
    /* 过渡效果 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 社交媒体链接悬停效果 */
.footer__social-link:hover {
    /* 悬停时变为深蓝色 */
    background-color: #1a365d;
    /* 轻微放大 */
    transform: scale(1.1);
}

/* 社交媒体图标 */
.footer__social-icon {
    /* 图标尺寸 */
    width: 18px;
    height: 18px;
    /* 当前颜色继承 */
    fill: currentColor;
}

/* ============================================
   页脚第二行：版权和备案信息
   ============================================ */

/* 第二行容器 */
.footer__bottom {
    /* 弹性布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 垂直居中 */
    align-items: center;
    /* 顶部边框分隔 */
    border-top: 1px solid #e0e0e0;
    /* 顶部内边距 */
    padding-top: 20px;
}

/* ============================================
   版权信息区域
   ============================================ */

/* 版权文字 */
.footer__copyright-text {
    /* 去除默认外边距 */
    margin: 0;
    /* 字体大小 */
    font-size: 14px;
    /* 文字颜色 */
    color: #999999;
}

/* ============================================
   法律信息和备案区域
   ============================================ */

/* 法律信息容器 */
.footer__legal {
    /* 弹性布局 */
    display: flex;
    /* 项目间距 */
    gap: 4px;
    /* 垂直居中 */
    align-items: flex-end;
    flex-direction: column;
}

/* 法律链接容器 */
.footer__legal-links {
    /* 弹性布局 */
    display: flex;
    /* 项目间距 */
    gap: 8px;
    /* 垂直居中 */
    align-items: center;
}

/* 法律链接 */
.footer__legal-link {
    /* 文字颜色 */
    color: #999999;
    /* 去除下划线 */
    text-decoration: none;
    /* 字体大小 */
    font-size: 14px;
    /* 过渡效果 */
    transition: color 0.3s ease;
}

/* 法律链接悬停效果 */
.footer__legal-link:hover {
    /* 悬停时变为深蓝色 */
    color: #1a365d;
}

/* 法律链接分隔符 */
.footer__legal-divider {
    /* 分隔符颜色 */
    color: #cccccc;
    /* 字体大小 */
    font-size: 13px;
}

/* 备案信息容器 */
.footer__beian {
    /* 弹性布局 */
    display: flex;
    /* 项目间距 */
    gap: 8px;
    /* 垂直居中 */
    align-items: center;
    /* 字体大小 */
    font-size: 13px;
    /* 文字颜色 */
    color: #999999;
}

/* 备案文字 */
.footer__beian-text {
    /* 文字颜色 */
    color: #999999;
}

/* 备案分隔符 */
.footer__beian-divider {
    /* 小圆点分隔 */
    width: 4px;
    height: 4px;
    /* 圆形 */
    border-radius: 50%;
    /* 背景色 */
    background-color: #cccccc;
}

/* 技术支持文字 */
.footer__tech-support {
    /* 文字颜色 */
    color: #999999;
}

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

/* 平板端适配（768px - 1024px） */
@media screen and (max-width: 1024px) {

    /* 容器内边距调整 */
    .footer__container {
        padding: 0 20px;
    }

    /* 导航项间距调整 */
    .footer__nav-item {
        padding: 0 12px;
    }

    /* 法律信息区域间距调整 */
    .footer__legal {
        gap: 15px;
    }
}

/* 移动端适配（小于 768px） */
@media screen and (max-width: 768px) {

    /* 页脚内边距调整 */
    .footer {
        padding: 25px 0;
    }

    /* 容器内边距调整 */
    .footer__container {
        padding: 0 16px;
    }

    /* 第一行改为垂直布局 */
    .footer__top {
        /* 垂直排列 */
        flex-direction: column;
        /* 居中对齐 */
        align-items: center;
        /* 间距调整 */
        gap: 20px;
        margin-bottom: 25px;
    }

    /* 导航列表改为换行 */
    .footer__nav-list {
        /* 允许换行 */
        flex-wrap: wrap;
        /* 居中对齐 */
        justify-content: center;
        /* 间距 */
        gap: 8px 0;
    }

    /* 导航项间距调整 */
    .footer__nav-item {
        padding: 0 10px;
    }

    /* 第二行改为垂直布局 */
    .footer__bottom {
        /* 垂直排列 */
        flex-direction: column;
        /* 居中对齐 */
        align-items: center;
        /* 间距 */
        gap: 15px;
        /* 顶部内边距调整 */
        padding-top: 25px;
    }

    /* 法律信息区域改为垂直布局 */
    .footer__legal {
        /* 垂直排列 */
        flex-direction: column;
        /* 居中对齐 */
        align-items: center;
        /* 间距 */
        gap: 10px;
    }

    /* 备案信息换行 */
    .footer__beian {
        /* 允许换行 */
        flex-wrap: wrap;
        /* 居中对齐 */
        justify-content: center;
    }
}

/* 小屏幕移动端适配（小于 480px） */
@media screen and (max-width: 480px) {

    /* 导航链接字体缩小 */
    .footer__nav-link {
        font-size: 13px;
    }

    /* 版权文字字体缩小 */
    .footer__copyright-text {
        font-size: 12px;
        /* 居中对齐 */
        text-align: center;
    }

    /* 法律链接字体缩小 */
    .footer__legal-link,
    .footer__beian {
        font-size: 12px;
    }
}