/* 基础样式 */
* {
    margin: 0;
    /*padding: 0;*/
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

pre {
    overflow-wrap: break-word;
    overflow-x: auto;
    white-space: pre-wrap;
}

.max-txt-length {
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb10 {
    margin-bottom: 10px;
}

.logout {
    font-size: 14px;
    color: gray;
    text-decoration-line: none;
}

.think-ai-suggestion {
    padding: 2px 10px;
    background-color: greenyellow;
    color: #0d0d10;
    font-weight: bolder;
    font-size: 14px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}

/* 应用容器 */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* 左侧实验列表 */
.experiment-list {
    width: 280px;
    background-color: white;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo-area {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom right, #ff0000, #0000ff);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.project-selector {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.project-selector span {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.current-project {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.current-project h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.project-stats {
    display: flex;
    font-size: 13px;
    color: #666;
}

.project-stats span {
    margin-right: 15px;
}

.project-stats strong {
    color: #333;
}

.experiment-filter {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.experiment-filter input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.experiment-filter input:last-child {
    margin-bottom: 0;
}

.experiment-items {
    flex: 1;
    overflow-y: auto;
}

.experiment-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.experiment-item:hover {
    background-color: #f8f8f8;
}

.exp-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.exp-params {
    display: flex;
    font-size: 12px;
    color: #666;
}

.exp-params span {
    margin-left: 8px;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 中间导航栏 */
.nav-bar {
    background-color: white;
    border-right: 1px solid #eaeaea;
}

.nav-item {
    padding: 15px 0;
    font-size: 14px;
    cursor: pointer;
    color: #666;
}

.nav-item.active {
    color: #4e79a7;
    font-weight: 500;
    border-right: 2px solid #4e79a7;
}

/* 右侧图表区域 */
.chart-area {
    flex: 1;
    background-color: #ffffff;
    overflow-y: auto;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.chart-controls {
    display: flex;
}

.chart-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.chart {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 15px;
    background: white;
}

.chart-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
}

.chart-content {
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
    position: relative;
}

.chart-line {
    width: 30px;
    height: var(--height);
    background-color: var(--color);
    margin-right: 10px;
    border-radius: 4px 4px 0 0;
    position: relative;
    text-align: center;
    color: white;
}

.chart-line::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color);
}


/* 快捷操作按钮 */
.quick-actions {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.action-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    color: #333;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

.action-btn i {
    width: 20px;
    text-align: center;
}

.default-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.left-padding-chunk {
    border-left: 5px solid #b1b1b1;
    padding-left: 10px;
}

.box-container {
    display: flex;
    width: 100%;
    gap: 10px;
}

.box-left-section {
    flex: 1; /* 默认占比1份 */
}

.box-right-section {
    flex: 1; /* 默认占比1份 */
}

.box-left-section-3 {
    flex: 3; /* 默认占比1份 */
}

.box-right-section-7 {
    flex: 7; /* 默认占比1份 */
}

.box-left-section-2 {
    flex: 2; /* 默认占比1份 */
}

.box-right-section-8 {
    flex: 8; /* 默认占比1份 */
}

/*Toast提示*/
 .toast {
     position: fixed;
     top: 20px;
     right: 20px;
     padding: 12px 24px;
     border-radius: 4px;
     color: white;
     z-index: 1000;
     animation: slide-in 0.3s ease-out;
 }

.toast-success { background: #28a745; }
.toast-error { background: rgba(227, 29, 49, 0.7); }
.toast-info { background: #17a2b8; }

@keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
/*Toast提示*/