/* 策略收益统计页样式 */

/* 页面功能标题（与评分/推荐各页一致：1.25rem） */
.page-type-banner h4 {
    font-size: 1.25rem;
}

/* 策略切换工具栏：与板块页面 sector-filter-bar/strategy-tab 同款（框大小与间距统一） */
.portfolio-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.portfolio-filter-bar .filter-label {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
    margin-right: -5px;  /* 拉近与后侧按钮组的距离（抵消 flex gap） */
}
.portfolio-filter-bar .filter-label i {
    margin-right: 4px;
}
.portfolio-filter-bar .strategy-tab-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.portfolio-filter-bar .strategy-tab {
    padding: 2px 8px;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.portfolio-filter-bar .strategy-tab:hover {
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
}
.portfolio-filter-bar .strategy-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 收益曲线时间筛选胶囊 tab（与板块详情页 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;
}

/* 组合收益(等权)颜色语义：正收益红、负收益绿（与信号 buy/sell 语义解耦） */
.signal-stat-count.profit-up { color: var(--signal-red); }
.signal-stat-count.profit-down { color: var(--signal-green); }

/* 基准指数回报列（沪深300/上证指数） */
.benchmark-return { font-size: 0.85rem; }

/* 交易理由列文字 */
.trade-reason { font-size: 0.8rem; }

/* 股票名称/代码分列宽度 */
.favorites-table .col-name,
.history-table .col-name { min-width: 70px; }
.favorites-table .col-code,
.history-table .col-code { min-width: 70px; white-space: nowrap; }

/* 表头排序链接样式 */
.favorites-table thead a,
.history-table thead a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.favorites-table thead a:hover,
.history-table thead a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* 股票名称/代码详情页链接（tbody 内，不与 thead 排序链接冲突） */
.favorites-table tbody .stock-name-link,
.favorites-table tbody .stock-code-link,
.history-table tbody .stock-name-link,
.history-table tbody .stock-code-link {
    color: inherit;
    text-decoration: none;
}
.favorites-table tbody .stock-name-link:hover,
.favorites-table tbody .stock-code-link:hover,
.history-table tbody .stock-name-link:hover,
.history-table tbody .stock-code-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}
