*{margin:0;padding:0;box-sizing:border-box}
html,body{background:#0a0d14;color:#e6edf3;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif;
  font-size:13px;line-height:1.5}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}

/* ========== Nav ========== */
.nav{display:flex;justify-content:space-between;align-items:center;
  padding:12px 20px;border-bottom:1px solid #1e2433;
  background:rgba(10,13,20,.92);backdrop-filter:blur(12px);
  position:sticky;top:0;z-index:20}
.nav-left{display:flex;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:8px}
.brand .dot{width:18px;height:18px;border-radius:50%;background:#00d4aa}
.brand .name{font-size:15px;font-weight:500;letter-spacing:-.2px}
.nav-links{display:flex;gap:16px;font-size:12px;color:#7d8590}
.nav-links a{transition:color .15s}
.nav-links a:hover{color:#e6edf3}
.nav-links a.active{color:#e6edf3}
.nav-cta{background:#00d4aa;color:#04342c;padding:7px 14px;border-radius:6px;
  font-weight:500;font-size:12px;transition:all .15s}
.nav-cta:hover{background:#00e8ba;transform:translateY(-1px)}

/* ========== Ticker ========== */
.ticker-wrap{padding:8px 0;border-bottom:1px solid #1e2433;background:#0f131c;overflow:hidden}
.ticker{display:inline-flex;gap:22px;white-space:nowrap;
  animation:tickerScroll 90s linear infinite;padding-left:20px}
.ticker:hover{animation-play-state:paused}
.tk{font-size:11px;color:#7d8590}
.tk .sym{color:#e6edf3}
.tk .up{color:#3fb950}
.tk .down{color:#f85149}
@keyframes tickerScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ========== Stats row ========== */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;
  padding:14px 20px;border-bottom:1px solid #1e2433}
.stat{background:#131823;border:1px solid #1e2433;border-radius:8px;padding:10px 12px}
.stat .label{font-size:11px;color:#7d8590;margin-bottom:4px}
.stat .value{font-size:18px;font-weight:500}
.stat .value.teal{color:#00d4aa}
.stat .value.green{color:#3fb950}

/* ========== Two-col feeds ========== */
.feeds{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:10px;
  padding:14px 20px;border-bottom:1px solid #1e2433}
.panel{background:#131823;border:1px solid #1e2433;border-radius:8px;
  display:flex;flex-direction:column;min-width:0;max-height:480px;overflow:hidden}
.panel-head{display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border-bottom:1px solid #1e2433}
.panel-head .ttl{font-size:13px;font-weight:500}
.panel-head .live{font-size:11px;color:#00d4aa;display:flex;align-items:center;gap:5px}
.panel-head .live-dot{width:6px;height:6px;border-radius:50%;background:#00d4aa;
  animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.panel-body{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#30363d transparent}
.panel-body::-webkit-scrollbar{width:4px}
.panel-body::-webkit-scrollbar-thumb{background:#30363d;border-radius:2px}

/* Smart money row */
.sm-row{display:grid;grid-template-columns:62px minmax(0,1fr) 48px 80px 42px;
  font-size:11px;padding:9px 12px;border-bottom:1px solid #1e2433;
  align-items:center;gap:6px}
.sm-row:last-child{border-bottom:none}
.sm-row .src{font-weight:500}
.sm-row .src.binance{color:#f0b429}
.sm-row .src.hl{color:#bd93f9}
.sm-row .src.bicoin{color:#58a6ff}
.sm-row .addr{color:#e6edf3;font-family:ui-monospace,SFMono-Regular,"SF Mono",monospace;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sm-row .act{font-weight:500}
.sm-row .act.long{color:#3fb950}
.sm-row .act.short{color:#f85149}
.sm-row .pair{color:#e6edf3}
.sm-row .ts{color:#7d8590;text-align:right}
.fresh{animation:fresh 3s ease-out}
@keyframes fresh{from{background:rgba(0,212,170,.18)}to{background:transparent}}

/* News row */
.news-row{padding:10px 12px;border-bottom:1px solid #1e2433;transition:background .15s}
.news-row:last-child{border-bottom:none}
.news-row:hover{background:#0f131c;cursor:pointer}
.news-row .meta{display:flex;justify-content:space-between;font-size:11px;color:#7d8590;margin-bottom:4px}
.news-row .src{font-weight:500}
.news-row .src.binance{color:#f0b429}
.news-row .src.coindesk{color:#58a6ff}
.news-row .src.hl{color:#bd93f9}
.news-row .src.block{color:#f85149}
.news-row .src.mx{color:#3fb950}
.news-row .body{font-size:12px;color:#e6edf3;line-height:1.5}

/* ========== Contract market ========== */
.market{padding:14px 20px;border-bottom:1px solid #1e2433}
.market-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.market-head .ttl{font-size:13px;font-weight:500}
.market-head .hint{font-size:11px;color:#7d8590}
.market-table{background:#131823;border:1px solid #1e2433;border-radius:8px;overflow:hidden}
.mt-head,.mt-row{display:grid;
  grid-template-columns:62px minmax(0,1.2fr) 78px 78px 80px 80px;
  font-size:11px;padding:9px 12px;border-bottom:1px solid #1e2433;align-items:center}
.mt-row:last-child{border-bottom:none}
.mt-head{color:#7d8590;background:#0f131c;user-select:none}
.mt-head .col{display:inline-flex;align-items:center;gap:4px;cursor:pointer;transition:color .15s}
.mt-head .col:hover{color:#e6edf3}
.mt-head .col.active{color:#00d4aa}
.mt-head .col .arrow{font-size:8px;opacity:.6}
.mt-head .col.active .arrow{opacity:1}
.mt-row .sym{color:#e6edf3;font-weight:500}
.mt-row .price{color:#e6edf3;font-variant-numeric:tabular-nums}
.mt-row .val{color:#e6edf3;font-variant-numeric:tabular-nums}
.mt-row .chg{font-variant-numeric:tabular-nums}
.mt-row .chg.up{color:#3fb950}
.mt-row .chg.down{color:#f85149}

/* ========== CTA banner ========== */
.cta{padding:24px 20px;border-bottom:1px solid #1e2433}
.cta-card{background:#131823;border:1px solid #00d4aa;border-radius:10px;
  padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.cta-card .txt{min-width:0}
.cta-card .h{font-size:14px;font-weight:500;margin-bottom:4px}
.cta-card .d{font-size:11px;color:#7d8590;line-height:1.55}
.cta-card .btn{background:#00d4aa;color:#04342c;padding:10px 18px;border-radius:6px;
  font-size:12px;font-weight:500;white-space:nowrap;transition:all .15s}
.cta-card .btn:hover{background:#00e8ba;transform:translateY(-1px)}

/* ========== Footer ========== */
.footer{padding:14px 20px;display:flex;justify-content:space-between;
  align-items:center;font-size:11px;color:#484f58}
.footer .links{display:flex;gap:12px}
.footer .links a{transition:color .15s}
.footer .links a:hover{color:#7d8590}

/* ========== Placeholder page ========== */
.page{min-height:60vh;display:flex;align-items:center;justify-content:center;
  padding:2rem;text-align:center}
.page h2{font-size:2rem;font-weight:600;margin-bottom:1rem;color:#e6edf3;letter-spacing:-.02em}
.page .sub{color:#8b949e;margin-bottom:1.5rem;font-size:14px;max-width:480px;
  margin-left:auto;margin-right:auto;line-height:1.7}
.badge{display:inline-block;padding:.35rem .9rem;border:1px solid #30363d;
  border-radius:999px;font-size:11px;color:#8b949e;letter-spacing:.08em;text-transform:uppercase}

/* ========== Responsive ========== */
@media (max-width:900px){
  .feeds{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .nav-links{gap:12px}
  .nav-links a{font-size:11px}
}
@media (max-width:640px){
  .mt-head,.mt-row{grid-template-columns:52px 1fr 64px 64px}
  .mt-head .col.oi,.mt-head .col.vol,.mt-row .oi,.mt-row .vol{display:none}
  .stats{grid-template-columns:1fr 1fr}
  .cta-card{flex-direction:column;align-items:stretch;text-align:left}
}

/* ========== Chart page ========== */
.chart-wrap{padding:14px 20px}
.chart-head{display:flex;justify-content:space-between;align-items:center;
  margin-bottom:10px;flex-wrap:wrap;gap:10px}
.chart-head .ttl{font-size:14px;font-weight:500}
.chart-head .hint{font-size:11px;color:#7d8590}
.sym-tabs{display:flex;gap:6px;flex-wrap:wrap}
.sym-tab{padding:5px 10px;font-size:11px;color:#7d8590;
  background:#131823;border:1px solid #1e2433;border-radius:5px;
  cursor:pointer;transition:all .15s}
.sym-tab:hover{color:#e6edf3;border-color:#30363d}
.sym-tab.active{color:#00d4aa;border-color:#00d4aa;background:rgba(0,212,170,.08)}
.tv-container{background:#131823;border:1px solid #1e2433;border-radius:8px;
  overflow:hidden;height:calc(100vh - 240px);min-height:480px}
#tv_chart{width:100%;height:100%}

/* clickable market rows */
.mt-row{cursor:pointer;transition:background .15s}
.mt-row:hover{background:#0f131c}

/* ========== Exchange badges(币种后的小 logo)========== */
.ex-badges{display:inline-flex;gap:2px;margin-left:6px;vertical-align:middle}
.ex{display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;border-radius:3px;
  font-size:8.5px;font-weight:700;letter-spacing:-.5px;line-height:1;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",monospace}
.ex-binance{background:#f0b90b;color:#000}
.ex-bybit  {background:#f7a600;color:#fff}
.ex-okx    {background:#000;color:#fff;border:1px solid #30363d;width:13px}
.ex-bitget {background:#54ccaf;color:#0a0d14}
.ex-gate   {background:#7c3aed;color:#fff}
.ex-hl     {background:#097b68;color:#b8ffe7}

/* ========== 合约表列数从 6 → 5(去掉 OI)========== */
.mt-head,.mt-row{
  grid-template-columns:minmax(140px,1.8fr) 92px 70px 70px 88px !important;
}
/* 之前 OI 列相关样式不再起作用 */
.mt-head .col.oi,.mt-head .col.vol{display:inline-flex}
.mt-row .oi{display:none}
.mt-row .val.vol{display:block}

/* 合约表:最多 600px 高,内滚动 */
.market-table{max-height:600px;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:#30363d transparent}
.market-table::-webkit-scrollbar{width:4px}
.market-table::-webkit-scrollbar-thumb{background:#30363d;border-radius:2px}
.mt-head{position:sticky;top:0;z-index:1}

/* 行 hover 提示 clickable */
.mt-row{cursor:pointer}

/* 数据加载状态 */
.loading{text-align:center;padding:2rem;color:#6e7681;font-size:12px}
.err{text-align:center;padding:2rem;color:#f85149;font-size:12px}

@media (max-width:640px){
  .mt-head,.mt-row{grid-template-columns:minmax(100px,1.4fr) 76px 60px 60px !important}
  .mt-head .col.vol,.mt-row .val.vol{display:none}
}

/* ============================================
   2026-04-25 覆盖:字体整体上调,logo 用 img
   ============================================ */
html, body { font-size: 14px }         /* 13 → 14 基础 */

.brand .name { font-size: 16px }        /* 15 → 16 */
.nav-links a { font-size: 13px }        /* 12 → 13 */
.nav-cta { font-size: 13px; padding: 8px 16px }  /* 12 → 13 */

.tk { font-size: 12px }                 /* 11 → 12 */
.ticker-wrap { padding: 10px 0 }

.stat { padding: 12px 14px }
.stat .label { font-size: 12px }        /* 11 → 12 */
.stat .value { font-size: 20px }        /* 18 → 20 */

.panel-head { padding: 12px 14px }
.panel-head .ttl { font-size: 14px }    /* 13 → 14 */
.panel-head .live { font-size: 12px }   /* 11 → 12 */

.sm-row { font-size: 12px; padding: 10px 14px }      /* 11 → 12 */
.sm-row .ts { font-size: 11.5px }

.news-row { padding: 12px 14px }
.news-row .body { font-size: 13px }     /* 12 → 13 */
.news-row .meta { font-size: 12px }     /* 11 → 12 */

.market-head .ttl { font-size: 14px }   /* 13 → 14 */
.market-head .hint { font-size: 12px }  /* 11 → 12 */

.mt-head, .mt-row { font-size: 12px; padding: 11px 14px }  /* 11 → 12 */
.mt-row .sym { font-weight: 500 }

.cta-card { padding: 20px 22px }
.cta-card .h { font-size: 15px }        /* 14 → 15 */
.cta-card .d { font-size: 12px }        /* 11 → 12 */
.cta-card .btn { padding: 11px 20px; font-size: 13px }

.footer { font-size: 12px; padding: 16px 20px }
.footer .links { gap: 14px }

.page h2 { font-size: 2.2rem }
.page .sub { font-size: 15px }
.badge { font-size: 12px; padding: .4rem 1rem }

/* ===== logo badge 改为真实图标(img 标签)===== */
.ex-badges {
  display: inline-flex;
  gap: 3px;
  margin-left: 7px;
  vertical-align: middle;
  align-items: center;
}
.ex {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  object-fit: contain;
  background: transparent;   /* 清掉之前的色块底 */
  border: none;
  color: transparent;         /* 清掉之前 fallback 字母 */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);  /* 淡描边让小图不贴死 */
}

/* 表格里的"币种"列 cell 放大字号 */
.mt-row .sym { font-size: 13px }

/* ============================================
   2026-04-25 第二轮上调:字体再大 + logo 再大
   ============================================ */
html, body { font-size: 15px }           /* 14 → 15 */

.brand .name { font-size: 17px }         /* 16 → 17 */
.nav-links a { font-size: 14px }         /* 13 → 14 */
.nav-cta { font-size: 14px; padding: 9px 18px }

.tk { font-size: 13px }                  /* 12 → 13 */
.ticker-wrap { padding: 12px 0 }

.stat { padding: 14px 16px }
.stat .label { font-size: 13px }         /* 12 → 13 */
.stat .value { font-size: 22px }         /* 20 → 22 */

.panel-head { padding: 13px 16px }
.panel-head .ttl { font-size: 15px }     /* 14 → 15 */
.panel-head .live { font-size: 13px }    /* 12 → 13 */

.sm-row { font-size: 13px; padding: 11px 16px }   /* 12 → 13 */
.sm-row .ts { font-size: 12.5px }

.news-row { padding: 13px 16px }
.news-row .body { font-size: 14px }      /* 13 → 14 */
.news-row .meta { font-size: 13px }      /* 12 → 13 */

.market-head .ttl { font-size: 15px }    /* 14 → 15 */
.market-head .hint { font-size: 13px }   /* 12 → 13 */

.mt-head, .mt-row { font-size: 13px; padding: 12px 16px }  /* 12 → 13 */
.mt-row .sym { font-size: 14px }         /* 13 → 14 */

.cta-card { padding: 22px 24px }
.cta-card .h { font-size: 16px }         /* 15 → 16 */
.cta-card .d { font-size: 13px }         /* 12 → 13 */
.cta-card .btn { padding: 12px 22px; font-size: 14px }

.footer { font-size: 13px; padding: 18px 22px }

.page h2 { font-size: 2.4rem }
.page .sub { font-size: 16px }
.badge { font-size: 13px; padding: .45rem 1.1rem }

/* ===== Logo 再放大 ===== */
.ex-badges { gap: 4px; margin-left: 8px }
.ex {
  width: 16px;              /* 12 → 16 */
  height: 16px;
  border-radius: 4px;
}

/* ============================================
   2026-04-25 第三轮:字 18 基础 + logo 再大
   ============================================ */
html, body { font-size: 18px }

.brand .name { font-size: 20px }
.nav-links a { font-size: 17px }
.nav-cta { font-size: 16px; padding: 10px 20px }

.tk { font-size: 16px }

.stat { padding: 16px 18px }
.stat .label { font-size: 16px }
.stat .value { font-size: 26px }

.panel-head { padding: 14px 18px }
.panel-head .ttl { font-size: 18px }
.panel-head .live { font-size: 16px }

.sm-row { font-size: 15px; padding: 12px 18px }
.sm-row .ts { font-size: 14px }

.news-row { padding: 14px 18px }
.news-row .body { font-size: 17px }
.news-row .meta { font-size: 15px }

.market-head .ttl { font-size: 18px }
.market-head .hint { font-size: 15px }

.mt-head, .mt-row { font-size: 15px; padding: 13px 18px }
.mt-row .sym { font-size: 16px }
.mt-head .col { font-size: 14px }

.cta-card { padding: 24px 26px }
.cta-card .h { font-size: 19px }
.cta-card .d { font-size: 15px }
.cta-card .btn { padding: 13px 24px; font-size: 16px }

.footer { font-size: 15px; padding: 20px 24px }

.page h2 { font-size: 2.6rem }
.page .sub { font-size: 18px }
.badge { font-size: 15px; padding: .5rem 1.2rem }

/* Logo 再大一档 */
.ex-badges { gap: 5px; margin-left: 9px }
.ex {
  width: 20px;        /* 16 → 20 */
  height: 20px;
  border-radius: 4px;
}

/* 合约表列宽跟着字号放大 */
.mt-head, .mt-row {
  grid-template-columns: minmax(180px,2fr) 110px 84px 84px 104px !important;
}
@media (max-width:640px){
  .mt-head, .mt-row{
    grid-template-columns: minmax(130px,1.5fr) 92px 72px 72px !important;
  }
}

/* ============================================
   2026-04-25 合约表 6 列:末尾"交易所"列收 logo
   ============================================ */
.mt-head, .mt-row {
  grid-template-columns: minmax(120px,1.2fr) 110px 82px 82px 108px minmax(140px,1.2fr) !important;
}

/* 币种列只显示文字,字号大一点 */
.mt-row .sym {
  font-weight: 600;
}

/* 交易所列:badges 居左排列,移除 inline margin */
.mt-row .exchanges {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.mt-row .exchanges .ex-badges {
  margin-left: 0;
  gap: 4px;
  flex-wrap: wrap;
}

/* "交易所" 列头不可点击 */
.mt-head .col.no-sort {
  cursor: default;
}
.mt-head .col.no-sort:hover {
  color: #7d8590;   /* 同原色,不高亮 */
}

/* 小屏:交易所列往第二行(grid-row 2 span 全)? 简单点:移动端隐藏 */
@media (max-width:640px){
  .mt-head, .mt-row {
    grid-template-columns: minmax(100px,1.3fr) 92px 72px 72px !important;
  }
  .mt-head .col:nth-child(5),
  .mt-head .col:nth-child(6),
  .mt-row .val.vol,
  .mt-row .exchanges {
    display: none;
  }
}

/* ============================================
   2026-04-25 合约表 12 列(Coinglass 风格)
   ============================================ */
.market-table {
  overflow-x: auto;
  max-height: 720px;
  overflow-y: auto;
}
.market-table::-webkit-scrollbar{width:6px;height:8px}
.market-table::-webkit-scrollbar-thumb{background:#30363d;border-radius:3px}

.mt-head, .mt-row {
  grid-template-columns:
    128px 120px 84px 84px 100px 120px 108px 120px 112px 100px 100px 160px !important;
  min-width: 1340px;
  box-sizing: border-box;
}

/* 冻结"币种"列 */
.mt-row .sym,
.mt-head .col:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.mt-head .col:first-child {
  background: #0f131c;
  z-index: 3;
}
.mt-row .sym {
  background: #131823;
}
.mt-row:hover .sym {
  background: #0f131c;   /* 跟行 hover */
}

/* muted 行 */
.mt-row .muted,
.mt-row .val.muted,
.mt-row .chg.muted,
.mt-row .price.muted {
  color: #484f58;
}

/* 12 列下统一 cell 字体压一点(太挤) */
.mt-row { font-size: 14px }
.mt-row .sym { font-size: 15px }

/* 移动端:恢复简化视图(币种 / 价格 / 24h / OI / 交易所) */
@media (max-width:900px){
  .mt-head, .mt-row {
    grid-template-columns:
      100px 96px 72px 72px 72px 92px 92px 98px 92px 84px 84px 140px !important;
    min-width: 1100px;
  }
  .mt-row { font-size: 13px }
}
