/* 好价频道 — 复用极玩意 Astro 站的 Base.DQQuv9FJ.css 设计系统
   (--ink / --paper / --acid / --orange / --blue / --line / --shadow) */

.deals-page { padding: 0 clamp(18px, 5vw, 72px) 90px; max-width: 1220px; margin: 0 auto; }

.deals-hero { padding: clamp(40px, 7vw, 88px) 0 32px; }

.deals-hero .eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  margin: 0 0 10px;
  color: #55534a;
}

.deals-hero h1 {
  margin: 0;
  font-size: clamp(56px, 11vw, 150px);
  line-height: .84;
  letter-spacing: -.09em;
  font-weight: 900;
}

.deals-lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

/* ---- 筛选面板 ---- */

.deals-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.filter-group > span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.filter-group > div { display: flex; gap: 6px; flex-wrap: wrap; }

.deal-search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  border-top: 1px dashed;
  padding-top: 16px;
}

.deal-search span { font-size: 26px; }
.deal-search input {
  width: 100%;
  padding: 8px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.deals-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 14px;
}

.deals-meta strong { font-size: 26px; font-weight: 900; color: var(--orange); }

.deals-meta button {
  margin-left: auto;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  padding: 0 0 2px;
}

/* ---- 好价卡片 ---- */

.deal-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 46px; }

.deal-card {
  border: var(--line);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all .18s;
  padding: 20px;
}

.deal-card:hover { box-shadow: 8px 8px 0 var(--ink); transform: translate(-3px, -4px); }

.deal-body { display: flex; flex-direction: column; gap: 10px; }

.deal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.deal-platform {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 3px 8px;
  background: var(--ink);
  color: #fff;
}

.deal-brand, .deal-cat {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.deal-cat { background: #cddcff; }

.deal-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.deal-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #55534a;
  max-width: 76ch;
}

.deal-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.deal-price {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--orange);
  line-height: 1;
}

.deal-list-price { font-size: 14px; font-weight: 700; color: #8a877c; text-decoration: line-through; }

.deal-spark {
  width: 120px;
  height: 34px;
  margin-left: auto;
  color: var(--blue);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 2px;
  flex: 0 0 auto;
  align-self: center;
}

.deal-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.deal-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  background: #fff;
}

.deal-tag.primary { background: var(--acid); }
.deal-tag.muted { background: #ebe7db; color: #55534a; }
.deal-tag.warn { background: #fff6cc; }

/* ---- 比价表 ---- */

.deal-offers {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1.5px solid var(--ink);
}

.deal-offers th, .deal-offers td {
  padding: 7px 11px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
}

.deal-offers thead th {
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.deal-offers tbody tr:last-child td { border-bottom: 0; }
.deal-offers tr.is-cheapest { background: #f4ffd6; }

.offer-price { font-weight: 900; font-variant-numeric: tabular-nums; }
.offer-status { color: #55534a; font-size: 12px; }

.deal-flag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  background: var(--orange);
  color: #fff;
}

.deal-sources { margin: 0; font-size: 12px; color: #55534a; }
.deal-sources a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .28); }
.deal-sources a:hover { color: var(--ink); }

.deal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.deal-actions .button { padding: 10px 18px; font-size: 14px; }
.deal-cta.is-disabled { opacity: .45; pointer-events: none; }

.deal-detail-link {
  font-size: 13px;
  font-weight: 700;
  color: #55534a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.deal-detail-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- 说明 ---- */

.deals-note {
  padding: 26px;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.deals-note h2 { margin: 0 0 14px; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.deals-note ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.95; color: #45433c; }
.deals-note li::marker { color: var(--orange); font-weight: 900; }

.empty-state { padding: 80px 20px; text-align: center; }
.empty-state > span { font-size: 90px; }
.empty-state h2 { font-size: 30px; margin: 8px 0; font-weight: 900; }

.data-error {
  padding: 14px 18px;
  border: var(--line);
  background: #fff6cc;
  font-weight: 700;
  margin: 20px 0;
}

@media (max-width: 760px) {
  .deals-filters { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .deal-card { padding: 15px; }
  .deal-spark { width: 76px; height: 26px; }
  .deal-offers { font-size: 12px; }
  .deal-offers th, .deal-offers td { padding: 6px 8px; }
}
