/* 全局样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  /* 将背景图像替换为动态渐变背景 */
  background: linear-gradient(135deg, #a8c0ff, #ffb8a5, #76d6ee, #b4e5d8, #f6c9d7, #b5d4f7, #e0e0e0);


  background-size: 400% 400%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  animation: gradient 15s ease infinite; /* 动态背景渐变 */
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  box-sizing: border-box;
}

/* 头部样式 */
.header {
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2em;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header p {
  font-size: 1.2em;
  background: linear-gradient(to right, #FF1461, #18FF92, #5A87FF, #FBF38C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 搜索栏样式 */
.search-bar {
  margin: 20px 0;
}

.search-bar input[type="text"] {
  width: 300px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

.search-bar select {
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

.search-bar input[type="submit"] {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

/* 分类样式 */
.category {
  margin: 20px 0;
}

.category h2 {
  margin-bottom: 10px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0); /* 浅白色透明背景 */
  color: #1ba784;
  border-radius: 5px;
}

/* 导航链接样式 */
.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.navigation a {
  margin: 10px;
  padding: 15px 25px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s;
  display: block;
}

.navigation a:hover {
  background-color: rgba(255, 255, 255, 0.7); /* 鼠标悬停时深一点的透明浅白色 */
}

/* 页脚样式 */
.footer {
  margin-top: 50px;
  font-size: 0.8em;
}

/* 烟花动画Canvas样式 */
.fireworks {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999; /* 确保在最顶层 */
}

/* 定义字体 */  
@font-face {  
  font-family: 'DigitalNumbers'; /* 这里的名称是自定义的，用于在CSS中引用 */  
  src: url('../fonts/DigitalNumbers-Regular.ttf'); /* 字体文件的路径 */  
  font-weight: normal; /* 字体的粗细 */  
  font-style: normal; /* 字体的风格，如斜体 */  
} 

/* 时钟样式 */
#datetime {
  font-family: 'DigitalNumbers', monospace;
  font-size: 24px;
  color: #df2702;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  margin: 20px auto;
  display: inline-block;
  justify-content: center;
  align-items: center;
  transform: scale(0.6);
}
