@charset "utf-8";
/* CSS Document */



    :root {
      --primary: #004080;
      --primary-dark: #c6252c;
      --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* 更丝滑的缓动函数 */
    }
/*
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: system-ui, sans-serif;
    }*/

    .navbar {
      background: var(--primary);
      color: white;
      position: relative;
      z-index: 1000;
	  height:140px; background:#fff;
    }

    .nav-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 140px;
    }

    .logo {
      font-size: 1.6rem;
      font-weight: 700;
    }
	
@media (max-width: 750px) {
	.navbar { height:80px;}
    .nav-container { height:80px;}
	.logo img { width:200px;}
}


    /* PC 菜单 */
    .nav-menu {
      display: flex;
      list-style: none;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      color: #000;
	  font-size:1.125rem;/*18px*/
      text-decoration: none;
      padding: 20px 20px;
      line-height: 1;
      display: block;
      transition: background 0.25s;
	  position:relative;

    }
	
	.nav-link.on {
		border-bottom:4px solid #c6252c;
	}
    
    .nav-link:hover {
	    color:#c6252c;
		transition: all .3s cubic-bezier(.25,.5,.55,.95);
    }
    .nav-link:hover:before { width:100%; height:4px; background-color:#c6252c; content:""; position:absolute; bottom:0; left:0; right:0;}

    .dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      color: #333;
      min-width: 220px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
      border-bottom-left-radius: 6px;
      border-bottom-right-radius: 6px;
      border-top-right-radius: 6px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: var(--transition);
	  overflow:hidden;
    }

    .nav-item:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown a {
      display: block;
      padding: 12px 20px;
      color: #333;
      text-decoration: none;
    }

    .dropdown a:hover {
      background: #c6252c;
	  color:#fff;
    }

    /* 图标区 */
    .icons {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .search-icon {
      font-size: 1.5rem;
      cursor: pointer;
	  background:url(../images/001.png) no-repeat center top;
	  width:20px; height:20px;
    }

    /* 搜索框 */
    .search-box {
      position: absolute;
      top: 100%;
      right: 0;
	  left:0;
      background: white;
      padding: 16px;
	  border-bottom-left-radius: 8px;
	  border-bottom-right-radius: 8px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity var(--transition), transform var(--transition);
      z-index: 999;
    }

    .search-box.active {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .search-box input {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    /* 汉堡按钮 - 改为类似效果1的三横杠 */
    .hamburger {
      display: none;
      width: 44px;
      height: 44px;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      padding: 0;
      z-index: 1002;
    }

    .hamburger span {
      display: block;
      width: 24px;
      height: 3px;
      background: #000;
      border-radius: 2px;
      transition: var(--transition);
    }

    /* 汉堡按钮动画 - 改为效果1的旋转动画 */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* 移动端菜单 - 改为从右侧滑入 */
    .mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      opacity: 0;
      visibility: hidden;
      transition: opacity var(--transition), visibility var(--transition);
      z-index: 998;
    }

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

    .mobile-menu {
      position: fixed;
      top: 0;

      right: -300px;          /* 隐藏在右边 */
      width: 300px;
      height: 100%;
      background: #1a1a1a;
      color: white;
      transition: right var(--transition);
      z-index: 999;
      padding-top: 80px;
      overflow-y: auto;
    }

    .mobile-menu.active {
      right: 0;
    }

    /* 移动菜单项样式 - 采用效果1的风格 */
    .mobile-item {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-item a {
      color: #ddd;
      text-decoration: none;
      display: block;
      padding: 16px 24px;
      font-size: 1.1rem;
      transition: all 0.2s;
    }

    .mobile-item a:hover {
      background: rgba(255,255,255,0.08);
      color: white;
      padding-left: 32px;
    }

    /* 子菜单样式 */
    .mobile-submenu {
      background: rgba(0,0,0,0.2);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.45s ease;
    }

    .mobile-submenu.active {
      max-height: 800px;
    }

    .mobile-submenu a {
      padding: 14px 40px;
      font-size: 1rem;
      color: #bbb;
    }

    .mobile-submenu a:hover {
      padding-left: 48px;
    }

    .has-submenu > a {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .has-submenu > a::after {
      content: "▼";
      font-size: 0.8rem;
      transition: transform 0.35s;
      color: #aaa;
    }

    .has-submenu > a.active::after {
      transform: rotate(180deg);
      color: white;
    }

    @media (max-width: 768px) {
      .nav-menu,
      .search-icon:not(#searchToggle) {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .search-box {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 92%;
      }

      .search-box.active {
        transform: translateX(-50%) translateY(0);
      }

      .search-box input {
        width: 100%;
      }
    }

    /* 内容区域（示例） */
    .content {
      padding: 80px 20px 40px;
      min-height: 200vh;
      color: #333;
    }

    .content h1 {
      margin-bottom: 20px;
    }
