/* 上传区域 - Apple 风格 */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--card-bg);
    margin-bottom: 20px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.04);
}

.upload-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.upload-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.upload-area h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
}

.upload-formats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.format-tag {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.file-input {
    display: none;
}

/* 已选文件 */
.file-selected {
    background: var(--input-bg);
    border: none;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-selected .file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.file-selected .file-icon svg {
    width: 24px;
    height: 24px;
}

.file-selected .file-info {
    flex: 1;
    height: 100%;
    min-width: 0;
}

.file-selected .file-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-selected .file-size {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-selected .remove-btn {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 10px;
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-selected .remove-btn:hover {
    background: var(--error);
    color: white;
}

/* 批量文件队列 */
.batch-file-list {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.batch-file-list .batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.batch-file-list .batch-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-file-list .batch-header .file-count {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.batch-file-list .batch-header .clear-all-btn {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.batch-file-list .batch-header .clear-all-btn:hover {
    background: var(--error);
    color: white;
}

.batch-file-list .file-queue {
    max-height: 200px;
    overflow-y: auto;
}

.batch-file-list .queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--input-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.batch-file-list .queue-item:last-child {
    margin-bottom: 0;
}

.batch-file-list .queue-item .queue-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.batch-file-list .queue-item .queue-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.batch-file-list .queue-item .queue-info {
    flex: 1;
    height: 100%;
    min-width: 0;
}

.batch-file-list .queue-item .queue-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-file-list .queue-item .queue-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.batch-file-list .queue-item .queue-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.batch-file-list .queue-item .queue-status.pending {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
}

.batch-file-list .queue-item .queue-status.processing {
    background: rgba(0, 113, 227, 0.2);
    color: var(--primary);
}

.batch-file-list .queue-item .queue-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.batch-file-list .queue-item .queue-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.batch-file-list .queue-item .remove-queue-item {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.batch-file-list .queue-item .remove-queue-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* 选项组 */
.option-group {
    margin-bottom: 20px;
}

.option-card {
    background: rgba(0, 113, 227, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    background: rgba(0, 113, 227, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
}

.option-card.selected {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--primary);
}

.option-card:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.option-card label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.option-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    height: 100%;
    text-align: center;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 语言选择 */
.language-selector {
    background: rgba(0, 113, 227, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.language-selector .option-title {
    margin-bottom: 12px;
}

.language-options {
    display: flex;
    gap: 12px;
}

.language-option {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    border-color: var(--primary-light);
}

.language-option.selected {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.08);
}

.language-option input {
    display: none;
}

.language-option .lang-icon {
    font-size: 1.2rem;
}

.language-option .lang-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* 输入模式切换 */
.input-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mode-tab {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 113, 227, 0.04);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-tab:hover {
    background: rgba(0, 113, 227, 0.08);
    border-color: var(--primary-light);
}

.mode-tab.active {
    background: rgba(0, 113, 227, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.mode-tab svg {
    flex-shrink: 0;
}

/* URL输入区域 */
.url-input-area {
    margin-bottom: 24px;
}

.url-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--input-bg);
    border: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.url-input-container:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.url-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.url-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.url-input::placeholder {
    color: var(--text-muted);
}

.url-clear-btn {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.url-clear-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.url-hint {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
