/* 底部整体样式 */
.footer {
    background-color: #1c1c1c;
    color: #fff;
    padding: 50px auto 0;
}
/* 左侧文字部分样式 */
.left-text {
    display: flex;
    width: 60%;
}

/* 链接列样式 */
.footer-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.link-column ul {
    list-style: none;
    padding: 0;
}
.link-column ul li {
    /*margin-bottom: 10px;*/
}
.link-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.link-column ul li a:hover {
    color: #82202d;
    transform: translateX(5px);
}
/* 为"关于我们"标题添加专门的悬停效果 */
.link-column h3 a.about-link:hover {
    color: #82202d;
    transform: translateX(5px);
}
.link-column h3 a{
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 底部底部样式 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
    border-top: 1px solid #333;
}
.footer-bottom p {
    font-size: 12px;
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.footer-bottom a:hover {
    color: #82202d;
    text-decoration: none;
}

/* 修改底部内容容器样式 */
.footer-container {
    display: flex;
    justify-content: center; /* 改为居中对齐 */
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 10px 0;*/
    align-items: center; /* 垂直居中对齐 */
    min-height: 180px;
    /*margin-top: -40px;*/

}

.link-column h3 {
    line-height: 0.8em;
}

.qr-codes img:hover {
    transform: scale(1);
}

/* 左侧部分样式 - 改为与右侧对称的flex分配，更靠近分割线 */
.left-section {
    display: flex;
    flex: 1; /* 与右侧平分空间 */
    justify-content: flex-end; /* 内容靠右，靠近分割线 */
    padding-right: 100px; /* 减少右侧内边距，更靠近分割线 */
}

/* 右侧部分样式 - 更靠近分割线 */
.right-section {
    display: flex;
    flex: 1; /* 与左侧平分空间 */
    justify-content: flex-start; /* 内容靠左，靠近分割线 */
    padding-left: 100px; /* 减少左侧内边距，更靠近分割线 */
}

/* 右侧内容容器 */
.right-content {
    flex-direction: column;
    display: flex;
    align-items: center;
    text-align: center; /* 内容水平居中 */
    background-color: #1c1c1c;
}

/* 调整链接列间距 - 减小列之间的距离 */
.link-column {
    margin: 0 20px; /* 减小列间距，从15px改为10px */
}


.separator {
    width: 1px;
    height: 140px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px; /* 减小分割线与左右两侧的距离 */
    align-self: center;
}

/* 调整Logo样式 */
.footer-logo {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    width: 200px;
    height: auto;
    transition: none;
}

.footer-logo a {
    display: block;
    text-decoration: none;
    transition: none;
}

.footer-logo a:hover {
    transform: none;
}


#header .nav {
    margin-left: 0;
}

/* 关注我们头部 - 文字和图标在同一行 */
.follow-header {
    white-space: nowrap;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.follow-header span {
    font-size: 12px;
    color: #ccc;
    transition: all 0.3s ease;
}

.follow-header:hover span {
    color: #fff;
}

/* 社交媒体图标样式 */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: #fff;
    color: #fff;
}

.social-icon i {
    font-size: 18px;
    line-height: 1;
}

.social-icon span {
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
}

/* 二维码区域样式 */
.qr-codes {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px; /* 统一宽度 */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.qr-item:hover {
    /*transform: scale(1.05);*/
}

.qr-item a:hover {
    text-decoration: none;
    color: inherit;
}

.qr-code {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding: 2px;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8);
    margin: 0 auto 5px; /* 居中对齐并添加底部间距 */
}

.qr-code:hover {
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    filter: grayscale(100%) brightness(1.2);
}

.qr-item span {
    display: block;
    font-size: 10px;
    color: #ccc;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.qr-item:hover span {
    color: #fff;
}

/* 二维码弹窗样式 */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.qr-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qr-close:hover {
    color: #333;
}

.qr-modal-content img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-modal-content p {
    color: #333;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* 二维码悬浮提示样式 */
.qr-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 10px;
    border: 1px solid #e0e0e0;
    pointer-events: none;
}

.qr-tooltip img {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 4px;
}

.qr-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

/* 微信二维码悬浮提示样式 */
.wechat-qr-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 10px;
    border: 1px solid #e0e0e0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.wechat-qr-tooltip img {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 4px;
}

.wechat-qr-tooltip .qr-tooltip-arrow {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 20px;
    }

    .left-section, .right-section {
        padding: 0;
        margin: 20px 0;
    }

    .separator {
        display: none;
    }

    .follow-header {
        gap: 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .social-icon i {
        font-size: 14px;
    }

    .qr-modal-content {
        width: 280px;
        margin: 20% auto;
    }

    .qr-modal-content img {
        width: 180px;
        height: 180px;
    }
}

/* 移动端适配 - 响应式设计 */
@media (max-width: 768px) {
    /* 底部整体样式调整 */
    .footer {
        padding: 10px 0;
    }

    /* 底部容器调整 */
    .footer-container {
        flex-direction: column;
        padding: 20px 15px;
        min-height: auto;
        gap: 20px;
    }

    /* 左侧部分调整 */
    .left-section {
        flex: none;
        width: 100%;
        padding: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    /* 右侧部分调整 */
    .right-section {
        flex: none;
        width: 100%;
        padding: 0;
        justify-content: center;
    }

    /* 分割线隐藏 */
    .separator {
        display: none;
    }

    /* 链接列调整 */
    .link-column {
        margin: 0 15px;
        text-align: center;
    }

    .link-column h3 {
        margin-bottom: 15px;
    }

    .link-column h3 a {
        font-size: 16px;
    }

    .link-column ul li {
        /*margin-bottom: 8px;*/
    }

    .link-column ul li a {
        font-size: 14px;
    }

    /* Logo调整 */
    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-logo img {
        width: 180px;
    }

    /* 底部版权信息调整 */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 11px;
        margin: 5px 0;
    }

    .footer-bottom a {
        font-size: 11px;
    }

    /* 二维码弹窗调整 */
    .qr-modal-content {
        width: 280px;
        margin: 15% auto;
        padding: 20px;
    }

    .qr-modal-content img {
        width: 160px;
        height: 160px;
    }

    .qr-modal-content p {
        font-size: 14px;
    }

    /* 微信二维码悬浮提示调整 */
    .wechat-qr-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕适配 */
    .footer-container {
        padding: 15px 10px;
        gap: 15px;
    }

    .link-column {
        margin: 0 10px;
    }

    .link-column h3 a {
        font-size: 15px;
    }

    .link-column ul li a {
        font-size: 13px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-bottom {
        padding: 10px;
        gap: 8px;
    }

    .footer-bottom p {
        font-size: 10px;
        margin: 3px 0;
    }

    .footer-bottom a {
        font-size: 10px;
    }

    .qr-modal-content {
        width: 260px;
        margin: 10% auto;
        padding: 15px;
    }

    .qr-modal-content img {
        width: 140px;
        height: 140px;
    }

    .qr-modal-content p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    /* 极小屏幕适配 */
    .footer-container {
        padding: 10px 8px;
        gap: 12px;
    }

    .link-column {
        margin: 0 8px;
    }

    .link-column h3 a {
        font-size: 14px;
    }

    .link-column ul li a {
        font-size: 12px;
    }

    .footer-logo img {
        width: 120px;
    }
    .footer-bottom {
        padding: 8px;
        gap: 6px;
    }

    .footer-bottom p {
        font-size: 9px;
        margin: 2px 0;
    }

    .footer-bottom a {
        font-size: 9px;
    }

    .qr-modal-content {
        width: 240px;
        margin: 8% auto;
        padding: 12px;
    }

    .qr-modal-content img {
        width: 120px;
        height: 120px;
    }

    .qr-modal-content p {
        font-size: 12px;
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .footer-container {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
    }

    .left-section {
        flex: 1;
        margin-bottom: 0;
    }

    .right-section {
        flex: 1;
    }

    .separator {
        display: block;
        height: 120px;
    }

    .footer-logo img {
        width: 140px;
    }

}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .link-column ul li a:hover {
        transform: none;
    }

    .link-column h3 a:hover {
        transform: none;
    }

    .qr-item:hover {
        transform: none;
    }

    .qr-code:hover {
        transform: none;
    }

    /* 增加触摸目标大小 */
    .qr-item {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .link-column ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .link-column h3 a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .follow-us {
        display: flex;
        margin-top: -26px;
        font-size: 14px;
        text-align: center;
        align-items: center;
    }

    .official-title {
        white-space: nowrap;
        margin-right: 15px;
        line-height: 30px;
        padding: 0 0 10px 0;
    }
    /* 取消栏目标题的悬停效果 */
    .link-column h3 a.no-hover {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        transition: none;
    }

    .link-column h3 a.no-hover:hover {
        color: #fff;
        transform: none;
        cursor: default;
    }

}