/* ✅ styles.css：保留原样式，已修订列数，电脑 4 列，手机 2 列 */

body {
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1, h2 {
  margin: 20px 0;
  font-size: 1.8em;
}

.banner img {
  max-width: 90%;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* ✅ 图集网格布局 */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 💻 默认电脑固定 4 列 */
  gap: 24px;
  padding: 20px 0;
  justify-items: center;
  max-width: 940px; /* 💡 限制最大宽度，与下方大图对齐 */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 📱 手机改成 2 列 */
    max-width: 480px; /* 手机下对齐大图宽度 */
  }
}

.item {
  position: relative;
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.item:hover {
  transform: scale(1.05);
}

.item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: blur(6px);
  transition: filter 0.3s;
  border-radius: 10px;
}

.item:hover img {
  filter: blur(0);
}

/* ✅ 电脑和大屏按钮（默认） */
.unlock,
.preview {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 0, 100, 0.9);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s;
  z-index: 2;
  width: 100%;
}

/* ✅ 手机版优化按钮 */
@media (max-width: 768px) {
  .unlock,
  .preview {
    padding: 6px 14px;
    font-size: 0.8em;
    width: auto;
    max-width: 90%;
  }
}

/* ✅ 精选推荐图包区标题间距 */
.featured-gallery {
  margin: 40px 0 20px 0;
}

/* ✅ Exclusive Packs 大图 */
.exclusive-banner-container {
  max-width: 940px;
  margin: 0 auto 20px auto;
}

.exclusive-banner {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  display: block;
}

.unlock-all-bar {
  background: rgba(255, 0, 100, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.unlock-all-bar:hover {
  background: rgba(255, 51, 153, 0.9);
}

/* ✅ Footer */
footer {
  margin-top: 60px;
  padding: 20px;
  font-size: 14px;
  color: #666;
}
