/* Public 模型广场: group tabs, a group summary and a grid of model cards. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plaza-hero { padding: 8px 0 22px; }
.plaza-hero h1 { margin: 12px 0 12px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; line-height: 1.35; letter-spacing: -1px; }
.plaza-hero p { max-width: 720px; margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.9; }
.plaza-search { display: flex; width: min(440px, 100%); align-items: center; gap: 10px; margin-top: 22px; padding: 0 14px; color: var(--ui-muted); background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; box-shadow: var(--ui-shadow-small); }
.plaza-search:focus-within { border-color: #a9c4f6; box-shadow: 0 0 0 3px rgba(36, 101, 232, .1); }
.plaza-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.plaza-search input { width: 100%; min-width: 0; height: 44px; color: var(--ui-ink); font: inherit; font-size: 14px; background: transparent; border: 0; outline: 0; }

.plaza-body { display: grid; gap: 14px; }
.plaza-catalog { display: grid; gap: 14px; }
.plaza-catalog[hidden], .plaza-state[hidden] { display: none; }
.plaza-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.plaza-tabs::-webkit-scrollbar { display: none; }
.plaza-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 10px; color: #3d5374; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; transition: border-color .18s, background-color .18s, color .18s, box-shadow .18s; }
.plaza-tab:hover { border-color: #c9d8ee; box-shadow: var(--ui-shadow-small); }
.plaza-tab:focus-visible { outline: 2px solid rgba(36, 101, 232, .45); outline-offset: 2px; }
.plaza-tab.is-active { color: #2058c6; background: #f2f7ff; border-color: #a9c4f6; box-shadow: 0 0 0 3px rgba(36, 101, 232, .1); }
.plaza-tab.is-empty:not(.is-active) { opacity: .5; }
.plaza-tab-rate { padding: 2px 7px; color: #5c7090; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: #f1f4f9; border-radius: 999px; }
.plaza-tab.is-active .plaza-tab-rate { color: #fff; background: var(--ui-blue); }
.plaza-logo { display: inline-grid; flex: 0 0 auto; place-items: center; }
.plaza-tab .plaza-logo { width: 24px; height: 24px; background: #fff; border-radius: 7px; }
.plaza-logo img { display: block; }
.plaza-logo svg { width: 16px; height: 16px; fill: none; stroke: #8a99ad; stroke-width: 1.7; stroke-linejoin: round; }

.plaza-panel { display: grid; gap: 14px; }
.plaza-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 18px 22px; background: #fff; border: 1px solid var(--ui-border); border-radius: 16px; box-shadow: var(--ui-shadow-small); }
.plaza-panel-head h3 { margin: 0; color: var(--ui-ink); font-size: 18px; font-weight: 700; }
.plaza-panel-head p { margin: 4px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
.plaza-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.plaza-fact { padding: 4px 10px; color: #5c7090; font-size: 12px; white-space: nowrap; background: #f5f7fb; border-radius: 999px; }
.plaza-fact.is-rate strong { color: #2058c6; }
.plaza-peak { margin: 0; padding: 10px 16px; color: #a86405; font-size: 13px; background: #fffaf0; border: 1px solid #f6ead2; border-radius: 12px; }
.plaza-empty { margin: 0; padding: 40px 24px; color: var(--ui-muted); font-size: 13px; text-align: center; background: #fff; border: 1px dashed #d5e0ee; border-radius: 16px; }

/* One card per model, cheapest first. */
.plaza-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.plaza-card { display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 14px; background: #fff; border: 1px solid #e4ebf5; border-radius: 18px; box-shadow: 0 1px 2px rgba(23, 45, 76, .04); transition: transform .18s, border-color .18s, box-shadow .18s; }
.plaza-card:hover { transform: translateY(-3px); border-color: #c9d8ee; box-shadow: var(--ui-shadow); }
.plaza-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plaza-card-head .plaza-logo { width: 42px; height: 42px; background: #f5f8fd; border: 1px solid #edf1f7; border-radius: 12px; }
.plaza-card-head .plaza-logo svg { width: 20px; height: 20px; }
.plaza-card-title { min-width: 0; }
.plaza-card-title h4 { margin: 0; color: var(--ui-ink); font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.plaza-card-vendor { display: block; margin-top: 2px; color: #8a99ad; font-size: 12px; }
.plaza-card-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.plaza-card-prices > div { min-width: 0; padding: 10px 12px; background: #f7f9fc; border-radius: 12px; }
.plaza-card-prices > .is-wide { grid-column: 1 / -1; }
.plaza-card-prices dt { color: #7a8ca4; font-size: 12px; }
.plaza-card-prices dd { margin: 2px 0 0; color: var(--ui-ink); font-size: 20px; font-weight: 750; line-height: 1.3; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plaza-card-prices > .is-text dd { color: #4e647f; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.plaza-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f3f8; }
.plaza-card-unit { color: #8a99ad; font-size: 12px; }
.plaza-copy { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 32px; padding: 0 12px; color: #4e647f; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; border: 1px solid var(--ui-border); border-radius: 999px; transition: color .18s, border-color .18s, background-color .18s; }
.plaza-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.plaza-copy:hover { color: var(--ui-blue); background: #f2f7ff; border-color: #a9c4f6; }
.plaza-copy:focus-visible { color: var(--ui-blue); outline: 2px solid rgba(36, 101, 232, .45); outline-offset: 2px; }
.plaza-copy.is-copied { color: var(--ui-mint); background: #effaf6; border-color: #bfe5d8; }

.plaza-state { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; }
.plaza-state strong { color: var(--ui-ink); font-size: 16px; }
.plaza-state p { max-width: 460px; margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.7; }
.plaza-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.plaza-state .button { padding: 0 18px; }
.plaza-spinner { width: 22px; height: 22px; border: 2px solid #d3e0f5; border-top-color: var(--ui-blue); border-radius: 50%; animation: plaza-spin .8s linear infinite; }
@keyframes plaza-spin { to { transform: rotate(360deg); } }
.plaza-note { margin: 4px 2px 0; color: var(--ui-muted); font-size: 12px; line-height: 1.7; }

.plaza-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding: 26px 30px; background: linear-gradient(120deg, #f2f7ff, #effaf6); border: 1px solid #dbe6f8; border-radius: 20px; }
.plaza-cta h2 { margin: 0 0 6px; font-size: 20px; }
.plaza-cta p { margin: 0; color: var(--ui-muted); font-size: 14px; }
.plaza-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plaza-cta .button { padding: 0 18px; }

@media (max-width: 640px) {
  .plaza-panel-head { padding: 16px; }
  .plaza-grid { grid-template-columns: 1fr; gap: 12px; }
  .plaza-card { padding: 16px 16px 12px; }
  .plaza-card-prices dd { font-size: 18px; }
  .plaza-cta { padding: 22px 18px; }
  .plaza-cta-actions, .plaza-cta-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .plaza-tab, .plaza-card, .plaza-copy { transition: none; }
  .plaza-card:hover { transform: none; }
  .plaza-spinner { animation: none; }
}
