:root { color-scheme: dark; font-family: Inter, "Noto Sans TC", system-ui, sans-serif; background: #0b1020; color: #e8edf8; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #172447 0, #0b1020 45%); min-height: 100vh; }
main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
header { margin-bottom: 48px; }
h1 { margin: 8px 0 12px; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -.05em; }
h2 { margin: 0 0 18px; font-size: 1.25rem; }
h3 { margin: 12px 0 0; font-size: 1.15rem; }
p { color: #aab6d2; line-height: 1.7; }
.eyebrow { color: #7dd3fc; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
section { margin-top: 42px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
button { border: 1px solid #3b4e79; border-radius: 999px; padding: 8px 14px; background: #15213f; color: inherit; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .table-wrap, .metric-card, .chart-panel { border: 1px solid #263558; border-radius: 18px; background: rgba(17, 27, 51, .86); padding: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.enter { background: #14532d; color: #bbf7d0; } .exit { background: #7f1d1d; color: #fecaca; }
.long { background: #164e63; color: #cffafe; } .cash, .unknown { background: #334155; color: #e2e8f0; }
dl { margin: 20px 0 0; display: grid; gap: 9px; }
dl div { display: flex; justify-content: space-between; gap: 20px; }
dt { color: #7f8cab; } dd { margin: 0; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 8px; text-align: left; border-bottom: 1px solid #263558; font-variant-numeric: tabular-nums; }
th { color: #8ea0c7; font-size: .85rem; } tbody tr:last-child td { border-bottom: 0; }
.error { color: #fca5a5; }
.section-note { margin: -8px 0 0; font-size: .9rem; }
.performance-heading { align-items: flex-end; }
.metric-table-wrap { margin-bottom: 18px; border: 1px solid #263558; border-radius: 16px; background: rgba(17, 27, 51, .86); box-shadow: 0 18px 60px rgba(0,0,0,.18); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.metric-table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.metric-table th, .metric-table td { padding: 13px 14px; border-bottom: 1px solid #1c2948; font-variant-numeric: tabular-nums; }
.metric-table th { color: #8ea0c7; font-size: .8rem; font-weight: 600; text-align: right; background: rgba(13, 20, 39, .7); border-bottom: 1px solid #263558; }
.metric-table td { text-align: right; color: #cbd5e1; }
.metric-table tbody tr { transition: background .15s ease; }
.metric-table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.metric-table tbody tr:last-child td { border-bottom: none; }
.metric-table .col-strategy { text-align: left; position: sticky; left: 0; background: #0f1831; z-index: 2; box-shadow: 3px 0 8px rgba(0, 0, 0, .35); }
.metric-table th.col-strategy { z-index: 3; background: #0c142b; }
.metric-table tbody tr:hover .col-strategy { background: #14203e; }
.strategy-name-wrap { display: inline-flex; align-items: center; gap: 9px; }
.strategy-mark { display: inline-block; width: 12px; height: 4px; border-radius: 2px; background: var(--series-color); flex-shrink: 0; }
.strategy-title { color: #e8edf8; font-size: .92rem; font-weight: 600; }
.benchmark-pill { display: inline-block; padding: 2px 7px; border-radius: 4px; background: rgba(148, 163, 184, .15); color: #94a3b8; font-size: .72rem; font-weight: 500; }
.nav-mult { color: #60a5fa; font-size: 1.05rem; font-weight: 800; }
.positive { color: #34d399; }
.negative { color: #fb7185 !important; }
.metric-empty { padding: 24px; text-align: center; color: #8ea0c7; }
.chart-panel { padding: 20px 20px 14px; }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chart-heading h3 { margin: 0; }
.chart-heading p { margin: 4px 0 0; font-size: .82rem; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #33466f; border-radius: 999px; color: #c8d4ee; background: #101a32; font-size: .76rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); box-shadow: 0 0 10px var(--series-color); }
.chart-stage { position: relative; height: 410px; margin-top: 16px; }
.chart-stage-small { height: 210px; margin-top: 10px; }
.chart-stage-combined { position: relative; height: 480px; margin-top: 16px; }
.chart-stage canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.mdd-heading { margin-top: 18px; padding-top: 18px; border-top: 1px solid #263558; }
.chart-tooltip { position: absolute; z-index: 2; min-width: 170px; padding: 9px 11px; border: 1px solid #4b5f8e; border-radius: 10px; background: rgba(8, 14, 29, .96); color: #e8edf8; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; font-size: .76rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.chart-tooltip strong { display: block; margin-bottom: 3px; }
.tooltip-row { display: flex; justify-content: space-between; gap: 16px; }
.tooltip-row i { width: 7px; height: 7px; margin: 5px 5px 0 0; border-radius: 50%; background: var(--series-color); }
.tooltip-name { display: inline-flex; align-items: flex-start; }
@media (max-width: 920px) { .chart-heading { display: block; } .legend { justify-content: flex-start; margin-top: 12px; } }
@media (max-width: 680px) { main { padding-top: 36px; } .cards { grid-template-columns: 1fr; } .table-wrap { overflow-x: auto; } .chart-panel { padding: 14px 10px 10px; } .chart-stage { height: 330px; } .chart-stage-small { height: 190px; } .chart-stage-combined { height: 420px; } }
