﻿/* screen_exchange — 大屏交易所墙 */
html, body { height: 100%; }
body.screen-exchange {
  background: #06080d; color: #e7e9ee;
  font-family: "DIN Alternate", "DIN", -apple-system, monospace;
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
}

.sx-head {
  min-height: 64px;
  padding: 10px 24px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #1c2230; background: linear-gradient(180deg, #0d1320, #06080d);
}
.sx-brand { font-size: clamp(20px, 2.1vw, 34px); color: var(--brand); letter-spacing: 4px; font-weight: 700; }
.sx-clock { font-size: clamp(18px, 1.8vw, 28px); color: #c9d4e6; font-variant-numeric: tabular-nums; letter-spacing: 2px; }

.sx-board {
  flex: 1;
  overflow: hidden;
  background: #1c2230;
  padding: 1px;
  display: grid;
  gap: 1px;
}
.sx-cols-1 { grid-template-columns: 1fr; }
.sx-cols-2 { grid-template-columns: 1fr 1fr; }
.sx-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.sx-panel {
  min-width: 0;
  min-height: 0;
  background: #06080d;
}
.sx-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #06080d;
}
.sx-col-name { width: 22%; }
.sx-col-buy,
.sx-col-sell { width: 25%; }
.sx-col-hl { width: 28%; }
.sx-cols-2 .sx-col-name,
.sx-cols-3 .sx-col-name { width: 23%; }
.sx-cols-2 .sx-col-buy,
.sx-cols-2 .sx-col-sell,
.sx-cols-3 .sx-col-buy,
.sx-cols-3 .sx-col-sell { width: 24%; }
.sx-cols-2 .sx-col-hl,
.sx-cols-3 .sx-col-hl { width: 29%; }
.sx-table th {
  height: 42px;
  background: #0d1320;
  color: var(--brand);
  border-bottom: 1px solid #1c2230;
  border-right: 1px solid #1c2230;
  font-size: clamp(14px, 1.25vw, 20px);
  letter-spacing: 3px;
  font-weight: 700;
}
.sx-table td {
  border-bottom: 1px solid #1c2230;
  border-right: 1px solid #1c2230;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.sx-table tbody tr:nth-child(even) td { background: #0a0f18; }
.sx-table tbody tr:nth-child(odd) td { background: #070b12; }
.sx-name {
  color: #d7deeb;
  font-size: clamp(14px, 1.35vw, 22px);
  letter-spacing: 1px;
  font-weight: 700;
}
.sx-px {
  font-size: clamp(18px, 2.15vw, 32px);
  font-weight: 800;
  line-height: 1;
}
.sx-px .price-last {
  display: inline-block;
  min-width: 1px;
}
.sx-hl {
  line-height: 1.08;
  font-size: clamp(14px, 1.55vw, 24px);
  font-weight: 700;
}
.sx-hl .price-high { color: #ff4d4f; }
.sx-hl .price-low { color: #2cc18c; margin-top: 4px; }
.sx-na { color: #465166; font-size: clamp(16px, 1.8vw, 28px); }

.sx-foot {
  min-height: 34px;
  border-top: 1px solid #1c2230; padding: 6px 16px; display: flex; gap: 24px; align-items: center;
  background: #0a0f18;
}
.sx-marquee { flex: 1; color: #99a4b8; font-size: 14px; overflow: hidden; white-space: nowrap; }
.sx-foot-info { display: flex; align-items: center; gap: 16px; color: #6b7890; font-size: 12px; white-space: nowrap; }
.sx-tech { color: #515b6e; font-size: 12px; }

/* 大屏用 红涨绿跌 */
body.screen-exchange .is-up    { color: #ff4d4f; }
body.screen-exchange .is-down  { color: #2cc18c; }
body.screen-exchange .is-flat  { color: #6c768a; }

@media (min-width: 1600px) {
  .sx-head { min-height: 76px; padding-left: 34px; padding-right: 34px; }
  .sx-table th { height: 52px; }
  .sx-name { font-size: clamp(18px, 1.25vw, 28px); }
  .sx-px { font-size: clamp(24px, 1.85vw, 40px); }
  .sx-hl { font-size: clamp(18px, 1.35vw, 30px); }
}

@media (max-width: 900px) {
  .sx-head { min-height: 54px; padding: 8px 12px; }
  .sx-brand { letter-spacing: 2px; }
  .screen-actions { gap: 6px; }
  .screen-fullscreen { padding: 4px 9px; font-size: 12px; }
  .sx-table th { height: 40px; letter-spacing: 2px; font-size: 14px; }
  .sx-col-name { width: 24%; }
  .sx-col-buy,
  .sx-col-sell { width: 24%; }
  .sx-col-hl { width: 28%; }
  .sx-name { font-size: 14px; letter-spacing: 0; }
  .sx-px { font-size: 18px; }
  .sx-hl { font-size: 14px; }
  .sx-foot { display: none; }
}
