/* =========================================
   File Splitter Styles - 文件拆分器样式
   ========================================= */

.file-splitter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.file-splitter-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 24px;
}

.file-input-section {
    margin-bottom: 24px;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 44, 44, 44), 0.05);
}

.file-input-label i {
    font-size: 32px;
    color: #999;
    margin-bottom: 8px;
}

.file-input-label span {
    color: #666;
    font-size: 14px;
}

.split-options {
    margin-bottom: 24px;
}

.split-options h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    min-width: 120px;
}

.option-group input[type="radio"] {
    margin: 0;
}

.option-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 150px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.split-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.split-btn:hover:not(:disabled) {
    background: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-1px);
}

.split-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.split-results {
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.split-results h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.results-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.download-all-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.download-all-btn:hover {
    background: var(--primary-color);
    opacity: 0.9;
}

.file-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    color: #999;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: var(--primary-color);
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-splitter-modal {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .option-group input[type="number"] {
        width: 100%;
    }
}