/* 页脚基本样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 0 0;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* 添加相对定位 */
    z-index: 1; /* 添加较小的z-index值 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

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

/* 页脚各部分样式 */
.footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 33.333%;
    margin-bottom: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-section h3 {
    font-size: 17px;  /* 从16px调整为17px */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: rgb(255, 107, 0);
}

/* 导航链接样式 */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    font-size: 16px;  /* 从15px调整为16px */
}

.footer-nav a:hover {
    color: rgb(255, 107, 0);
    padding-left: 5px;
}

/* 联系信息样式 */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.5;
    font-size: 16px;
    display: flex;  /* 添加flex布局 */
    align-items: flex-start;  /* 顶部对齐 */
}

.contact-info i {
    margin-right: 10px;
    color: rgb(255, 107, 0);
    width: 16px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    margin-top: 3px;  /* 微调图标位置 */
}

/* 调整电话列表的对齐 */
.phone-list {
    margin-left: 26px;
    margin-top: 5px;
    padding-left: 0;
    display: flex;  /* 添加flex布局 */
    flex-direction: column;  /* 垂直排列 */
}

.phone-list span {
    display: block;
    margin-bottom: 5px;
}

/* 二维码样式 */
.footer-qrcodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.qrcode-wrapper {
    text-align: center;
    margin-bottom: 15px;
    width: 100px;
}

.platform-name {
    margin-bottom: 5px;
    font-weight: 600;
    color: #ccc;
    font-size: 16px;  /* 从15px调整为16px */
}

.qrcode {
    width: 90px;
    height: 90px;
    border: 3px solid #fff;
    margin-bottom: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.qrcode-desc {
    font-size: 15px;  /* 从14px调整为15px */
    color: #ccc;
    margin-top: 5px;
}

/* 页脚底部版权信息 */
.footer-bottom {
    background-color: #222;
    padding: 15px 0;
    text-align: center;
    font-size: 16px;  /* 从15px调整为16px */
    clear: both;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    color: #999;
}

.divider {
    margin: 0 10px;
}

.beian {
    color: #999;
    text-decoration: none;
}

.beian:hover {
    color: rgb(255, 107, 0);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: rgb(255, 107, 0);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgb(255, 107, 0);
    transform: translateY(-3px);
}

/* 修改 body 样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 确保主要内容区域自动填充空间 */
main {
    flex: 1;
}

/* 修改页脚底部样式 */
.footer-bottom {
    background-color: #222;
    padding: 15px 0;
    text-align: center;
    font-size: 15px;  /* 从14px调整为15px */
    clear: both;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 添加移动端适配 */
@media screen and (max-width: 768px) {
    footer {
        width: 100vw;
        margin: 0;
        padding: 0; /* 移除顶部内边距 */
    }

    .footer-content {
        display: none; /* 隐藏主要页脚内容 */
    }

    .footer-bottom {
        width: 100vw;
        margin: 0;
        padding: 10px 0; /* 稍微减小内边距 */
    }
}