:root { color-scheme: dark; --bg:#10141c; --surface:#181e29; --raised:#1d2532; --line:#2a3445; --text:#e8edf5; --muted:#95a2b7; --subtle:#66768d; --accent:#d7b780; --green:#47d5a2; --red:#f18e99; --blue:#79a9ff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.6 "Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
button,input { font:inherit; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
main { max-width:1200px; padding:36px 36px 24px; margin:auto; }
.page-head,.brand,.page-meta,.fund-head,.card-head,.range-tools,.range-dates,footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.page-head { margin-bottom:18px; }
.brand { justify-content:flex-start; gap:12px; }
.brand-mark { display:grid; place-items:center; position:relative; width:42px; height:44px; background:#d7b78018; border:1px solid #d7b78045; color:var(--accent); border-radius:12px; font-size:27px; font-weight:650; }
.brand-mark span { position:absolute; right:5px; top:3px; font-size:14px; }
.eyebrow { color:var(--accent); font-size:10px; letter-spacing:2.6px; font-weight:600; }
h1 { font-size:22px; font-weight:600; margin:0; letter-spacing:1px; line-height:1.4; }
h2,h3,p { margin:0; }
.page-meta { justify-content:flex-end; gap:8px; color:var(--muted); font-size:12px; }
.live-dot { width:6px; height:6px; background:var(--accent); border-radius:50%; }
.icon-button { border:1px solid var(--line); color:var(--muted); background:transparent; width:30px; height:30px; border-radius:8px; font-size:20px; line-height:1; }
.icon-button:hover { color:var(--text); background:var(--raised); }
.intro { color:var(--muted); margin-bottom:27px; font-size:13px; }
.fund-tabs { display:flex; overflow-x:auto; gap:6px; padding-bottom:12px; border-bottom:1px solid var(--line); margin-bottom:27px; scrollbar-width:thin; }
.fund-tab { display:flex; align-items:center; gap:13px; white-space:nowrap; border:1px solid transparent; background:transparent; color:var(--muted); padding:10px 16px; border-radius:9px; }
.fund-tab:hover { background:var(--surface); color:var(--text); }
.fund-tab[aria-selected="true"] { background:#d7b78012; border-color:#d7b78055; color:var(--accent); }
.tab-code { font-size:11px; opacity:.7; font-variant-numeric:tabular-nums; }
.fund-head { align-items:flex-start; margin-bottom:24px; flex-wrap:wrap; }
.fund-head h2 { font-size:24px; font-weight:550; letter-spacing:.4px; }
.fund-description { color:var(--muted); font-size:12px; margin-top:7px; display:flex; gap:9px; align-items:center; }
.small-tag { border:1px solid var(--line); border-radius:4px; padding:0 6px; font-size:10px; color:var(--muted); }
.fund-price { text-align:right; }
.fund-price strong { font-size:27px; font-weight:500; font-variant-numeric:tabular-nums; }
.fund-price .unit { color:var(--muted); font-size:12px; padding-left:7px; }
.fund-price p { color:var(--muted); font-size:11px; margin-top:2px; }
.section-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.section-caption { display:flex; gap:9px; color:var(--muted); font-size:11px; letter-spacing:1px; }
.valuation-control { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; }
.valuation-switch { display:flex; gap:3px; padding:3px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.valuation-switch button { padding:5px 15px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:12px; }
.valuation-switch button[aria-pressed="true"] { background:#d7b78020; color:var(--accent); }
.valuation-switch button:hover { color:var(--text); }
.count { color:var(--accent); background:#d7b78015; padding:0 6px; border-radius:4px; }
.card { border:1px solid var(--line); background:var(--surface); border-radius:14px; padding:24px; margin-bottom:20px; }
.card-head { align-items:flex-start; margin-bottom:21px; }
.card-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.card h3 { font-size:16px; font-weight:550; }
.card-number { font-size:11px; color:var(--subtle); font-variant-numeric:tabular-nums; }
.card-subtitle { color:var(--muted); font-size:11px; margin-top:5px; }
.card-subtitle a { color:var(--accent); text-underline-offset:3px; }
.card-date { color:var(--subtle); font-size:11px; white-space:nowrap; padding-top:3px; }
.badge { display:inline-flex; align-items:center; padding:2px 9px; border-radius:5px; font-size:11px; color:var(--blue); background:#79a9ff12; }
.badge.buy { color:var(--green); background:#47d5a212; }
.badge.sell { color:var(--red); background:#f18e9912; }
.badge.warn { color:var(--accent); background:#d7b78012; }
.metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); border:1px solid var(--line); border-radius:10px; margin-bottom:20px; padding:15px 0; background:#10141c35; }
.metric { padding:0 18px; border-right:1px solid var(--line); }
.metric:last-child { border-right:0; }
.metric-label { color:var(--muted); font-size:11px; margin-bottom:4px; }
.metric-value { font-size:22px; font-weight:500; font-variant-numeric:tabular-nums; line-height:1.4; }
.metric-value small { color:var(--muted); font-size:12px; margin-left:3px; }
.metric:first-child .metric-value { color:var(--blue); }
.metric[data-key="buy"] .metric-value { color:var(--green); }
.metric[data-key="sell"] .metric-value { color:var(--red); }
.range-tools { flex-wrap:wrap; margin-bottom:15px; }
.presets { display:flex; flex-wrap:wrap; gap:3px; background:var(--bg); border-radius:7px; padding:3px; }
.preset { background:transparent; border:0; padding:5px 11px; color:var(--muted); font-size:11px; border-radius:5px; }
.preset.active { background:var(--raised); color:var(--accent); }
.preset:hover { color:var(--text); }
.range-dates { gap:7px; color:var(--subtle); font-size:11px; }
.range-dates input { color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:5px; padding:3px 5px; width:125px; }
.chart-wrap { height:325px; position:relative; }
.price-chart-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); padding-top:16px; margin:18px 0 12px; }
.price-chart-head h4 { margin:0; font-size:13px; font-weight:550; }
.price-chart-head span,.price-chart-note { color:var(--muted); font-size:11px; }
.price-chart-wrap { height:220px; }
.price-chart-note { margin-top:8px; line-height:1.8; }
.range-slider { position:relative; height:32px; margin-top:14px; }
.range-track { position:absolute; left:9px; right:9px; top:14px; height:4px; border-radius:99px; background:var(--line); }
.range-fill { position:absolute; left:0; right:0; height:100%; border-radius:inherit; background:var(--accent); }
/* Both native inputs share one track; only their handles receive pointer events. */
.range-slider input { position:absolute; inset:0; z-index:2; width:100%; height:32px; margin:0; padding:0; border:0; appearance:none; -webkit-appearance:none; background:transparent; pointer-events:none; }
.range-slider input::-webkit-slider-runnable-track { height:4px; border:0; background:transparent; }
.range-slider input::-moz-range-track { height:4px; border:0; background:transparent; }
.range-slider input::-moz-range-progress { background:transparent; }
.range-slider input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; box-sizing:border-box; width:18px; height:18px; margin-top:-7px; border:2px solid var(--text); border-radius:50%; background:var(--accent); pointer-events:auto; cursor:ew-resize; }
.range-slider input::-moz-range-thumb { box-sizing:border-box; width:18px; height:18px; border:2px solid var(--text); border-radius:50%; background:var(--accent); pointer-events:auto; cursor:ew-resize; }
.range-slider .slider-start.at-end { z-index:3; }
.range-slider input:focus-visible { z-index:4; outline:none; }
.range-slider input:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 4px #79a9ff55; }
.range-slider input:focus-visible::-moz-range-thumb { box-shadow:0 0 0 4px #79a9ff55; }
.range-slider input:disabled::-webkit-slider-thumb { cursor:default; opacity:.5; }
.range-slider input:disabled::-moz-range-thumb { cursor:default; opacity:.5; }
.card-note { border-top:1px solid var(--line); margin-top:18px; padding-top:12px; color:var(--muted); font-size:11px; line-height:1.8; }
.observation { border-left:2px solid var(--accent); background:#d7b78008; color:var(--accent); padding:9px 12px; margin-bottom:18px; font-size:12px; line-height:1.7; }
.metric[data-key="low"] .metric-value { color:var(--green); }
.metric[data-key="high"] .metric-value { color:var(--red); }
.card-error,.notice { border:1px solid #d7b78035; background:#d7b7800a; border-radius:8px; color:var(--accent); font-size:12px; padding:10px 13px; margin-bottom:16px; overflow-wrap:anywhere; }
.notice[hidden] { display:none; }
.historical-card { border:1px solid var(--line); border-radius:12px; background:var(--surface); margin:24px 0; }
.historical-card summary { cursor:pointer; padding:17px 20px; color:var(--muted); font-size:13px; }
.historical-card summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.history-date { float:right; color:var(--subtle); font-size:11px; }
.history-notice { color:var(--accent); font-size:12px; line-height:1.7; padding:0 20px; }
.historical-card .card { margin:0; border:0; border-top:1px solid var(--line); border-radius:0 0 12px 12px; }
.empty { padding:45px 20px; border:1px dashed var(--line); border-radius:10px; text-align:center; color:var(--muted); }
.card .empty { margin-top:15px; font-size:12px; }
footer { border-top:1px solid var(--line); padding-top:20px; margin-top:34px; color:var(--subtle); font-size:11px; flex-wrap:wrap; }
@media(max-width:720px) {
  main { padding:22px 16px; }
  .page-head { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .brand { flex-shrink:0; }
  .page-meta { flex-basis:100%; max-width:none; font-size:10px; gap:7px; justify-content:space-between; }
  .live-dot { display:none; }
  h1 { font-size:20px; }
  .intro { font-size:12px; margin-bottom:20px; }
  .fund-tabs { margin-bottom:21px; }
  .fund-tab { padding:8px 12px; }
  .fund-head h2 { font-size:21px; }
  .fund-price strong { font-size:24px; }
  .card { padding:18px 14px; border-radius:11px; }
  .historical-card summary { padding:15px 14px; line-height:1.7; }
  .history-date { float:none; display:block; padding-left:16px; }
  .history-notice { padding:0 14px; }
  .card-head { gap:8px; flex-wrap:wrap; margin-bottom:16px; }
  .card h3 { font-size:14px; }
  .card-date { padding-left:22px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 0; padding:14px 0; }
  .metric { padding:0 13px; }
  .metric:nth-child(even) { border-right:0; }
  .metric-value { font-size:21px; }
  .chart-wrap { height:280px; }
  .price-chart-wrap { height:190px; }
  .range-tools { gap:10px; }
  .preset { padding:5px 9px; }
  .range-dates { width:100%; justify-content:space-between; }
  .range-dates input { flex:1; width:0; min-width:0; }
}
.home-tab { border-color:var(--line); }
.overview-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin:32px 0 26px; }
.overview-head h2 { font-size:28px; font-weight:550; letter-spacing:.4px; margin:7px 0 8px; }
.overview-head p { color:var(--muted); font-size:13px; }
.overview-count { color:var(--muted); font-size:12px; white-space:nowrap; padding-bottom:4px; }
.overview-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:28px; }
.overview-stat { display:flex; flex-direction:column; text-align:left; gap:10px; padding:18px 19px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:var(--surface); font-size:12px; }
.overview-stat:hover,.overview-stat[aria-pressed="true"] { border-color:#d7b78070; background:var(--raised); }
.overview-stat strong { font-size:32px; font-weight:500; color:var(--text); line-height:1.2; font-variant-numeric:tabular-nums; }
.overview-stat strong small { font-size:11px; font-weight:400; color:var(--subtle); }
.overview-stat.low strong { color:var(--green); }
.overview-stat.high strong { color:var(--red); }
.overview-stat.issues strong { color:var(--accent); }
.stat-note { color:var(--subtle); font-size:10px; }
.overview-table-section { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.overview-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 22px 16px; }
.overview-toolbar h3,.attention-heading h3 { font-size:16px; font-weight:550; }
.overview-toolbar h3 .count { font-size:11px; margin-left:5px; }
.overview-toolbar p { font-size:11px; color:var(--subtle); margin-top:5px; }
.overview-sort { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:10px; }
.overview-sort select { font:inherit; border:1px solid var(--line); color:var(--text); background:var(--bg); border-radius:7px; padding:7px 9px; max-width:210px; }
select:focus-visible,a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.overview-filters { display:flex; gap:5px; padding:0 22px 18px; flex-wrap:wrap; }
.overview-filters button { color:var(--muted); background:transparent; border:1px solid transparent; border-radius:6px; font-size:11px; padding:5px 11px; }
.overview-filters button[aria-pressed="true"] { color:var(--accent); background:#d7b78014; border-color:#d7b78035; }
.overview-filters button:hover { background:var(--raised); }
.overview-table-scroll { overflow:auto; scrollbar-width:thin; }
.overview-scroll-hint { display:none; }
.overview-table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
.overview-table th,.overview-table td { padding:17px 14px; border-top:1px solid var(--line); font-weight:400; }
.overview-table thead th { color:var(--subtle); font-size:10px; background:#10141c45; padding-top:11px; padding-bottom:11px; }
.overview-table th:first-child { padding-left:22px; }
.overview-table td:last-child { padding-right:22px; }
.overview-table tbody tr:hover { background:#ffffff03; }
.overview-name { color:var(--text); text-decoration:none; font-size:12px; font-weight:500; }
.overview-name:hover { color:var(--accent); }
.row-arrow { color:var(--subtle); font-size:13px; margin-left:6px; }
.row-meta { font-size:10px; color:var(--subtle); margin-top:5px; }
.overview-price { font-size:14px; font-variant-numeric:tabular-nums; }
.change { font-size:12px; font-variant-numeric:tabular-nums; }
.up { color:var(--red); }
.down { color:var(--green); }
.unavailable { color:var(--subtle); font-size:11px; }
.data-warning { color:var(--accent); }
.sparkline { width:85px; height:30px; display:block; }
.sparkline polyline { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
.overview-indicator { font-size:10px; color:var(--muted); }
.overview-indicator strong { font-size:13px; font-weight:500; color:var(--text); margin:0 4px; font-variant-numeric:tabular-nums; }
.percentile-label { font-size:12px; margin-bottom:7px; font-variant-numeric:tabular-nums; }
.percentile-track { position:relative; width:92px; height:4px; border-radius:3px; background:linear-gradient(to right,#47d5a255 20%,#79a9ff35 20%,#79a9ff35 80%,#f18e9955 80%); }
.percentile-track i { position:absolute; top:-3px; width:3px; height:10px; transform:translateX(-50%); background:var(--text); border-radius:2px; }
.percentile-track.inactive { opacity:.35; }
.position-window { color:var(--subtle); font-size:9px; margin-left:8px; }
.rsi-track { background:linear-gradient(to right,#47d5a255 var(--rsi-low),#79a9ff35 var(--rsi-low),#79a9ff35 var(--rsi-high),#f18e9955 var(--rsi-high)); }
.overview-footnote { border-top:1px solid var(--line); padding:14px 22px; font-size:10px; line-height:1.9; color:var(--subtle); }
.overview-empty { padding:26px 22px; font-size:12px; color:var(--muted); }
.attention-section { margin-top:28px; }
.attention-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.attention-heading span { color:var(--subtle); font-size:11px; }
.attention-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.attention-item { display:flex; align-items:flex-start; gap:11px; padding:18px; border:1px solid var(--line); border-radius:11px; background:var(--surface); text-decoration:none; color:var(--text); }
.attention-item:hover { border-color:#d7b78065; }
.attention-item strong { font-size:12px; font-weight:500; }
.attention-item p { margin-top:6px; font-size:11px; color:var(--muted); line-height:1.8; }
.attention-item .row-arrow { margin-left:auto; }
.attention-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; margin-top:7px; background:var(--accent); }
.attention-dot.low { background:var(--green); }
.attention-dot.high { background:var(--red); }
@media(max-width:1000px) { .overview-stats { gap:8px; } .overview-stat { padding:16px 12px; } .overview-table { min-width:1020px; } }
@media(max-width:720px) {
  .overview-head { display:block; margin-top:24px; }
  .overview-head h2 { font-size:23px; }
  .overview-head p { font-size:12px; }
  .overview-count { display:block; margin-top:12px; }
  .overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .overview-stat { padding:14px 16px; gap:7px; }
  .overview-stat.all { grid-column:1 / -1; flex-direction:row; align-items:center; justify-content:space-between; }
  .overview-stat.all .stat-note { display:none; }
  .overview-stat strong { font-size:28px; }
  .overview-toolbar { flex-wrap:wrap; padding:18px 16px 14px; }
  .overview-sort { width:100%; justify-content:space-between; }
  .overview-filters { padding:0 12px 14px; }
  .overview-filters button { padding:5px 8px; }
  .overview-footnote { padding:12px 16px; }
  .overview-scroll-hint { display:block; padding:0 16px 12px; color:var(--subtle); font-size:10px; }
  .overview-table th:first-child { position:sticky; left:0; background:var(--surface); z-index:1; padding-left:16px; box-shadow:6px 0 12px #10141c40; }
  .overview-table thead th:first-child { background:var(--raised); }
  .attention-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:no-preference) { button { transition:background .15s,color .15s,border-color .15s; } }
