@charset "UTF-8";

/* ===== 顶部导航 ===== */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.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 {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

.logo a {
  color: var(--secondary);
  text-decoration: none;
}

.logo a:hover {
  color: #f39c12;
  text-decoration: none;
}

/* ===== 导航菜单 ===== */
.nav-menu {
  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 li {
  margin-left: 5px;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
}

/* ===== 移动端菜单按钮 ===== */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  margin: 6px auto;
  transition: all 0.3s ease;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  background: #e8e8e8;
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumb-inner {
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb-inner span {
  margin: 0 8px;
  color: var(--border);
}

/* ===== 分页 ===== */
.pagination {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination a:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  text-decoration: none;
}

.pagination .current {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.pagination .ellipsis {
  background: none;
  border: none;
  cursor: default;
}

/* ===== TAG标签 ===== */
.tag-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-list a {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-list a:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  text-decoration: none;
}

/* ===== 响应式导航 ===== */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
  }
  
  .nav-menu li {
    margin: 0;
    width: 100%;
  }
  
  .nav-menu a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}
