/* ==========================================================================
   行情中心
   ========================================================================== */
.page-wrap { padding: 38px 0 70px; min-height: calc(100vh - var(--header-h) - 320px); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.15;
}
.page-head p { margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

.mkt-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi {
  min-width: 132px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0a0b;
}
.kpi .k { font-size: 11px; color: var(--text-3); }
.kpi .v { margin-top: 5px; font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.mkt-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0e10;
  color: var(--text-3);
  min-width: 210px;
}
.mkt-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.mkt-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 12.5px;
}
.mkt-search input::placeholder { color: var(--text-4); }
.mkt-search:focus-within { border-color: #3a3a42; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: #fff; }
.sortable .ar { font-size: 9px; margin-left: 3px; opacity: 0.9; }

.market-table tbody tr { cursor: pointer; }
.market-table .trade-btn { opacity: 0; }
.market-table tbody tr:hover .trade-btn { opacity: 1; }
.market-table tbody tr.starred .star { color: #fff; }
.market-table .empty-cell { padding: 0; }

@media (max-width: 900px) {
  .page-wrap { padding: 26px 0 50px; }
  .mkt-kpis { width: 100%; }
  .kpi { flex: 1; min-width: 0; }
  .kpi .v { font-size: 15px; }
  .mkt-search { margin-left: 0; width: 100%; min-width: 0; }
  .market-card .hide-sm { display: none; }
  .market-table th, .market-table td { padding-left: 12px; padding-right: 12px; }
}
