/* ==================== 公共底部样式 ==================== */

.site-footer {
    font-family: "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, tahoma, arial, Verdana, sans-serif, "WenQuanYi Micro Hei";
    font-size: var(--portal-font-size-base, 14px);
}

/* === 蓝色导航条 === */
.footer-nav-bar {
    background: var(--portal-secondary, #2468ed);
}

.footer-nav-inner {
    max-width: var(--portal-container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 50px;
}

/* 下拉菜单项 */
.footer-dropdown {
    position: relative;
}

.footer-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 50px;
    height: 50px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    user-select: none;
}

.footer-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.footer-dropdown:hover .footer-dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉面板 */
.footer-dropdown-panel {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #fff;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 6px 0;
}

.footer-dropdown:hover .footer-dropdown-panel {
    display: block;
}

.footer-dropdown-panel a {
    display: block;
    padding: 6px 50px;
    color: var(--portal-text, #333);
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.footer-dropdown-panel a:hover {
    background: #f5f5f5;
    color: var(--portal-secondary, #1a3a5c);
}

/* === 底部主体区 === */
.footer-body {
    background: #f5f7fa;
    padding: 24px 20px 20px;
    text-align: center;
}

.footer-body-inner {
    max-width: var(--portal-container-width, 1200px);
    margin: 0 auto;
}

/* 功能链接行 */
.footer-util-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-bottom: 25px;
}

.footer-util-links a {
    color: var(--portal-text-secondary, #333);
    font-size: 15px;
    padding: 0 10px;
    transition: color 0.2s;
}

.footer-util-links a:hover {
    color: var(--portal-secondary, #333);
}

.footer-util-links .util-sep {
    color: #ccc;
    font-size: 12px;
}

/* 版权信息行 */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    color: var(--portal-text-muted, #333);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* 备案信息行 */
.footer-filing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    color: var(--portal-text-muted, #333);
    flex-wrap: wrap;
}

.footer-filing a {
    color: var(--portal-text-muted, #333);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.footer-filing a:hover {
    color: var(--portal-text-secondary, #333);
}

.footer-filing-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

/* ==================== 设为首页提示对话框 ==================== */
.homepage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #c62828;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.modal-body p {
    margin: 0 0 12px 0;
}

.modal-body ol {
    margin: 0;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #2468ed;
    font-weight: 600;
}

.modal-footer {
    padding: 16px 20px;
    text-align: right;
    border-top: 1px solid #e0e0e0;
}

.modal-btn {
    padding: 8px 24px;
    background: #2468ed;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #1a5ad9;
}

/* ==================== H5 响应式 ==================== */
@media (max-width: 768px) {

    .footer-nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0;
        gap: 0;
    }

    .footer-dropdown {
        flex: 1;
        min-width: 33.33%;
    }

    .footer-dropdown-trigger {
        justify-content: center;
        padding: 0 12px;
        height: 44px;
        font-size: 13px;
    }

    .footer-dropdown-panel {
        left: 0;
        transform: none;
        min-width: 100%;
    }

    .footer-body {
        padding: 18px 16px 16px;
    }

    .footer-util-links {
        margin-bottom: 12px;
    }

    .footer-util-links a {
        font-size: 12px;
        padding: 0 6px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 6px;
        font-size: 11px;
    }

    .footer-filing {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }
}
