/* 回测详情页样式 */

/* 明细卡片锚点定位：搜索提交刷新后回到原浏览位置，避开固定导航栏遮挡 */
#closed-positions, #open-positions { scroll-margin-top: 60px; }

/* 收益曲线图容器（与 portfolio 收益统计页/板块详情页一致 520px） */
.run-chart-container { position: relative; height: 520px; }

/* 收益曲线时间筛选胶囊 tab（与板块详情页/portfolio chart-time-tab 同款，位于标题栏右侧） */
.chart-time-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}
.chart-time-tab {
    padding: 4px 14px;
    border-radius: 14px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}
.chart-time-tab:hover, .chart-time-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 指标网格：移动端 3 列，平板 4 列，桌面 6 列自动流式 */
.run-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 576px) { .run-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 992px) { .run-stats-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.run-stat-item { text-align: center; min-width: 0; }
.run-stat-value { font-size: 1rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-stat-label { font-size: 0.7rem; color: #6c757d; margin-top: 1px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 576px) {
  .run-stat-value { font-size: 1.1rem; }
  .run-stat-label { font-size: 0.72rem; }
}
