/* 日股英文名稱 */
.sp-list small.en { display: block; color: #848e9c; font-size: 11px; font-weight: 400; line-height: 1.3; margin-top: 1px; }
/* 三訊號欄 */
.sp-list .sig-buy { color: #16c784; font-weight: 700; white-space: nowrap; }
.sp-list .sig-near { color: #ff9f1a; font-size: 15px; }
.sp-list .sig-past { color: #848e9c; font-size: 12px; white-space: nowrap; }
.sp-list td.sig { text-align: center; }
/* 台股清單 — template-parts/list-panel.php（紅漲綠跌） */
.sp-list {
	--sp-bg: #131722; --sp-card: #1c2030; --sp-line: #2f354b; --sp-grid: #272d42;
	--sp-text: #e6e8ee; --sp-mute: #848e9c; --sp-up: #f0443a; --sp-dn: #16b36b;
	background: var(--sp-bg); color: var(--sp-text); border-radius: 12px; padding: 20px; box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}
.sp-list *, .sp-list *::before, .sp-list *::after { box-sizing: border-box; }
.sp-list .sp-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-list h2 { margin: 0; color: #fff; font-size: 20px; }
.sp-list .sp-list-count { color: var(--sp-mute); font-size: 14px; font-weight: 400; margin-left: 6px; }
.sp-list .sp-list-desc { margin: 4px 0 0; color: var(--sp-mute); font-size: 13px; }
.sp-list .sp-list-ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-list .sp-list-ctrl input, .sp-list .sp-list-ctrl select {
	background: var(--sp-card); color: var(--sp-text); border: 1px solid var(--sp-line); border-radius: 6px;
	padding: 6px 10px; font-size: 14px; height: auto; min-height: 0; width: auto; box-shadow: none; }
.sp-list .sp-list-ctrl input { width: 180px; }
/* 表格區固定高度、內部捲動：一進頁面就看得到左右捲軸，表頭也會固定在上方 */
.sp-list .sp-list-scroll { overflow: auto; max-height: calc(100vh - 340px); min-height: 300px; border: 1px solid var(--sp-line); border-radius: 8px; }
.sp-list .sp-list-table thead th { z-index: 2; }
/* 名稱欄限制寬度、過長自動換行，減少需要左右拉的情況 */
.sp-list .sp-list-table td.l { white-space: normal; max-width: 300px; min-width: 150px; word-break: break-word; line-height: 1.35; }
.sp-list .sp-list-table td.l.sub { max-width: 110px; min-width: 70px; }
.sp-list .sp-list-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; margin: 0; }
.sp-list .sp-list-table th { position: sticky; top: 0; background: var(--sp-grid); color: var(--sp-mute); font-weight: 600;
	padding: 9px 10px; text-align: right; cursor: pointer; user-select: none; border: 0; border-bottom: 1px solid var(--sp-line); }
.sp-list .sp-list-table th.l, .sp-list .sp-list-table td.l { text-align: left; }
.sp-list .sp-list-table th:first-child, .sp-list .sp-list-table td:first-child { text-align: left; }
.sp-list .sp-list-table th.asc::after { content: " ▲"; font-size: 10px; }
.sp-list .sp-list-table th.desc::after { content: " ▼"; font-size: 10px; }
.sp-list .sp-list-table td { padding: 8px 10px; text-align: right; border: 0; border-bottom: 1px solid var(--sp-grid);
	font-variant-numeric: tabular-nums; background: var(--sp-card); }
.sp-list .sp-list-table tr:hover td { background: #232840; }
.sp-list .sp-list-table a { color: #fff; text-decoration: none; font-weight: 600; }
.sp-list .sp-list-table a:hover { text-decoration: underline; }
.sp-list .sp-list-table .sub { color: var(--sp-mute); font-size: 13px; }
.sp-list .up { color: var(--sp-up); }
.sp-list .dn { color: var(--sp-dn); }
.sp-list .na { color: var(--sp-mute); }
.sp-list .sp-list-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sp-list .sp-list-more { background: var(--sp-grid); color: #fff; border: 1px solid var(--sp-line); border-radius: 6px; padding: 6px 16px; cursor: pointer; font-size: 13px; }
.sp-list .sp-list-meta { color: var(--sp-mute); font-size: 12px; }
@media (max-width: 700px) { .sp-list { padding: 12px; } .sp-list .sp-list-ctrl input { width: 140px; } }

/* 技術訊號徽章（熱門推薦另外 5 類） */
td.tfc { white-space: nowrap; text-align: left !important; }
.tf { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 5px; border-radius: 4px; margin: 1px 3px 1px 0; font-weight: 600; cursor: help; white-space: nowrap; }
.tf-mom { color: #ff9f43; background: rgba(255, 159, 67, .15); }
.tf-mr { color: #4e8cff; background: rgba(78, 140, 255, .15); }
.tf-trend { color: #b07cff; background: rgba(176, 124, 255, .15); }
.tf-gx { color: #1fc2a8; background: rgba(31, 194, 168, .15); }
.tf-risk { color: #ff8a3d; background: rgba(255, 138, 61, .13); }
.tf-risk.lv2 { color: #ff5a4e; background: rgba(255, 90, 78, .15); }
