/* ===== 荣耀照片墙 glory-wall（紫金荣耀主题） ===== */
.glory-wall {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  position: relative;
}
.glory-wall .section-header { margin-bottom: 28px; }

.glory-filters {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px;
}
.glory-filter {
  border: 1px solid #e9d5ff; background: #fff; color: #6d28d9;
  padding: 8px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .25s;
}
.glory-filter:hover { background: #f5f3ff; }
.glory-filter.is-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff;
  border-color: transparent; box-shadow: 0 4px 16px rgba(124,58,237,.3);
}

/* 瀑布流（CSS columns） */
.glory-grid { column-count: 4; column-gap: 16px; }
@media (max-width: 1100px) { .glory-grid { column-count: 3; } }
@media (max-width: 760px)  { .glory-grid { column-count: 2; } }
@media (max-width: 460px)  { .glory-grid { column-count: 1; } }

.glory-card {
  position: relative; break-inside: avoid; margin: 0 0 16px;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 20px rgba(46,16,101,.08); cursor: pointer; transition: .35s;
}
.glory-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(46,16,101,.18); }
.glory-card img { width: 100%; display: block; object-fit: cover; }

.glory-card__type {
  position: absolute; top: 12px; left: 12px;
  background: rgba(232,160,32,.95); color: #3b2406;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  opacity: 0; transition: .3s;
}
.glory-card:hover .glory-card__type { opacity: 1; }

.glory-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,16,101,.94) 0%, rgba(46,16,101,.55) 45%, transparent 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; opacity: 0; transition: .3s;
}
.glory-card:hover .glory-card__overlay { opacity: 1; }
.glory-card__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.glory-card__date  { font-size: 11px; color: #e9d5ff; margin-bottom: 6px; }
.glory-card__desc  { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.85); }

.glory-empty { text-align: center; color: #94a3b8; padding: 40px 0; font-size: 14px; }

/* 管理区 */
.glory-admin { text-align: center; margin-top: 28px; }
.glory-btn {
  border: none; cursor: pointer; font-weight: 600; font-size: 14px;
  padding: 10px 24px; border-radius: 10px; transition: .25s; font-family: inherit;
}
.glory-btn--login  { background: #ede9fe; color: #6d28d9; }
.glory-btn--login:hover { background: #ddd6fe; }
.glory-btn--ghost  { background: transparent; border: 1px solid #c4b5fd; color: #6d28d9; }
.glory-btn--ghost:hover { background: #f5f3ff; }
.glory-btn--primary{ background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; }
.glory-btn--primary:hover { filter: brightness(1.05); }
.glory-btn--danger { background: #fee2e2; color: #dc2626; }
.glory-btn--danger:hover { background: #fecaca; }
.glory-btn--gold   { background: linear-gradient(135deg,#e8a020,#d4911a); color: #fff; }
.glory-btn--gold:hover { filter: brightness(1.05); }

[hidden]{display:none !important}
.glory-manage {
  margin-top: 28px; background: #fff; border: 1px solid #ede9fe; border-radius: 20px;
  padding: 28px; box-shadow: 0 8px 30px rgba(46,16,101,.06); text-align: left;
}
.glory-manage h3 { font-size: 18px; font-weight: 800; color: #2e1065; margin-bottom: 16px; }

.glory-upload-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.glory-upload-form input[type=text],
.glory-upload-form input[type=date],
.glory-upload-form select,
.glory-upload-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1e293b; background: #fff;
}
.glory-upload-form input[type=file] { grid-column: 1 / -1; font-size: 13px; color: #475569; }
.glory-upload-form textarea { grid-column: 1 / -1; min-height: 70px; resize: vertical; }
.glory-upload-form .glory-submit { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { .glory-upload-form { grid-template-columns: 1fr; } }

.glory-pending-title {
  font-size: 15px; font-weight: 700; color: #2e1065; margin: 8px 0 14px;
}

.glory-admin-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.glory-admin-card {
  background: #faf5ff; border: 1px solid #ede9fe; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.glory-admin-card > img { width: 100%; height: 140px; object-fit: cover; }
.glory-admin-card__body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.glory-admin-card__title { font-size: 14px; font-weight: 700; color: #2e1065; word-break: break-all; }
.glory-admin-card__meta  { font-size: 11px; color: #64748b; }
.glory-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px;
}
.glory-badge--pending { background: #fef3c7; color: #b45309; }
.glory-badge--live    { background: #dcfce7; color: #15803d; }
.glory-admin-card__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.glory-admin-card__actions .glory-btn { padding: 6px 12px; font-size: 12px; }

.glory-edit-input {
  width: 100%; padding: 7px 10px; border: 1px solid #c4b5fd; border-radius: 8px;
  font-size: 13px; font-family: inherit; color: #1e293b; background: #fff;
}
.glory-edit-input--area { min-height: 48px; resize: vertical; }

.glory-msg {
  margin-top: 14px; font-size: 13px; padding: 10px 14px; border-radius: 10px; display: none;
}
.glory-msg--ok  { display: block; background: #dcfce7; color: #15803d; }
.glory-msg--err { display: block; background: #fee2e2; color: #dc2626; }
