/* 手册模态弹窗样式 */
.manual-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manual-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.manual-modal-content {
    background: rgba(0, 10, 30, 0.95);
    border: 1px solid rgba(0, 219, 255, 0.3);
    border-radius: 16px;
    width: 98%;
    height: 95%;
    max-width: 1600px;
    max-height: 1000px;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.manual-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(0, 219, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    min-height: 60px;
}

.manual-modal-title {
    color: #00dbff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 219, 255, 0.4);
}

.manual-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.manual-modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    transform: scale(1.1);
}

.manual-modal-close svg {
    width: 24px;
    height: 24px;
}

.manual-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #0ea5e9 rgba(30, 41, 59, 0.8);
}

/* manual-modal-body 的滚动条样式 */
.manual-modal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.manual-modal-body::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
}

.manual-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.manual-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.manual-modal-body::-webkit-scrollbar-corner {
    background: rgba(30, 41, 59, 0.8);
}

.manual-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.manual-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.manual-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 219, 255, 0.3);
    border-top: 3px solid #00dbff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.manual-loading-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .manual-modal.active {
        padding: 8px;
    }
    
    .manual-modal-content {
        width: 100%;
        height: 97%;
        border-radius: 12px;
    }
    
    .manual-modal-header {
        padding: 12px 18px;
        min-height: 50px;
    }
    
    .manual-modal-title {
        font-size: 1.1rem;
    }
    
    .manual-modal-close {
        width: 36px;
        height: 36px;
    }
    
    .manual-modal-close svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .manual-modal.active {
        padding: 4px;
    }
    
    .manual-modal-content {
        height: 98%;
        border-radius: 8px;
    }
    
    .manual-modal-header {
        padding: 10px 15px;
        min-height: 45px;
    }
    
    .manual-modal-title {
        font-size: 1rem;
    }
    
    .manual-modal-close {
        width: 32px;
        height: 32px;
    }
    
    .manual-modal-close svg {
        width: 18px;
        height: 18px;
    }
} 