@charset "UTF-8";

/* ===== nav.css - 导航+面包屑+分页（全局加载） ===== */

/* ===== Header & Navigation ===== */
.header {
  background: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--secondary);
}

/* Main Nav */
.main-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;
}

.main-nav li {
  margin-left: 2px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
  background: rgba(255,255,255,0.08);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

/* Mobile Navigation */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--primary-dark);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
    z-index: 999;
  }
  .main-nav.open {
    left: 0;
  }
  .main-nav li {
    margin: 0 0 5px 0;
    width: 100%;
  }
  .main-nav a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--primary-dark);
  padding: 15px 0;
  margin-top: 70px;
}

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

.breadcrumb-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.breadcrumb-list li {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.breadcrumb-list li + li::before {
  content: ">";
  margin: 0 10px;
  color: var(--secondary);
}

.breadcrumb-list a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-list a:hover {
  color: var(--secondary);
}

/* ===== Pagination ===== */
.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: 50px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  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: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.25rem;
}

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

.back-to-top:hover {
  background: var(--secondary);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 20px;
    right: 15px;
    font-size: 1rem;
  }
}
