@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

body { 
  font-family: "Inter", system-ui, sans-serif; 
  background: #0a0b0f; 
  color: #e2e8f0; 
}

.title-font { 
  font-family: "Space Grotesk", sans-serif; 
}

/* ====================== 玻璃态基础 ====================== */
.glass { 
  background: rgba(15, 23, 42, 0.92); 
  border: 1px solid rgba(148, 163, 184, 0.2); 
  backdrop-filter: blur(20px); 
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

/* ====================== Tab 样式 ====================== */
.tab { 
  background: rgba(30, 41, 59, 0.6); 
  border: 2px solid #475569; 
  transition: all 0.3s ease; 
  padding: 12px 14px; 
  font-size: 13.5px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  line-height: 1.35; 
  min-height: 54px; 
  border-radius: 16px;
  white-space: normal;
}

.tab-active { 
  background: rgba(15, 23, 42, 0.95); 
  border-color: #3b82f6; 
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); 
}

.main-tab { 
  padding: 20px 16px !important; 
  font-size: 15px; 
  font-weight: 600; 
  min-height: 74px; 
}

.first-tab { 
  padding: 14px 8px !important; 
  font-size: 13.2px; 
  min-height: 58px; 
  font-weight: 500; 
}

/* ====================== 左侧首次信号卡片 ====================== */
.first-card { 
  padding: 14px 18px; 
  position: relative; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 6px solid;
}

.first-card.high { border-left-color: #10b981; }
.first-card.mid  { border-left-color: #3b82f6; }
.first-card.low  { border-left-color: #f59e0b; }

.first-card:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgb(59 130 246 / 0.2);
}

/* ====================== 主表格优化（解决挤压） ====================== */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 18px 12px !important;
  text-align: left;
  white-space: nowrap;
  font-size: 14.5px;
}

th.w-28 {
  width: 120px !important;
  min-width: 120px;
}

.signal-row:hover { 
  background: rgba(30, 41, 59, 0.85) !important; 
  transform: translateX(8px) scale(1.01);
}

.signal-row .bg-blue-500\/20 {
  padding: 6px 14px;
  font-size: 13.5px;
  border-radius: 9999px;
}

/* ====================== 跨区通知面板 ====================== */
#cross-panel .glass {
  border-left: 5px solid;
  transition: all 0.3s ease;
}

#cross-panel .glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(168 85 247 / 0.3);
}

/* ====================== 全屏自适应 ====================== */
.max-w-\[1920px\] {
  max-width: 100% !important;
}

.overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #1e2937;
}

.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  border-radius: 9999px;
}

/* ====================== 搜索栏增强 ====================== */
#search-input {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

#search-input:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* ====================== 搜索结果卡片 ====================== */
.volume-result-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.volume-result-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgb(59 130 246 / 0.3);
}

/* ====================== 跑马灯 ====================== */
.marquee { 
  overflow: hidden; 
  white-space: nowrap; 
  background: rgba(15,23,42,0.6); 
  border-radius: 9999px; 
  border: 1px solid rgba(148,163,184,0.15); 
}

.marquee-content { 
  display: inline-flex; 
  align-items: center; 
  gap: 3rem; 
  animation: marquee 22s linear infinite; 
}

@keyframes marquee { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* ====================== 响应式优化 ====================== */
@media (max-width: 1280px) {
  .first-card .price { font-size: 1.55rem; }
  .first-card .symbol { font-size: 1.05rem; }
  table th, table td {
    font-size: 13.8px;
    padding: 14px 8px;
  }
  th.w-28 {
    width: 100px !important;
    min-width: 100px;
  }
}

@media (max-width: 1024px) {
  .flex-col.xl\:flex-row > div {
    width: 100% !important;
  }
}

/* ====================== 其他增强 ====================== */
.font-mono {
  font-variant-numeric: tabular-nums;
}

.price-cell {
  transition: color 0.3s ease;
}