﻿/* quote_app — APP 经典（深色表格风，参考融通金官方风格） */

body.quote-app {
  background: #0e0e10;
  color: #e9e9ea;
  padding-bottom: 16px;
  min-height: 100vh;
}
body.quote-app.has-tabbar { padding-bottom: 64px; }

/* ---------- 顶部品牌栏 ---------- */
.qa-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #16161a 0%, #0e0e10 100%);
  border-bottom: 1px solid #1f1f24;
}
.qa-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qa-logo {
  width: 38px; height: 38px; border-radius: 8px; object-fit: cover;
  background: #fff;
}
.qa-brand-name {
  font-size: 15px; font-weight: 600; letter-spacing: .5px;
  color: var(--brand);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 50vw;
}
.qa-meta { display: flex; align-items: center; gap: 10px; }
.qa-qr-btn {
  width: 40px; height: 40px; padding: 0; border: 1px solid #2a2a30;
  border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer;
}
.qa-qr-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.qa-time {
  font-size: 11px; color: #d33; font-variant-numeric: tabular-nums;
  background: #1c1c1f; padding: 3px 8px; border-radius: 4px;
  border: 1px solid #2a2a30;
}

/* ---------- 主表格 ---------- */
.qa-main { padding: 6px 6px 0; }
.qa-empty { text-align: center; color: #888; padding: 60px 16px; }

.qa-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #0e0e10;
}
.qa-table col.col-name { width: 24%; }
.qa-table col.col-buy  { width: 24%; }
.qa-table col.col-sell { width: 24%; }
.qa-table col.col-hl   { width: 28%; }

.qa-table thead th {
  font-size: 14px; font-weight: 500; color: #c9a227;
  padding: 12px 8px;
  border-bottom: 1px solid #1f1f24;
  background: #131316;
  text-align: center;
}
.qa-table .qa-th-name { text-align: center; }

.qa-table tbody td {
  padding: 14px 6px;
  border-bottom: 1px solid #1a1a1d;
  text-align: center;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.qa-row:hover td { background: #15151a; }

.qa-name {
  font-size: 14px; color: #e9e9ea; font-weight: 500;
  text-align: center;
}

.qa-px { font-size: 17px; font-weight: 600; }
.qa-px .price-last { display: inline-block; min-width: 1px; }
.qa-px-na { color: #555; }

/* 高/低：上行红下行绿 */
.qa-hl { line-height: 1.35; }
.qa-hl .price-high { color: #e53935; font-size: 13px; font-weight: 500; }
.qa-hl .price-low  { color: #43a047; font-size: 13px; font-weight: 500; }

/* 闪烁动画（深色背景下用淡金色高亮） */
.quote-app .price-blink {
  animation: blink-dark .35s ease-out;
}
@keyframes blink-dark {
  0%   { background: rgba(255, 215, 107, .22); }
  100% { background: transparent; }
}

/* 涨跌色（深色下调整一下饱和度） */
.quote-app .is-up   { color: #ff4d4f !important; }
.quote-app .is-down { color: #4cd97b !important; }
.quote-app .is-flat { color: #c8c8c8 !important; }

/* ---------- 风险提示（覆盖 common.css 的浅色风格） ---------- */
.quote-app .risk-text {
  margin-top: 14px;
  background: #131316;
  border-top: 1px solid #1f1f24;
  border-bottom: none;
  color: #888;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 16px;
}
.quote-app .risk-text h3 { color: #c9a227; font-size: 13px; margin: 0 0 6px; }

/* ---------- 页脚 ---------- */
.qa-foot {
  padding: 14px 16px 28px;
  text-align: center;
  color: #888; font-size: 12px; line-height: 1.9;
  background: #0e0e10;
}
.qa-company { font-size: 13px; color: #bbb; font-weight: 500; margin-bottom: 4px; }
.qa-tech { margin-top: 6px; color: #555; }

/* ---------- 微信二维码弹层（覆盖 common 默认） ---------- */
.qr-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.qr-modal[hidden] { display: none !important; }
.qr-modal-content {
  background: #1c1c1f; padding: 20px; border-radius: 14px;
  text-align: center; border: 1px solid #2a2a30;
}
.qr-modal-content img { width: 240px; height: 240px; object-fit: cover; border-radius: 8px; }
.qr-modal-tip { margin-top: 10px; font-size: 12px; color: #aaa; }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .qa-head { padding: 8px 10px; }
  .qa-logo { width: 32px; height: 32px; }
  .qa-brand-name { font-size: 14px; }
  .qa-qr-btn { width: 34px; height: 34px; }
  .qa-time { font-size: 10px; padding: 2px 6px; }

  .qa-table col.col-name { width: 22%; }
  .qa-table col.col-buy  { width: 22%; }
  .qa-table col.col-sell { width: 22%; }
  .qa-table col.col-hl   { width: 34%; }

  .qa-table thead th { font-size: 12px; padding: 10px 4px; }
  .qa-table tbody td { padding: 11px 3px; }
  .qa-name { font-size: 13px; }
  .qa-px   { font-size: 14px; }
  .qa-hl .price-high, .qa-hl .price-low { font-size: 11px; }
}

@media (min-width: 720px) {
  .qa-main { padding: 10px 16px 0; max-width: 980px; margin: 0 auto; }
  .qa-table thead th { font-size: 15px; padding: 14px 10px; }
  .qa-table tbody td { padding: 16px 10px; }
  .qa-name { font-size: 15px; }
  .qa-px   { font-size: 19px; }
}
