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

/* === Header === */
.header { background: var(--primary); position: relative; z-index: 1000; }
.header-inner { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; height: 70px; }

/* Logo */
.logo { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--secondary); letter-spacing: 2px; }
.logo-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-left: 10px; }

/* Navigation */
.nav { display: -webkit-box; display: -webkit-flex; display: flex; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 0 18px; height: 70px; line-height: 70px; color: var(--white); font-size: 15px; transition: all 0.3s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--secondary); background: rgba(255,255,255,0.05); }

/* 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; transition: all 0.3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* === Breadcrumb === */
.breadcrumb { background: var(--dark); padding: 15px 0; }
.breadcrumb-list { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 13px; }
.breadcrumb-item a { color: var(--secondary); transition: color 0.3s; }
.breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-separator { margin: 0 8px; color: rgba(255,255,255,0.3); }
.breadcrumb-item.active { color: rgba(255,255,255,0.8); }

/* === Pagination === */
.pagination { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-top: 40px; }
.page-item { margin: 0 4px; }
.page-link { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 14px; transition: all 0.3s; background: var(--white); }
.page-link:hover, .page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-link.disabled { opacity: 0.4; cursor: not-allowed; }

/* === Back to Top === */
.back-to-top { position: fixed; bottom: 40px; right: 40px; width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: 50%; text-align: center; line-height: 44px; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* === Footer === */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -20px; }
.footer-col { padding: 0 20px; width: 33.333%; }
.footer-title { font-size: 16px; color: var(--secondary); margin-bottom: 20px; font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.footer-contact i { color: var(--secondary); margin-right: 8px; display: inline-block; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-beian { color: rgba(255,255,255,0.5); }
.footer-beian:hover { color: var(--secondary); }

/* === Responsive === */
@media screen and (max-width: 1024px) {
  .nav-link { padding: 0 12px; font-size: 14px; }
  .footer-col { width: 50%; margin-bottom: 30px; }
}

@media screen and (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; width: 100%; background: var(--dark); display: none; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; }
  .nav.active { display: -webkit-box; display: -webkit-flex; display: flex; }
  .nav-item { width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
  .nav-link { height: 48px; line-height: 48px; padding: 0 20px; }
  .footer-col { width: 100%; }
  .back-to-top { right: 20px; bottom: 20px; width: 40px; height: 40px; line-height: 40px; }
  .footer-grid { margin: 0; }
  .footer-col { padding: 0; }
}
