/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ===== 背景 ===== */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:20px 50px;
  background: #1f1f1f;
}

.navbar nav {
  display: flex;
  flex-wrap: nowrap;
}

.navbar a {
  color: white;
  margin-left: 20px;
  font-size: 16px;
  text-decoration: none;
}

.logo img{
height:50px;
transition:0.3s;
}

.logo img:hover{
transform:scale(1.1);
}
/* ===== 标题 ===== */
.title {
  text-align: center;
  font-size: clamp(20px, 6vw, 48px);
  padding: 15px;
  background: linear-gradient(90deg, #01adb9, #D4E5F8);
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  text-align: center;
  color: #999;
  font-size: 20px;
  margin-bottom: 15px;
}

/* ===== 卡片容器（关键） ===== */
.events-container {
  display: grid;
  grid-template-columns: 1fr; /* 📱 手机：始终1列 */
  gap: 15px;
  padding: 15px;
}

/* ===== 卡片 ===== */
.event-card {
  background: #01adb9;
  border-radius: 12px;
  padding: 10px;
  color: white;
  text-align: center;
  transition: 0.3s;
  max-width: 600px;      
  margin: 0 auto;       
}

.event-card:active {
  transform: scale(1.03);
}

/* 图片自适应 */
.event-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== 分页 ===== */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.btn-glow {
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #01adb9, #D4E5F8);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  display: flex;
  justify-content: center;
}

.modal-content img {
  max-width: 90vw;
  max-height: 70vh;
}

/* ===== Footer ===== */
footer {
  background: #1f1f1f;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ========================= */
/* ===== PC（直接跳5列）===== */
/* ========================= */

@media (min-width: 1024px) {

  .events-container {
    grid-template-columns: repeat(5, 1fr); /* 💻 PC：一行5个 */
  }

  .event-card {
    max-width: none;   /* 取消限制 */
    margin: 0;
  }

}
