/* ===== CSS变量定义 ===== */
:root {
    /* 明亮主题 - 纯白背景 */
    --footer-bg: #ffffff;
    --footer-text: #1d1d1f;
    --footer-text-secondary: #6e6e73;
    --footer-link: #0066cc;
    --footer-link-hover: #0077ed;
    --footer-btn-bg: rgba(0, 0, 0, 0.03);
    --footer-btn-hover: rgba(0, 0, 0, 0.06);
    --footer-btn-text: #1d1d1f;
    --footer-border: rgba(0, 0, 0, 0.08);
}

body.dark-theme {
    /* 暗黑主题 - 纯黑背景 */
    --footer-bg: #000000;
    --footer-text: #f5f5f7;
    --footer-text-secondary: #a1a1a6;
    --footer-link: #2997ff;
    --footer-link-hover: #0a84ff;
    --footer-btn-bg: rgba(255, 255, 255, 0.08);
    --footer-btn-hover: rgba(255, 255, 255, 0.12);
    --footer-btn-text: #f5f5f7;
    --footer-border: rgba(255, 255, 255, 0.15);
}

/* ===== Footer整体容器 ===== */
.footer {
    background: var(--footer-bg) !important;
    padding: 24px 20px !important;
    margin-top: 40px !important;
    border-top: 1px solid var(--footer-border) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.footer .container-footer {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}





/* ===== 底部按钮区域 ===== */
.footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
}

.footer-links a {
    display: inline-block !important;
    background: var(--footer-btn-bg) !important;
    color: var(--footer-btn-text) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

.footer-links a:hover {
    background: var(--footer-btn-hover) !important;
    transform: translateY(-1px) !important;
}

/* ===== 主要内容区域 ===== */
.footer-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
}

/* ===== 文字内容区域 ===== */
.footer-info {
    text-align: center !important;
    color: var(--footer-text-secondary) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 0 20px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.footer-info a {
    color: var(--footer-link) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer-info a:hover {
    color: var(--footer-link-hover) !important;
    text-decoration: none !important;
}

/* ===== 备案号区域（独立行） ===== */
.footer-beian {
    text-align: center !important;
    width: 100% !important;
}

.footer-beian .icp {
    display: inline-block !important;
    color: var(--footer-text-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 28px !important;
        margin-top: 60px !important;
    }

    .footer-links {
        gap: 10px !important;
        margin-bottom: 28px !important;
    }

    .footer-links a {
        padding: 7px 14px !important;
        font-size: 13px !important;
    }

    .footer-info {
        font-size: 12px !important;
        padding: 0 15px !important;
    }

    .footer-info .icp {
        font-size: 11px !important;
        padding: 5px 12px !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 16px 24px !important;
        margin-top: 48px !important;
    }

    .footer-links {
        gap: 8px !important;
    }

    .footer-links a {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    .footer-info {
        font-size: 12px !important;
        padding: 0 12px !important;
    }
}

/* ===== xc Action社交按钮样式 ===== */
.xc_action_item .xc_action_wechat {
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

body.dark-theme .xc_action_item .xc_action_wechat {
    background: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.xc_action_item:hover .xc_action_wechat {
    display: block;
}

.xc_action_item .xc_action_wechat img {
    width: 120px;
    height: 120px;
    display: block;
}

/* ===== xc Action响应式布局 ===== */
@media (max-width: 768px) {
    .xc_action {
        right: 10px !important;
        bottom: 20px !important;
        top: auto !important;
        transform: none !important;
    }

    .xc_action_item .xc_action_wechat {
        left: auto !important;
        right: 50px !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
    }
}