@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  .bg-gradient-blue {
    background: linear-gradient(to right, #2554a4, #30883b);
  }
}

/* 滚动新闻动画 */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.marquee-animation {
  animation: marquee 20s linear infinite;
  cursor: pointer;
}
.marquee-animation:hover {
  animation-play-state: paused;
}
.marquee-container:hover .marquee-animation {
  cursor: pointer;
  animation-play-state: paused;
}
:root {
  --green: #30883b;
  --blue: #2554a4;
  --gold: #d2ae41;
  --white: #ffffff;
  --gray: #f5f5f5;
  --dark: #333333;
}
a {
  text-decoration: none;
  color: inherit;
}

ul,
li {
  list-style: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--blue);
}

.logo span {
  color: var(--green);
}

/* 主导航 */
.main-nav {
  display: flex;
}

.nav-item {
  position: relative;
  padding: 0 10px;
  line-height: 80px;
  font-size: 16px;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  background-color: #ffffff;
}

.nav-item:hover,
.nav-item.active {
  color: var(--gold);
}

/* 下拉菜单 */
.sub-nav {
  color: var(--dark);
  position: absolute;
  top: 80px;
  left: 0;
  width: 120px;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 99;
}

.nav-item:hover .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav li {
  line-height: 45px;
  padding: 0 20px;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.sub-nav li:hover,
.sub-nav li.active {
  background: var(--gray);
  color: var(--gold);
  padding-left: 25px;
  text-align: center;
}

.focusSwiper .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #fff;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.focusSwiper .swiper-pagination-bullet-active,
.swiper-pagination-bullet-active {
  color: #fff;
  background: #2554a4;
}
/* 分页组件 */
.pagination-block {
  display: block;
  justify-content: center;
  margin-bottom: 15px;
}
.pagination {
  margin: 0;
  display: flex;
  padding-left: 0;
  list-style: none;
}
.pagination_info {
  margin-top: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #7c7c7c;
}
@media (min-width: 768px) {
  .pagination-block {
    display: flex;
  }
  .pagination_info {
    margin: 0 10px;
  }
}
.pagination li a,
.pagination li span {
  border-radius: 0 !important;
  margin-right: 8px;
  color: #7c7c7c;
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  background-color: #fff;
  border: 1px solid #2554a4;
  border-radius: 0.25rem;
  font-size: 14px;
}
.pagination li.disabled span {
  cursor: not-allowed;
}
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > li > a:hover {
  color: #fff;
  background: #2554a4;
  border: 1px solid transparent;
}

.letter-box {
  box-sizing: border-box;
  background: linear-gradient(
    45deg,
    #d2ae41 12.5%,
    #fbfaf5 12.5%,
    #fbfaf5 25%,
    #2554a4 25%,
    #2554a4 37.5%,
    #fbfaf5 37.5%,
    #fbfaf5 50%,
    #d2ae41 50%,
    #d2ae41 62.5%,
    #fbfaf5 62.5%,
    #fbfaf5 75%,
    #2554a4 75%,
    #2554a4 87.5%,
    #fbfaf5 87.5%,
    #fbfaf5 100%
  );
  background-size: 70px 70px;
}

.tab div {
  padding-bottom: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  margin-right: 20px;
  color: #666;
}
.tab .on,
.tab div:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.tag {
  float: left;
  padding: 0 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #999;
  background: #f5f5f5;
  border-radius: 3px;
}

/* Input form */
.row {
  width: 100%;
  line-height: 60px;
}
.form-group {
  display: flex;
  align-items: center;
}
.form-group label {
  display: inline-block;
  width: 80px;
  text-align: right;
}
.form-group span {
  color: red;
  margin-left: 5px;
}
.form-group input,
.form-group textarea {
  box-shadow: none;
  border: 1px solid #dadada;
  padding: 5px 20px;
  height: 40px;
  background: none;
  color: #959595;
  font-size: 14px;
  border-radius: 0;
  margin-left: 10px;
  width: 80%;
  border-radius: 5px;
}
.form-group textarea {
  height: 120px;
}
.form-control:focus {
  box-shadow: none;
  border: 1px solid #ffb600;
}
.form-group button {
  margin-right: 10px;
  margin-left: 10px;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #fff;
  background: #2554a4;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
.form-group button.reset {
  background: #999;
}
