/* ============================================================
   plaza.css — 角色广场：分区标题、类型徽章、推荐横幅、手风琴分区
============================================================ */

/* ── 广场：分区标题 & 类型徽章 ──────────────────────────────── */
.square-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  position: relative;
}
.square-section-header:first-child { margin-top: 4px; }
.square-section-header::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}
.square-section-icon { font-size: 20px; line-height: 1; }
.square-section-title { font-size: 15px; font-weight: 700; color: var(--text); }
.square-section-desc { font-size: 12px; color: var(--muted); margin-left: auto; }
.square-section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-bottom: 12px;
}
.char-grid.single-section .square-section-header,
.char-grid.single-section .square-section-divider { display: none; }

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.type-badge.intimate {
  background: rgba(167,139,250,.18);
  color: #c4b5fd;
  border: 1px solid rgba(167,139,250,.28);
}
.type-badge.scenario {
  background: rgba(124,108,240,.20);
  color: #b8a9fe;
  border: 1px solid rgba(124,108,240,.30);
}
.type-badge.world {
  background: rgba(56,189,248,.14);
  color: #93d5f5;
  border: 1px solid rgba(56,189,248,.22);
}
.detail-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
}
.detail-type-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.detail-type-badge.intimate { background:rgba(167,139,250,.14); color:#c4b5fd; border:1px solid rgba(167,139,250,.24); }
.detail-type-badge.scenario { background:rgba(124,108,240,.16); color:#b8a9fe; border:1px solid rgba(124,108,240,.26); }

/* ── 广场：推荐横幅 ────────────────────────────────────────── */
.featured-banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 180px;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
}
.featured-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
}
.featured-banner-card:active { transform: scale(.98); }
.featured-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.featured-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.15) 0%, transparent 40%),
              linear-gradient(180deg, transparent 20%, rgba(0,0,0,.72) 80%);
}
.featured-banner-content {
  position: absolute;
  inset: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}
.featured-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(167,139,250,.22);
  border: 1px solid rgba(167,139,250,.32);
  color: #d4c4fe;
  margin-bottom: 8px;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.featured-banner-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.featured-banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-banner-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .15s;
}
.featured-banner-btn:hover { background: rgba(255,255,255,.25); }

/* ── 广场：可折叠手风琴分区 ────────────────────────────────── */
.square-accordion {
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  background: var(--gradient, transparent);
  transition: background .2s, opacity .2s;
  user-select: none;
  border-left: 3px solid var(--accent, var(--pink));
}
.accordion-header:active { opacity: .85; }
.accordion-header:not(.collapsed) {
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--accent, var(--pink)));
}
.accordion-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.accordion-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.accordion-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }
.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.accordion-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 2px 9px;
}
.accordion-arrow {
  font-size: 11px;
  color: var(--muted);
  transition: transform .25s ease;
}
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 12px;
}
.accordion-body.open {
  max-height: 2000px;
  padding: 12px 12px 14px;
}
.accordion-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
