.tv-page { background: #f3f5fa; }
.tv-topbar { background: linear-gradient(105deg, #101827 0%, #182b43 58%, #263a68 100%); }
.tv-mark { display: inline-grid; place-items: center; width: 31px; height: 27px; border-radius: 8px; color: #dbeafe; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: 12px; letter-spacing: -.5px; }
.tv-container { width: min(1320px, 100%); margin: 26px auto 54px; padding: 0 22px; display: flex; flex-direction: column; gap: 18px; }
.tv-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 30px 34px; color: #fff; border-radius: 20px; background: radial-gradient(circle at 85% 0%, rgba(129,140,248,.35), transparent 32%), linear-gradient(120deg, #111c31, #1d3154 66%, #293a6b); box-shadow: 0 14px 36px rgba(19,33,61,.2); }
.tv-hero .eyebrow { margin-bottom: 8px; color: #a5b4fc; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.tv-hero h1 { margin: 0; font-size: clamp(25px, 3.2vw, 38px); letter-spacing: -.8px; }
.tv-hero p { max-width: 760px; margin: 11px 0 0; color: #cbd5e1; font-size: 13px; line-height: 1.75; }
.tv-universe-label { display: inline-block; margin-top: 11px; padding: 5px 9px; border: 1px solid rgba(165,180,252,.3); border-radius: 7px; color: #c7d2fe; background: rgba(99,102,241,.12); font-size: 10.5px; font-weight: 700; }
.tv-hero-side { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #dbeafe; font-size: 12px; }
.tv-hero-side b { padding: 4px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: #fff; font-variant-numeric: tabular-nums; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px rgba(52,211,153,.75); }
.tv-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tv-summary-card { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 13px 15px; border: 1px solid #e4e8f0; border-radius: 13px; text-align: left; color: var(--muted); background: #fff; cursor: pointer; transition: .15s ease; }
.tv-summary-card:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.tv-summary-card.active { border-color: #818cf8; box-shadow: inset 0 0 0 1px #818cf8, 0 4px 12px rgba(79,70,229,.08); color: var(--accent); }
.tv-summary-card span { font-size: 11.5px; font-weight: 650; }
.tv-summary-card b { font-size: 25px; line-height: 1; color: var(--title); font-variant-numeric: tabular-nums; }
.tv-panel { overflow: hidden; padding: 21px 23px 15px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.tv-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.tv-panel-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--title); font-size: 17px; }
.tv-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; }
.tv-top-count { padding: 3px 7px; border-radius: 5px; color: #4338ca; background: #eef2ff; font-size: 9px; letter-spacing: .6px; }
.tv-search { display: flex; align-items: center; gap: 7px; width: 220px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: #fafbfe; }
.tv-search span { font-size: 20px; line-height: 1; }
.tv-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.tv-table-wrap { overflow-x: auto; }
.tv-table { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 12px; }
.tv-table th { padding: 11px 9px; border-bottom: 1px solid #dfe4ed; color: #68758a; background: #f8f9fc; text-align: right; white-space: nowrap; font-size: 10.5px; font-weight: 700; }
.tv-table th:first-child, .tv-table td:first-child, .tv-table th:nth-child(2), .tv-table td:nth-child(2), .tv-table th:nth-child(3), .tv-table td:nth-child(3) { text-align: left; }
.tv-table td { padding: 12px 9px; border-bottom: 1px solid #edf0f5; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tv-table tbody tr:hover { background: #fafaff; }
.tv-table tbody tr:last-child td { border-bottom: 0; }
.tv-rank { color: #77839a; font-weight: 800; }
.tv-name { display: flex; flex-direction: column; gap: 3px; }
.tv-name strong { color: var(--title); font-size: 12px; }
.tv-name span { color: var(--muted); font-size: 10px; }
.tv-price { color: #23314d; font-weight: 750; }
.tv-date { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.tv-rating, .tv-grade { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 750; }
.tv-rating.buy { color: #176947; background: #e7f6ee; }
.tv-rating.strong-buy { color: #fff; background: #168052; }
.tv-rating.neutral { color: #596579; background: #edf0f5; }
.tv-rating.sell { color: #a24e17; background: #fff2df; }
.tv-rating.strong-sell { color: #a42c2c; background: #fdeaea; }
.tv-grade.grade-A { color: #fff; background: #176b50; }
.tv-grade.grade-B { color: #3159b8; background: #e9efff; }
.tv-grade.grade-C { color: #8a5a06; background: #fff3d9; }
.tv-grade.grade-D { color: #526074; background: #edf0f5; }
.tv-grade.grade-E { color: #a02c2c; background: #fdeaea; }
.tv-metric { color: #344054; font-weight: 650; }
.tv-action { display: inline-block; padding: 5px 9px; border: 1px solid #d8ddfa; border-radius: 7px; color: #4338ca; background: #f4f5ff; font-size: 10.5px; font-weight: 700; text-decoration: none; }
.tv-action:hover { color: #fff; background: var(--accent); }
.tv-footnote, .tv-disclaimer-small { color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.tv-footnote { padding-top: 12px; border-top: 1px solid #edf0f5; }

/* 「为什么参考 TradingView」：模块出处说明（2026-10-08 补）。
   与「规则摘要」分开——规则讲"怎么算"，这块讲"为什么这么算"，
   混在一起会让出处这类元信息淹没在参数细节里。 */
.tv-why { margin-top: 16px; padding: 15px 17px; border: 1px solid #dfe4ff; border-left: 3px solid var(--accent); border-radius: 11px; background: linear-gradient(145deg, #f7f8ff, #fff); }
.tv-why h3 { margin: 0 0 9px; color: var(--title); font-size: 12.5px; }
.tv-why ul { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 6px; }
.tv-why li { color: var(--muted); font-size: 10.8px; line-height: 1.75; }
.tv-why li b { color: #344054; }
.tv-why code { padding: 1px 5px; border-radius: 4px; color: #4338ca; background: #eef2ff; font-size: 10px; }
.tv-why-note { margin: 11px 0 0; padding-top: 10px; border-top: 1px dashed #dfe4ff; color: var(--muted); font-size: 10.5px; line-height: 1.75; }
/* 回测披露：与「为什么参考 TradingView」同区块，但视觉上独立一档——
   实测结论与直觉相反，不能混在口径说明里被当脚注划过去。 */
.tv-bt { margin: 11px 0 0; padding: 10px 12px; border: 1px solid #f3d6a0; border-radius: 9px; color: #7a4b00; background: #fffaf0; font-size: 10.5px; line-height: 1.75; }
.tv-bt b { color: #663f00; }
.tv-bt a { color: #b4530a; font-weight: 700; text-decoration: underline; }
.tv-bt a:hover { color: #8a3d05; }
/* 门槛参照系：与回测披露同色系，加粗左边框以示区别 */
.tv-gate { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #f3d6a0; border-left: 4px solid #d97706; border-radius: 9px; color: #7a4b00; background: #fffaf0; font-size: 10.5px; line-height: 1.75; }
.tv-gate b { color: #663f00; }
.tv-loading, .tv-empty, .tv-error { padding: 30px 12px; text-align: center; color: var(--muted); font-size: 12px; }
.tv-error { margin: 10px 0; border: 1px solid #fecaca; border-radius: 8px; color: #991b1b; background: #fef2f2; }
.tv-stale-banner { margin: 10px 0; padding: 11px 13px; border: 1px solid #f0c36d; border-radius: 9px; color: #754b00; background: #fff8e7; font-size: 11.5px; font-weight: 700; line-height: 1.6; }
.tv-rules { padding-bottom: 19px; }
.rule-tag { flex: 0 0 auto; padding: 5px 9px; border-radius: 7px; color: #4338ca; background: #eef2ff; font-size: 10px; font-weight: 700; }
.tv-rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tv-rule-grid article { position: relative; min-height: 130px; padding: 15px 14px; border: 1px solid #e8ebf3; border-radius: 11px; background: linear-gradient(145deg, #fff, #fafbff); }
.rule-no { position: absolute; top: 13px; right: 13px; color: #d8dcf2; font-size: 18px; font-weight: 850; }
.tv-rule-grid h3 { margin: 1px 0 7px; color: var(--title); font-size: 12px; }
.tv-rule-grid p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.tv-rating-scale { display: flex; gap: 17px; flex-wrap: wrap; padding: 14px 1px 6px; color: #68758a; font-size: 10.5px; }
.tv-rating-scale b { margin-right: 3px; color: #344054; }
.tv-grade-logic { padding: 10px 12px; border: 1px solid #e8ebf3; border-radius: 8px; color: #5b6779; background: #f8f9fc; font-size: 10.5px; line-height: 1.75; }
.tv-grade-logic b { color: #344054; }
.tv-disclaimer-small { margin: 6px 0 0; padding-top: 11px; border-top: 1px solid #edf0f5; }
@media (max-width: 900px) { .tv-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tv-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tv-container { margin-top: 14px; padding: 0 12px; gap: 12px; }
  .tv-table .hide-mobile { display: none; }
  .tv-hero { align-items: flex-start; flex-direction: column; padding: 22px 20px; gap: 14px; border-radius: 15px; }
  .tv-hero p { font-size: 12px; }
  .tv-hero-side { font-size: 10.5px; }
  .tv-summary { gap: 7px; }
  .tv-summary-card { min-height: 60px; padding: 10px; flex-direction: column-reverse; align-items: flex-start; gap: 7px; }
  .tv-summary-card b { font-size: 21px; }
  .tv-summary-card span { font-size: 9.5px; }
  .tv-panel { padding: 16px 12px 12px; border-radius: 13px; }
  .tv-panel-head { align-items: flex-start; flex-direction: column; gap: 11px; }
  .tv-search { width: 100%; }
  .tv-rule-grid { gap: 7px; }
  .tv-rule-grid article { min-height: 144px; padding: 12px 10px; }
  .rule-no { top: 9px; right: 9px; font-size: 15px; }
  .tv-rating-scale { gap: 9px 13px; }
  .tv-topbar .status { gap: 8px; }
  .tv-topbar .muted { display: none; }
}
