.main-panels {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.instruction-panel {
    flex: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.prediction-container {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background-color: #0A2463; /* 深蓝色 */
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.panel-content {
    padding: 15px;
}

.panel-content ol {
    padding-left: 25px; /* 调整左侧缩进值，确保不超出容器 */
    margin: 10px 0; /* 控制列表上下间距，增强美观性 */
}

.panel-content li {
    margin-bottom: 5px; /* 列表项之间增加间距，提升可读性 */
}

.button-group {
    margin-top: 15px;
}

button {
    margin-right: 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* 结果容器样式 */
.result-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 200px;
    background-color: #f9f9f9;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* 分析结果样式 */
.analysis-results {
    width: 100%;
}

.analysis-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

/* 结果表格样式 */
.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-table th, .result-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.result-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.result-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.result-table tr:hover {
    background-color: #e9e9e9;
}

/* 错误和成功消息样式 */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

.success-message {
    color: #2e7d32;
    background-color: #e8f5e8;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
}

/* 错误单元格样式 */
.error-cell {
    color: #d32f2f;
    font-style: italic;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.content-layout {
    display: flex;
    gap: 20px;
    padding: 15px;
}

/* 树形菜单样式 */
.tree-menu {
    width: 30%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px;
    transition: all 0.3s ease;
}

.tree-menu:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tree-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 一级菜单样式 */
.tree-menu .level-1 > li {
    margin-bottom: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.tree-menu .level-1 > li:hover {
    background: #f5f7fa;
}

/* 选中状态使用浅色 */
.tree-menu .level-1 > li.selected {
    background: #f0f7ff;
    color: #3498db;
}

.tree-menu .level-1 span {
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    transition: color 0.2s ease;
}

.tree-menu .level-1 span:hover {
    color: #3498db;
}

/* 选中状态下的文本颜色 */
.tree-menu .level-1 > li.selected span {
    color: #3498db;
}

/* 展开/收起图标优化 */
.tree-menu .level-1 span::before {
    content: "▸";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.tree-menu .level-1 span.expanded::before {
    content: "▾";
    color: #3498db;
}

/* 二级菜单样式 */
.tree-menu .level-2 {
    display: none;
    margin: 5px 0 5px 26px;
    padding-left: 10px;
    border-left: 1px dashed #ddd;
}

.tree-menu .level-2 li {
    padding: 8px 10px;
    margin: 2px 0;
    cursor: pointer;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.tree-menu .level-2 li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 16px;
    width: 8px;
    height: 1px;
    background: #ddd;
}

.tree-menu .level-2 li:hover {
    color: #3498db;
    background: #f0f7ff;
    transform: translateX(2px);
}

/* 表格容器样式 */
.tables-container {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 初始消息容器样式 - 与表格容器宽度一致 */
.initial-message {
    width: 70%;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* 表格基本样式 */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f7fa;
    font-weight: bold;
    color: #2c3e50;
}

tr:hover {
    background-color: #f9f9f9;
}

.upper-table {
    margin-bottom: 10px;
    table-layout: fixed;
    width: 100%;
}

.lower-table {
    table-layout: fixed;
    width: 100%;
}

/* 设置表格列的宽度，防止内容过长影响表格宽度 */
.lower-table th,
.lower-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 可以根据需要调整具体列的宽度 */
.lower-table th:nth-child(1),
.lower-table td:nth-child(1) {
    width: 10%;
}

.lower-table th:nth-child(2),
.lower-table td:nth-child(2) {
    width: 20%;
}

.lower-table th:nth-child(3),
.lower-table td:nth-child(3) {
    width: 15%;
}

.lower-table th:nth-child(4),
.lower-table td:nth-child(4) {
    width: 15%;
}

.lower-table th:nth-child(5),
.lower-table td:nth-child(5) {
    width: 15%;
}

.lower-table th:nth-child(6),
.lower-table td:nth-child(6) {
    width: 25%;
}

.detail-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.detail-btn:hover {
    background-color: #2980b9;
}

.intro-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.intro-content p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.intro-list {
    margin: 10px 0 10px 20px;
    color: #555;
}

.intro-list li {
    margin: 5px 0;
    line-height: 1.5;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: black;
    cursor: pointer;
    border-radius: 3px;
}

.pagination button:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination button.active {
    background-color: #4c7aaf;
    color: white;
    border-color: #2c5b92;
}

.page-numbers {
    display: flex;
    gap: 2px;
}

.table-wrapper {
    margin-top: 20px;
}