:root {
    --primary-color: #0f62fe;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 20px;
}

.container-fluid {
    max-width: 1400px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
}

.upload-dropzone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-dropzone i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.progress-container {
    margin-top: 20px;
    display: none;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.file-actions button {
    margin-left: 5px;
}

.code-editor {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    resize: none;
}

.config-row {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
}

.config-item {
    margin-bottom: 10px;
}

.config-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.output-area {
    background-color: #0b1020;
    color: #e6f0ff;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    white-space: pre-wrap;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    resize: none;
    border: 1px solid #343a40;
}

.badge-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-content {
    padding: 20px 0;
}

.nav-tabs .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.log-area {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 17px;
    resize: none;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    border-top: 1px solid #eaeaea;
}

.payment-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.payment-header {
    background: linear-gradient(135deg, var(--primary-color), #0043ce);
    color: white;
    padding: 20px;
    text-align: center;
}

.price-tag {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.upload-area, .download-area {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preset-badge {
    cursor: pointer;
    transition: all 0.3s;
}

.preset-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.config-collapse {
    transition: all 0.3s ease;
}

/* 新的文件上传样式 */
.file-upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: #e6f3ff;
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-size: 18px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.upload-placeholder small {
    color: #6c757d;
}

.uploaded-files {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.file-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.file-card:last-child {
    margin-bottom: 0;
}

.file-card i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 12px;
}

.file-card .file-name {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.file-card .file-size {
    color: #6c757d;
    font-size: 12px;
    margin-right: 10px;
}

.file-card .file-remove {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.file-card .file-remove:hover {
    color: #bd2130;
}

/* 代码输入框样式优化 */
.code-input {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    height: 250px;
}

/* 批量处理文件列表 */
.batch-files-list {
    max-height: 200px;
    overflow-y: auto;
}

.batch-file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #e9ecef;
}

.batch-file-item:last-child {
    margin-bottom: 0;
}

/* 新增支付相关样式 */
.order-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-id {
    font-family: monospace;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.preview-code {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre-wrap;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #444;
    position: relative;
    line-height: 1.5;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.payment-required {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-required i {
    font-size: 16px;
}

/* 当有内容时隐藏覆盖层 */
.preview-code.has-content .preview-overlay {
    display: none;
}

/* 输出代码区域样式 */
.output-area {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre-wrap;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #444;
    line-height: 1.5;
}

/* 订单信息样式优化 */
.order-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.order-info .order-id {
    font-family: 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.order-info .badge {
    font-size: 12px;
    padding: 6px 12px;
}
