/*
Theme Name: Tempter Party
Theme URI: https://tempter-party.rocks
Description: A custom WordPress theme for Tempter Party
Author: Your Name
Version: 1.0
*/

/* 重置浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* 设置全局字体和背景 */
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #ffffff;
  }
  
  /* 页头样式 */
  header {
    background: #000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
  }
  
  header h1 {
    margin-bottom: 10px;
  }
  
  /* 导航栏样式 */
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* 主要内容区样式 */
  main {
    padding: 20px;
  }
  
  /* 各个 section 的样式 */
  section {
    background: #000000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
  
  section h2 {
    margin-bottom: 10px;
  }
  
  /* 页脚样式 */
  footer {
    background: #000000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
  }
  
  /* 定义页面的初始状态和过渡效果 */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  #cover img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
  }
  #past-events .event-photo img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
  }
  #past-events article {
    text-align: center;
    margin-top: 20px;
  }
  /* 其他点缀：例如链接在正文中的颜色 */
a {
    color: #ffffff;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }

  /* 以下为活动卡片样式，用于统一活动图片大小 */
.event-card {
    background: #000000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 500px;         /* 固定高度，可根据需要调整 */
    object-fit: cover;     /* 图片填满区域，超出部分裁剪 */
    display: block;
}

/* “精彩瞬间”区域样式 */
#highlights {
  background: #000; /* 与整体主题一致 */
  padding: 20px;
  text-align: center;
}

#highlights h2 {
  color: #fff;
  border-left: 5px solid #e60000; /* 红色点缀 */
  padding-left: 10px;
  margin-bottom: 20px;
}

/* 外层容器，用于隐藏滚动区域以外的内容 */
.photo-chain {
  overflow: hidden;
  position: relative;
}

/* 内层容器，利用 flex 排列图片并进行动画 */
.photo-chain-inner {
  display: flex;
  /* 宽度足够容纳重复的图片组，根据图片宽度和数量计算 */
  /* 此处假设每张图片宽 200px，加上 10px 间隔，共 210px/张；8 张图片共 1680px */
  width: 1680px;
  animation: scroll 20s linear infinite;
}

/* 图片样式 */
.photo-chain-inner img {
  width: 200px;
  height: auto;
  margin-right: 10px;
}

/* 定义动画，实现从右向左滚动 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* 启动画面样式 */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;  /* 你可以根据需要更改背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 2s ease, transform 2s ease;
}

#splash img {
  max-width: 300px;
  transition: transform 2s ease, opacity 2s ease;
}

/* 定义动画：添加 fade-out 类后让 logo 缩小并渐隐 */
#splash.fade-out {
  opacity: 0;
  transform: scale(0);
}
