/* 广场页（/plaza/）——复用官网 style.css 的变量与组件语汇，只补广场自身布局 */

.plaza-hero {
  padding: 72px 0 8px;
  text-align: center;
}
.plaza-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.05em;
}
.plaza-hero-sub {
  color: var(--muted, #6b6b6b);
  margin: 12px 0 0;
  line-height: 1.8;
}
.plaza-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.plaza-tab {
  border: 1px solid var(--line, #e5e0d8);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink, #2b2b2b);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.plaza-tab:hover { border-color: var(--brand, #c0392b); color: var(--brand, #c0392b); }
.plaza-tab.is-active {
  background: var(--brand, #c0392b);
  border-color: var(--brand, #c0392b);
  color: #fff;
}
.plaza-tab-refresh { border-style: dashed; }

.plaza-body { padding-top: 20px; }
.plaza-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.plaza-feed { display: grid; gap: 14px; min-height: 300px; }
.plaza-loading { color: var(--muted, #6b6b6b); padding: 32px 0; text-align: center; }

.plaza-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line, #e5e0d8);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.plaza-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand, #c0392b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.plaza-card-thumb {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--line, #e5e0d8);
}
.plaza-card-main { min-width: 0; flex: 1; }
.plaza-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.plaza-card-summary {
  color: var(--muted, #6b6b6b);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 6px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.plaza-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted, #6b6b6b);
}
.plaza-site-link { color: var(--brand, #c0392b); text-decoration: none; font-weight: 600; }
.plaza-site-link:hover { text-decoration: underline; }
.plaza-kind-chip {
  border: 1px solid var(--line, #e5e0d8);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
}
/* 认证徽章：朱砂印（纯图标，色取官网主色 var(--accent)，与站点名红同源——落款与钤印的关系）。
   印章要盖得稳：略大于 meta 行小字（1.05rem ≈ 站点名饱和度），紧贴落款像名后一小枚钤印 */
.plaza-badge {
  display: inline-flex;
  align-items: center;
  color: var(--accent, #b23a29);
  font-size: 1.05rem;
  margin-left: -5px;
}
.plaza-badge-icon {
  width: 1em;
  height: 1em;
  display: block;
  /* 印章底色由 SVG path 承担（fill=var(--accent)），这里只负责基线微调 */
  transform: translateY(0.5px);
}

.plaza-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.plaza-side-card {
  background: #fff;
  border: 1px solid var(--line, #e5e0d8);
  border-radius: 14px;
  padding: 18px;
  font-size: 0.9rem;
  line-height: 1.8;
}
.plaza-side-card h2 { font-size: 1rem; margin: 0 0 10px; }
.plaza-side-card p { margin: 0 0 10px; color: var(--muted, #6b6b6b); }
.plaza-side-card p b { color: var(--ink, #2b2b2b); }
.plaza-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plaza-sites li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.plaza-sites a {
  color: var(--ink, #2b2b2b);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plaza-sites a:hover { color: var(--brand, #c0392b); }
.plaza-sites .plaza-badge { flex: 0 0 auto; }
.plaza-sites-count { color: var(--muted, #6b6b6b); font-size: 0.75rem; flex: 0 0 auto; }
.plaza-empty { text-align: center; padding: 48px 0; color: var(--muted, #6b6b6b); }

/* 手机：单列，侧栏落到底部 */
@media (max-width: 900px) {
  .plaza-wrap { grid-template-columns: 1fr; }
  .plaza-side { position: static; }
  .plaza-card-thumb { flex-basis: 72px; height: 72px; }
}
