header {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  padding: 10px 0;
  font-size: 0.9rem;
  color: white;
  text-align: center;
}

.header-top .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome {
  font-weight: 500;
  letter-spacing: 1px;
}

.header-main {
  padding: 10px 0;
  background: white;
  margin-bottom: 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 250px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  background: white;
}

.logo-icon img {
  width: 40px !important;
  height: 40px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.2rem;
  color: #1a5a8a;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

.logo-text p {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
  margin-bottom: 0;
}

.contact-info1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.phone {
  font-size: 1rem;
  font-weight: bold;
  color: #1a5a8a;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 20px;
  text-decoration: none;
}

.phone i {
  margin-right: 6px;
  font-size: 1rem;
}

.online-consult {
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.online-consult i {
  margin-right: 8px;
}

.online-consult:hover {
  transform: translateY(-2px);
  color: white;
}

/* PC端导航样式 */
.main-nav {
  background-color: #1a5a8a;
  margin-bottom: 0;
  padding-bottom: 0;
}

.main-nav .container {
  position: relative;
  padding: 0 20px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-nav .nav-list li {
  margin: 0;
}

.main-nav .nav-list li a {
  color: white;
  font-weight: 600;
  padding: 15px 20px;
  display: block;
  position: relative;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.main-nav .nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.main-nav .nav-list li a:hover::after,
.main-nav .nav-list li a.active::after {
  width: 80%;
}

nav {
  background-color: #1a5a8a;
  margin-bottom: 0;
  padding-bottom: 0;
}

nav .container {
  position: relative;
  padding: 10px 20px;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: white;
  font-weight: 600;
  padding: 15px 20px;
  display: block;
  position: relative;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

nav ul li a:hover, 
nav ul li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 80%;
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  cursor: pointer;
  color: #1a5a8a;
  z-index: 1001;
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .header-main {
    padding: 5px 0;
  }
  
  .header-main .container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    position: relative;
  }
  
  .logo {
    margin-bottom: 2px;
    justify-content: center;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-icon img {
    width: 30px !important;
    height: 30px;
  }
  
  .logo-text h1 {
    font-size: 1rem;
  }
  
  .logo-text p {
    font-size: 0.6rem;
  }
  
  .contact-info1 {
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .phone {
    font-size: 0.8rem;
    margin-right: 0;
    width: auto;
    flex: 1;
    min-width: 160px;
    justify-content: center;
    padding: 4px 8px;
  }
  
  .online-consult {
    width: auto;
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
  
  nav {
    position: relative;
    background-color: #1a5a8a;
  }
  
  nav .container {
    padding: 0;
  }
  
  nav ul {
    flex-direction: column;
    background: #1a5a8a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav ul.active {
    max-height: 500px;
  }
  
  nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  nav ul li a {
    padding: 12px 20px;
    font-size: 1rem;
    text-align: left;
    color: white;
  }
  
  nav ul li a:hover, 
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1a5a8a;
    z-index: 1001;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
  }
}

@media (max-width: 576px) {
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .phone {
    font-size: 1rem;
  }
}
