/* 谦信邮币网 · 行情查询 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2825;
  --ink-dim: #726e68;
  --ink-faint: #a8a49e;
  --accent: #b8946e;
  --accent-dim: #8b6f52;
  --accent-pale: #f6f0e7;
  --accent-deep: #6d5438;
  --border: #e8e3da;
  --divider: #d4cec5;
  --hero-band: #f0e8dc;
  --font-display: 'DM Serif Display', 'Noto Sans SC', serif;
  --font-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-w: 920px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.05);
  --shadow-search: 0 12px 40px rgba(109, 84, 56, 0.14), 0 2px 8px rgba(0,0,0,0.04);
  --safe-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + var(--safe-bottom));
}

a { color: var(--accent-dim); text-decoration: none; }
a:hover { color: var(--ink); }

/* ── Header ── */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-top-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.top-nav { display: flex; gap: 1rem; font-size: 0.85rem; }
.top-nav a { color: var(--ink-dim); }
.top-phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dim);
  white-space: nowrap;
}

/* ── Search hero ── */
.search-hero[hidden] { display: none !important; }
.search-hero {
  background: linear-gradient(180deg, var(--hero-band) 0%, var(--bg) 88%);
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1rem, 4vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}
.search-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.search-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.search-hero-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 0.15rem;
}
.page-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.search-card {
  background: var(--surface);
  border: 1px solid rgba(139, 111, 82, 0.22);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  box-shadow: var(--shadow-search);
}
.search-card-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

/* ── Search box ── */
.search-box { position: relative; }
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--accent-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 2.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box--hero .search-input {
  font-size: clamp(1.05rem, 2.8vw, 1.18rem);
  padding: 1rem 3rem 1rem 3rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.search-box--hero .search-icon {
  left: 18px;
  width: 24px;
  height: 24px;
}
.search-input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(184, 148, 110, 0.22);
}
.search-input::placeholder { color: var(--ink-faint); }
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--accent-pale);
  color: var(--accent-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: none;
}
.search-clear.visible { display: block; }

/* Quick tags */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.quick-tags-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-right: 0.15rem;
}
.quick-tag {
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-dim);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.quick-tag:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
a.quick-tag-link {
  display: inline-block;
  text-decoration: none;
}

/* Toolbar: cats + filters */
.search-toolbar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.search-meta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ── Tool tabs ── */
.tool-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex-shrink: 0;
}
.tool-tab {
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tool-tab.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Category tabs ── */
.cat-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs--inline { margin-bottom: 0; }
.cat-tab {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--ink); }
.cat-tab.active {
  background: var(--accent-pale);
  border-color: var(--accent);
  color: var(--accent-dim);
  font-weight: 600;
}

.filter-field--compact select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--ink-dim);
}
.filter-field--check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
  cursor: pointer;
}
.filter-field--check input { accent-color: var(--accent-dim); }

/* ── Main content ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 4vw, 1.5rem) 2rem;
}
.tool-panel[hidden] { display: none !important; }

.results-section { display: block; }
.results-section[hidden] { display: none !important; }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.results-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
#resultsCount {
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* ── Hot strip ── */
.hot-section { margin-bottom: 1.75rem; }
.hot-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
.hot-head h2 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.hot-sub {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.hot-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-card {
  flex: 0 0 auto;
  min-width: 148px;
  max-width: 190px;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.hot-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hot-card-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.hot-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dim);
}
.hot-card-spec {
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-empty { font-size: 0.85rem; color: var(--ink-dim); padding: 0.5rem 0; }

/* ── Results list ── */
.results-list { display: flex; flex-direction: column; gap: 0.55rem; }
.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.result-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(109, 84, 56, 0.08);
}
.result-name {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.result-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.result-meta span::before { content: '·'; margin-right: 0.35rem; color: var(--divider); }
.result-meta span:first-child::before { content: none; margin: 0; }
.result-price { text-align: right; white-space: nowrap; }
.result-price-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dim);
}
.result-price-note {
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
.result-row--noprice .result-price-val { color: var(--ink-faint); font-weight: 500; }
.result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.result-est-btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-dim);
  cursor: pointer;
  white-space: nowrap;
}
.result-est-btn:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.empty-state strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }

.load-more-wrap { text-align: center; margin-top: 1.25rem; }
.btn-load-more {
  padding: 0.65rem 1.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-dim);
  cursor: pointer;
}
.btn-load-more:hover { border-color: var(--accent); color: var(--ink); }

.disclaimer {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ── Estimate ── */
.estimate-panel { margin-bottom: 0; }
.estimate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.estimate-lede { font-size: 0.88rem; color: var(--ink-dim); margin-bottom: 1rem; }
.estimate-step { margin-bottom: 1rem; }
.estimate-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.estimate-input { box-shadow: none; border-width: 1px; }
.estimate-qty { max-width: 8rem; }
.est-pick-list {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.est-pick {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.est-pick:last-child { border-bottom: none; }
.est-pick span { color: var(--accent-dim); font-weight: 600; white-space: nowrap; }
.est-pick--noprice span { color: var(--ink-faint); font-weight: 500; }
.est-pick:hover { background: var(--accent-pale); }
.est-pick-empty {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
}
.est-selected { font-size: 0.85rem; color: var(--accent-dim); margin-top: 0.35rem; }

.grade-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.grade-chip {
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-dim);
}
.grade-chip.active {
  background: var(--accent-pale);
  border-color: var(--accent);
  color: var(--accent-dim);
  font-weight: 500;
}

.estimate-result {
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.estimate-result-label { font-size: 0.78rem; color: var(--ink-dim); }
.estimate-result-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dim);
  margin: 0.25rem 0;
}
.estimate-result-price--muted {
  font-size: 1.05rem;
  color: var(--ink-dim);
  font-weight: 600;
}
.estimate-result-note { font-size: 0.75rem; color: var(--ink-faint); }
.estimate-result-guide {
  font-size: 0.8rem;
  margin-top: 0.45rem;
}
.estimate-result-guide a {
  color: var(--accent-dim);
  font-weight: 600;
}
.estimate-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.estimate-actions .btn-cta { flex: 1; min-width: 140px; }
.estimate-copy-link { flex: 1 1 100%; font-size: 0.82rem; }

/* ── CTA / Footer ── */
.bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.65rem clamp(1rem, 4vw, 1.5rem) calc(0.65rem + var(--safe-bottom));
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.bottom-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 0.65rem;
}
.btn-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-cta-primary { background: var(--ink); color: #fff; }
.btn-cta-primary:hover { opacity: 0.9; color: #fff; }
.btn-cta-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-cta-ghost:hover { border-color: var(--accent); color: var(--ink); }
.bottom-cta .btn-cta-primary { border: none; }

.site-footer {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1rem clamp(1rem, 4vw, 1.5rem) 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ── Modals ── */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 24, 0.45);
  z-index: 300;
}
.detail-sheet, .wx-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
  z-index: 301;
  box-shadow: var(--shadow-card);
}
@media (min-width: 520px) {
  .detail-sheet, .wx-sheet {
    bottom: 50%;
    transform: translate(-50%, 50%);
    border-radius: var(--radius);
    max-height: 85vh;
  }
}
.sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--accent-pale);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-dim);
}
.detail-name { font-size: 1.1rem; font-weight: 600; padding-right: 2rem; margin-bottom: 0.35rem; }
.detail-meta { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.65rem; }
.detail-price { font-size: 1.05rem; font-weight: 600; color: var(--accent-dim); margin-bottom: 1rem; }
.chart-wrap { margin-bottom: 1rem; }
.chart-note { font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.35rem; }
.detail-actions { display: flex; gap: 0.65rem; }

.wx-title { font-size: 1.1rem; margin-bottom: 0.35rem; padding-right: 2rem; }
.wx-lede { font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 1rem; }
.wx-qr {
  text-align: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.wx-qr img { max-width: 200px; width: 100%; height: auto; }
.wx-copy { font-size: 0.78rem; color: var(--ink-dim); margin-bottom: 0.75rem; line-height: 1.5; }
.wx-phone { display: block; text-align: center; text-decoration: none; }

@media (max-width: 640px) {
  .search-hero-top { flex-direction: column; align-items: stretch; }
  .tool-tabs { align-self: flex-start; }
  .top-nav { display: none; }
  .result-price-val { font-size: 0.9rem; }
}

@media (min-width: 641px) {
  .search-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cat-tabs--inline { flex: 1; min-width: 0; }
}

/* ── 品类报价表 quote.html ── */
.quote-hero {
  background: linear-gradient(180deg, var(--hero-band) 0%, var(--bg) 100%);
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.quote-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.quote-breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.quote-breadcrumb a { color: var(--ink-dim); }
.quote-hero-text {
  position: relative;
}
.quote-hero-text::after {
  content: '';
  display: table;
  clear: both;
}
.quote-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.15rem 0 0.35rem;
}
.quote-subtitle { font-size: 0.86rem; color: var(--ink-dim); margin-bottom: 0.25rem; }
.quote-meta { font-size: 0.76rem; color: var(--ink-faint); margin: 0; }
.quote-hero-img {
  margin-bottom: 0.65rem;
}
.quote-hero-img img {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  max-height: 112px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
@media (min-width: 560px) {
  .quote-hero-img {
    float: right;
    width: clamp(128px, 18vw, 168px);
    margin: 0.05rem 0 0.45rem 1rem;
  }
  .quote-hero-img img {
    max-width: none;
    max-height: 112px;
  }
}
.quote-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(139, 111, 82, 0.14);
}
.quote-cat-link {
  font-size: 0.78rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-dim);
  text-decoration: none;
}
.quote-cat-link:hover,
.quote-cat-link--active {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-pale);
}
.quote-wrap { padding-top: 1.25rem; }
.quote-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.quote-search-label {
  font-size: 0.78rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.quote-filter { flex: 1; min-width: 160px; max-width: 360px; }
.quote-market-link {
  margin-left: auto;
  font-size: 0.82rem;
  white-space: nowrap;
}
.quote-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: auto;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.quote-table th,
.quote-table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.quote-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: #faf8f5;
  position: sticky;
  top: 0;
}
.quote-table tbody tr:last-child td { border-bottom: none; }
.quote-table tbody tr:hover { background: rgba(184, 148, 110, 0.06); }
.col-name strong { display: block; font-weight: 600; color: var(--ink); }
.quote-code {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.quote-price {
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
}
.col-price { min-width: 7rem; }
.col-src, .col-date { font-size: 0.78rem; color: var(--ink-dim); white-space: nowrap; }
.quote-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .col-src, .col-date { display: none; }
  .quote-table th:nth-child(4),
  .quote-table th:nth-child(5),
  .quote-table td:nth-child(4),
  .quote-table td:nth-child(5) { display: none; }
}

/* ── 贵金属实时行情 ── */
.metals-hero {
  background: linear-gradient(180deg, #2a2c2e 0%, #232220 55%, #1c1a18 100%);
  color: #f5f2ec;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}
.metals-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.metals-hero .page-eyebrow { color: rgba(184,148,110,0.75); margin-bottom: 0.35rem; }
.metals-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 0.45rem;
}
.metals-lede { color: rgba(255,255,255,0.5); font-size: 0.92rem; max-width: 38rem; margin-bottom: 0.65rem; }
.metals-meta, .metals-status { font-size: 0.78rem; color: rgba(255,255,255,0.42); }
.metals-status.is-closed { color: rgba(184,148,110,0.85); }
.metals-main { padding-top: 1rem; }
.metals-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.metals-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.metals-tab:hover { border-color: var(--accent); color: var(--ink); }
.metals-tab.active {
  background: var(--accent-pale);
  border-color: rgba(139,111,82,0.35);
  color: var(--accent-deep);
  font-weight: 600;
}
.metals-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: auto;
}
.metals-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
  min-width: 520px;
}
.metals-w-name { width: 26%; }
.metals-w-num { width: 18.5%; }
.metals-table th {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--accent-pale);
  white-space: nowrap;
}
.metals-table th.metals-col-name { text-align: left; }
.metals-table th.metals-col-num { text-align: right; }
.metals-table td {
  padding: 0.62rem 0.85rem;
  border-bottom: 1px solid rgba(232,227,218,0.65);
  vertical-align: middle;
}
.metals-table tbody tr:last-child td { border-bottom: none; }
.metals-col-name { font-weight: 500; color: var(--ink); text-align: left; }
.metals-col-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.metals-bid, .metals-ask, .metals-high, .metals-low {
  display: inline-block;
  min-width: 4.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  color: var(--accent-deep);
}
.metals-high, .metals-low { font-weight: 500; font-size: 0.84rem; color: var(--ink-dim); }
.metals-table span.metals-trend-up { color: #d63031; font-weight: 600; }
.metals-table span.metals-trend-down { color: #1e8449; font-weight: 600; }
.metals-empty { text-align: center; color: var(--ink-dim); padding: 2rem !important; }
.metals-row-highlight { background: rgba(184,148,110,0.12); }
.metals-disclaimer {
  margin: 1rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
.metals-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 2rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
@keyframes metalsFlashUp {
  0% { background: rgba(210, 90, 90, 0.32); color: #c0392b; }
  100% { background: transparent; }
}
@keyframes metalsFlashDown {
  0% { background: rgba(72, 160, 110, 0.38); color: #1f7a45; }
  100% { background: transparent; }
}
.metals-bid.metals-flash-up, .metals-ask.metals-flash-up,
.metals-high.metals-flash-up, .metals-low.metals-flash-up,
.metals-flash-up, .home-metals-bid.metals-flash-up, .home-metals-ask.metals-flash-up,
.home-metals-high.metals-flash-up, .home-metals-low.metals-flash-up {
  animation: metalsFlashUp 0.65s ease;
}
.metals-bid.metals-flash-down, .metals-ask.metals-flash-down,
.metals-high.metals-flash-down, .metals-low.metals-flash-down,
.metals-flash-down, .home-metals-bid.metals-flash-down, .home-metals-ask.metals-flash-down,
.home-metals-high.metals-flash-down, .home-metals-low.metals-flash-down {
  animation: metalsFlashDown 0.65s ease;
}
.site-foot {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.site-foot a { color: var(--accent-dim); }

@media (max-width: 640px) {
  .metals-table th:nth-child(4),
  .metals-table th:nth-child(5),
  .metals-table td:nth-child(4),
  .metals-table td:nth-child(5) { display: none; }
}
