/* 页面内容。导航、容器、页脚见 demo-base.css */

.shgn-match-page { padding: 64px 0 80px; }

.shgn-match-intro { max-width: 640px; margin-bottom: 28px; }
.shgn-match-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent-gold-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.shgn-match-intro h1 { font-size: 36px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.shgn-match-intro p { color: var(--text-sub); font-size: 15px; max-width: 660px; }

.shgn-match-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }

.shgn-matcher-card {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.shgn-filter-group { margin-bottom: 18px; }
.shgn-filter-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-sub); }
.shgn-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.shgn-pill-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  background: var(--bg-primary);
  color: var(--text-sub);
  border: 1px solid var(--border-light);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.shgn-pill-btn:hover { border-color: var(--accent-gold); color: var(--text-main); }
.shgn-pill-btn.shgn-active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.shgn-match-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}
.shgn-match-submit:hover { background: var(--accent-gold-hover); transform: translateY(-1px); }

.shgn-match-stage { min-height: 420px; }

.shgn-match-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  background: rgba(255, 255, 255, 0.55);
}
.shgn-match-empty strong { font-size: 18px; font-weight: 650; }
.shgn-match-empty p { margin-top: 8px; color: var(--text-muted); font-size: 14px; }

.shgn-match-orb {
  width: 14px;
  height: 14px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.45);
  animation: orb 2.4s ease-out infinite;
}

@keyframes orb {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(176, 141, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0); }
}

.shgn-match-results { display: flex; flex-direction: column; gap: 14px; }
.shgn-match-results[hidden], .shgn-match-empty[hidden] { display: none; }

.shgn-match-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  animation: matchIn .48s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.shgn-match-card:nth-child(2) { animation-delay: .06s; }
.shgn-match-card:nth-child(3) { animation-delay: .12s; }
.shgn-match-card:nth-child(4) { animation-delay: .18s; }
.shgn-match-card:nth-child(5) { animation-delay: .24s; }
.shgn-match-card:nth-child(6) { animation-delay: .3s; }

@keyframes matchIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.shgn-match-photo {
  width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, #FFFcf8 0%, #F3EBDF 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 225, 215, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.shgn-match-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shgn-match-mark {
  width: 46px;
  height: 58px;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(160deg, #fff 0%, #efe2cc 70%, #dfc8a2 100%);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.7);
}

.shgn-match-brand { font-size: 12px; color: var(--accent-gold-hover); letter-spacing: 1px; }
.shgn-match-name { display: block; margin: 2px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.shgn-match-name:hover { color: var(--accent-gold-hover); }
.shgn-match-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.shgn-match-tags span {
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--text-sub);
  font-size: 12px;
}
.shgn-match-verdict { color: var(--text-sub); font-size: 13px; line-height: 1.6; }
.shgn-match-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--text-main); }
.shgn-match-bar { height: 3px; margin-top: 10px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; }
.shgn-match-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-gold);
  animation: barIn .7s ease forwards;
}
@keyframes barIn { to { width: var(--w, 0%); } }

@media (max-width: 860px) {
  .shgn-match-layout { grid-template-columns: 1fr; }
  .shgn-matcher-card { position: static; }
  .shgn-match-intro h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .shgn-match-card, .shgn-match-bar i, .shgn-match-orb { animation: none; }
  .shgn-match-bar i { width: var(--w, 0%); }
}
