:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #18253c;
  background: #f0f3f9;
  --ink: #17243a;
  --muted: #57647b;
  --blue: #2850d7;
  --line: #d8e0ed;
  --subtle: #f2f5fa;
  --panel: #fff;
  --positive: #15644b;
  --negative: #a44333;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #4879fa; outline-offset: 3px; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, main { width: min(1500px, calc(100% - 72px)); margin-inline: auto; }
.topbar-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 13px; font-weight: 750; font-size: 21px; text-decoration: none; letter-spacing: -.025em; }
.brand-en { color: #45516a; font-size: 0.83em; font-weight: 620; }
.brand-mark { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 37px; height: 37px; padding: 8px; border-radius: 8px; background: var(--blue); }
.brand-mark i { background: white; display: block; width: 5px; height: 8px; border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 20px; }
.primary { border: 1px solid var(--blue); background: var(--blue); color: white; border-radius: 8px; padding: 9px 14px; font-weight: 650; white-space: nowrap; }
.primary:hover { background: #1f42bb; }
.primary span { margin-right: 4px; font-size: 19px; line-height: 1; }
.primary:disabled { opacity: .65; cursor: wait; }
main { padding-block: 32px 20px; }
h1, h2, p { margin: 0; }
h1 { letter-spacing: -.04em; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.18; }
.intro p { color: var(--muted); font-size: clamp(14px, 1.35vw, 19px); margin-top: 9px; line-height: 1.55; }
.toolbar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 24px 0 16px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; align-items: center; padding: 3px; border: 1px solid #cad4e6; border-radius: 9px; background: #fff; }
.seg button, .secondary { color: #42506a; border: 1px solid transparent; border-radius: 6px; background: transparent; min-height: 32px; padding: 4px 13px; font-weight: 620; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--blue); color: white; }
.seg button:hover:not([aria-pressed="true"]), .secondary:hover { background: #e9eef8; }
.secondary { background: white; border-color: #cad4e6; }
.status { color: var(--muted); font-size: 13px; line-height: 1.5; }
.status.error { color: #9a3e2a; }
.panel, .method { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel-title { padding: 15px 19px; font-size: 21px; font-weight: 740; }
.table-scroll { overflow: auto; border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
table { width: 100%; border-collapse: collapse; min-width: 1090px; font-variant-numeric: tabular-nums; }
thead { background: #edf1f7; color: #46536a; }
th { font-weight: 650; font-size: 13px; vertical-align: middle; white-space: nowrap; }
th, td { padding: 10px 12px; text-align: right; }
th:first-child, td:first-child { text-align: left; padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
td { height: 72px; border-top: 1px solid #dde5f0; font-size: 14px; line-height: 1.35; white-space: nowrap; }
tbody tr:hover { background: #f5f8fd; }
tbody tr.pendle { background: #eaf0ff; }
tbody tr.pendle:hover { background: #e2ebff; }
.token { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.token:hover .symbol { color: var(--blue); text-decoration: underline; }
.token-mark { border-radius: 9px; min-width: 37px; height: 37px; display: grid; place-content: center; font-weight: 750; font-size: 13px; background: #dce7fc; color: #244685; }
.token-mark.uni { color: #684299; background: #eee2ff; }
.token-mark.bnb { color: #755800; background: #fff0c5; }
.token-mark.aave { color: #4b478e; background: #e5e4ff; }
.token-mark.pendle { color: #184ead; background: #d5e5ff; }
.symbol { display: block; font-weight: 760; font-size: 16px; letter-spacing: .015em; }
small { display: block; font-size: 12px; font-weight: 450; color: var(--muted); line-height: 1.45; margin-top: 2px; }
strong { font-weight: 730; }
.value-main { font-size: 16px; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.rank { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rank-track { position: relative; display: block; width: 70px; height: 5px; border-radius: 8px; background: #d5deed; margin-right: 2px; }
.rank-track i { display: block; position: absolute; inset: 0 auto 0 0; width: var(--rank); background: #4065e6; border-radius: inherit; }
.rank-track i::after { content: ""; position: absolute; right: -4px; top: -2px; width: 9px; height: 9px; border-radius: 100%; background: #4065e6; box-shadow: 0 0 0 1.5px #fff; }
.rank strong { min-width: 44px; }
.tag { display: inline-block; border-radius: 6px; padding: 4px 9px; font-weight: 680; background: #e8edf6; color: #42506a; }
.tag.buy { background: #dcf0e7; color: #195c46; }
.tag.sell, .tag.pause { background: #f9ead7; color: #884917; }
.tag.pause { font-size: 11px; padding: 2px 5px; margin-left: 4px; }
.method { margin-top: 20px; }
.method summary { padding: 13px 18px; font-weight: 700; cursor: pointer; }
.method-body { padding: 0 18px 16px; }
.method p { font-size: 14px; line-height: 1.66; color: var(--muted); max-width: 110ch; }
.method p + p { margin-top: 6px; }
footer { display: flex; gap: 7px 15px; margin-top: 15px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.footer-note { margin-left: auto; }
.back { display: inline-block; margin-bottom: 15px; font-size: 14px; }
.detail-title { display: flex; align-items: center; gap: 14px; }
.detail-title .token-mark { width: 48px; height: 48px; font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 15px; overflow: hidden; }
.detail-stat { padding: 15px 18px; }
.detail-stat + .detail-stat { border-left: 1px solid var(--line); }
.detail-stat b { display: block; font-size: 23px; margin-block: 4px; font-variant-numeric: tabular-nums; }
.detail-stat > span { font-size: 13px; color: var(--muted); }
.chart-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 18px; padding: 15px 18px 0; }
.chart-head h2 { font-size: 20px; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.chart-wrap { position: relative; margin: 10px 14px 0; }
canvas { width: 100%; height: 274px; display: block; }
.chart-tip { position: absolute; top: 2px; right: 4px; padding: 4px 9px; font-size: 13px; background: #f1f5ff; border: 1px solid #cad8f8; border-radius: 5px; color: #21396b; pointer-events: none; }
.chart-note { padding: 1px 18px 14px; color: var(--muted); font-size: 13px; }
.detail-sources { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.empty { padding: 20px; color: var(--muted); }
.mobile-scroll { display: none; }

@media (max-width: 1150px) {
  .topbar-inner, main { width: calc(100% - 48px); }
  .mobile-scroll { display: block; margin: -4px 0 9px; color: var(--muted); font-size: 12px; }
}
@media (max-width: 620px) {
  .topbar-inner, main { width: calc(100% - 28px); }
  .topbar-inner { min-height: 60px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-en { display: none; }
  .brand-mark { width: 31px; height: 31px; padding: 6px; }
  .primary { padding: 7px 10px; font-size: 14px; }
  main { padding-top: 23px; }
  .toolbar { margin-top: 17px; }
  table { table-layout: fixed; min-width: 1080px; }
  th:first-child { width: 116px; }
  th:nth-child(2) { width: 110px; }
  th:nth-child(3) { width: 119px; }
  th:nth-child(6), th:nth-child(7) { width: 138px; }
  td:nth-child(2) small, td:nth-child(3) small { white-space: normal; }
  tbody .token { gap: 6px; }
  tbody .token-mark { min-width: 26px; height: 30px; font-size: 11px; }
  tbody .symbol { font-size: 14px; }
  th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 #dce4ef; padding-left: 12px; }
  th:first-child { background: #edf1f7; }
  tr.pendle td:first-child { background: #eaf0ff; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stat:nth-child(3) { border-left: none; }
  .detail-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .detail-stat { padding: 10px 12px; }
  .detail-stat b { font-size: 20px; }
  .seg button { padding-inline: 9px; }
  .footer-note { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, tr { transition: background-color .12s, color .12s; }
}
