/* LJSAFE 头部导航样式 - 统一设计 */

/* 头部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.logo-section .main-logo {
  height: 50px;
  width: auto;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1003;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
  }
}

/* PC端强制隐藏移动端菜单 */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
  }
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

/* 汉堡菜单动画效果 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #0066cc;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #0066cc;
}

/* 桌面端导航菜单 */
.main-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.1);
}

/* 移动端导航菜单覆盖层 */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff !important;
  background-color: #ffffff !important;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  border-left: 2px solid #dedede;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.mobile-logo {
  height: 40px;
  width: auto;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.mobile-nav-menu li {
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.05) !important;
  border-left-color: #0066cc;
}

/* 防止页面滚动 */
body.nav-open {
  overflow: hidden;
}

/* 页面内容区域 */
.page-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动端显示汉堡菜单，隐藏桌面导航 */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  /* 移动端导航菜单优化 */
  .mobile-nav-content {
    width: 100%;
    max-width: none;
  }
}

/* 页面banner区域 */
.page-banner {
  width: 100%;
  height: 298px;
  overflow: hidden;
  position: relative;
  margin-top: 80px;
  background: #f8f9fa;
}

.page-banner picture, 
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 54, 93, 0.7), rgba(44, 90, 160, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  color: white;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 面包屑导航 */
.breadcrumb {
  background: #f8f9fa;
  padding: 15px 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

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

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  color: #999;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #0066cc;
}

.breadcrumb-current {
  color: #0066cc;
  font-weight: 500;
}

/* 响应式banner */
@media (max-width: 991px) {
  .page-banner {
    height: 300px;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .page-banner {
    height: 80px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
}
