/* 策略研究 · 跟踪策略分析（scoped: .strtg-*） */
.strtg-page{display:flex;flex-direction:column;gap:14px}
.strtg-page>*{min-width:0}

.strtg-strip{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.strtg-strip-main{min-width:0;flex:1 1 260px}
.strtg-strip-kicker{display:block;font-size:12px;letter-spacing:.12em;color:#6974c7;font-weight:800}
.strtg-strip-main strong{display:block;margin-top:3px;font-size:15px;color:var(--text);line-height:1.5}
.strtg-strip dl{display:flex;flex-wrap:wrap;gap:18px;margin:0}
.strtg-strip dl div{min-width:62px}
.strtg-strip dt{font-size:12px;color:var(--muted);line-height:1.4}
.strtg-strip dd{margin:2px 0 0;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text)}

.strtg-env{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 14px;border:1px solid var(--line-soft);border-radius:10px;background:#fafbfe;font-size:12px;color:var(--muted)}
.strtg-env>span:first-child{font-weight:700;color:#4b5470}
.strtg-env.is-empty small{color:var(--muted-2)}
.strtg-env a{margin-left:auto;color:#3949ab;text-decoration:none;font-weight:700;white-space:nowrap}
.strtg-env-chip{display:inline-flex;align-items:baseline;gap:6px;padding:3px 9px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;color:var(--text)}
.strtg-env-chip b{font-weight:700}
.strtg-env-chip small{color:var(--muted);font-size:11px}
.strtg-env-chip.tone-good{border-color:#bfe3ce;background:#f2fbf6}
.strtg-env-chip.tone-bad{border-color:#f3c9cd;background:#fdf3f4}
.strtg-env-chip.tone-mid{border-color:#e6dcbf;background:#fdf9f0}

.strtg-toolbar{display:flex;flex-direction:column;gap:8px;padding:2px 0}
.strtg-period-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-left:2px}
.strtg-period-row>span{font-size:12px;color:var(--muted);font-weight:700}
.strtg-toolbar .ui-switch-group{display:flex;flex-wrap:wrap;gap:6px}
.strtg-toolbar .strtg-periods{flex:none}

.strtg-card{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow);padding:14px 16px}
.strtg-card>header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:10px}
.strtg-card>header h2{margin:0;font-size:15px;font-weight:800;color:var(--text)}
.strtg-sub{display:block;margin-top:3px;font-size:12px;color:var(--muted);line-height:1.5}
.strtg-count,.strtg-chart-note{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.strtg-chart-card>header{align-items:center}
.strtg-chart-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.strtg-chart-tools .ui-switch-item{padding:3px 10px;font-size:12px}

.strtg-chart{width:100%;height:340px}
.strtg-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line-soft)}
.strtg-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text);min-width:0}
.strtg-legend-item i{width:9px;height:9px;border-radius:2px;flex:none}
.strtg-legend-item b{font-weight:700}
.strtg-legend-item small{color:var(--muted);font-size:11px}

.strtg-table-wrap{overflow:auto;max-height:520px;border:1px solid var(--line-soft);border-radius:8px}
.strtg-table{width:100%;border-collapse:collapse;font-size:12.5px;white-space:nowrap}
.strtg-table thead th{position:sticky;top:0;z-index:2;padding:8px 10px;background:#f5f7fb;color:#4b5470;font-weight:700;text-align:right;border-bottom:1px solid var(--line)}
.strtg-table thead th:first-child,.strtg-table thead th:nth-child(2){text-align:left}
.strtg-table tbody td{padding:8px 10px;border-bottom:1px solid var(--line-soft);text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
.strtg-table tbody td:first-child{text-align:left;white-space:normal;min-width:150px}
.strtg-table tbody td:nth-child(2){text-align:left}
.strtg-table tbody tr{cursor:pointer}
.strtg-table tbody tr:hover{background:#f7f9ff}
.strtg-table tbody tr.is-active{background:#eef1ff;box-shadow:inset 3px 0 0 #3949ab}
.strtg-table td small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.strtg-table td b{font-weight:700}
.strtg-empty-cell{text-align:center!important;color:var(--muted);padding:20px!important}

.strtg-tag{display:inline-block;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid transparent;white-space:nowrap}
.strtg-tag.ok{color:#1f8f62;background:#f0fbf5;border-color:#bfe3ce}
.strtg-tag.mid{color:#8a6a1f;background:#fdf9ef;border-color:#e8dcbd}
.strtg-tag.warn{color:#b45309;background:#fdf5ec;border-color:#f0d5b4}

.strtg-heat-wrap{overflow:auto;border:1px solid var(--line-soft);border-radius:8px}
.strtg-heat{border-collapse:collapse;font-size:12px;white-space:nowrap}
.strtg-heat th,.strtg-heat td{padding:7px 10px;border:1px solid #f0f2f6;text-align:center;font-variant-numeric:tabular-nums}
.strtg-heat thead th{background:#f5f7fb;color:#4b5470;font-weight:700}
.strtg-heat tbody th{background:#fafbfe;text-align:left;font-weight:700;color:#4b5470}
.strtg-heat td.is-diagonal{background:#eef1ff;color:#3949ab;font-weight:700}
.strtg-heat td.is-empty{color:var(--muted-2);background:#fff}

.strtg-note summary{cursor:pointer;font-weight:700;color:#4b5470;font-size:13px}
.strtg-note ul{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:12.5px;line-height:1.8}
.strtg-note code{font-size:11.5px;background:#f5f7fb;padding:1px 5px;border-radius:4px}

.strtg-loading{display:flex;flex-direction:column;align-items:center;gap:8px;padding:56px 20px;color:var(--muted);text-align:center}
.strtg-loading span{width:22px;height:22px;border-radius:50%;border:2px solid #d7dcec;border-top-color:#3949ab;animation:strtg-spin .8s linear infinite}
.strtg-loading.is-error span{animation:none;border:0;width:auto;height:auto;color:#d9363e;font-weight:900;font-size:18px}
.strtg-loading strong{color:var(--text);font-size:14px}
.strtg-loading p{margin:0;font-size:12px}
.strtg-retry{margin-top:8px;padding:6px 14px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#3949ab;font-weight:700;cursor:pointer}
@keyframes strtg-spin{to{transform:rotate(360deg)}}

.strtg-empty{padding:26px;text-align:center;color:var(--muted)}
.strtg-empty strong{display:block;color:var(--text);margin-bottom:4px}

.is-up{color:#c81e1e!important}
.is-down{color:#1f8f62!important}

@media(max-width:900px){
  .strtg-strip dl{gap:12px}
  .strtg-chart{height:280px}
}
