/* BY浅暖 */
/* 通用样式 */
.btn {
  text-decoration: none; /* 添加这一行以删除下划线 */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
    /* 图片 */
  .image-container {
    width: 100%;
    height: 100px;
    overflow: hidden; /* 用于隐藏超出容器的部分 */
  }

  .image-container img {
    width: 100%; /* 图片宽度始终填充容器 */
    height: 50%; /* 图片高度始终为容器宽度的 50% */
  }
    /* 一键返回按钮 */
buttonx {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition-duration: 0.4s;
    border-radius: 50%; /* 设置为圆形 */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.5; /* 设置为半透明 */
}
    /* 表格下拉菜单居中 */
    select {
      text-align: center;
      text-align-last: center;
    }
    /* 导航栏样式 */
    header {
      background-color: #333;
      padding: 10px;
    }

    nav ul {
      list-style-type: none;
      display: flex;
      justify-content: center;
    }

    nav ul li {
      margin: 0 10px;
    }

    nav ul li a {
      text-decoration: none;
      color: white;
      padding: 5px 10px;
    }

    nav ul li a:hover {
      background-color: #555;
      border-radius: 5px;
    }

    /* 主体内容样式 */
    main {
      background-color: #f2f2f2;
      padding: 20px;
      text-align: center;
    }

    section {
      background-color: #fff;
      padding: 20px;
      margin: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16), 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    h1 {
      font-size: 24px;
      margin-bottom: 10px;
    }

    p {
      font-size: 16px;
      margin-bottom: 20px;
    }

    /* 表格样式 */
    table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #ccc;
  /* 允许文字自动换行  white-space: pre-wrap;*/
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* 媒体查询：平板和手机样式 */
@media (max-width: 1080px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* 按钮样式 */
.btn {
  background-color: #333;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
}
@media (max-width: 1080px) {
  .btn {
    text-decoration: none; /* 确保在手机设备上也不显示下划线 */
  }
}
    /* 底层表格文字水印样式 */
body::before {
     content: "群1480007";
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     opacity: 0.2;
     font-size: 6em;
     color: #ccc;
     z-index: 0;
     pointer-events: none;
   }

   @media (max-width: 767px) {
     body::before {
       font-size: 1em;
     }
   }

   @media (min-width: 768px) and (max-width: 1023px) {
     body::before {
       font-size: 4em;
     }
   }

   @media (min-width: 1024px) {
     body::before {
       font-size: 6em;
     }
   }
    /* 头部公告 */
     body {
     background-size: 100%;
     background-repeat: no-repeat;
   }

.notice {
  width: 100%;
  max-width: 600px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin: 50px auto;
  overflow: hidden;
}

.notice__inner {
  position: relative;
  z-index: 2; /* 确保文本在背景层之上 */
  height: 100%;
  font-size: 20px;
  color: #00FFFF;
  line-height: 40px;
  white-space: nowrap;
  text-shadow: 1px 1px #000;
  filter: brightness(1.2) saturate(1.5);
}

/* 添加半透明白色背景 */
.notice__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* 半透明白色 */
  z-index: -1; /* 将背景层放置在文本下方 */
  border: 1px solid #eee; /* 与外框保持一致，如果不需要可以移除 */
}

   .notice__item {
     position: absolute;
     top: 0;
     left: 100%;
     height: 100%;
   }

   .notice__item-first {
     padding-right: 70%;
     animation: rollFirst 25s linear infinite;
   }

   .notice__item-second {
     padding-right: 53%;
     animation: rollSecond 25s linear 12s infinite;
   }

   @keyframes rollFirst {
     0% { transform: translateX(0); }
     100% { transform: translateX(-200%); }
   }

   @keyframes rollSecond {
     0% { transform: translateX(0); }
     100% { transform: translateX(-200%); }
   }

   @media (max-width: 767px) {
     .notice {
       height: 30px;
       border-radius: 4px;
     }

     .notice__inner {
       font-size: 20px;
       line-height: 30px;
     }
   }

    /* 响应式设计 */
    @media screen and (max-width: 768px) {
      /* 导航栏样式 */
      nav ul {
         top: 0px;
         left: 0px;
         width: 100%;
      }
      nav ul li {
        margin: 10px 0;
      }
      /* 主体内容样式 */
    header {
      background-color: #333;
      padding: 16px;
    }
      main {
        padding: 10px;
      }

      section {
        margin: 10px;
      }

      h1 {
        font-size: 18px;
      }

      p {
        font-size: 14px;
      }

      /* 表格样式 */
      th, td {
        font-size: 12px;
      }

      /* 按钮样式 */
      .btn {
        font-size: 14px;
        padding: 5px 10px;
      }

      .btn img {
        height: 16px;
        width: 16px;
      }
        /* 隐藏背景图片 */  
    body {  
        background-size: 0%;  
        }  
    }

      /* 广告页样式 */
  .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.box,
.random-box {
  width: 48%;
  margin-bottom: 2%;
}

.box img,
.random-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box .text,
.random-box .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  text-align: center;
}
    /* 广告页样式-随机 */
.random-box {
      width: 300px;
      height: 200px;
      border: 1px solid #ccc;
      padding: 10px;
      box-sizing: border-box;
      position: relative;
}

.random-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
}

.random-box .text {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 10px;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      font-size: 16px;
      text-align: center;
}
/* 广告页样式-固定 */
    .box {
      width: 300px;
      height: 200px;
      border: 1px solid #ccc;
      padding: 10px;
      box-sizing: border-box;
      position: relative;
    }

    .box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .box .text {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 10px;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      font-size: 16px;
      text-align: center;
    }
/* 双击图片放大 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* 计算器答案-固定 */
    #mergedTotal {  
      position: fixed;  
      right: 10px; /* 距离右侧边距10px */  
      bottom: 10px; /* 距离底部边距10px */  
      width: 200px; /* 设置宽度 */  
      height: 50px; /* 设置高度 */  
      background-color: #ffffff; /* 设置背景颜色 */  
      color: #000000; /* 设置字体颜色 */  
      text-align: center; /* 文字居中 */  
      line-height: 50px; /* 垂直居中 */  
    }  
    /* 友情链接样式 */
    .flink {
      margin: 30px 50px;
      padding: 10px;
      background-color: #f5f5f5;
      border-radius: 5px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .flink span {
      font-weight: bold;
      margin-right: 10px;
    }
    .flink ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    .flink li {
      margin-right: 10px;
    }
    .flink a {
      color: #333;
      text-decoration: none;
      transition: color 0.3s;
    }
    .flink a:hover {
      color: #009688;
    }
    /* 响应式布局 */
    @media (max-width: 767px) {
      .flink li {
        margin-right: 0;
        margin-bottom: 5px;
      }
    }
    /* 每周活动时间显示 */
  .countdown-container {  
    display: flex;  
    justify-content: center;  
    align-items: center;  
    flex-direction: column;  
  }  
  .countdown {  
    font-size: 2em;  
    text-align: center;  
  }  
  .activity-name {  
    text-align: center;  
    margin-top: 10px;  
  }  
/* BY浅暖 制作不易切勿直接复制，请注明出处*/