/* 弘毅养正 - 统一头部样式 */

/* 确保body无外边距 */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 顶部信息栏 */
.top-bar {
  background: linear-gradient(135deg, #147048 0%, #1B8B5A 50%, #2AA670 100%) !important;
  color: #fff;
  font-size: 13px;
  padding: 10px 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1001;
}
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-bar-left a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.top-bar-left a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.top-bar-left a:hover::before {
  left: 100%;
}
.top-bar-left a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.top-bar-left a .icon {
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.top-bar-right {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-right::before {
  content: '👋';
  font-size: 14px;
}

/* 导航头部 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  height: 72px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
}
.header-inner { 
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  gap: 24px; 
  width: 100%;
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-shrink: 0; 
  text-decoration: none; 
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1B8B5A, #2AA670);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 20px; font-weight: 800; color: #1a1a2e; line-height: 1.2; }
.logo-name span { color: #1B8B5A; }
.logo-tagline { font-size: 11px; color: #999; }

/* 导航链接 */
.nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-link:hover,
.nav-link.active { 
  color: #1B8B5A; 
  background: #f0faf5;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}
.dropdown a:hover { background: #f0faf5; color: #1B8B5A; }
.dropdown .dd-title { font-weight: 600; }
.dropdown .dd-desc { font-size: 11px; color: #999; }
.dropdown .dd-icon { font-size: 14px; }

/* 头部操作按钮 */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1B8B5A;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f0faf5;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.header-phone:hover { background: #e0f5ec; }
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1B8B5A, #2AA670);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(27,139,90,0.25);
}
.header-cta:hover { 
  background: linear-gradient(135deg, #147048, #1B8B5A);
  box-shadow: 0 4px 12px rgba(27,139,90,0.35);
  transform: translateY(-1px);
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  border: none;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #333; border-radius: 2px; transition: all 0.2s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 9999 !important;
  padding: 0 0 100px;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-menu.open { transform: translateX(0); }

/* 移动端关闭按钮 */
.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 12px 16px;
  border-radius: 8px;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  transition: all 0.2s;
}
.mobile-close-btn:active {
  background: #e0e0e0;
  color: #333;
}

/* 移动端导航项 */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-height: 56px;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}
.mobile-nav-link:active { 
  background: #f0faf5;
  color: #1B8B5A;
}

/* 移动端箭头 */
.mobile-nav-arrow {
  font-size: 12px;
  color: #999;
  transition: transform 0.3s;
}
.mobile-nav-toggle.active .mobile-nav-arrow {
  transform: rotate(180deg);
}

/* 移动端子菜单 */
.mobile-nav-group {
  border-bottom: none;
}
.mobile-sub-menu {
  display: none;
  background: #f8f9fa;
  padding: 0;
}
.mobile-sub-menu.open {
  display: block;
}
.mobile-sub-link {
  display: flex;
  align-items: center;
  padding: 14px 24px 14px 48px;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #e8e8e8;
  min-height: 50px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 400;
}
.mobile-sub-link:last-child {
  border-bottom: none;
}
.mobile-sub-link:active {
  background: #e0f5ec;
  color: #1B8B5A;
  font-weight: 500;
}

/* 移动端底部按钮 */
.mobile-cta { 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  margin-top: 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1B8B5A;
  background: #f0faf5;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-phone-btn:active {
  background: #e0f5ec;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1B8B5A, #2AA670);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(27,139,90,0.25);
  transition: all 0.2s;
}
.mobile-cta-btn:active {
  background: linear-gradient(135deg, #147048, #1B8B5A);
}

/* 响应式 - 头部 */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 8px; font-size: 13px; }
  .header-phone { padding: 6px 12px; font-size: 14px; }
  .header-cta { padding: 8px 18px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .header-actions .header-phone { display: none; }
  .header-inner { gap: 16px; }
}

@media (max-width: 768px) {
  .top-bar { padding: 8px 0; font-size: 11px; }
  .top-bar-inner { flex-direction: column; gap: 4px; }
  .top-bar-left { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .top-bar-left a { gap: 3px; font-size: 11px; padding: 3px 6px; }
  .top-bar-left a .icon { font-size: 12px; }
  .top-bar-right { font-size: 11px; }
  .top-bar-right::before { font-size: 12px; }
  .header { height: 60px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .logo-name { font-size: 18px; }
  .logo-tagline { display: none; }
  .mobile-menu { top: 0; }
  .header-cta { padding: 8px 16px; font-size: 13px; }
  .mobile-nav-link { padding: 16px 20px; font-size: 15px; }
  .mobile-sub-link { padding: 12px 20px 12px 40px; font-size: 14px; }
}
