/* 文字广告位 */
#textbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  background-color: var(--main-bg-color);
  border-radius: var(--main-radius);
  padding: 15px 10px 10px 10px;
  margin-bottom: 10px;
}
#textbox a {
  text-align: center;
  text-decoration: none;
  margin: 0 5px 5px 0;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 30px) / 6);
  overflow: hidden;
  white-space: nowrap;
  border: 1px dotted var(--key-color);
  border-radius: 5px;
}
#textbox a:hover {
  color: #008080;
  text-decoration: underline;
}

@media screen and (max-width: 1200px) {
  #textbox a {
    flex: 0 0 calc((100% - 25px) / 5);
  }
}
@media screen and (max-width: 700px) {
  #textbox a {
    flex: 0 0 calc((100% - 20px) / 4);
  }
}
@media screen and (max-width: 600px) {
  #textbox a {
    flex: 0 0 calc((100% - 15px) / 3);
  }
}
@media screen and (max-width: 400px) {
  #textbox a {
    flex: 0 0 calc((100% - 10px) / 2);
  }
}
/* 横幅广告位 */
#imgbox {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  background-color: var(--main-bg-color);
  border-radius: var(--main-radius);
  padding: 10px;
  margin-bottom: 10px;
}
#imgbox a {
  height: 40px;
  margin: 5px;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 30px) / 3);
  overflow: hidden;
  border-radius: 5px;
  position: relative;
}
#imgbox a::before {
  position: absolute;
  content: "广告";
  width: 30px;
  right: 0;
  bottom: 0;
  font-size: 10px;
  text-align: center;
  color: #fff;
  padding: 1px 3px;
  background-color: rgba(0, 0, 0, 0.253);
}
#imgbox a img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

@media screen and (max-width: 1300px) {
  #imgbox a {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media screen and (max-width: 700px) {
  #imgbox a {
    flex: 0 0 calc((100% - 10px) / 1);
  }
}
