:root {
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --border-color: #e5e7eb;
    --gray-color: #6b7280;
    --transition: all 0.3s ease;
    --terminal-bg: #0f172a;
    --terminal-text: #4ade80;
    --terminal-border: #334155;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}

.section-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-color);
}

.section-header i {
    font-size: 1.0rem;
    color: var(--primary-color);
}


.sub-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sub-section-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}

.sub-section-header i {
    font-size: 1.0rem;
    color: var(--primary-color);
}

.info-section {
    background-color: var(--terminal-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    color: var(--terminal-text);
    font-family: "Courier New", Courier, monospace;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    text-align: left;
}

.info-header {
    border-bottom: 1px solid var(--terminal-border);
    padding-bottom: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--terminal-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-header h2 i {
    font-size: 1.0rem;
    color: var(--terminal-text);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ef4444;
}

.dot-yellow {
    background-color: #f59e0b;
}

.dot-green {
    background-color: #22c55e;
}

.result-content {
    flex: 1;
    overflow-y: auto;
    line-height: 1.5;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    background-color: #1e293b;
    text-align: left;
}

.result-content pre {
    font-family: inherit;
    font-size: 14px;
    color: var(--terminal-text);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.result-content .info-empty,
.info-empty {
    color: #94a3b8 !important;
    font-style: italic;
    padding: 40px 20px;
    text-align: left;
}

.highlight {
    color: #ef4444;
    font-weight: bold;
}

.result-content::-webkit-scrollbar {
    width: 6px;
}

.result-content::-webkit-scrollbar-track {
    background: var(--terminal-border);
    border-radius: 3px;
}

.result-content::-webkit-scrollbar-thumb {
    background: var(--terminal-text);
    border-radius: 3px;
}

.result-content::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

.operation-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.operation-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 6px;
}

.operation-header h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.operation-header h2 i {
    font-size: 1.0rem;
}


.btn {
    padding: 10px 0;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e2e8f0;
}

.btn-success {
    background-color: #f97316;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #ea580c;
}

.btn-copy {
    background-color: #3b82f6;
    color: white;
}

.btn-copy:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn-copy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-copy.success {
    background-color: #10b981 !important;
}

.btn-copy.success:hover:not(:disabled) {
    background-color: #0d9c6a !important;
}

.btn-preview {
    background-color: #14b8a6;
    color: white;
}

.btn-preview:hover:not(:disabled) {
    background-color: #0d9488;
}

.btn-preview.success {
    background-color: #14b8a6;
}

.btn-preview.success:hover:not(:disabled) {
    background-color: #0d9488;
}

.btn-preview:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.operation-section .option-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.operation-section .option-label {
    min-width: 90px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.operation-section select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    flex: 1;
    max-width: 300px;
}

.operation-section select:hover {
    border-color: var(--primary-color);
}

.operation-section select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
}

.progress-container {
    display: none;
    margin: 15px 0;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


.quality-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.1s;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #2563eb;
}

.quality-slider::-moz-range-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
}

.file-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    margin-bottom: 40px;
}

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

.file-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-header h2 i {
    color: var(--primary-color);
}

.file-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-header h3 i {
    color: var(--primary-color);
}


.btn-clear {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #f1f5f9;
}

.upload-area {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-area i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.upload-text {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

#file-input {
    display: none;
}

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

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-icon {
    color: var(--primary-color);
}

.file-item-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.file-item-size {
    font-size: 0.8rem;
    color: #64748b;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

.batch-count {
    margin-top: 12px;
    text-align: right;
    font-size: 0.85rem;
    color: #64748b;
}

.count-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.input-source-section {
    margin-bottom: 40px;
}

.input-source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.input-source-tab {
    padding: 6px 20px;
    border-radius: 20px;
    cursor: pointer;
    background: #e2e8f0;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.input-source-tab.active {
    background: var(--primary-color);
    color: white;
}

.input-source-panel {
    display: none;
}

.input-source-panel.active {
    display: block;
}

.text-input-box {
    width: 100%;
    height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.text-input-box:focus {
    border-color: var(--primary-color);
    background: white;
}

.file-upload-box .upload-area {
    height: 120px;
}

.tool-intro {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    margin-bottom: 40px;
}

.intro-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-content {
    display: grid;
    gap: 25px;
}

.intro-section h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.intro-section h3 i {
    color: var(--primary-color);
}

.intro-section p,
.intro-section ul {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.intro-section ul {
    padding-left: 20px;
}

.intro-section ul li {
    margin-bottom: 0;
    padding-bottom: 0;
}

.notes-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    margin-bottom: 40px;
}

.notes-section .section-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.note-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.note-item.warning {
    border-left-color: #f39c12;
}

.note-item.warning .note-title {
    color: #f39c12;
}

.note-item.success {
    border-left-color: var(--secondary-color);
}

.note-item.success .note-title {
    color: var(--secondary-color);
}

.note-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-content {
    color: #555;
    font-size: 0.95rem;
}

.recommendations-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    margin-bottom: 60px;
}

.recommendations-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.recommendations-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}

.recommendations-header i {
    font-size: 1.0rem;
    color: var(--primary-color);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.recommendation-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.recommendation-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.recommendation-name {
    font-size: 14px;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.4;
}




@media (max-width: 1200px) {
    .recommendations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}