/* 导航按钮样式 */
.experiment-dropdown {
    position: relative;
    margin-left: 15px;
}

.experiment-task-nav-button {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
}

.experiment-task-nav-button:hover {
    background: rgba(0,0,0,0.2);
}

.experiment-task-nav-button i {
    margin-right: 5px;
}

.experiment-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    background: #252f3f;
    border: 1px solid #394151;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.experiment-dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 8px 12px;
    font-weight: 500;
    color: #e4e6eb;
    border-bottom: 1px solid #394151;
}

.dropdown-section-header {
    padding: 6px 12px;
    font-weight: 500;
    color: #a0a8b7;
    background: #2a3341;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #e4e6eb;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #323c4e;
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-item .complete-icon {
    color: #4caf50;
}

.dropdown-item .incomplete-icon {
    color: #a0a8b7;
}

.dropdown-divider {
    height: 1px;
    background: #394151;
    margin: 4px 0;
}

/* 任务面板样式 */
.experiment-task-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9000;
    display: none;
}

.experiment-task-panel.visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #252f3f;
    border-bottom: 1px solid #394151;
}

.panel-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    flex: 1;
}

.panel-title i {
    margin-right: 10px;
    font-size: 22px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4e6eb;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.15);
}

.close-btn i {
    font-size: 18px;
}

.panel-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 80vw;
    max-width: 1000px;
    background: #1a2131;
    color: #e4e6eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.nav-buttons {
    display: flex;
    padding: 0 16px;
    background: #252f3f;
    border-bottom: 1px solid #394151;
    overflow-x: auto;
}

.nav-btn {
    padding: 12px 16px;
    background: none;
    border: none;
    color: #a0a8b7;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.nav-btn.active {
    color: #4caf50;
    border-bottom-color: #4caf50;
}

.sections-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* 概览页面样式 */
.overview h2, .overview h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.overall-progress {
    position: relative;
    height: 30px;
    background: #252f3f;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.overall-progress span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
}

.section-stats {
    margin-bottom: 24px;
}

.section-stat {
    margin-bottom: 10px;
}

.section-name {
    margin-bottom: 4px;
    font-weight: 500;
}

.section-progress {
    position: relative;
    height: 20px;
    background: #252f3f;
    border-radius: 4px;
    overflow: hidden;
}

.section-progress span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.experiment-intro {
    background: #252f3f;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.experiment-intro p {
    margin: 8px 0;
    line-height: 1.5;
}

/* 实验任务样式 */
.section h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.section-description {
    margin-bottom: 20px;
    color: #a0a8b7;
    line-height: 1.5;
}

.sub-experiment-item {
    display: flex;
    margin-bottom: 24px;
    padding: 20px;
    background: #252f3f;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.status {
    margin-right: 16px;
    padding-top: 4px;
}

.status.done i {
    color: #4caf50;
    font-size: 24px;
}

.status.todo i {
    color: #a0a8b7;
    font-size: 24px;
}

.detail {
    flex: 1;
}

.detail h3 {
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.optional-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: #394151;
    color: #a0a8b7;
    border-radius: 4px;
    font-size: 12px;
}

.task-description {
    margin-bottom: 16px;
    color: #c0c4d0;
    line-height: 1.5;
}

.task-steps {
    margin-bottom: 20px;
}

.task-steps h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e4e6eb;
}

.task-steps ol {
    margin: 0;
    padding-left: 20px;
}

.task-steps li {
    margin-bottom: 4px;
    color: #c0c4d0;
}

.task-analysis {
    margin-bottom: 20px;
}

.task-analysis h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e4e6eb;
}

.analysis-text {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #1a2131;
    border: 1px solid #394151;
    border-radius: 4px;
    color: #e4e6eb;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.task-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* 数据管理样式 */
.task-data-dropdown {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.toggle-data {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #323c4e;
    border: none;
    color: #e4e6eb;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.toggle-data:hover {
    background: #3a4558;
}

.toggle-data i {
    margin-right: 6px;
}

.data-content {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: #1f283a;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.toolbar button {
    padding: 8px 16px;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-data-btn {
    background: #4caf50;
    flex: 3;
    font-weight: 500;
}

.view-data-btn, .delete-data-btn {
    flex: 1;
}

.view-data-btn {
    background: #2196f3;
}

.delete-data-btn {
    background: #f44336;
}

.records {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #394151;
    border-radius: 4px;
    padding: 6px;
    background: #1a2131;
}

.data-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin: 6px 0;
    background: #252f3f;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.data-card:hover {
    background: #2d374a;
    transform: translateY(-1px);
}

.data-card.selected {
    background: #3a4356;
    border-left: 3px solid #4caf50;
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.record-name {
    font-weight: 500;
    color: #4caf50;
    cursor: text;
    padding: 3px 5px;
    border-radius: 4px;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-name:hover {
    background: rgba(76, 175, 80, 0.1);
}

.record-time {
    color: #a0a8b7;
}

.record-summary {
    color: #c0c4d0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

/* 模态框样式 */
.data-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #1a2131;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #252f3f;
    border-bottom: 1px solid #394151;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e4e6eb;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.modal-body th, .modal-body td {
    padding: 8px;
    text-align: left;
    border: 1px solid #394151;
}

.modal-body th {
    background: #252f3f;
    font-weight: 500;
}

.modal-body tr:nth-child(even) {
    background: #1f283a;
}

/* 参数变更样式优化 */
.parameters-section {
    margin-top: 16px;
    margin-bottom: 20px;
    border: 1px solid #394151;
    border-radius: 6px;
    padding: 16px;
    background: #1f283a;
}

.parameters-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    color: #e4e6eb;
}

.parameters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252f3f;
    padding: 10px 14px;
    border-radius: 5px;
    border-left: 3px solid #4caf50;
}

.parameter-name {
    font-weight: 500;
    color: #e4e6eb;
}

.parameter-value {
    font-family: monospace;
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.no-parameters {
    text-align: center;
    color: #a0a8b7;
    padding: 12px;
    font-style: italic;
}

/* 修复按钮样式问题 */

/* 工具栏按钮样式 - 仅应用于数据管理工具栏 */
.toolbar button {
    padding: 8px 16px;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 12px;
}

.toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-data-btn {
    background: #4caf50;
    flex: 3;
    font-weight: 500;
}

.view-data-btn, .delete-data-btn {
    flex: 1;
}

.view-data-btn {
    background: #2196f3;
}

.delete-data-btn {
    background: #f44336;
}

/* 任务操作按钮 - 独立样式 */
.task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.save-analysis-btn, .complete-btn {
    padding: 8px 16px;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-analysis-btn {
    background: #2196f3;
}

.complete-btn {
    background: #4caf50;
}

/* 确保按钮在禁用状态下的统一样式 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 拓扑信息显示样式 */
.topology-info {
    background: #2c3e50;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ecf0f1;
}

.topology-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.topology-name i {
    color: #3498db;
    font-size: 18px;
}

.topology-nodes {
    background: rgba(52, 152, 219, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 数据卡片拓扑指示器 */
.data-card .topology-indicator {
    font-size: 11px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.data-card .topology-indicator i {
    font-size: 14px;
    color: #3498db;
}
.report-button-container {
    display: inline-block;
    margin-top: 10px;
}

