* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}
        .header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4a90e2;
}

.hero {
    background: linear-gradient(135deg, #4a90e2 0%, #7db4f0 100%);
    text-align: center;
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}
.footer {
    background: #2c3e50;
    color: #bfbfbf;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #8c8c8c;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar {
        margin: 0;
        max-width: 100%;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .content-wrapper {
        padding: 20px;
    }

    .main-content {
        padding: 20px 10px;
    }
}
.main-content {
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    min-height: 500px;
    margin-top: 15px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

.section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
}

/* 左侧区域 */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-section {
    flex: 1;
}

.quick-actions-section {
    flex: 0 0 auto;
}

/* 移动端参数区域 - 默认隐藏 */
.mobile-params-section {
    display: none;
}

/* 桌面端参数区域 */
.advanced-params {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

/* 移动端布局 */
@media (max-width: 768px) {
    .left-section {
        order: 1;
    }
    
    /* 显示移动端参数区域 */
    .mobile-params-section {
        display: block;
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        order: 2;
    }
    
    .upload-section {
        order: 1;
    }
    
    .quick-actions-section {
        order: 3;
    }
    
    /* 隐藏桌面端参数区域 */
    .advanced-params {
        display: none;
    }
}

.section h2 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4A90E2;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    border-radius: 1px;
}

.upload-area {
    border: 2px dashed #4A90E2;
    border-radius: 10px;
    padding: 8px 15px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #357ABD;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #357ABD;
    background: #e8f0ff;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 2em;
    color: #4A90E2;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    color: #666;
    font-size: 0.85em;
}

.file-input {
    display: none;
}

.btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 3px;
    min-width: 100px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    font-size: 0.85em;
    padding: 6px 12px;
}

.btn-secondary:hover {
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* 参数设置样式 */
.advanced-params h2, .mobile-params-section h2 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4A90E2;
    position: relative;
}

.advanced-params h2::after, .mobile-params-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    border-radius: 1px;
}

.params-note {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 20px;
    font-style: italic;
    padding: 8px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid #4A90E2;
}

.param-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.param-label {
    min-width: 60px;
    color: #555;
    font-weight: 500;
    font-size: 0.9em;
}

.param-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: white;
    width: 70%;        }

.param-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.param-unit {
    color: #666;
    font-size: 0.85em;
    min-width: 25px;
    font-weight: 500;
}

.param-description {
    font-size: 0.75em;
    color: #888;
    margin-top: 3px;
    margin-left: 70px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* 快捷操作区域 */
.quick-actions-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
    transition: all 0.3s ease;
    padding: 10px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.action-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95em;
    margin: 0;
}

/* 模板提醒 */
.template-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.template-notice h4 {
    color: #1976d2;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.template-notice p {
    color: #424242;
    font-size: 0.8em;
    margin-bottom: 8px;
}

.file-info {
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #e9ecef;
    font-size: 0.9em;
}

.validation-failed {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.validation-failed h4 {
    color: #d32f2f;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.validation-failed p {
    color: #424242;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.results-section {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 0.85em;
}

.preview-table th {
    background: #4A90E2;
    color: white;
    padding: 10px 6px;
    font-size: 0.85em;
    font-weight: 500;
}

.preview-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85em;
    text-align: center;
}

/* 保持第一列(样本名称)左对齐 */
.preview-table td:first-child {
    text-align: left;
}

.error-message, .warning-message, .success-message {
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 25px;
    height: 25px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.curve-info {
    background: #e8f4f8;
    border: 1px solid #4A90E2;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.curve-equation {
    font-size: 1.1em;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.tab.active {
    border-bottom-color: #4A90E2;
    color: #4A90E2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 数据预览 */
.data-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-item .label {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 3px;
}

.summary-item .value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #4A90E2;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        margin: 5px;
        border-radius: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .main-content {
        padding: 15px;
        gap: 15px;
    }
    
    .section, .mobile-params-section {
        padding: 15px;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    .param-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .param-label {
        min-width: auto;
    }
    
    .param-description {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .data-summary {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 10px;
    }
}