body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #484852;
    color: #fff;
    height: 100%;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    background-color: #484852;
    overflow: hidden;
}

.left-sidebar {
    width: 260px;
    background-color: rgba(72, 72, 82, 0.7);
    border-right: 1px solid #5d5d6b;
    overflow-y: auto;
    height: 100vh;
    flex-shrink: 0;
}

/* 添加左侧边栏滚动条样式 */
.left-sidebar::-webkit-scrollbar-track {
    background: rgba(72, 72, 82, 0.5);
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: #5d5d6b;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6b6b7a;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto; /* 改为 auto 支持水平和垂直滚动 */
    height: 100vh;
    min-width: min-content; /* 确保内容不会被压缩 */
}

.top-panel {
    display: flex;
    flex-shrink: 0;
    background-color: #111;
    border-bottom: 1px solid #333;
    padding: 5px;
    gap: 10px;
    min-width: max-content; /* 防止面板内容被压缩 */
}

/* 美化水平滚动条 */
.main-content::-webkit-scrollbar {
    height: 8px; /* 水平滚动条高度 */
    width: 8px; /* 垂直滚动条宽度 */
}

.main-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.main-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}


.top-panel {
    flex-shrink: 0; /* 防止面板被压缩 */
    background-color: #111;
    border-bottom: 1px solid #333;
    padding: 5px;
    gap: 10px;
}

.panel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 确保flex布局正常工作 */
}

.panel-content {
    flex: 1;
    overflow-y: auto; /* 添加垂直滚动条 */
    background-color: #111;
    padding: 5px;
    border: 1px solid #333;
    border-top: none;
}

/* 美化滚动条 */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}


/* 修改 panel-section 的默认样式 */
.panel-section {
    flex: none; /* 改为 none，不再自动扩展 */
}

/* 为需要扩展的 panel-section 添加特殊样式 */
.panel-section:not(.result-section) {
    flex: 1;
}

.result-section {
    height: auto;
    min-height: 50px;
    margin-bottom: 15px;
    background: rgba(72, 72, 82, 0.5);
    border: 1px solid #5d5d6b;
    border-radius: 4px;
}

.result-section .panel-content {
    height: auto;
    padding: 15px;
    background: rgba(72, 72, 82, 0.3);
}

.five-column-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.five-column-grid > div {
    background: rgba(72, 72, 82, 0.6);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(93, 93, 107, 0.3);
}

.label-row {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
}

.label-name {
    color: rgba(255, 255, 255, 0.7);
}

.label-value {
    color: #ffffff;
    font-weight: bold;
}

/* 数据表格样式 */
.matrix-table {
    overflow-x: auto;
    margin-bottom: 10px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
    padding: 2px 4px;
    text-align: center;
    border: 1px solid #5d5d6b;
}

.matrix-table th {
    background-color: rgba(72, 72, 82, 0.8);
    border: 1px solid #5d5d6b;
    font-weight: bold;
    white-space: nowrap;
    color: #ffffff;
}

.matrix-table td:first-child {
    background-color: rgba(72, 72, 82, 0.6);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

/* 表格排序样式 */
.matrix-table th {
    position: relative;
    user-select: none;
    background-color: rgba(72, 72, 82, 0.8);
    border: 1px solid #5d5d6b;
}
.panel-title {
    padding-left: 10px;
}

.matrix-table th:hover {
    background-color: rgba(93, 93, 107, 0.4);
}

.matrix-table th.sort-asc::after,
.matrix-table th.sort-desc::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.matrix-table th.sort-asc::after {
    border-bottom: 4px solid #ffffff;
}

.matrix-table th.sort-desc::after {
    border-top: 4px solid #ffffff;
}


.matrix-table input {
    width: 60px; /* 固定宽度，不再使用100% */
    border: 1px solid #5d5d6b;
    background: rgba(72, 72, 82, 0.5);
    color: #ffffff;
    text-align: center;
    padding: 2px;
    font-size: 12px;
}

.matrix-table input:focus {
    border-color: #6b6b7a;
    background: rgba(72, 72, 82, 0.8);
}


.data-table {
    background-color: #111;
    padding: 5px;
    overflow-x: auto;
    border-bottom: 1px solid #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th {
    background-color: #1e4d7d; /* 更深的主题色 */
    color: #00e4ff;
    padding: 5px;
    text-align: left;
    border: 1px solid #2a5d8d;
}

td {
    padding: 5px;
    border: 1px solid #1e4d7d;
    color: #7fdbff;
}

tr:nth-child(even) {
    background-color: rgba(13, 41, 65, 0.3); /* 半透明主题色 */
}

/* 主内容区域样式 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}


/* 响应式调整 */
@media (max-width: 1200px) {
    .top-panel {
        flex-direction: column;
    }

    .panel-section {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



/* 修改发起请求按钮样式，使其更鲜艳、更高 */
.launch-btn {
    /* 修改渐变色为更鲜艳的蓝色 */
    background: linear-gradient(145deg, #484852 0%, #5d5d6b 70%);
    border-radius: 4px;
    border: none;
    padding-top: 12px; /* 增加上下内边距，使按钮更高 */
    padding-bottom: 12px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
    -1px -1px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 6px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateZ(0);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 14px; /* 增加字体大小 */
    font-weight: bold; /* 加粗字体 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字阴影 */
}

.launch-btn:hover {
    transform: translateY(1px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.05),
    inset -3px -3px 8px rgba(0, 0, 0, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #5d5d6b 0%, #6b6b7a 70%);
}

.launch-btn:active {
    transform: translateY(2px);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.4),
    inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

.btn-icon {
    font-size: 18px; /* 增加图标大小 */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 6px; /* 增加图标与文字间距 */
    color: #ffffff; /* 确保图标颜色鲜艳 */
}

/* 高级图标样式 */
.launch-btn:nth-child(1) .btn-icon {
    color: #00e4ff;
    transform: scale(1.2);
}


/* 标签页容器样式 */
.tabs-container {
    width: 100%;
    background-color: rgba(13, 41, 65, 0.7);
}

.tabs-header {
    display: flex;
    flex-direction: row; /* 确保水平排列 */
    width: 100%; /* 占满容器宽度 */
    background-color: rgba(72, 72, 82, 0.9);
    border-bottom: 2px solid #5d5d6b;
    overflow-x: auto; /* 如果标签太多允许横向滚动 */
    white-space: nowrap; /* 防止标签换行 */
}

.tab-item {
    padding: 8px 24px;
    cursor: pointer;
    color: #a8a8b3;
    border-right: 1px solid #5d5d6b;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tab-icon {
    font-size: 20px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-name {
    font-size: 12px;
    white-space: nowrap;
}

.tab-item:hover .tab-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    background-color: rgba(72, 72, 82, 0.3);
}

.tab-item.active {
    background-color: rgba(72, 72, 82, 0.4);
    color: #ffffff;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00e4ff;
}

.tabs-content {
    background-color: rgba(13, 41, 65, 0.7);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}


.label-row {
    display: flex;
    justify-content: space-between;
    color: #fff;
}


.label-value {
    color: #fff;
    font-weight: bold;
}

/* 删除原来的样式 */

/* 添加新的样式 */
/* 客观配置表单样式 */
.config-form {
    display: none;
    padding: 15px;
    background: rgba(72, 72, 82, 0.5);
}

.config-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #5d5d6b;
    border-radius: 4px;
    background: rgba(72, 72, 82, 0.5);
    color: #ffffff;
    font-size: 12px;
}

.form-group input:focus {
    outline: none;
    border-color: #6b6b7a;
    background: rgba(72, 72, 82, 0.8);
}

.weight-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* 单选按钮组样式 */
.radio-group {
    display: inline-flex;
    gap: 8px;
    background:#5d5d6b;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #5d5d6b;
}

.radio-button input[type="radio"]:checked + .radio-label {
    background: #484852;
    color: #fff;
}

.radio-button:checked .radio-label {
    background: #484852;
}

.radio-label {
    padding: 4px 12px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.form-group label.sub-label {
    font-size: 12px;
}


.five-column-grid { /* 修改类名以匹配实际的列数 */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}


.five-column-grid > div {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.history-log {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}


.history-log .log-content {
    display: grid;
    gap: 8px;
}

/* 表格排序样式 */
.matrix-table th {
    position: relative;
    user-select: none;
    background-color: rgba(72, 72, 82, 0.8);
    border: 1px solid #5d5d6b;
}

.matrix-table th:hover {
    background-color: rgba(0, 228, 255, 0.1);
}

.search-tip {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
    color: #ccc;
    font-size: 13px;
}

.tip-icon {
    margin-right: 5px;
    font-size: 14px;
}

.tabs-header {
    display: flex;
    align-items: center;
}

[v-cloak] {
    display: none;
}

.history-log {
    background: rgba(72, 72, 82, 0.5);
    border: 1px solid #5d5d6b;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-log:hover {
    background: rgba(72, 72, 82, 0.7);
    border-color: #6b6b7a;
}

.history-log .log-header {
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(93, 93, 107, 0.5);
}

.history-log .log-id {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.history-log .log-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.history-log .log-content {
    padding: 4px 0;
}

.history-log .tab-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.charts-container {
    flex: 1;
    background: rgba(72, 72, 82, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #5d5d6b;
    border-radius: 4px;
}

.chart-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-box {
    flex: 1;
    min-height: 300px;
    background: rgba(72, 72, 82, 0.5);
    border: 1px solid #5d5d6b;
    border-radius: 4px;
    height: 100%;
    width: 100%;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.chart-box:hover {
    background: rgba(72, 72, 82, 0.6);
    border-color: #6b6b7a;
}

.matrix-table th.sort-asc::after,
.matrix-table th.sort-desc::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.matrix-table th.sort-asc::after {
    border-bottom: 4px solid #fff;
    margin-top: -2px;
}

.matrix-table th.sort-desc::after {
    border-top: 4px solid #fff;
    margin-top: 2px;
}.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.unit-badge {
    position: absolute;
    right: 10px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.radio-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.radio-button input[type="radio"] {
    position: absolute;
    opacity: 0;
}


.notification {
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(72, 72, 82, 0.9);
    border: 1px solid #5d5d6b;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: linear-gradient(145deg, #28a745 0%, #34ce57 100%);
}

.notification.error {
    background: linear-gradient(145deg, #dc3545 0%, #ff4d5b 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* 时间条样式 */
.time-bar {
    background-color: rgba(13, 41, 65, 0.9);
    padding: 8px 15px;
    color: #00e4ff;
    border-bottom: 1px solid #000;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.time-display {
    font-family: 'Consolas', monospace;
    letter-spacing: 1px;
}

.top-bar {
    background: linear-gradient(180deg, #484852 0%, #5d5d6b 100%);
    border-bottom: 2px solid #6b6b7a;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.top-bar .title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.top-bar .time-display {
    position: absolute;
    left: 20px;
    color: orange;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

