* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 i {
    margin-right: 12px;
    color: #3498db;
    font-size: 1.2em;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}

/* 主内容区域h1标题样式 */
.main-content h1 {
    text-align: left;
    font-weight: normal;
    justify-content: flex-start;
    padding-bottom: 0;
    margin-top: 30px;
}

.main-content h1:after {
    display: none;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #2980b9;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: #3498db;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.model-subsection {
    margin-bottom: 20px;
}

.model-subsection:last-child {
    margin-bottom: 0;
}

.model-recommendation {
    margin-bottom: 0;
}

.recommendation-info {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.recommendation-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.recommendation-header i {
    margin-right: 8px;
    color: #ffd700;
    font-size: 18px;
}

.recommendation-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.model-selection {
    display: block;
}

.model-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 15px;
    padding: 0;
    justify-content: start;
}

/* 响应式断点调整 */
@media (max-width: 768px) {
    .model-items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-content: stretch;
    }
    
    .model-item {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .model-items-grid {
        grid-template-columns: repeat(4, 200px);
        justify-content: start;
    }
}

.metrics-selection {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 10px;
}

.model-item,
.metric-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 200px;
    box-sizing: border-box;
}

.model-item:hover,
.metric-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.3);
}

.model-item input,
.metric-item input {
    margin-right: 8px;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.data-input-method {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.method-option {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.data-input-method input[type="radio"] {
    margin-top: 0;
    vertical-align: middle;
}

.input-group label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 600;
    width: 80px;
    white-space: nowrap;
}

/* 选填标记样式 */
.optional {
    font-weight: normal;
    font-size: 0.8em;
    color: #888;
    font-style: italic;
}

/* 必填标记样式 */
.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
    white-space: nowrap;
}

.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group select {
    width: 50%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group input[type="text"]:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 50%;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    color: #666;
    transition: color 0.3s;
}

.input-with-icon input {
    padding-left: 35px;
}

.input-with-icon:focus-within i {
    color: #3498db;
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.data-entry {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.data-entry:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn {
    padding: 12px 18px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.btn.primary {
    background: #333333 !important;
    color: white !important;
    border-radius: 30px !important;
}

.btn.primary:hover {
    background: #555555 !important;
}

.btn.remove-btn {
    background-color: #f8f8f8;
    color: #e74c3c;
    padding: 8px 12px;
    margin-top: 10px;
}

.btn.remove-btn:hover {
    background-color: #fee;
    color: #c0392b;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.submit-section .btn {
    padding: 14px 35px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.hidden {
    display: none;
}

/* 模态框按钮样式 */
.cancel-btn {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.submit-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#resultSection {
    background-color: #f0f8ff;
}

#resultContent {
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    white-space: pre-wrap;
}

/* 查看任务结果按钮样式 - 黑白色系 */
.view-result-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #333333;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.view-result-btn i {
    font-size: 24px;
}

.view-result-btn:hover {
    background-color: #555555;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 15px;
    }
    
    .model-selection,
    .metrics-selection {
        grid-template-columns: 1fr;
    }
    
    .view-result-btn {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .view-result-btn i {
        font-size: 20px;
    }
}

/* Task ID版块样式 */
.task-info-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    color: #333;
    position: relative;
    overflow: hidden;
}

.task-info-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.task-info-content i {
    color: gray;
    margin-right: 8px;
}

.task-info-content span {
    font-weight: 500;
    color: #555;
    margin-right: 8px;
}

.task-id-value {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    font-size: 12px;
}

.copy-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-btn:active {
    transform: translateY(0);
}