/* 策略选股 · 历史记录回测 */
.sbt-container{
    flex:1;
    min-height:0;
    overflow-y:auto;
    padding:20px;
    background:#fff;
}
.sbt-panel{max-width:1280px;}

.sbt-head{margin-bottom:14px;}
.sbt-head h3{font-size:17px; font-weight:bold; color:#333;}
.sbt-meta{display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:8px; font-size:13px; color:#898781;}

.sbt-tip{display:flex; align-items:center; gap:10px; padding:12px 16px; background:#eef4ff; border:1px solid #cfe0fb; border-radius:8px; font-size:14px; color:#2a5d9e;}
.sbt-tip em{font-style:normal; font-size:12px; color:#7d92ad;}
.sbt-tip + .sbt-tip{margin-top:10px;}
.sbt-error{display:flex; align-items:center; gap:14px; margin-top:12px; padding:12px 16px; background:#fef0f0; border:1px solid #fbc4c4; border-radius:8px; font-size:14px; color:#c0392b;}
.sbt-error a{color:#2a78d6; cursor:pointer;}

.sbt-lock{display:flex; align-items:center; gap:12px; margin-top:12px; padding:18px 20px; background:#fafbfc; border:1px solid #e8e8e8; border-radius:8px; font-size:14px; color:#898781;}
.sbt-lock strong{color:#52514e;}

.sbt-setup{display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:12px; padding:14px 18px; background:#fafbfc; border:1px solid #eee; border-radius:8px; font-size:13px; color:#52514e;}
.sbt-setup label{display:flex; align-items:center; gap:8px; white-space:nowrap;}
.sbt-setup input{width:110px; height:32px; padding:0 8px; border:1px solid #dcdfe6; border-radius:6px; background:#fff; font-size:14px; color:#333; outline:none;}
.sbt-setup input:focus{border-color:#f34e4d;}
.sbt-btn{height:34px; padding:0 20px; border:1px solid #f34e4d; border-radius:6px; background:#f34e4d; color:#fff; font-size:14px; cursor:pointer;}
.sbt-btn:hover{background:#dc3f3e; border-color:#dc3f3e;}
.sbt-btn:disabled{opacity:.5; cursor:not-allowed;}
.sbt-reset{font-size:13px; color:#2a78d6; cursor:pointer;}
.sbt-reset:hover{text-decoration:underline;}

.sbt-hint{margin-top:10px; font-size:12px; line-height:20px; color:#898781;}
.sbt-hint-warn{color:#b8860b;}
.sbt-invalid{margin-left:10px; color:#d03b3b;}

.sbt-spinner{width:22px; height:22px; border:2px solid #dbe6f5; border-top-color:#2a78d6; border-radius:50%; animation:sbt-spin .9s linear infinite;}
@keyframes sbt-spin{to{transform:rotate(360deg);}}

.sbt-warnings{margin:14px 0 0; padding:12px 16px; background:#fff8e6; border:1px solid #ffe0a3; border-radius:8px; color:#8a6d3b; font-size:13px;}
.sbt-warn-title{font-weight:bold; margin-bottom:6px;}
.sbt-warnings ul{max-height:120px; overflow:auto; padding-left:18px;}
.sbt-warnings li{line-height:20px;}

.sbt-kpis{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-top:14px;}
.sbt-kpi{background:#fafbfc; border-radius:8px; padding:12px 14px;}
.sbt-kpi-label{font-size:13px; color:#898781; white-space:nowrap;}
.sbt-kpi-value{margin-top:6px; font-family:Arial; font-size:19px; font-weight:bold; color:#333;}
.sbt-kpi-value.sbt-up{color:#d03b3b;}
.sbt-kpi-value.sbt-down{color:#0ca30c;}

.sbt-card{margin-top:14px; padding:16px 18px; background:#fafbfc; border-radius:8px;}
.sbt-card-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.sbt-card h3{font-size:15px; font-weight:bold; color:#333;}
.sbt-card h3 .sbt-sub{margin-left:8px; font-size:13px; font-weight:normal; color:#898781;}
.sbt-chart{width:100%;}
.sbt-table-scroll{max-height:360px; overflow:auto;}
.sbt-table-scroll table{width:100%; border-collapse:collapse; font-size:13px;}
.sbt-table-scroll th,.sbt-table-scroll td{padding:6px 10px; border-bottom:1px solid #f2f2f2; text-align:center; white-space:nowrap;}
.sbt-table-scroll th{position:sticky; top:0; background:#fff; color:#898781; font-weight:normal; z-index:1;}
.sbt-table-scroll .sbt-left{text-align:left;}
.sbt-name{font-weight:bold; color:#333;}
.sbt-code{margin-left:6px; font-family:Arial; font-size:12px; color:#a0a0a0; font-style:normal;}
.sbt-empty{color:#b5b5b5; padding:18px 0 !important;}

.sbt-tabs{display:flex; gap:18px;}
.sbt-tabs span{font-size:14px; color:#666; cursor:pointer; padding-bottom:3px; border-bottom:2px solid transparent;}
.sbt-tabs span.current{color:#f34e4d; border-color:#f34e4d; font-weight:bold;}

.sbt-monthly{width:100%; border-collapse:collapse; font-size:13px;}
.sbt-monthly th{padding:7px 4px; color:#898781; font-weight:normal; border-bottom:1px solid #e8e8e8;}
.sbt-monthly td{padding:6px 4px; text-align:center; border-bottom:1px solid #f5f5f5; color:#333;}
.sbt-monthly td em{font-style:normal; color:#d03b3b; margin-left:1px;}
.sbt-footnote{margin-top:8px; font-size:12px; color:#898781;}

.sbt-pager{display:flex; align-items:center; justify-content:center; gap:18px; margin-top:10px; font-size:13px; color:#898781;}
.sbt-pager a{color:#2a78d6; cursor:pointer;}
.sbt-pager a.disabled{color:#c8c8c8; cursor:not-allowed;}

.sbt-up{color:#d03b3b;}
.sbt-down{color:#0ca30c;}

.sbt-disclaimer{margin-top:14px; padding:12px 16px; background:#fafbfc; border-radius:8px; font-size:12px; line-height:20px; color:#898781;}

@media (max-width:1440px){
    .sbt-kpis{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:1100px){
    .sbt-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:768px){
    .sbt-container{padding:14px;}
    .sbt-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
    .sbt-setup input{width:92px;}
}
