/* ============================================
   所言APP - 通用导航弹窗样式
   文件名: nav-modal.css
   说明: 所有页面共用此CSS，无需在每个页面重复编写
   ============================================ */

/* 弹窗遮罩层 */
.nav-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.55);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: navModalFadeIn 0.2s ease;
}

@keyframes navModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 弹窗内容框 */
.nav-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: navModalSlideUp 0.25s ease;
}

@keyframes navModalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 关闭按钮 */
.nav-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* 弹窗标题 */
.nav-modal-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    padding-right: 40px;
}

/* 弹窗正文 */
.nav-modal-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.nav-modal-content h4 {
    margin: 18px 0 8px;
    font-size: 17px;
    color: #222;
}

.nav-modal-content p {
    margin: 6px 0;
}

.nav-modal-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.nav-modal-content li {
    margin: 4px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-modal-box {
        padding: 24px 18px 20px;
        max-height: 85vh;
    }
    .nav-modal-title {
        font-size: 18px;
    }
    .nav-modal-content {
        font-size: 14px;
    }
}
