* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #000;
  --bg-main: #222;
  --row-odd: #222;
  --row-even: #000;
  --gold: #ffbf24;
  --white: #fff;
  --red: #ff3141;
  --green: #00b578;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg-dark);
  color: var(--white);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

body {
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-main);
}

.quote-page {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-main);
}

.quote-header {
  background: #232323;
  border-bottom: 2px solid #000;
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  min-height: 72px;
  padding: 10px clamp(12px, 3vw, 22px);
}

.shop-logo-wrap {
  display: flex;
  align-items: center;
}

.shop-logo {
  height: clamp(28px, 6vw, 42px);
  width: auto;
  display: block;
}

.shop-name-wrap {
  min-width: 0;
}

.shop-name {
  color: var(--white);
  font-size: clamp(24px, 5vw, 34px);
  font-family: "STZhongsong", "STSong", "SimSun", "Songti SC", serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 rgba(162, 108, 35, 0.85);
  white-space: nowrap;
}

.shop-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
  text-align: center;
}

.shop-time {
  color: var(--white);
  min-width: max-content;
  padding: 0;
  border: none;
  background: transparent;
  font-size: clamp(12px, 2.6vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.shop-status {
  color: var(--white);
  min-width: max-content;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: #232323;
  font-size: clamp(12px, 2.6vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-header-row th {
  height: clamp(45px, 7vw, 62px);
  padding: 0 6px;
  border: none;
  background: #000;
  color: var(--gold);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  text-align: center;
}

.col-name {
  width: 33%;
}

.col-buy,
.col-sell {
  width: 23%;
}

.col-range {
  width: 21%;
}

.table-row {
  height: clamp(56px, 9vw, 82px);
}

.table-row.odd {
  background: var(--row-odd);
}

.table-row.even {
  background: var(--row-even);
}

.table-row td {
  border: none;
  padding: 0 clamp(6px, 2vw, 14px);
  text-align: center;
  vertical-align: middle;
}

.ware-name {
  color: var(--gold);
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 700;
}

.ware-buy,
.ware-sell {
  color: var(--white);
  font-size: clamp(20px, 4.5vw, 34px);
  font-weight: 400;
  vertical-align: middle !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.price-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  min-height: clamp(48px, 8vw, 62px);
  padding: 0;
  color: inherit;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.price-chip.trend-up {
  background: #ff4b57;
  color: #fff;
}

.price-chip.trend-down {
  background: #19b67a;
  color: #fff;
}

.ware-range {
  font-size: clamp(13px, 2.7vw, 18px);
  line-height: 1.2;
}

.ware-range .high,
.ware-range .low {
  height: clamp(28px, 4.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ware-range .high {
  color: #ff1f1f;
  font-weight: 700;
}

.ware-range .low {
  color: #00a83a;
  font-weight: 700;
}

.footer-content {
  padding: 18px 10px 34px;
  background: #232323;
}

.footer-left {
  color: var(--white);
}

.footer-line {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.contact-block {
  margin-top: 10px;
  color: var(--white);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.contact-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-link {
  display: inline-block;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  margin-left: 2px;
}

.footer-flex-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.footer-copy {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 4px;
}

.footer-highlight {
  color: red;
  padding-top: 14px;
  font-weight: 700;
}

.qrcode-card {
  flex: 0 0 110px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2px;
}

.qrcode {
  width: 104px;
  display: block;
}

.qrcode-text {
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-row {
    min-height: 66px;
    padding: 8px 10px;
  }
}

@media (max-width: 380px) {
  .shop-name {
    font-size: 20px;
  }

  .shop-logo {
    height: 24px;
  }

  .shop-time,
  .shop-status {
    font-size: 11px;
  }

  .shop-status {
    padding: 2px 4px;
  }

  .ware-buy,
  .ware-sell {
    font-size: 18px;
  }

  .footer-line,
  .contact-title {
    font-size: 14px;
  }

  .contact-link {
    font-size: 17px;
  }

  .qrcode {
    width: 92px;
  }

  .qrcode-card {
    flex-basis: 96px;
  }

  .qrcode-text {
    font-size: 12px;
  }
}