/* Footer styles */
footer {
    background: linear-gradient(135deg, #1c1c28 0%, #2a2a3a 100%);
    color: #fff;
    padding: 0 0 20px 0;
    min-width: 100%; /* 改为100%，而不是固定宽度 */
    transform: translateY(0); /* 将 -240px 改为 0 */
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4a4a5a 50%, transparent 100%);
}

.footer-content {
    width: 100%; /* 改为100% */
    max-width: 1300px; /* 添加最大宽度 */
    margin: 0 auto;
    padding: 0 15px; /* 添加内边距 */
    box-sizing: border-box;
}

/* 修改 footer-main 布局 */
.footer-main {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

/* 修改 footer-right 样式 */
.footer-right {
    width: 30%;
    text-align: left;
    padding-right: 20px;
    border-right: 1px solid #333;
    order: -1; /* 将 footer-right 移到最左边 */
}

/* 修改 footer-columns 样式 */
.footer-columns {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    width: 33%;
}

.footer-column-small {
    flex: 0 0 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column-middle {
    flex: 1;
    min-width: 300px;
    padding: 0 30px;
    position: relative;
}

.footer-column-middle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, #4a4a5a 50%, transparent 100%);
}

.footer-column-large {
    flex: 1.2;
    min-width: 350px;
    padding-left: 30px;
}

/* 统一标题样式 */
.footer-column h3,
.footer-column h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column-small h3 {
    text-align: center;
    margin-bottom: 10px;
}

.footer-column-small img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.footer-column-small p {
    text-align: center;
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.footer-column-middle p {
    color: #c0c0c0;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

.footer-column-middle p br {
    margin-bottom: 8px;
}

.footer-column-large p {
    color: #c0c0c0;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
    font-weight: 400;
    text-indent: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #8a8a9a;
    text-decoration: none;
    font-size: 14px;
}

/* 添加 footer-right 样式 */
.footer-right h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-right > p {
    color: #8a8a9a;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-qr-codes {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    margin-bottom: 10px;
}

.footer-qr {
    text-align: center;
    margin-right: 20px; /* 添加右边距，使两个二维码之间有一定间隔 */
}

.footer-qr:last-child {
    margin-right: 0; /* 最后一个二维码不需要右边距 */
}

.footer-qr img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.footer-qr p {
    color: #8a8a9a;
    font-size: 12px;
}

.footer-right .contact-number {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-right .contact-btn {
    display: inline-block;
    background-color: #1890ff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

/* 保持 footer-bottom 样式不变 */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    color: #c0c0c0;
    font-size: 12px;
    line-height: 1.4;
}

/* 添加页脚顶部样式 */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.footer-top-item {
    display: flex;
    align-items: center;
}


.footer-top-item span {
    color: #fff;
    font-size: 18px;
}

.footer-top-item > .iconfont{
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 修改 footer-social 的样式 */
.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #3a3a4a;
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 32px;
}

.footer-social a:last-child {
    margin-right: 0;
}

.footer-social img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
        text-align: center;
    }

    .footer-column-small,
    .footer-column-middle,
    .footer-column-large {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 0;
    }

    .footer-column-middle::after {
        display: none;
    }

    .footer-column-middle,
    .footer-column-large {
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        margin: 8px 0;
    }

    .footer-column-large p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        padding: 15px 10px;
        gap: 20px;
    }

    .footer-column-small img {
        width: 100px;
        height: 100px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column-middle p,
    .footer-column-large p {
        font-size: 13px;
    }
}
