/* GENGDEX · 梗指数 —— 夜色 + 宣纸 + 中国红。星标是主视觉。红涨绿跌。 */
:root {
  --night: #0d0a09;
  --dark: #141110;
  --panel: #1b1715;
  --paper: #f3eee4;
  --paper-2: #e6dfd1;
  --ink: #1c1714;
  --ink-2: #4a423b;
  --ink-mute: #8a7f73;
  --ink-line: rgba(28, 23, 20, .12);
  --text: #f3eee4;
  --mute: rgba(243, 238, 228, .6);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --red: #e8432e;
  --red-2: #cf3622;
  --gold: #e9b949;
  --up: #e8432e;    /* 红涨 */
  --down: #17a672;  /* 绿跌 */
  --bnb: #f0b90b;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --bar: 64px;
  --gut: clamp(18px, 3.2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
[hidden] { display: none !important; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }
.wrap--narrow { max-width: 900px; }
.r { text-align: right; }

/* ───────── 顶栏 ───────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--bar);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gut);
  transition: background-color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.bar.is-scrolled { background: rgba(13, 10, 9, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__en { font-weight: 600; font-size: 15px; letter-spacing: .1em; }
.brand__cn { font-family: var(--serif); font-size: 14px; color: var(--mute); padding-left: 10px; border-left: 1px solid var(--line-2); }
.bar__nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 0; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.bar__nav a { padding: 6px 16px; border-radius: 0; font-size: 14px; color: var(--mute); transition: color .15s, background-color .15s; }
.bar__nav a:hover { color: var(--text); }
.bar__nav a.is-active { background: var(--paper); color: var(--ink); font-weight: 500; }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 0; border: 1px solid var(--line-2); transition: background-color .15s; }
.round-btn:hover { background: rgba(255, 255, 255, .08); }
.chain-badge { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--mute); }
.chain-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--bnb); }
.chain-badge.is-wrong { color: #fff; background: var(--red); border-color: var(--red); cursor: pointer; }
.chain-badge.is-wrong i { background: #fff; }
.navburger { display: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; position: relative; }
.navburger span, .navburger span::before, .navburger span::after { position: absolute; left: 10px; width: 12px; height: 1.5px; background: #fff; content: ''; transition: transform .2s; }
.navburger span { top: 16px; }
.navburger span::before { left: 0; top: -4px; }
.navburger span::after { left: 0; top: 4px; }
.navburger[aria-expanded="true"] span { background: transparent; }
.navburger[aria-expanded="true"] span::before { transform: translateY(4px) rotate(45deg); }
.navburger[aria-expanded="true"] span::after { transform: translateY(-4px) rotate(-45deg); }

/* ───────── 按钮 ───────── */
.btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 0; border-radius: 0; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; font-family: var(--font); white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn-red:hover { background: var(--red-2); }
.btn-red:active { transform: translateY(1px); }
.btn-red--sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-red .addr { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .15s; }
.link-arrow:hover { border-color: var(--text); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 0; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 0; border: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

/* ───────── 夜色光晕 + 星标 ───────── */
.glow { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 65% at 78% 42%, rgba(232, 67, 46, .42) 0%, rgba(232, 67, 46, 0) 70%),
    radial-gradient(35% 40% at 92% 88%, rgba(233, 185, 73, .26) 0%, rgba(233, 185, 73, 0) 70%),
    radial-gradient(50% 60% at 6% 100%, rgba(140, 38, 24, .38) 0%, rgba(140, 38, 24, 0) 70%),
    var(--night); }
.glow--gold { background:
    radial-gradient(50% 70% at 20% 30%, rgba(233, 185, 73, .30) 0%, rgba(233, 185, 73, 0) 70%),
    radial-gradient(45% 60% at 85% 75%, rgba(232, 67, 46, .32) 0%, rgba(232, 67, 46, 0) 70%),
    var(--night); }
.flare { position: absolute; z-index: 0; right: 4%; top: 50%; width: 560px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.flare img { position: absolute; inset: 0; width: 100%; height: 100%; }
.flare__halo { filter: blur(38px); opacity: .55; transform: scale(1.15); }
.flare__star { filter: drop-shadow(0 0 18px rgba(255, 214, 160, .85)) drop-shadow(0 0 60px rgba(232, 67, 46, .7)); animation: twinkle 9s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: rotate(-3deg) scale(.97); } 50% { transform: rotate(3deg) scale(1.03); } }
.flare--end { right: 8%; width: 420px; }

.kicker { font-size: 13px; letter-spacing: .14em; color: var(--gold); }
.kicker--ink { color: var(--red); }

/* ───────── HERO ───────── */
.hero { min-height: max(720px, 100vh); min-height: max(720px, 100svh); display: flex; }
.hero__in { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: calc(var(--bar) + 70px) var(--gut) 90px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 70px; align-items: center; }
.hero__title { margin-top: 22px; font-weight: 900; font-size: clamp(54px, 7.2vw, 108px); line-height: 1.08; letter-spacing: .01em; }
.hero__lede { margin-top: 26px; max-width: 500px; font-size: 17px; line-height: 1.8; color: rgba(243, 238, 228, .78); }
.hero__btns { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 14px; color: var(--mute); }
.facts li { padding: 0 20px; border-left: 1px solid var(--line-2); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--text); margin: 0 2px; }
.facts--big { margin-top: 44px; }
.facts--big b { font-size: 30px; }

.board { position: relative; background: var(--paper); color: var(--ink); border-radius: 0; padding: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.board__head { display: flex; justify-content: space-between; align-items: center; }
.board__name { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.board__level { margin-top: 14px; font-family: var(--mono); font-weight: 500; font-size: 54px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.board__change { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.board__spark { display: block; width: 100%; height: 64px; margin-top: 16px; overflow: visible; }
.board__spark text { display: none; }
.board__weights { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-line); }
.wstack { display: flex; gap: 2px; height: 10px; border-radius: 0; overflow: hidden; }
.wstack i { display: block; min-width: 2px; }
.wlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.wlegend span { display: inline-flex; align-items: center; gap: 6px; }
.wlegend i { width: 8px; height: 8px; border-radius: 0; }
.board__foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--ink-mute); }
.board__foot a { font-family: var(--mono); color: var(--ink); }
.board__foot a:hover { text-decoration: underline; }
.board__foot span:last-child { font-family: var(--mono); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-mute); }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #bbb; }
.live-dot.is-live { color: var(--red); }
.live-dot.is-live::before { background: var(--red); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 67, 46, .45); } 50% { box-shadow: 0 0 0 4px rgba(232, 67, 46, 0); } }

/* ───────── 行情条 ───────── */
.ticker { position: relative; overflow: hidden; background: var(--night); border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: baseline; gap: 10px; padding: 15px 26px; border-right: 1px solid var(--line); white-space: nowrap; }
.tick__name { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.tick__px { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.tick__ch { font-family: var(--mono); font-size: 13px; }

/* ───────── 宣纸 / 深色 区块 ───────── */
.paper { background: var(--paper); color: var(--ink); padding: 110px 0; }
.paper--next { padding-top: 10px; }
.dark { background: var(--dark); padding: 110px 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.h2 { margin-top: 12px; font-weight: 600; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.18; }
.head__note { max-width: 430px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.head__note--dark { color: var(--mute); }
.head__note .mono { font-size: 12px; color: var(--text); }

.seg { display: inline-flex; flex-shrink: 0; padding: 3px; gap: 2px; border-radius: 0; border: 1px solid var(--line-2); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--mute); font-size: 13px; transition: background-color .15s, color .15s; }
.seg button.is-on { background: var(--paper); color: var(--ink); font-weight: 600; }
.seg button:not(.is-on):hover { color: var(--text); }
.paper .seg { border-color: var(--ink-line); }
.paper .seg button { color: var(--ink-mute); }
.paper .seg button.is-on { background: var(--ink); color: var(--paper); }
.paper .seg button:not(.is-on):hover { color: var(--ink); }
.paper .panel .seg { border-color: var(--line-2); }
.paper .panel .seg button { color: var(--mute); }
.paper .panel .seg button.is-on { background: var(--paper); color: var(--ink); }
.seg--full { display: flex; width: 100%; }
.seg--full button { flex: 1; }

/* 指数图 */
.chart-meta { display: flex; align-items: baseline; gap: 14px; }
.chart-level { font-family: var(--mono); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chart-change { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.chart { position: relative; height: 340px; margin-top: 18px; }
.chart--small { height: 170px; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-size: 14px; }
.chart .grid line { stroke: rgba(255, 255, 255, .07); }
.chart .axis text { fill: rgba(243, 238, 228, .45); font-family: var(--mono); font-size: 11px; }
.chart .ln { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln--bt { stroke: rgba(243, 238, 228, .55); stroke-dasharray: 4 4; }
.chart .area { fill: url(#areaFill); }
.chart .base-line { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 2 4; }
.chart .base-tag { fill: var(--mute); font-size: 11px; font-family: var(--font); }
.chart .xh { stroke: rgba(255, 255, 255, .3); }
.chart .xh-dot { fill: var(--paper); stroke: #000; stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 0; background: #000; border: 1px solid var(--line); color: #fff; font-size: 12px; font-family: var(--mono); white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .12s; }
.chart-tip b { display: block; font-size: 14px; font-weight: 500; }
.chart-tip span { color: rgba(255, 255, 255, .55); }
.chart--ink .chart__empty { color: var(--ink-mute); }
.chart--ink .grid line { stroke: var(--ink-line); }
.chart--ink .axis text { fill: var(--ink-mute); }
.chart--ink .ln { stroke: var(--ink); }
.chart--ink .ln--bt { stroke: rgba(28, 23, 20, .45); }
.chart--ink .area { fill: url(#areaInk); }
.chart--ink .base-line { stroke: rgba(232, 67, 46, .55); }
.chart--ink .base-tag { fill: var(--red); }
.chart--ink .xh { stroke: rgba(28, 23, 20, .25); }
.chart--ink .xh-dot { fill: var(--red); stroke: var(--paper); }
.chart--ink .chart-tip { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chart-legend { margin-top: 12px; font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-dash, .lg-solid { display: inline-block; width: 18px; height: 0; border-top: 1.6px dashed rgba(28, 23, 20, .45); }
.lg-solid { border-top-style: solid; border-color: var(--ink); margin-left: 10px; }
.statline { margin: 34px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.statline div { padding: 16px 16px 0; border-left: 1px solid var(--ink-line); min-width: 0; }
.statline div:first-child { padding-left: 0; border-left: 0; }
.statline dt { font-size: 12px; color: var(--ink-mute); }
.statline dd { margin: 4px 0 0; font-family: var(--mono); font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statline dd a:hover { text-decoration: underline; }

/* 梗榜 */
.rank { border-top: 1px solid var(--ink); }
.rank__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1fr) 90px 140px; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--ink-line); transition: background-color .15s; }
.rank__row:not(.rank__row--head):hover { background: rgba(28, 23, 20, .035); }
.rank__row--head { padding-block: 10px; font-size: 12px; color: var(--ink-mute); }
.rank__no { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink-mute); }
.rank__row:nth-child(-n+4) .rank__no { color: var(--red); }
.rank__w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.rank__w small { grid-column: 1 / -1; }
.wbar { display: block; height: 6px; border-radius: 0; background: rgba(28, 23, 20, .08); overflow: hidden; }
.wbar i { display: block; height: 100%; border-radius: 0; background: var(--red); }
.rank small { display: block; font-size: 11px; color: var(--ink-mute); }
.rank .num { font-family: var(--mono); font-size: 14px; }
.rank__ch { font-size: 14px; }
.rank__links a { margin-left: 12px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-line); }
.rank__links a:hover { color: var(--ink); border-color: var(--ink); }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok > div { min-width: 0; }
.tok__img { width: 36px; height: 36px; border-radius: 0; flex-shrink: 0; object-fit: cover; background: var(--paper-2); }
.tok__mono { width: 36px; height: 36px; border-radius: 0; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 16px; flex-shrink: 0; }
.tok__name { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok__addr { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); background: none; border: 0; padding: 0; text-align: left; }
.tok__addr:hover { color: var(--ink); }
.skel { display: inline-block; width: 60px; height: 12px; border-radius: 0; background: linear-gradient(90deg, var(--paper-2), #f7f3ec, var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; vertical-align: middle; }
@keyframes sk { to { background-position: -200% 0; } }

/* 四关 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.flow::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--red), rgba(233, 185, 73, .6), var(--line-2)); }
.flow li { position: relative; padding-top: 36px; }
.flow__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--red); background: var(--dark); }
.flow li:last-child .flow__dot { background: var(--red); }
.flow b { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.flow p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--mute); }

/* 一句话 */
.statement { padding: 140px 0; }
.statement__text { font-weight: 400; font-size: clamp(28px, 4vw, 54px); line-height: 1.45; max-width: 980px; }

/* ───────── 面板（交易 / 自定义） ───────── */
.panel { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 0; padding: 20px; min-width: 0; }
.trade { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 12px; align-items: start; }
.trade__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -20px -20px 4px; border-bottom: 1px solid var(--line); }
.trade__tabs button { height: 50px; border: 0; background: transparent; color: var(--mute); font-size: 15px; position: relative; }
.trade__tabs button.is-on { color: var(--text); font-weight: 600; }
.trade__tabs button.is-on::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 40px; height: 2px; margin-left: -20px; background: var(--red); }
.field-label { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 12px; color: var(--mute); }
.field-label--first { margin-top: 0; }
.field-hint { font-family: var(--mono); }
.field-note { margin-top: 8px; font-size: 12px; color: var(--mute); min-height: 1.5em; }
.amount { display: flex; align-items: center; height: 62px; padding: 0 16px; border-radius: 0; background: var(--night); border: 1px solid var(--line); transition: border-color .15s; }
.amount:focus-within { border-color: var(--gold); }
.amount input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 28px; font-family: var(--mono); font-weight: 500; }
.amount__unit { font-family: var(--mono); color: var(--mute); font-size: 13px; }
.chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chips button, .chips input { height: 30px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 12px; font-family: var(--mono); transition: background-color .15s, border-color .15s; }
.chips button:hover { background: rgba(255, 255, 255, .07); }
.chips button.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 500; }
.chips input { width: 84px; outline: 0; font-family: var(--font); }
.chips input:focus { border-color: var(--gold); }
.chips--wide button { flex: 1; }
.btn-primary { width: 100%; height: 52px; margin-top: 22px; border: 0; border-radius: 0; background: var(--red); color: #fff; font-weight: 600; font-size: 16px; transition: background-color .15s, opacity .2s; }
.btn-primary:hover { background: var(--red-2); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary.is-busy { pointer-events: none; opacity: .7; }
.trade__msg { margin-top: 10px; font-size: 12px; color: var(--mute); text-align: center; min-height: 1.5em; }
.trade__msg.is-err { color: #ff7a66; }
.legs__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legs__sum { font-family: var(--mono); color: var(--mute); font-size: 12px; font-weight: 400; }
.legs { list-style: none; margin: 0; padding: 0; }
.leg { display: grid; grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.leg:last-child { border-bottom: 0; }
.leg .tok__mono { background: var(--paper); color: var(--ink); }
.leg__w { font-family: var(--mono); color: var(--mute); font-size: 11px; }
.leg__in, .leg__out { font-family: var(--mono); font-size: 12px; }
.leg__out small, .leg__in small { display: block; color: var(--mute); font-size: 11px; }
.leg__st { text-align: right; font-size: 12px; color: var(--mute); }
.leg__st a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; font-family: var(--mono); }
.leg__st.st-done { color: #4fd1a1; }
.leg__st.st-failed, .leg__st.st-error { color: #ff7a66; }
.leg__st.st-run::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 1.5px solid var(--gold); border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.leg__imp.warn { color: var(--bnb); }
.legs__empty { padding: 32px 0; text-align: center; color: var(--mute); font-size: 14px; }
.holdings { margin-top: 22px; }
.hold-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.hold-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hold-list li span:last-child { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* 自定义 */
.builder { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 12px; align-items: start; }
.text-in { width: 100%; height: 44px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line); background: var(--night); color: var(--text); font-size: 15px; outline: 0; font-family: var(--font); transition: border-color .15s; }
.text-in.mono { font-family: var(--mono); font-size: 13px; }
.text-in:focus { border-color: var(--gold); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { height: 30px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 13px; transition: background-color .15s; }
.pick button:hover { background: rgba(255, 255, 255, .07); }
.pick button.is-on { background: var(--red); color: #fff; border-color: var(--red); font-weight: 600; }
.ca-row { display: flex; gap: 8px; margin: 0; }
.ca-row .text-in { flex: 1; min-width: 0; }
.ca-row .btn-ghost { height: 44px; }
#caMsg.is-err { color: #ff7a66; }
#caMsg.is-ok { color: #4fd1a1; }
.weight-tools { display: flex; gap: 14px; }
.link-btn { border: 0; background: none; color: var(--text); font-size: 12px; font-weight: 400; padding: 0; border-bottom: 1px solid var(--line-2); }
.link-btn:hover { border-color: var(--text); }
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px 100px 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.clist .clist__empty { display: block; padding: 32px 0; text-align: center; color: var(--mute); font-size: 14px; border: 0; }
.clist .tok__name { line-height: 1.3; }
.clist .tok__addr { color: var(--mute); }
.clist .tok__mono { background: var(--paper); color: var(--ink); }
.clist__meta { font-size: 11px; color: var(--mute); font-family: var(--mono); }
.clist__meta.warn { color: var(--bnb); }
.w-in { width: 100%; height: 34px; padding: 0 26px 0 10px; border-radius: 0; border: 1px solid var(--line); background: var(--night); color: var(--text); font-family: var(--mono); font-size: 13px; text-align: right; outline: 0; }
.w-wrap { position: relative; }
.w-wrap::after { content: '%'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mute); font-family: var(--mono); font-size: 12px; }
.w-in:focus { border-color: var(--gold); }
.x-btn { width: 28px; height: 28px; border-radius: 0; border: 0; background: transparent; color: var(--mute); }
.x-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.cfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; color: var(--mute); font-size: 14px; }
.cfoot b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.cfoot b.bad { color: #ff7a66; }
.cfoot__btns { display: flex; gap: 8px; }
.cchart { margin-top: 22px; }

/* 规则 */
.rules { margin-top: 34px; border-top: 1px solid var(--line-2); }
.rules details { border-bottom: 1px solid var(--line); }
.rules summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 2px; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; font-family: var(--font); font-weight: 300; font-size: 24px; color: var(--gold); transition: transform .25s var(--ease); }
.rules details[open] summary::after { transform: rotate(45deg); }
.rules details > div { padding: 0 2px 24px; color: rgba(243, 238, 228, .75); line-height: 1.85; }
.rules details > div p + p { margin-top: 10px; }
.rules .mono { font-size: .86em; color: var(--text); word-break: break-all; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.addr-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.addr-list a { font-family: var(--mono); color: var(--mute); font-size: 12px; }
.addr-list a:hover { color: var(--text); }

/* 结尾 */
.end { padding: 160px 0 170px; }
.end__title { font-weight: 900; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.12; max-width: 760px; }
.end__sub { margin-top: 16px; font-size: 18px; color: var(--mute); }

/* 页脚 */
.footer { background: var(--night); padding: 54px 0 40px; border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__bio { color: var(--mute); font-size: 14px; }
.footer__nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--mute); }
.footer__nav a:hover { color: var(--text); }
.footer__legal { margin-top: 22px; max-width: 760px; font-size: 12px; color: rgba(243, 238, 228, .42); line-height: 1.8; }
.footer__chain { margin-top: 12px; font-size: 11px; color: rgba(243, 238, 228, .42); font-family: var(--mono); }

/* ───────── 弹窗 / 提示 ───────── */
.modal { width: min(400px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal::backdrop { background: rgba(13, 10, 9, .6); backdrop-filter: blur(3px); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 12px 20px; font-family: var(--serif); font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--ink-line); }
.modal__body { padding: 12px 14px 16px; display: grid; gap: 6px; }
.wallet-opt { display: flex; align-items: center; gap: 14px; width: 100%; height: 58px; padding: 0 14px; border-radius: 0; border: 1px solid var(--ink-line); background: transparent; color: var(--ink); text-align: left; font-size: 15px; font-weight: 600; transition: background-color .15s; }
.wallet-opt:hover { background: rgba(28, 23, 20, .05); }
.wallet-opt img, .wallet-opt .wallet-ico { width: 32px; height: 32px; border-radius: 0; flex-shrink: 0; }
.wallet-opt .wallet-ico { display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; }
.wallet-opt small { margin-left: auto; color: var(--ink-mute); font-size: 12px; font-weight: 400; }
.modal__note { padding: 8px 6px 0; font-size: 13px; color: var(--ink-mute); line-height: 1.7; }
.modal__acct { padding: 4px 8px 10px; }
.modal .eyebrow { font-size: 12px; color: var(--ink-mute); }
.modal__acct .mono { font-size: 13px; word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 0; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.flash-up { animation: fu 1s ease; } .flash-down { animation: fd 1s ease; }
@keyframes fu { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes fd { 0% { color: var(--down); } 100% { color: inherit; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ───────── 响应式 ───────── */
@media (max-width: 1100px) {
  .bar__nav { display: none; position: absolute; top: var(--bar); left: 10px; right: 10px; transform: none; flex-direction: column; gap: 0; padding: 8px; border-radius: 0; background: var(--panel); }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 12px 14px; border-radius: 0; font-size: 15px; }
  .navburger { display: inline-block; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: calc(var(--bar) + 60px); padding-bottom: 70px; }
  .board { max-width: 460px; }
  .flare { top: 22%; right: -60px; width: 420px; opacity: .7; }
  .trade, .builder { grid-template-columns: minmax(0, 1fr); }
  .statline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statline div:nth-child(4) { padding-left: 0; border-left: 0; }
  .statline div:nth-child(n+4) { margin-top: 14px; }
  .rank__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) 80px; }
  .rank__links { display: none; }
}
@media (max-width: 760px) {
  .head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--red), var(--line-2)); }
  .flow li { padding: 0 0 0 34px; }
  .rank__row--head { display: none; }
  .rank__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tok ch" "w px"; gap: 8px 12px; padding: 14px 2px; }
  .rank__row > .tok { grid-area: tok; }
  .rank__w { grid-area: w; }
  .rank__row > .r:nth-child(3) { grid-area: px; }
  .rank__ch { grid-area: ch; }
  .addr-list, .hold-list { grid-template-columns: minmax(0, 1fr); }
  .paper, .dark { padding: 80px 0; }
  .paper--next { padding-top: 0; }
  .statement { padding: 100px 0; }
}
@media (max-width: 560px) {
  .bar { gap: 10px; }
  .brand__cn, .round-btn, .chain-badge { display: none; }
  .hero__title { font-size: clamp(46px, 13vw, 60px); }
  .hero__lede { font-size: 16px; }
  .facts { gap: 8px 22px; }
  .facts li { padding: 0; border-left: 0; }
  .facts b { font-size: 19px; }
  .board { padding: 18px; }
  .board__level { font-size: 44px; }
  .flare { top: 12%; right: -110px; width: 340px; opacity: .55; }
  .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statline div { padding-left: 12px; }
  .statline div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .statline div:nth-child(4) { padding-left: 12px; border-left: 1px solid var(--ink-line); }
  .statline div:nth-child(n+3) { margin-top: 14px; }
  .chart { height: 240px; }
  .chart-level { font-size: 36px; }
  .panel { padding: 16px; }
  .trade__tabs { margin: -16px -16px 4px; }
  .leg { grid-template-columns: 40px 1fr 1fr; gap: 6px 12px; }
  .leg > div:nth-child(2) { grid-column: 2 / -1; }
  .leg__in { grid-column: 2; }
  .leg__out { grid-column: 3; }
  .leg__st { grid-column: 2 / -1; text-align: left; }
  .clist li { grid-template-columns: minmax(0, 1fr) 84px 28px; }
  .clist li .tok__mono, .clist li .tok__img, .clist__meta-col { display: none; }
  .footer__nav { margin-left: 0; flex-wrap: wrap; }
  .flare--end { right: -80px; width: 300px; opacity: .6; }
  .end { padding: 110px 0; }
}

/* ───────── app.html：实时点位条 / 安静的数据句 ───────── */
.page-app main { padding-top: var(--bar); }
.strip { background: var(--night); border-bottom: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 40px; align-items: end; padding-top: 44px; padding-bottom: 36px; }
.strip__name { display: flex; align-items: center; gap: 14px; }
.strip__name h1 { font-weight: 600; font-size: 22px; }
.strip__name .live-dot { color: var(--mute); }
.strip__name .live-dot.is-live { color: var(--red); }
.strip__level { grid-row: 1 / 3; grid-column: 2; justify-self: end; font-family: var(--mono); font-size: clamp(44px, 6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip__meta { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.strip__meta a { color: var(--text); }
.strip__meta a:hover { text-decoration: underline; }
.quiet-facts { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink); max-width: 760px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.quiet-facts b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.quiet-facts b a:hover { text-decoration: underline; }
.sq-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); transition: background-color .15s; }
.sq-btn:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 760px) {
  .strip__in { grid-template-columns: 1fr; }
  .strip__level { grid-row: auto; grid-column: auto; justify-self: start; margin-top: 8px; }
}
@media (max-width: 560px) { .sq-btn { display: none; } }

/* ───────── 椭圆转场 ───────── */
.veil { position: fixed; inset: 0; z-index: 400; background: var(--night); pointer-events: none; clip-path: ellipse(0% 0% at 50% 50%); }
.veil.is-cover { clip-path: ellipse(85% 75% at 50% 50%); }
.veil.is-open { animation: veil-open .8s cubic-bezier(.7, 0, .2, 1) both; }
.veil.is-close { animation: veil-close .6s cubic-bezier(.7, 0, .2, 1) both; pointer-events: auto; }
@keyframes veil-open { from { clip-path: ellipse(85% 75% at 50% 50%); } to { clip-path: ellipse(0% 0% at 50% 50%); } }
@keyframes veil-close { from { clip-path: ellipse(0% 0% at 50% 50%); } to { clip-path: ellipse(85% 75% at 50% 50%); } }
@media (prefers-reduced-motion: reduce) { .veil.is-open, .veil.is-close { animation-duration: .01ms; } }
.is-arriving .veil { clip-path: ellipse(85% 75% at 50% 50%); }
