@charset "UTF-8";

/* === nav.css - 导航+面包屑+分页 === */

/* ===== Header ===== */
.site-header {
  background-color: #0D1B2A;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  color: #F77F00;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  border-radius: 3px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #F77F00;
  background-color: rgba(247, 127, 0, 0.1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0D1B2A;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  z-index: 1001;
  border-top: 2px solid #F77F00;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:hover {
  background-color: rgba(247, 127, 0, 0.15);
  color: #F77F00;
  padding-left: 20px;
}

.dropdown-item:last-child {
  border-bottom: none;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #F77F00;
  transition: all 0.3s ease;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background-color: #08121C;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 213, 224, 0.15);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  font-size: 13px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: #666;
}

.breadcrumb-link {
  color: #F77F00;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-current {
  color: #999;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-item {
  list-style: none;
}

.page-link {
  display: block;
  padding: 8px 14px;
  background-color: #fff;
  border: 1px solid #C8D5E0;
  color: #333;
  font-size: 14px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.page-link:hover {
  background-color: #F77F00;
  color: #fff;
  border-color: #F77F00;
}

.page-item.active .page-link {
  background-color: #F77F00;
  color: #fff;
  border-color: #F77F00;
}

.page-item.disabled .page-link {
  color: #999;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: #F77F00;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #e07200;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Navigation ===== */
@media (max-width: 1023px) {
  .header-inner {
    height: 60px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #0D1B2A;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  
  .main-nav.open {
    max-height: 500px;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-list {
    flex-direction: column;
    padding: 10px;
    gap: 2px;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: 4px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    min-width: auto;
    background-color: rgba(0,0,0,0.2);
    transition: max-height 0.25s ease;
  }
  
  .nav-dropdown.open .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-item {
    padding-left: 30px;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 10px;
  }
  
  .breadcrumb-inner {
    padding: 0 10px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}
