/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.author {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* 免责声明样式 */
.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff4e6 0%, #ffe6cc 100%);
    border: 1px solid #f0ad4e;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
}

.disclaimer p {
    margin-bottom: 8px;
    color: #8a6d3b;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.disclaimer strong {
    color: #d58512;
}

/* 主内容区 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 文件上传区 */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.15);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-text h3 {
    margin-bottom: 10px;
    color: #333;
}

.upload-text p {
    color: #666;
}

.file-info {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.file-name {
    font-weight: bold;
    margin-right: 15px;
}

.file-size {
    color: #666;
}

/* 配置区域 */
.config-section {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-group {
    display: flex;
    flex-direction: column;
}

.config-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.config-group select,
.config-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.config-group select:focus,
.config-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-group input.error {
    border-color: #dc3545;
}

.api-key-status {
    margin-top: 5px;
    font-size: 0.9rem;
}

.api-key-status.valid {
    color: #28a745;
}

.api-key-status.invalid {
    color: #dc3545;
}

/* 按钮样式 */
.action-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn-primary,
.btn-secondary,
.btn-small {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: 2px solid transparent;
}

.btn-info:hover {
    background: linear-gradient(45deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 进度显示 */
.progress-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-status {
    color: #666;
    font-size: 0.9rem;
}

/* 预览区域 */
.preview-section {
    margin-bottom: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-pane {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.preview-pane h4 {
    background: #f8f9fa;
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.text-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.text-content.editable {
    background: #fff;
    cursor: text;
}

.text-content.editable:focus {
    outline: 2px solid #667eea;
}

/* 日志区域 */
.log-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    height: 200px;
    overflow-y: auto;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 5px;
}

.log-entry.info {
    color: #4fc3f7;
}

.log-entry.success {
    color: #81c784;
}

.log-entry.warning {
    color: #ffb74d;
}

.log-entry.error {
    color: #e57373;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 赞助相关样式 */
.sponsor-qr {
    text-align: center;
    margin: 20px 0;
}

.sponsor-qr img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sponsor-text {
    text-align: center;
    color: #666;
}

/* 策略选择样式 */
.strategy-options {
    margin: 20px 0;
}

.radio-option {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-option span {
    font-weight: 600;
    display: block;
}

.radio-option small {
    color: #666;
    font-size: 0.9rem;
}

/* 术语表样式 */
#customTermsText {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.terms-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 历史记录样式 */
#historyList {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.history-item h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.history-item .history-meta {
    font-size: 0.9rem;
    color: #666;
}

.history-empty {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* 硬编码检测样式 */
.modal-large {
    max-width: 900px;
    max-height: 90vh;
}

.hardcoded-settings {
    margin-bottom: 20px;
}

.hardcoded-settings h4 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-option span {
    font-weight: 500;
    color: #333;
}

.filter-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.filter-settings label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.filter-settings input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hardcoded-results {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.hardcoded-stats {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hardcoded-stats h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.hardcoded-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hardcoded-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.hardcoded-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hardcoded-item:last-child {
    border-bottom: none;
}

.hardcoded-item:hover {
    background: #f8f9fa;
}

.hardcoded-checkbox {
    transform: scale(1.2);
}

.hardcoded-content {
    flex: 1;
}

.hardcoded-original {
    font-family: 'Consolas', monospace;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
}

.hardcoded-translation {
    color: #28a745;
    font-weight: 500;
}

.hardcoded-context {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.hardcoded-location {
    font-size: 0.8rem;
    color: #888;
    font-family: 'Consolas', monospace;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.hardcoded-progress {
    margin: 20px 0;
}

.progress-text {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

/* 加载动画 */
.scanning-animation {
    display: inline-block;
    animation: scan-pulse 2s infinite;
}

@keyframes scan-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 代码高亮 */
.code-highlight {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1001;
}

.tooltip:hover::after {
    opacity: 1;
}

/* 多文件列表样式 */
.files-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.files-header h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    background: #dc3545;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.files-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.file-item.status-pending {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.file-item.status-processing {
    border-left-color: #007bff;
    background: #d1ecf1;
    animation: pulse 1.5s infinite;
}

.file-item.status-completed {
    border-left-color: #28a745;
    background: #d4edda;
}

.file-item.status-error {
    border-left-color: #dc3545;
    background: #f8d7da;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.file-size {
    color: #007bff;
    font-weight: 500;
}

.file-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
}

.status-pending .file-status {
    background: #ffc107;
    color: #856404;
}

.status-processing .file-status {
    background: #007bff;
    color: white;
}

.status-completed .file-status {
    background: #28a745;
    color: white;
}

.status-error .file-status {
    background: #dc3545;
    color: white;
}

.file-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    font-style: italic;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.file-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.files-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
}

.files-summary strong {
    color: #007bff;
    font-weight: 600;
}

/* 上传区域增强 */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.upload-area {
    border: 3px dashed #007bff;
    border-radius: 15px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #0056b3;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #28a745;
    background: #d4edda;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #0056b3;
}

.upload-text h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.upload-text p {
    color: #666;
    margin-bottom: 8px;
}

.upload-text small {
    color: #007bff;
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

/* 工具选择区样式 */
.tools-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-card.main-tool {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.tool-card.enhanced-tool {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
    position: relative;
}

.tool-card.enhanced-tool::before {
    content: "🌟 推荐";
    position: absolute;
    top: -10px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.tool-icon {
    font-size: 3em;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tool-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(0,123,255,0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.enhanced-tool .feature {
    background: rgba(40,167,69,0.1);
    color: #28a745;
}

.btn-tool {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-tool:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-tool.enhanced {
    background: #28a745;
}

.btn-tool.enhanced:hover {
    background: #1e7e34;
}

.btn-tool.active {
    background: #6c757d;
    cursor: default;
}

.btn-tool.active:hover {
    background: #6c757d;
    transform: none;
}

/* 批量处理区域样式 */
.batch-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.batch-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.batch-files {
    margin-bottom: 20px;
}

.batch-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.files-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: background-color 0.2s;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.file-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.file-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.file-pending {
    background: #fff3cd;
    color: #856404;
}

.file-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.file-completed {
    background: #d4edda;
    color: #155724;
}

.file-error {
    background: #f8d7da;
    color: #721c24;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions button {
    padding: 4px 8px;
    font-size: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-actions .btn-remove {
    background: #dc3545;
    color: white;
}

.file-actions .btn-remove:hover {
    background: #c82333;
}

/* 批量策略选择 */
.batch-strategy {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.batch-strategy h4 {
    margin-bottom: 15px;
    color: #333;
}

.strategy-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strategy-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.strategy-options label:hover {
    background: #e9ecef;
}

.strategy-options input[type="radio"]:checked + label,
.strategy-options label:has(input[type="radio"]:checked) {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

/* 文件管理区域 */
.file-management {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.uploaded-files-list {
    margin-bottom: 10px;
}

.file-actions {
    text-align: center;
}

.btn-secondary.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .files-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-remove {
        align-self: flex-end;
    }
    
    .files-summary {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .batch-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .strategy-options {
        gap: 8px;
    }
}
