/* nav.css - 导航+面包屑+分页 */
/* 太原市斯航网络科技有限公司 - 导航样式 */

/* ===== 顶部导航栏 ===== */
.site-header {
  background-color: #3E2723;
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.site-logo {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  color: #4DB6AC;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-logo:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* 导航菜单 */
.site-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0 1.125rem;
  color: #4DB6AC;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 70px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #FFFFFF;
  background-color: rgba(77, 182, 172, 0.15);
  text-decoration: none;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #4DB6AC;
  position: relative;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.menu-icon:before,
.menu-icon:after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: #4DB6AC;
  position: absolute;
  left: 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.menu-icon:before {
  top: -7px;
}

.menu-icon:after {
  top: 7px;
}

/* ===== 面包屑 ===== */
.breadcrumb-wrap {
  background-color: #F5F2F0;
  border-bottom: 1px solid #D5CFCB;
}

.breadcrumb {
  padding: 0.625rem 0;
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: #666666;
  list-style: none;
}

.breadcrumb li {
  display: inline;
  margin-bottom: 0;
}

.breadcrumb a {
  color: #4DB6AC;
}

.breadcrumb a:hover {
  color: #3E2723;
}

.breadcrumb-separator {
  margin: 0 0.375rem;
  color: #D5CFCB;
}

/* ===== 分页样式 ===== */
.pagination-wrap {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.pagination-list {
  display: inline-block;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.pagination-list li {
  display: inline-block;
  margin: 0 0.25rem;
  margin-bottom: 0;
}

.pagination-list a,
.pagination-list span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid #D5CFCB;
  color: #333333;
  font-size: 0.875rem;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.pagination-list a:hover {
  background-color: #4DB6AC;
  color: #FFFFFF;
  border-color: #4DB6AC;
  text-decoration: none;
}

.pagination-list .current {
  background-color: #3E2723;
  color: #FFFFFF;
  border-color: #3E2723;
}

.pagination-list .dots {
  border: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: #3E2723;
  color: #FFFFFF;
  text-align: center;
  line-height: 44px;
  font-size: 1.25rem;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 999;
  -webkit-box-shadow: 0 2px 8px rgba(38, 26, 23, 0.3);
  -moz-box-shadow: 0 2px 8px rgba(38, 26, 23, 0.3);
  box-shadow: 0 2px 8px rgba(38, 26, 23, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #4DB6AC;
  color: #FFFFFF;
  text-decoration: none;
}

/* ===== 响应式导航 ===== */
@media screen and (max-width: 1023px) {
  .menu-toggle {
    display: block;
  }
  
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #3E2723;
    display: none;
    border-top: 1px solid rgba(77, 182, 172, 0.2);
  }
  
  .site-nav.open {
    display: block;
  }
  
  .nav-menu {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0.5rem 0;
  }
  
  .nav-menu a {
    line-height: 48px;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(77, 182, 172, 0.1);
  }
  
  .nav-menu li:last-child a {
    border-bottom: none;
  }
}

/* ===== TAG标签 ===== */
.tag-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.tag-list li {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  margin-bottom: 0.5rem;
}

.tag-list a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: #F5F2F0;
  border: 1px solid #D5CFCB;
  color: #666666;
  font-size: 0.8125rem;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.tag-list a:hover {
  background-color: #4DB6AC;
  color: #FFFFFF;
  border-color: #4DB6AC;
  text-decoration: none;
}
