/* 基础样式（原有PC端样式完整保留，移除Tailwind依赖+优化字体/排列） */
.footer {
    background-color: #efeeed;
    padding: 5rem 0 0;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 4rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
    min-width: auto;
    padding-left: 0;
    gap: 6rem;
}

/* 移除Tailwind冲突样式，统一导航标题字体 */
.footer-links>a {
    display: block;
    padding-left: 0;
    margin-left: 0;
    font-size: 1.2rem;
    /* 导航标题字体大小（原Tailwind text-[1.6rem]） */
    font-weight: 500;
    /* 对应原font-medium */
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

/* 下拉列表样式：强制纵向排列+优化字体/间距（替代原Tailwind text-[1.4rem]等） */
.footer-links-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    opacity: 0.8;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* 下拉列表项样式 */
.footer-links-sub a {
    display: block;
    text-align: left;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social-pc {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.3s;
}

.social-icon:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 通用链接样式 + hover高亮（替代原hover:text-main） */
.footer-links a,
.copyright-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    text-align: left;
}

.footer-links a:hover,
.footer-links-sub a:hover,
.copyright-links a:hover {
    color: #011e41;
    /* 原hover:text-main的主色 */
}

/* 透明度样式（替代原opacity-80） */
.opacity-80 {
    opacity: 0.8;
}

.footer-copyright {
    background-color: #fff;
    padding: 1.8rem 1.5rem;
    width: 100%;
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #666;
}

.global-site {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-top {
    position: absolute;
    bottom: 8rem;
    right: 7rem;
    width: 3rem;
    height: 3rem;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    opacity: 1;
}

.back-to-top img {
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(-90deg);
}

/* 移动端社交图标（默认隐藏） */
.footer-social-mobile {
    display: none;
}

/* 新增的二维码弹窗样式 */
.qrcode-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    width: 180px;
    height: 180px;
}

.qrcode-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 移动端弹窗位置调整 */
.footer-social-mobile .qrcode-popup {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 10px;
}

.qrcode-container:hover .qrcode-popup {
    display: block;
}

.social-icon {
    width: 32px;
    height: 32px;
    margin: 0 8px;
    vertical-align: middle;
}

/* 响应式适配：移动端样式（屏幕宽度≤768px时生效） */
@media (max-width: 768px) {

    /* 隐藏PC端元素 */
    .footer-top {
        display: none;
    }

    .back-to-top {
        display: none;
    }

    /* 调整页脚基础样式 */
    .footer {
        padding: 2rem 0 0;
    }

    /* 显示移动端社交图标 */
    .footer-social-mobile {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem 0;
        border-bottom: 1px solid #ddd;
    }

    /* 重构版权信息布局 */
    .copyright-content {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        text-align: center;
    }

    .global-site {
        padding: 0.5rem 1rem;
        border: 1px solid #ddd;
        border-radius: 1rem;
        margin-bottom: 0.5rem;
    }

    .copyright-text {
        line-height: 1.4;
    }
}