﻿/* =========================================================
   底部样式2：简洁紧凑版（footer-style-2 专用）
   社交图标按钮组 + 悬停二维码 + 链接组 + 协议/隐私 + 版权
   由 TempParts/Footer/footer-style-2.php 使用
   ========================================================= */
.ji-footer-style-2 {
    margin-top: 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 22px 40px 18px;
    color: var(--text-secondary);
    display: flex;
    font-size: var(--fs-xs);
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.ji-footer-style-2 * { box-sizing: border-box; margin: 0; padding: 0; }
/* ---------- 第一行：社交图标按钮 ---------- */
.ji-footer-style-2 .footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding-bottom: 16px;
}
.ji-footer-style-2 .social-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 5px;
    background: var(--bg-input);
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}
.ji-footer-style-2 .social-btn:hover {
    background: var(--bg-input);
    transform: translateY(-1px);
}
.ji-footer-style-2 .social-btn .icon-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3a3f47;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.ji-footer-style-2 .social-btn .icon-circle svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}
.ji-footer-style-2 .social-btn .btn-text {
    font-size: var(--fs-xs);
    color: #2c3038;
    letter-spacing: 0.3px;
}
/* ---------- 悬停二维码浮层 ---------- */
.ji-footer-style-2 .qr-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: none;
    padding: 12px 10px 10px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    pointer-events: none;
    z-index: 100;
    text-align: center;
    min-width: 120px;
}
.ji-footer-style-2 .social-btn:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.ji-footer-style-2 .qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 1px solid #fff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.ji-footer-style-2 .qr-popup .qr-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px;
    background: var(--bg-card);
    overflow: hidden;
}
.ji-footer-style-2 .qr-popup .qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ji-footer-style-2 .qr-popup .qr-title {
    font-size: var(--fs-xs);
    color: #222;
    margin-bottom: 2px;
    line-height: 1.3;
}
.ji-footer-style-2 .qr-popup .qr-desc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.4;
}
/* ---------- 链接组区（设计导航 / 服务与协议等，每组独占一行） ---------- */
.ji-footer-style-2 .footer-link-groups {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    flex-direction: column;
    width: 100%;
    margin-top: var(--gap);
}
.ji-footer-style-2 .footer-link-groups .link-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.ji-footer-style-2 .footer-link-groups .link-group .link-title {
    font-size: var(--fs-xs);
    color: var(--text-primary);
}
.ji-footer-style-2 .footer-link-groups .link-group ul {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.ji-footer-style-2 .footer-link-groups .link-group ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-xs);
    transition: color .2s;
}
.ji-footer-style-2 .footer-link-groups .link-group ul li a:hover {
    color: var(--b2color, #1a73e8);
}
/* ---------- 协议/隐私行（版权上方） ---------- */
.ji-footer-style-2 .footer-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0 2px;
    color: var(--text-muted);
}
.ji-footer-style-2 .footer-privacy .link-title {
    font-size: var(--fs-xs);
    color: var(--text-primary);
}
.ji-footer-style-2 .footer-privacy ul {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.ji-footer-style-2 .footer-privacy ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-xs);
    transition: color .2s;
}
.ji-footer-style-2 .footer-privacy ul li a:hover {
    color: var(--b2color, #1a73e8);
}
/* ---------- 版权信息（强制居中，避免被 B2 全局 .footer-bottom 样式覆盖） ---------- */
.ji-footer-style-2 .footer-bottom {
    padding-top: 10px;
    text-align: center !important;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 2;
}
.ji-footer-style-2 .footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 4px;
    transition: color .2s;
}
.ji-footer-style-2 .footer-bottom a:hover {
    color: var(--b2color, #1a73e8);
}
.ji-footer-style-2 .footer-bottom .line {
    display: block !important;
    text-align: center !important;
}
/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .ji-footer-style-2 {
        padding: 18px 16px 14px;
    }
    .ji-footer-style-2 .footer-social {
        gap: 12px;
    }
    .ji-footer-style-2 .social-btn {
        padding: 4px 10px 4px 4px;
    }
    .ji-footer-style-2 .social-btn .icon-circle {
        width: 20px;
        height: 20px;
    }
    .ji-footer-style-2 .social-btn .icon-circle svg {
        width: 11px;
        height: 11px;
    }
    .ji-footer-style-2 .footer-link-groups {
        flex-direction: column;
        gap: 8px;
    }
    .ji-footer-style-2 .footer-link-groups .link-group ul {
        gap: 12px;
    }
}

/* ============ 暗夜模式适配（footer.css） ============ */
[data-theme="dark"] .ji-footer-style-2 { background: #14161a; border-top-color: #2a2d33; color: #8a90a0; }
[data-theme="dark"] .ji-footer-style-2 .social-btn { background: #2a2d33; }
[data-theme="dark"] .ji-footer-style-2 .social-btn:hover { background: #34383f; }
[data-theme="dark"] .ji-footer-style-2 .social-btn .btn-text { color: #e8eaf0; }
[data-theme="dark"] .ji-footer-style-2 .qr-popup { background: #24262c; }
[data-theme="dark"] .ji-footer-style-2 .qr-popup::after { border-top-color: #24262c; }
[data-theme="dark"] .ji-footer-style-2 .qr-popup .qr-box { border-color: #3a3f47; background: #24262c; }
[data-theme="dark"] .ji-footer-style-2 .qr-popup .qr-title { color: #e8eaf0; }
[data-theme="dark"] .ji-footer-style-2 .qr-popup .qr-desc,
[data-theme="dark"] .ji-footer-style-2 .footer-link-groups .link-group ul li a,
[data-theme="dark"] .ji-footer-style-2 .footer-privacy,
[data-theme="dark"] .ji-footer-style-2 .footer-privacy ul li a,
[data-theme="dark"] .ji-footer-style-2 .footer-bottom,
[data-theme="dark"] .ji-footer-style-2 .footer-bottom a { color: #8a90a0; }
[data-theme="dark"] .ji-footer-style-2 .footer-link-groups .link-group .link-title,
[data-theme="dark"] .ji-footer-style-2 .footer-privacy .link-title { color: #c9cdd6; }