@charset "utf-8";

/* 全站页脚（与首页第六屏同一套样式） */
#site-footer {
  width: 100%;
  flex-shrink: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #003a85;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
}

/* 独立容器类，避免与模块里 .px-wrap 冲突 */
#site-footer .site-footer__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

/* 主内容区：左栏校名联系 + 右栏快速链接（两栏，与首页第六屏一致） */
#site-footer .site-footer__main {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 56px;
  align-items: center;
  padding: 16px 0 12px;
  min-height: 0;
}

/* 左栏 */
.site-footer__col--brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
}

.site-footer__brand:hover {
  opacity: 0.92;
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.site-footer__name {
  font-family: "STKaiti", "KaiTi", "楷体", "FangSong", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-footer__name-en {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  text-transform: uppercase;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer__contact li + li {
  margin-top: 2px;
}

/* 中栏：校训石刻 */
.site-footer__col--motto {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.site-footer__motto {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 200px;
}

.site-footer__motto-text {
  margin: 0;
  padding: 14px 20px 18px;
  font-family: "STKaiti", "KaiTi", "楷体", "FangSong", serif;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(0, 60, 130, 0.35) 0%, rgba(0, 40, 90, 0.5) 100%);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 右栏：快速链接 */
#site-footer .site-footer__col--links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  width: auto;
  min-width: 0;
}

.site-footer__links-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}

.site-footer__links-icon {
  opacity: 0.85;
  flex-shrink: 0;
}

#site-footer .site-footer__links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: 20px;
  row-gap: 8px;
}

.site-footer__links-grid li {
  margin: 0;
}

.site-footer__links-grid a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-footer__links-grid a:hover {
  color: #fff;
}

.site-footer__links-grid a.is-highlight {
  color: #ebc94a;
}

.site-footer__links-grid a.is-highlight:hover {
  color: #f5dc6e;
}

/* 底栏 */
.site-footer__bar {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 0 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.88);
  transition: opacity 0.2s;
}

.site-footer__social-btn:hover {
  opacity: 0.75;
}

.site-footer__social-btn svg {
  width: 22px;
  height: 22px;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  text-align: center;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #fff;
}

.site-footer__sep {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.site-footer__beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-footer__counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.site-footer__counter svg {
  opacity: 0.85;
}

@media (max-width: 1100px) {
  #site-footer .site-footer__main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 14px;
  }

  #site-footer .site-footer__col--links {
    justify-self: start;
    width: 100%;
  }

  #site-footer .site-footer__links-grid {
    grid-template-columns: repeat(4, max-content);
    column-gap: 20px;
  }
}

@media (max-width: 768px) {
  #site-footer .site-footer__wrap {
    padding: 0 20px;
  }

  #site-footer .site-footer__main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 14px;
  }

  #site-footer .site-footer__links-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
  }

  .site-footer__bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 4px;
  }

  .site-footer__sep {
    display: none;
  }

  .site-footer__counter {
    justify-content: center;
  }
}
