/* 转换页面通用样式 */
.image-convert,
.document-convert {
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.convert-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
}

.convert-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.convert-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.convert-container {
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.convert-steps {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.step {
    flex: 1;
    padding: 20px;
    text-align: center;
    position: relative;
    color: #6c757d;
}

.step.active {
    background: #3498db;
    color: white;
}

.step.completed {
    background: #27ae60;
    color: white;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
}

.step.active .step-number,
.step.completed .step-number {
    background: rgba(255,255,255,0.2);
    color: white;
}

.step-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.step-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.convert-content {
    padding: 40px;
}

/* 上传区域样式 */
.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.upload-area:hover .upload-icon,
.upload-area.dragover .upload-icon {
    color: #3498db;
}

.upload-text {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-hint {
    color: #adb5bd;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.upload-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* 文件预览样式 */
.file-preview {
    display: none;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.file-icon.pdf {
    background: #e74c3c;
}

.file-icon.word {
    background: #2980b9;
}

.file-icon.excel {
    background: #27ae60;
}

.file-icon.powerpoint {
    background: #f39c12;
}

.file-details h4 {
    margin: 0 0 5px;
    color: #2c3e50;
}

.file-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 格式选择样式 */
.format-selection {
    margin-bottom: 30px;
}

.format-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.format-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.format-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.format-category:hover {
    border-color: #3498db;
    background: white;
}

.category-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.3rem;
    color: #3498db;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.format-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.format-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.format-option.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.format-option.selected::after {
    content: '✓';
    position: absolute;
    top: 3px;
    right: 5px;
    color: #3498db;
    font-weight: bold;
    font-size: 0.8rem;
}

.format-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    margin-top: 8px;
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #6c757d;
    flex-shrink: 0;
}

.format-option:hover .format-icon,
.format-option.selected .format-icon {
    color: #3498db;
}

.format-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 质量设置样式 */
.quality-settings,
.conversion-options {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: none;
}

.quality-title,
.options-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.quality-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quality-option input[type="radio"] {
    margin-right: 10px;
}

.quality-option label {
    color: #495057;
    cursor: pointer;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.option-group select,
.option-group input[type="range"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
}

.range-value {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* 转换操作样式 */
.convert-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.convert-btn {
    background: linear-gradient(135deg, #3498db 0%, #3498db 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.convert-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 转换结果样式 */
.convert-result {
    text-align: center;
    padding: 40px;
    display: none;
}

.result-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.new-convert-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-convert-btn:hover {
    background: #5a6268;
}

/* 支持格式样式 */
.supported-formats {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.supported-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.support-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.support-icon.pdf {
    color: #e74c3c;
}

.support-icon.office {
    color: #2980b9;
}

.support-icon.text {
    color: #27ae60;
}

.support-icon.other {
    color: #f39c12;
}

.support-category-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.support-formats {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 转换器主要布局样式 */
.converter-main {
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.converter-header {
    text-align: center;
    margin-bottom: 40px;
}

.converter-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.converter-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.converter-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.converter-step {
    display: none;
    padding: 40px;
}

.converter-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2,
.step-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 历史记录页面样式 */
.history-filters {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
    color: #495057;
    min-width: 150px;
}

.filter-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.history-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.history-list {
    min-height: 200px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 10px;
}

.empty-state a {
    color: #3498db;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.page-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

/* 任务详情页面样式 */
.job-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.job-status {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-header h2 {
    color: #2c3e50;
    margin: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f39c12;
    color: white;
    font-weight: 500;
}

.status-badge.completed {
    background: #27ae60;
}

.status-badge.failed {
    background: #e74c3c;
}

.job-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item label {
    font-weight: 500;
    color: #495057;
}

.info-item span {
    color: #6c757d;
}

.conversion-progress {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    color: #2c3e50;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
    color: #6c757d;
}

.progress-steps .step.active {
    color: #3498db;
}

.progress-steps .step.completed {
    color: #27ae60;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.progress-steps .step.active .step-icon {
    background: #3498db;
    color: white;
}

.progress-steps .step.completed .step-icon {
    background: #27ae60;
    color: white;
}

.conversion-result,
.conversion-error {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-header,
.error-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.result-header h3,
.error-header h3 {
    color: #2c3e50;
    margin: 0;
}

.download-section {
    margin-bottom: 30px;
}

.download-file {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-details h4 {
    margin: 0 0 5px;
    color: #2c3e50;
}

.file-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.error-details {
    margin-bottom: 30px;
}

.error-details p {
    color: #6c757d;
    margin: 0;
}

/* 分类转换页面样式 */
.upload-section {
    margin-bottom: 30px;
}

.selected-files {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.selected-files h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.file-list {
    margin-bottom: 15px;
}

.add-more-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-more-btn:hover {
    background: #5a6268;
}

.format-categories {
    margin-bottom: 20px;
}

.format-category {
    margin-bottom: 20px;
}

.format-category h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-format {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.selected-format h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.format-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.format-icon-large {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.format-details {
    flex: 1;
}

.format-name-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.format-description {
    color: #6c757d;
    font-size: 0.9rem;
}

.change-format-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.change-format-btn:hover {
    background: #5a6268;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.conversion-progress {
    text-align: center;
}

.progress-info {
    margin-bottom: 20px;
}

.progress-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.progress-info p {
    color: #6c757d;
    margin: 0;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-text {
    color: #3498db;
    font-weight: 600;
    margin-top: 10px;
}

.conversion-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
}

.conversion-actions {
    margin-top: 20px;
}

.conversion-results {
    text-align: center;
}

.results-summary {
    margin-bottom: 30px;
}

.results-summary h4 {
    color: #2c3e50;
    margin: 15px 0 10px;
}

.results-summary p {
    color: #6c757d;
    margin: 0;
}

.results-list {
    margin-bottom: 30px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 通用样式 */
.upload-content {
    text-align: center;
}

.upload-content h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
}

.upload-content p {
    color: #6c757d;
    margin: 10px 0;
}

.upload-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.upload-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.files-list {
    margin-bottom: 20px;
}

.next-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.format-options {
    margin-bottom: 20px;
}

.format-group {
    display: none;
}

.format-group.active {
    display: block;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

.category-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.category-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.category-btn i {
    font-size: 1.5rem;
}

.download-section {
    margin-bottom: 30px;
}

.conversion-result {
    text-align: center;
    padding: 40px;
}

.file-info-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.file-info-notice p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.conversion-history {
    margin-top: 40px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.conversion-history h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.progress-area,
.result-area {
    text-align: center;
    padding: 40px;
    display: none;
    margin-bottom: 20px;
}

/* 确保进度区域在转换按钮上方 */
.convert-actions .progress-area {
    margin-bottom: 30px;
    padding: 20px;
    order: -1; /* 确保进度区域显示在按钮之前 */
}

.progress-area.active,
.result-area.active {
    display: block;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#3498db 0deg, #3498db var(--progress, 0deg), #e9ecef var(--progress, 0deg));
    position: relative;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 2s linear infinite;
}

.progress-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.progress-circle::after {
    content: attr(data-progress);
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
    z-index: 1;
}

/* 当有具体进度时，停止旋转动画 */
.progress-circle[data-progress]:not([data-progress=""]) {
    animation: none;
    background: conic-gradient(#3498db calc(var(--progress) * 3.6deg), #e9ecef calc(var(--progress) * 3.6deg));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-text {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.progress-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .convert-steps {
        flex-direction: column;
    }

    .convert-content,
    .converter-step {
        padding: 20px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .format-categories {
        grid-template-columns: 1fr;
    }

    .format-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .format-option {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .format-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .format-name {
        font-size: 0.9rem;
    }

    .convert-hero h1,
    .converter-header h1 {
        font-size: 2rem;
    }

    .support-categories {
        grid-template-columns: 1fr;
    }

    .history-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        min-width: auto;
        width: 100%;
    }

    .history-stats {
        grid-template-columns: 1fr;
    }

    .job-info {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }

    .download-file {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .format-display {
        flex-direction: column;
        text-align: center;
    }

    .conversion-details {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }
}