/* =================================================================== */
/* 模态框样式                                                          */
/* =================================================================== */

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.menu-modal-content {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95),
        rgba(240, 253, 244, 0.9)
    );
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.menu-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.menu-modal-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.menu-modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.modal-section ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.modal-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-section li:last-child {
    margin-bottom: 0;
}

/* 自定义滚动条 */
.menu-modal-body::-webkit-scrollbar {
    width: 6px;
}

.menu-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.menu-modal-body::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
    border-radius: 3px;
}

.menu-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu-modal-overlay {
        padding: 16px;
    }
    
    .menu-modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .menu-modal-header {
        padding: 20px 20px 12px;
    }
    
    .menu-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .menu-modal-body {
        padding: 20px;
        max-height: calc(90vh - 80px);
    }
    
    .modal-section {
        margin-bottom: 20px;
    }
    
    .modal-section h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-modal-overlay {
        padding: 12px;
    }
    
    .menu-modal-header {
        padding: 16px 16px 12px;
    }
    
    .menu-modal-body {
        padding: 16px;
    }
}

/* 问答式样式 */
.qa-answer {
    background: rgba(34, 197, 94, 0.05);
    border-left: 4px solid #22c55e;
    padding: 16px;
    margin-top: 8px;
    border-radius: 0 8px 8px 0;
}

.qa-answer p {
    margin: 0 0 8px 0;
    color: #374151;
    line-height: 1.6;
}

.qa-answer p:last-child {
    margin-bottom: 0;
}

.qa-answer ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.qa-answer li {
    margin-bottom: 6px;
    color: #4b5563;
    line-height: 1.5;
}

.qa-answer li:last-child {
    margin-bottom: 0;
}

.qa-answer strong {
    color: #059669;
    font-weight: 600;
}

/* 问题标题增强 */
.modal-section h4 {
    background: rgba(34, 197, 94, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-section h4:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: translateX(2px);
}

/* 移动端问答样式优化 */
@media (max-width: 768px) {
    .qa-answer {
        padding: 12px;
        margin-top: 6px;
    }
    
    .modal-section h4 {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}