/* Have fun adding your style here :) - PS: At all times this file should contain a comment or a rule, otherwise opera might act buggy :( */

/* General Custom CSS */

/* 添加内容居中的样式 */
.container {
  margin: 0 auto;
  max-width: 85%;
  width: 85%;
}

.content {
  float: none;
  margin: 0 auto;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.template-page .entry-content-wrapper {
  margin: 0 auto;
  width: 100%;
}

/* 优化赞助商和倒计时显示 */
.bbs {
  border-radius: 5px;
  padding: 15px;
  margin: 15px auto;
  /* background-color: #fcfcfc; */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); */
  text-align: center;
  box-sizing: border-box;
}

.bbs h3 {
  margin-bottom: 20px;
  color: #ac2925;
  font-weight: bold;
}

.bbs img {
  margin: 10px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.bbs img:hover {
  transform: scale(1.05);
}

/* 调整赞助商区域布局 */
.avia-content-slider-element-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px auto;
  width: 100%;
}

/* 倒计时样式优化 */
.timebox2 {
  width: 100%;
  margin: 40px auto;
  text-align: center;
  /* background-color: #fcfcfc; */
  padding: 30px 0;
  border-radius: 8px;
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03); */
}

.timetext {
  margin: 0 auto;
  max-width: 700px;
}

.timecounter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.timecounter span {
  width: 23%;
  margin: 0 1%;
  padding: 15px 0;
  background-color: #ac2925;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timecounter span:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/*
Desktop Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the desktop view of your site */

@media only screen and (min-width: 768px) {
  /* Add your Desktop Styles here */
  .container {
    max-width: 85%;
    width: 85%;
  }

  /* 桌面端的赞助商区域布局 */
  .bbs[style*="width:367px"] {
    width: 45% !important;
    float: left;
    height: auto !important;
    min-height: 240px;
  }

  .bbs[style*="width:740px"] {
    width: 45% !important;
    float: right;
    height: auto !important;
    min-height: 171px;
  }
}

/*
Mobile Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the Mobile and Tablet Portrait view */

@media only screen and (max-width: 767px) {
  /* Add your Mobile Styles here */
  .container {
    max-width: 95%;
    width: 95%;
  }

  /* 移动端的赞助商区域布局 */
  .bbs {
    width: 100% !important;
    float: none !important;
    height: auto !important;
    margin: 15px auto;
  }

  .bbs img {
    height: auto;
    margin: 5px;
  }

  .timecounter span {
    width: 48%;
    margin: 5px 1%;
    font-size: 16px;
  }
}
