:root {
  --gold: #d4a84b;
  --gold-dark: #b8862b;
  --bg: #f5f5f5;
  --row-line: #eee;
  --text: #333;
  --text-sub: #666;
  --rise: #e4393c;
  --fall: #00a854;
  --price: #222;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.page-header {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.brand-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 2px 6px;
}
.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.2;
}
.contact-info {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-line;
  word-break: break-all;
}
.contact-info:empty {
  display: none;
}
@media (min-width: 721px) {
  .brand-name {
    font-size: 24px;
  }
  .contact-info {
    font-size: 13px;
  }
}

/* 右下角加好友二维码 */
.qrcode-box {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 40vw;
}
.qrcode-img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.qrcode-title {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}
@media (min-width: 721px) {
  .qrcode-img {
    width: 140px;
    height: 140px;
  }
}
.quote-divider {
  height: 1px;
  background: var(--row-line);
}
.quote-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-sub);
  background: #fafafa;
  border-bottom: 1px solid var(--row-line);
}
.quote-status .sep {
  color: #ccc;
}
.status-open {
  color: var(--rise);
  font-weight: 600;
}
.status-closed {
  color: var(--text-sub);
  font-weight: 600;
}
.status-disconnected {
  color: var(--rise);
  font-weight: 600;
}

.quote-page-content {
  flex: 1;
  padding: 0 12px 16px;
}
.price-table-header {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid var(--gold);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.quote-price-table {
  width: 100%;
}
.price-table-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--row-line);
  font-size: 16px;
}
.price-table-row.flash {
  animation: flash 0.6s ease;
}
@keyframes flash {
  0% {
    background: rgba(212, 168, 75, 0.18);
  }
  100% {
    background: transparent;
  }
}
.col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.col-8 {
  width: 33.333%;
}
.col-6 {
  width: 22%;
}
.col-highlow {
  width: 22%;
  flex-direction: row;
  gap: 6px;
  align-items: baseline;
}
.symbol-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.symbole-price {
  font-weight: 600;
  color: var(--price);
}
.symbol-price-rise {
  color: var(--rise);
}
.symbol-price-fall {
  color: var(--fall);
}
.highlow-high {
  color: var(--rise);
  font-weight: 600;
}
.highlow-low {
  color: var(--fall);
  font-weight: 600;
}
.placeholder {
  color: #bbb;
}
.page-memo {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
}
.page-memo li {
  margin-bottom: 6px;
}
.red {
  color: var(--rise);
}
@media (min-width: 721px) {
  .page-header {
    font-size: 24px;
    padding: 18px;
  }
  .price-table-row,
  .price-table-header {
    font-size: 17px;
  }
}
