/*
 * resource_gallery 首页"最近资源"挂块样式
 * 来源：Alpha6.8.3开发者版 style.css（原写在模板中，现内置到插件，与模板无关）
 */
.resource-gallery-wrap { margin-bottom: 1.5rem; box-shadow: 3px 3px 10px #9a96aa3b; border-radius: 10px; }
.rgallery-hd { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; background: linear-gradient(to right, #6f88ff 0, #657be5 100%); border-radius: 8px 8px 0 0; color: #fff; font-size: 16px; }
.rgallery-hd span { font-weight: 500; }
.rgallery-hd span i { margin-right: 2px; }
.rgallery-hd a { font-size: 12px; }
.rgallery-more { color: #fff; text-decoration: none; font-size: 14px; opacity: .85; }
.rgallery-more:hover { text-decoration: none; color: #fff; }
.rgallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 1.5rem; background: #fff; border-radius: 0 0 8px 8px; }
.rgallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 6px; display: block; position: relative; }
.rgallery-item img, .rgallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rgallery-video::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; background: rgba(255, 255, 255, .9); border-radius: 50%; }
.rgallery-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 48px; height: 48px; background-image: url('video.svg'); background-size: contain; background-repeat: no-repeat; transition: transform .3s, opacity .3s; }

/* 暗色模式兜底（模板自身的 .dark 规则带 !important 时优先生效） */
.dark .rgallery-grid { background: #22232a; }
.dark .rgallery-hd { background: #2a2b33; }

/* 小屏两列 */
@media (max-width: 425px) {
  .rgallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 1rem; }
}
