/* 轮播 */
.banner-box {
  width: 100%;
  height: 33vw;
  min-height: 160px;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
  height: 100%;
}

.title {
  font-size: 30px;
  line-height: 60px;
  color: #261c44;
}

.sub-title {
  font-size: 18px;
  line-height: 22px;
  color: #494180;
  letter-spacing: 0.1rem;
}

/* 大赛流程 */
.dasai-liucheng {
  /*background-color: #f5f8ef;*/
  color: #333;
  /*background-image: url(/static/image/login_bg.png);*/
  box-shadow: 0 -2px 7px 5px rgba(0, 0, 0, 0.1);
}

.dasai-title .fa {
  line-height: 24px;
  font-size: 22px;
  margin-right: 5px;
}

.dasai-title .title-text {
  font-weight: 500;
  font-size: 17px;
}

.liucheng-item {
  width: 120px;
}

.liucheng-item-num {
  width: 56px;
  height: 56px;
  line-height: 56px;
  font-size: 20px;
  border-radius: 50%;
  font-weight: 400;
  color: #008718;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.34);
}

.liucheng-item-title {
  font-weight: 700;
  height: 60px;
}

/* 大赛动态、优秀项目展示 */
.dongtai-item,
.xiangmu-item,
.school-item {
  flex: 0 0 25%;
}

.dongtai-item-content {
  width: 230px;
  border-radius: 8px;
  transition: all 0.5s;
}

.dongtai-item-content:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
  transform: scale(1.1);
  font-size: 11px;
}

.dongtai-item-content .image {
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.dongtai-item-text,
.xiangmu-item-text {
  width: 100%;
  height: 56px;
  line-height: 18px;
  font-size: 13px;
  text-align: justify;
  color: #666;
  padding: 0 10px;
  margin: 6px 0;
  letter-spacing: 0.03rem;
}

.xiangmu-item-content .image {
  height: 254px;
  border-radius: 8px;
  object-fit: cover;
}

.xiangmu-item-title {
  font-weight: bolder;
}

.xiangmu-item-content {
  width: 230px;
  height: 380px;
  position: relative;
  border-radius: 8px;
  transition: all 0.5s;
}

.xiangmu {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* 隐藏翻转的背面 */
  transition: transform 0.6s ease-in-out; /* 平滑翻转动画 */
}

.xiangmu-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.xiangmu-back {
  transform: rotateY(180deg); /* 背面旋转180度 */
  z-index: 1;
  height: 100%;
  padding: 10px;
  border-radius: 8px;
}

.xiangmu-item-content:hover .xiangmu-front {
  z-index: 1;
  transform: rotateY(180deg) scale(1.2);
}

.xiangmu-item-content:hover .xiangmu-back {
  z-index: 2;
  transform: rotateY(0deg);
  transition: all 0.5s;
}

.xiangmu-item-date {
  font-size: 13px;
  text-align: justify;
  color: #666;
  margin: 6px 0;
  padding: 0 10px;
}

/* 竞赛列表 */
.jingsai-box {
  width: 100%;
  background-color: #ebeefe;
  padding: 60px 0;
}

.jingsai-list {
  margin-top: 35px;
  padding: 50px;
  border-radius: 30px;
  background-color: #caccf4;
}

.jingsai-item:not(:first-child) {
  margin-top: 35px;
}

.jingsai-item-img {
  flex: 0 0 calc(50% - 15px);
  padding: 8px;
  border-radius: 12px;
}

.jingsai-item-img .img {
  width: 100%;
  max-height: 280px;
  border-radius: 10px;
}

.jingsai-item .title {
  font-size: 22px;
}

.jingsai-item .sub-title {
  font-size: 14px;
}

/* 通知公告 */
.tongzhigonggao {
  width: 100%;
  padding: 60px 0;
}

.tongzhigonggao-swiper {
  width: 100%;
  height: 320px;
  margin-top: 50px;
}

.tongzhigonggao-swiper .swiper {
  width: 100%;
  height: 320px;
  position: relative;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gonggao-item {
  width: 90%;
  height: 260px;
  background-color: #f4f0e8;
  border-radius: 8px;
  padding: 15px 20px;
  text-align: left;
}

.yinhao {
  line-height: 30px;
  font-size: 30px;
  color: #ff7327;
  margin-bottom: 10px;
}

.gonggao-item .content {
  height: 160px;
  line-height: 20px;
  font-size: 15px;
  overflow: scroll;
}

.gonggao-item .date {
  font-size: 12px;
  line-height: 20px;
}

.swiper-btn-box {
  width: 80px;
  height: 16px;
  position: absolute;
  right: 100px;
  bottom: 5px;
}

.swiper-btn-box .swiper-button-next,
.swiper-btn-box .swiper-button-prev {
  color: #333;
}

.swiper-btn-box .swiper-button-prev:after,
.swiper-btn-box .swiper-button-next:after {
  font-size: 16px;
  width: 30px;
  height: 16px;
}

/* 报名入口 */
.baoming-box {
  width: 100%;
  height: 120px;
  position: relative;
}

.baoming-box .baoming-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.baoming-list {
  position: relative;
  z-index: 9;
  padding-top: 15px;
}

.baoming-box .baoming-icon {
  width: 100px;
  height: 90px;
}

.baoming-box .sai-name {
  line-height: 35px;
  font-size: 23px;
  font-weight: 600;
  color: #a17e6a;
  letter-spacing: 0.1rem;
}

.baoming-box .rukou-text {
  line-height: 45px;
  font-size: 28px;
  font-weight: bolder;
  color: #8a5f48;
  letter-spacing: 0.1rem;
  margin-top: 5px;
}

.baoming-box .rukou-text .fa-chevron-circle-right {
  margin-left: 15px;
}

/* / 报名入口 */

/* 学校列表 */
.school-list {
  background-color: #f0f9ff;
}

.school-list .school-item {
  background-color: #fff;
  border: 1px solid #3b9bfc;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.school-list .school-item-img {
  width: calc(100% - 10px);
  height: 60px;
  min-height: 60px;
  margin: 0 auto;
  padding: 10px 0;
}

.school-list .school-item-name {
  width: 100%;
  height: 38px;
  line-height: 38px;
  font-size: 16px;
  color: #fff;
  background-color: #3b9bfc;
  padding: 0 10px;
}

.school-list .school-item-logo-btn {
  cursor: pointer;
  display: none;
}

.school-item:hover .school-item-name {
  display: none;
}

.school-item:hover .school-item-logo-btn {
  display: block;
  color: #fff;
}

/* / 学校列表 */

@media (max-width: 576px) {
  .dasai-title .fa {
    line-height: 22px;
    font-size: 15px;
  }

  .dasai-title .title-text {
    font-weight: 500;
    font-size: 15px;
  }

  .dasai-title .title-en {
    font-size: 12px;
  }

  .more-btn {
    font-size: 13px;
  }

  .title {
    font-size: 23px;
    line-height: 50px;
  }

  .sub-title {
    font-size: 15px;
    line-height: 20px;
  }

  .baoming-box {
    height: 76px;
  }

  .baoming-box .sai-name {
    line-height: 20px;
    font-size: 12px;
  }

  .baoming-box .rukou-text {
    line-height: 24px;
    font-size: 16px;
  }

  .baoming-box .rukou-text .fa-chevron-circle-right {
    margin-left: 5px;
  }

  .baoming-box .baoming-icon {
    width: 50px;
    height: 45px;
  }

  .liucheng-item {
    width: 80px;
  }

  .liucheng-item-num {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    margin-bottom: 10px !important;
  }

  .liucheng-item-title {
    font-size: 12px;
    height: 30px;
  }

  /* 主官网 - 赛事 */
  .jingsai-box {
    padding: 40px 0;
  }

  .jingsai-list {
    margin-top: 25px;
    padding: 40px 35px;
    border-radius: 20px;
  }

  .jingsai-item-img {
    padding: 4px;
    border-radius: 8px;
  }

  .jingsai-item-img .img {
    border-radius: 6px;
  }

  .jingsai-item .title {
    font-size: 15px;
    line-height: 26px;
  }

  .jingsai-item .sub-title {
    font-size: 11px;
  }
}

@media (max-width: 991px) {
  .header-box .navbar #navbarNav {
    position: absolute;
    top: 70px;
    left: 1rem;
    width: calc(100% - 2rem);
  }
}


/* =============================================
   首页背景色
   ============================================= */
body {
  background-color: #f0f4fa;
}

/* 注意：不要在这里重置 .row，Bootstrap 的 .row 是全局的，改了会影响所有页面 */


/* =============================================
   三大入口区 — 白色通栏横条，图标方块，悬停下划线动画
   ============================================= */
.rukou-wrap {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e6ecf5;
}
.rukou-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}
.rukou-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 20px;
  color: #5a6882;
  font-size: 14px;
  font-weight: 500;
  border-right: 1px solid #e6ecf5;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color .25s, background .25s;
}
.rukou-item:last-child { border-right: none; }
/* 底部滑入渐变线 */
.rukou-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2e7de0, #56b4f5);
  transition: width .3s;
}
.rukou-item:hover::before { width: 56%; }
.rukou-item:hover {
  color: #2e7de0;
  background: linear-gradient(180deg, rgba(46,125,224,.05) 0%, #fff 100%);
}
/* 图标方块 */
.rukou-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #2e7de0;
  transition: all .25s;
}
.rukou-item:hover .rukou-icon {
  background: linear-gradient(135deg, #2e7de0 0%, #56b4f5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,125,224,.38);
  transform: translateY(-3px);
}

/* 旧结构兼容：如果HTML还在用Bootstrap col+card，兜底展示 */
.yr-rukou-cont .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex-wrap: unset;
}
.yr-rukou-cont .col-sm-4 {
  max-width: 100%;
  flex: none;
  padding: 0;
}

@media (max-width: 576px) {
  .rukou-grid { gap: 0; }
  .rukou-item { padding: 20px 10px; gap: 6px; }
  .rukou-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
  .yr-rukou-cont .row { gap: 8px; }
}

/* =============================================
   热门赛事区块标题（蓝色渐变方块图标）
   ============================================= */
.w-sai-title {
  margin-bottom: 24px;
}

/* 主标题行：方块图标 + 文字 */
.w-sai-title .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

/* 蓝色渐变方块图标盒子 */
.w-sai-title .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2e7de0 0%, #56b4f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

/* 标题文字 */
.w-sai-title .title-text {
  font-size: 22px;
  font-weight: 700;
  color: #1a2a4a;
  letter-spacing: 1px;
  line-height: 1;
}

/* 英文副标题 */
.w-sai-title .title-en {
  font-size: 12px;
  color: #aab4c8;
  letter-spacing: 3px;
  padding-left: 44px; /* 与方块图标宽度+间距对齐 */
  text-transform: uppercase;
}


/* =============================================
   热门赛事卡片区 — CSS Grid 布局，悬停上浮，图片渐变遮罩
   ============================================= */
.race-cards-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Grid 布局：PC 三列 */
.race-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 覆盖旧的 flex-col 规则，同时设为 flex 容器让子元素填满 */
.race-card-col {
  padding: 0;
  margin-bottom: 0;
  max-width: 100%;
  flex: none;
  display: flex;
}

/* 卡片 — flex:1 确保同排所有卡片等高，无论标题换行与否 */
.race-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6ecf5;
  box-shadow: 0 2px 12px rgba(186, 202, 229, 0.35);
  overflow: hidden;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  text-decoration: none;
}
.race-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(21, 87, 176, 0.15);
  border-color: #2e7de0;
  text-decoration: none;
}

/* 封面图：16:9 */
.race-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #c8daf8 0%, #e8f0fe 100%);
  flex-shrink: 0;
}
.race-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.race-card:hover .race-card-img img {
  transform: scale(1.05);
}
/* 图片底部渐变遮罩 */
.race-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 24, 60, .13) 100%);
  pointer-events: none;
}

/* 卡片正文 */
.race-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.race-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.race-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: auto;
  gap: 8px;
}
.race-card-meta i {
  color: #2e7de0;
  margin-right: 4px;
}

/* 标签 */
.race-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(46,125,224,.12) 0%, rgba(86,180,245,.10) 100%);
  color: #1557b0;
  border: 1px solid rgba(46,125,224,.18);
}

/* 响应式 */
@media (max-width: 991px) {
  .race-cards-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .race-cards-row { grid-template-columns: 1fr; }
}
