/* ==========================================
    全局样式初始化
    ========================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
strong{
  color: #000;
}

a {
  text-decoration: none;
  color: #1a1a1a;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}
li{
  list-style: none;
}


/* ==========================================
   导航栏样式
   ========================================== */
.navbar-logo {
  padding: 15px;
  color: #1a1a1a;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-logo span {
  font-size: 2rem;
  font-weight: bold;
  font-family: "楷体";
}

.navbar-logo img {
  height: 60px;
  object-fit: contain;
}

.navbar-mainbg {
  background-color: #0a5aa8;
  padding: 0px;
}

#navbarSupportedContent {
  overflow: hidden;
  position: relative;
  background-color: #0a5aa8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#navbarSupportedContent.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 为固定导航栏预留空间，避免内容跳动 */

#navbarSupportedContent ul {
  padding: 0px;
  margin: 0px;
}

#navbarSupportedContent ul li a i {
  margin-right: 10px;
}

#navbarSupportedContent li {
  list-style-type: none;
  float: left;
}

#navbarSupportedContent ul li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 20px 20px;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

#navbarSupportedContent > ul > li.active > a {
  color: #0a5aa8;
  background-color: transparent;
  transition: all 0.7s;
}

.hori-selector {
  display: inline-block;
  position: absolute;
  height: 100%;
  top: 0px;
  left: 0px;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background-color: #f5f5f5;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: 10px;
}

.hori-selector .right,
.hori-selector .left {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #f5f5f5;
  bottom: 10px;
}

.hori-selector .right {
  right: -25px;
}

.hori-selector .left {
  left: -25px;
}

.hori-selector .right:before,
.hori-selector .left:before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0a5aa8;
}

.hori-selector .right:before {
  bottom: 0;
  right: -25px;
}

.hori-selector .left:before {
  bottom: 0;
  left: -25px;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 10px;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }

  #navbarSupportedContent {
    padding: 0;
  }

  #navbarSupportedContent ul li {
    float: none;
  }

  .hori-selector {
    margin: 0;
    border-radius: 0;
  }

  .hori-selector .left,
  .hori-selector .right {
    right: 0;
  }
}

/* ==========================================
   页脚样式
   ========================================== */
.footer {
  background: #0a5aa8;
  color: white;
  padding: 0;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer-main {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 5px 0;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s;
  padding: 5px 10px;
  border-radius: 8px;
}

.footer-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.current-time {
  color: #ffd700;
  font-weight: bold;
}


/* 移动端 优化导航栏细节处理 */
@media (max-width: 768px) {

  #navbarSupportedContent ul li a{
    padding: 10px;
    font-size: 14px;
  }
}