/* footer.css - 版权信息样式 */

/* 页脚基础样式 */
.footer {
    display: flex;
    justify-content: center; /* 水平居中 */
    flex-direction: column; /* 垂直排列子元素 */
    background-color: var(--background-light); /* 使用变量中的浅色背景 */
    padding: var(--space-lg) 5%; /* 使用变量中的大间距 */
    color: var(--text-secondary); /* 次要文本颜色 */
    font-size: 0.9rem; /* 稍小的字体大小 */
    line-height: 1.2; /* 良好的行高 */
    border-top: 1px solid var(--border-color); /* 顶部边框 */
}

.message {
    display: flex;
    justify-content: space-between; /* 两个元素之间最大距离，即左右对齐 */
    width: 100%;
}

/* 链接信息区域 - 左板块 */
.link-information {
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列子元素 */
    margin-bottom: var(--space-md); /* 底部间距 */
}

.link-information-mobile {
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列子元素 */
    margin-bottom: var(--space-md); /* 底部间距 */
}

/* 页脚logo样式 - 确保左对齐 */
.foot-logo {
    text-align: left; /* 明确左对齐 */
    align-self: flex-start; /* flex子项左对齐 */
    margin-right: auto; /* 推挤其他元素向右 */
}

/* 页脚logo样式 */
.foot-logo img {
    height: 40px; /* 固定高度 */
    margin-bottom: var(--space-sm); /* 底部间距 */
    object-fit: contain; /* 保持比例 */
}
.foot-link{
    margin-top: 1rem;
}

/* 链接标题样式 */
.linkTit {
    font-weight: bold; /* 加粗 */
    color: var(--text-primary); /* 主要文本颜色 */
    margin-bottom: var(--space-xs); /* 小间距 */
    flex-shrink: 0; /* 防止压缩 */
    width: 80px; /* 固定宽度对齐 */
}

/* 链接列表容器 */
.linkBox {
    width: 100%; /* 全宽 */
    overflow: hidden; /* 隐藏溢出 */
}

/* 链接列表样式 */
.linklist {
    display: flex; /* 弹性布局 */
    flex-wrap: wrap; /* 允许换行 */
    list-style: none; /* 无列表符号 */
    padding: 0; /* 无内边距 */
    margin: 4px; /* 无外边距 */
    gap: var(--space-sm); /* 项间距 */
}

/* 单个链接样式 */
.linklist li a {
    color: var(--text-secondary); /* 链接颜色 */
    transition: color var(--transition-fast); /* 颜色过渡效果 */
    white-space: nowrap; /* 不换行 */
}

/* 链接悬停效果 */
.linklist li a:hover {
    color: var(--primary-color); /* 主品牌色 */
    text-decoration: underline; /* 下划线 */
}


/* 联系方式区域 - 右板块 */
.contact-way {
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
}

.contact-way-detail-all {
    width: 100%;
    display: flex; /* 弹性布局 */
    justify-content: center; /* 居中分布 */
    gap: 70px; /* 设置元素之间的间距 */
    margin-top: var(--space-md); /* 顶部间距 */
}

/* 主要电话号码样式 */
.phone-number {
    white-space: nowrap;
    font-size: 2.8rem; /* 较大字体 */
    font-weight: bold; /* 加粗 */
    color: var(--text-primary); /* 主要文本颜色 */
    transition: color var(--transition-fast); /* 颜色过渡 */
}

/* 详细联系信息样式 */
.contact-way-detail {
    display: flex; /* 弹性布局 */
    align-self: flex-start; /* 左对齐 */
    margin-bottom: var(--space-xs); /* 底部间距 */
}

/* 联系信息列表样式 */
.contact-way-detail-ul {
    list-style: none; /* 无列表符号 */
    padding: 0; /* 无内边距 */
    margin: 0; /* 无外边距 */
}

.contact-way-detail-ul, li {
    text-align: left; /* 确保文本左对齐 */
}

/* 单个联系信息项样式 */
.ways {
    margin-bottom: var(--space-xs); /* 底部间距 */
    color: var(--text-secondary); /* 次要文本颜色 */
}

/* 地址样式 */
.ways.addr {
    line-height: 1.5; /* 稍大行高 */
}

/* 二维码容器样式 */
.contact-way-wx {
    align-self: flex-end; /* 右对齐 */
    text-align: center; /* 文本居中 */
}

/* 二维码图片样式 */
.contact-way-wx img {
    width: 100px; /* 固定宽度 */
    height: 100px; /* 固定高度 */
    object-fit: cover; /* 覆盖填充 */
    border: 1px solid var(--border-color); /* 边框 */
}

/* 二维码文字说明样式 */
.contact-way-wx .word {
    margin-top: var(--space-xs); /* 顶部间距 */
    font-size: 0.85rem; /* 稍小字体 */
    color: var(--text-secondary); /* 次要文本颜色 */
}

/* 底部版权信息区域 */
.foot-bot-box {
    display: flex; /* 启用 flex 布局 */
    justify-content: center; /* 水平居中所有子元素 */
    align-items: center; /* 垂直居中对齐所有子元素 */
    margin-top: var(--space-lg); /* 大顶部间距 */
    padding-top: var(--space-md); /* 顶部内边距 */
    border-top: 1px solid var(--border-color); /* 顶部边框 */
    text-align: center; /* 文本居中 */
    color: var(--text-tertiary); /* 三级文本颜色 */
    font-size: 0.85rem; /* 稍小字体 */
}

.foot-bot-box div {
    margin: 0 10px; /* 给每个子元素添加左右间距，防止它们太靠近 */
}

/* 版权文本样式 */
.foot-copy {
    margin-bottom: var(--space-xs); /* 底部间距 */
}

/* 备案链接样式 */
.foot-icp a,
.foot-wb a {
    color: var(--text-tertiary); /* 三级文本颜色 */
    text-decoration: none; /* 无下划线 */
    transition: color var(--transition-fast); /* 颜色过渡 */
}

/* 备案链接悬停效果 */
.foot-icp a:hover,
.foot-wb a:hover {
    color: var(--primary-color); /* 主品牌色 */
    text-decoration: underline; /* 下划线 */
}

/* 响应式设计 - 平板及以上 */
@media (min-width: 768px) {
    /* 左右两大板块布局 */
    .footer {
        display: flex; /* 弹性布局 */
        justify-content: space-between; /* 两端对齐 */
    }

    /* 左板块宽度 */
    .link-information {
        flex: 1; /* 占据可用空间 */
        min-width: 300px; /* 最小宽度防止挤压 */
        margin-right: var(--space-md); /* 与右板块间距 */
        display: flex; /* 子元素flex布局 */
        flex-direction: column; /* 垂直排列 */
    }

    /* 右板块宽度 */
    .contact-way {
        width: 35%; /* 占35%宽度 */
        margin-top: 0; /* 无顶部间距 */
    }
}

/* 响应式设计 - 桌面大屏 */
@media (min-width: 1024px) {
    /* 链接信息区域改为两列布局 */
    .link-information > div {
        display: flex; /* 弹性布局 */
        gap: var(--space-lg); /* 大间距 */
    }

    /* 网站建设链接区域宽度 */
    .foot-link:first-child {
        flex: 2; /* 2份宽度 */
    }

    /* 友情链接区域宽度 */
    .foot-link:last-child {
        flex: 1; /* 1份宽度 */
    }
}

/* 手机端样式，垂直排列 */
@media (max-width: 768px) {
    .message {
        flex-direction: column; /* 垂直排列子元素 */
        gap: var(--space-lg); /* 添加子元素间距 */
    }

    .contact-way {
        align-items: flex-start; /* 确保左对齐 */
    }

    .contact-way-detail-all {
        flex-direction: row; /* 水平排列 */
        justify-content: flex-start; /* 从左开始排列 */
        align-items: flex-start; /* 顶部对齐 */
        gap: 70px; /* 设置元素之间的间距 */
    }

    .foot-bot-box {
        flex-direction: column; /* 垂直排列子元素 */
        justify-content: center; /* 垂直居中 */
        align-items: center; /* 水平居中 */
    }

    .foot-bot-box div {
        margin: 5px 0; /* 垂直排列时给子元素添加上下间距 */
    }
}