/* 页脚模块样式 */

/* 页脚容器 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    position: relative;
}

#footer .inner {
    overflow: visible;
}

/* 页脚上半部分 */
.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-top .footer-column {
    float: left;
    width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: normal;
    position: relative;
    padding-bottom: 10px;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--spt-primary);
}

/* 页脚链接列表 */
.footer-column ul li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--spt-primary);
}

/* 页脚联系信息 */
.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

/* 页脚下半部分 */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 20px;
}

/* 社交链接 */
#social {
    overflow: hidden;
    margin: 20px 0;
    text-align: center;
}

#social li {
    display: inline-block;
    margin: 0 10px;
}

#social a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

#social a:hover {
    background-color: var(--spt-primary);
    transform: translateY(-3px);
}

/* 版权信息 */
#copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

#copyright a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

#copyright a:hover {
    color: var(--spt-primary);
}

/* 底部社交图标与二维码弹层修复 */
#social ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#social li {
    position: relative;
}

/* 图标容器：保持圆形背景，增强交互动画 */
#social a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.2s ease;
}

#social a:hover {
    background-color: var(--spt-primary);
    transform: translateY(-2px);
}

/* 实际图标图片尺寸与过渡 */
#social .icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(10%);
    transition: transform .18s ease, filter .18s ease;
}

#social a:hover .icon {
    filter: none;
    transform: translateY(-1px);
}

/* 二维码/信息卡片弹层 */
#social .qr {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 52px; /* 位于图标上方 */
    transform: translateX(-50%);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--spt-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .18);
    z-index: 10001; /* 置顶，超过返回顶部(9999)与导航遮罩 */
    min-width: 160px;
}

#social .qr img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
}

#social .qr .mail-card {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--spt-text-primary);
    white-space: nowrap;
}

/* hover 作为点击的降级回退：PC 上悬停可见 */
#social li:hover > .qr { display: block; }

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    #footer { background-color: #222; }
    #social a { background-color: rgba(255, 255, 255, 0.10); }
    #social .qr {
        background: #1c1c1c;
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 8px 24px rgb(0 0 0 / .45);
    }
    #social .qr .mail-card { color: #ddd; }
}

/* 全局悬浮弹层（点击图标时使用） */
#social-pop{ position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(8px);
  z-index:10010; padding:8px; background:#fff; border:1px solid var(--spt-border); border-radius:10px; box-shadow:0 10px 28px rgb(0 0 0 / .25);
  opacity:0; pointer-events:none; transition: opacity .16s ease, transform .16s ease; will-change: opacity, transform; }
#social-pop.is-open{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
#social-pop img{ display:block; width:180px; height:180px; object-fit:cover; }
#social-pop .mail-card{ padding:10px 12px; font-size:14px; line-height:1.6; color:var(--spt-text-primary); white-space:nowrap; }
@media (prefers-color-scheme: dark){
  #social-pop{ background:#1c1c1c; border-color:rgba(255,255,255,.18); box-shadow:0 12px 32px rgb(0 0 0 / .45); }
  #social-pop .mail-card{ color:#ddd; }
}

/* 小屏优化 */
@media (max-width: 768px) {
    #social a { width: 40px; height: 40px; line-height: 40px; }
    #social .icon { width: 20px; height: 20px; }
    #social .qr { bottom: 46px; padding: 6px; }
    #social .qr img { width: 140px; height: 140px; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-top .footer-column {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-top .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
    
    #footer {
        padding: 30px 0 15px;
    }
    
    .footer-top {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    #social li {
        margin: 0 5px;
    }
    
    #social a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}