header.current{ position: fixed; left: 0; top: 0; z-index: 999; border-bottom:1px solid #eee;}
/* =========================
   Header Base
========================= */
.site-header {
    width: 100%;
    background: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.header-inner {
    justify-content: space-between;
    position: relative;
}

header .logo {
    width: 115px;
    height: 42px;
    flex: 0 0 115px;
}

header .logo a {
    display: block;
    width: 115px;
    height: 42px;
    background: url(../images/logo.jpg) no-repeat center;
    background-size: contain;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    font-size: 1.1rem;
    line-height: 42px;
    padding: 0 18px;
    position: relative;
}

.site-nav li a {
    color: #222;
    text-decoration: none;
    display: block;
    transition: color 0.25s ease;
}

.site-nav li a:hover,
.site-nav li a.active {
    color: #ea0b13;
}

.site-nav li a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.header-right {
    flex: 0 0 auto;
}

.header-search-btn {
    cursor: pointer;
    font-size: 0.95rem;
    color: #222;
    transition: color 0.25s ease;
}

.header-search-btn:hover {
    color: #ea0b13;
}

.header-search-btn i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.header-language {
    margin-left: 50px;
    height: 29px;
    line-height: 29px;
    padding: 0 12px;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header-language:hover {
    background: rgba(234, 11, 19, 0.08);
    color: #ea0b13;
}

.header-language img {
    display: block;
}

.header-language em {
    padding: 0 10px;
    font-style: normal;
}


/* =========================
   PC Products Mega Menu
========================= */
.has-mega:hover .product-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-42%) translateY(0);
}

.product-mega {
    position: absolute;
    top: 58px;
    left: 50%;
    width: 920px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(234, 11, 19, 0.14);
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-42%) translateY(15px);
    transition: all 0.28s ease;
    z-index: 9999;
}

.product-mega:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 36%;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -4px -4px 12px rgba(234, 11, 19, 0.04);
}

.product-mega-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-mega-card {
    display: flex !important;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: #fafafa;
    color: #222;
    transition: all 0.25s ease;
}

.product-mega-card:hover {
    background: linear-gradient(135deg, #ea0b13 0%, #c80008 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 11, 19, 0.22);
}

.product-mega-img {
    width: 112px;
    height: 72px;
    flex: 0 0 112px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.product-mega-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-mega-info {
    padding-left: 15px;
}

.product-mega-info h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 600;
    color: #222;
}

.product-mega-info p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

.product-mega-card:hover h3 {
    color: #fff;
}

.product-mega-card:hover p {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================
   Search / Language Modal
========================= */
.header-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 0, 0, 0.62);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header-modal-mask.active {
    display: flex;
}

.header-search-modal,
.header-language-modal {
    position: relative;
    width: 520px;
    max-width: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 42px 38px 36px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: modalShow 0.28s ease both;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header-modal-close:hover {
    background: #ea0b13;
    color: #fff;
}

.header-search-modal h2,
.header-language-modal h2 {
    font-size: 28px;
    line-height: 1.2;
    color: #111;
    margin: 0 0 10px;
}

.header-search-modal p,
.header-language-modal p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 24px;
}

.header-search-box {
    display: flex;
    height: 56px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
    background: #fafafa;
}

.header-search-box input {
    flex: 1;
    height: 56px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 22px;
    font-size: 15px;
    color: #222;
}

.header-search-box input:focus {
    background: #fff;
}

.header-search-box button {
    width: 70px;
    height: 56px;
    border: none;
    background: linear-gradient(135deg, #ea0b13 0%, #c80008 100%);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

.header-search-box button:hover {
    background: linear-gradient(135deg, #c80008 0%, #a90006 100%);
}

.language-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.language-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.25s ease;
}

.language-list li:hover {
    background: linear-gradient(135deg, #ea0b13 0%, #c80008 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(234, 11, 19, 0.2);
}

.language-list span {
    font-size: 15px;
}

.language-list em {
    font-style: normal;
    font-size: 13px;
    opacity: 0.7;
}


/* =========================
   Mobile Menu Button
========================= */
.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #ea0b13;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.mobile-menu-btn i {
    margin: 0;
}

.mobile-nav-head {
    display: none;
}

.mobile-nav-mask {
    display: none;
}

/* 768以下响应式 */
@media (max-width: 768px) {
   .site-header {
          padding: 12px 0;
      }
  
      .header-inner {
          flex-wrap: nowrap;
          justify-content: space-between;
      }
  
      header .logo {
          width: 115px;
          height: 42px;
          flex: 0 0 115px;
      }
  
      .header-right {
          margin-left: auto;
          display: flex;
          align-items: center;
      }
  
      .mobile-menu-btn {
          display: inline-flex;
      }
  
      .header-search-btn {
          font-size: 0;
          width: 38px;
          height: 38px;
          border-radius: 50%;
          background: #f7f7f7;
          display: inline-flex;
          align-items: center;
          justify-content: center;
      }
  
      .header-search-btn i {
          margin: 0;
          font-size: 17px;
          color: #222; line-height: 38px;
      }
  
      .header-search-btn:hover {
          background: rgba(234, 11, 19, 0.08);
      }
  
      .header-search-btn:hover i {
          color: #ea0b13;
      }
  
      .header-language {
          margin-left: 10px;
          height: 38px;
          line-height: 38px;
          padding: 0 10px;
      }
  
      .header-language em {
          padding: 0 6px;
          font-size: 13px;
      }
  
  
      /* 手机侧边导航 */
      .site-nav {
          position: fixed;
          left: -86%;
          top: 0;
          width: 82%;
          max-width: 360px;
          height: 100vh;
          background: #fff;
          z-index: 100001;
          display: block;
          overflow-y: auto;
          transition: left 0.3s ease;
          box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
      }
  
      body.mobile-menu-open .site-nav {
          left: 0;
      }
  
      .mobile-nav-head {
          display: flex;
          align-items: center;
          justify-content: space-between;
          height: 62px;
          padding: 0 20px;
          border-bottom: 1px solid #eee;
          background: #fff;
      }
  
      .mobile-nav-head strong {
          font-size: 20px;
          color: #111;
          font-weight: 600;
      }
  
      .mobile-nav-head button {
          width: 34px;
          height: 34px;
          border: none;
          border-radius: 50%;
          background: #f5f5f5;
          color: #333;
          font-size: 16px;
          cursor: pointer;
          transition: all 0.25s ease;
      }
  
      .mobile-nav-head button:hover {
          background: #ea0b13;
          color: #fff;
      }
  
      .site-nav ul {
          display: block;
          white-space: normal;
          padding: 10px 0 28px;
      }
  
      .site-nav li {
          display: block;
          width: 100%;
          line-height: normal;
          padding: 0;
          font-size: 16px;
          border-bottom: 1px solid #f1f1f1;
      }
  
      .site-nav li a {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 17px 20px;
          color: #222;
          font-size: 16px;
          line-height: 1.4;
      }
  
      .site-nav li a:hover,
      .site-nav li a.active {
          color: #ea0b13;
          background: rgba(234, 11, 19, 0.06);
      }
  
      .site-nav li a i {
          margin-left: 8px;
          transition: transform 0.25s ease;
      }
  
      .has-mega.mobile-product-open > a {
          color: #ea0b13;
          background: rgba(234, 11, 19, 0.06);
      }
  
      .has-mega.mobile-product-open > a i {
          transform: rotate(180deg);
      }
  
  
      /* 手机产品分类 */
      .product-mega {
          position: static;
          width: 100%;
          background: #fafafa;
          border-radius: 0;
          box-shadow: none;
          padding: 0 16px 16px;
          opacity: 1;
          visibility: visible;
          transform: none;
          display: none;
          transition: none;
      }
  
      .has-mega:hover .product-mega {
          opacity: 1;
          visibility: visible;
          transform: none;
      }
  
      .has-mega.mobile-product-open .product-mega {
          display: block;
      }
  
      .product-mega:before {
          display: none;
      }
  
      .product-mega-inner {
          display: grid;
          grid-template-columns: 1fr;
          gap: 10px;
          padding-top: 4px;
      }
  
      .product-mega-card {
          display: flex !important;
          align-items: center;
          padding: 12px;
          border-radius: 12px;
          background: #fff;
          border: 1px solid #eee;
          color: #222;
          transform: none;
          box-shadow: none;
      }
  
      .product-mega-card:hover {
          background: #fff;
          color: #ea0b13;
          transform: none;
          box-shadow: 0 8px 22px rgba(234, 11, 19, 0.12);
      }
  
      .product-mega-img {
          width: 76px;
          height: 58px;
          flex: 0 0 76px;
          border-radius: 10px;
      }
  
      .product-mega-info {
          padding-left: 12px;
      }
  
      .product-mega-info h3 {
          font-size: 14px;
          margin-bottom: 4px;
          color: #222;
      }
  
      .product-mega-info p {
          font-size: 12px;
          line-height: 1.5;
          color: #666;
      }
  
      .product-mega-card:hover h3 {
          color: #ea0b13;
      }
  
      .product-mega-card:hover p {
          color: #666;
      }
  
  
      /* 手机导航遮罩 */
      .mobile-nav-mask {
          position: fixed;
          left: 0;
          top: 0;
          width: 100%;
          height: 100vh;
          background: rgba(0, 0, 0, 0.48);
          display: none;
      }
  
      body.mobile-menu-open .mobile-nav-mask {
          display: block;
      }
  
      body.mobile-menu-open {
          overflow: hidden;
      }
  
  
      /* 手机弹窗优化 */
      .header-modal-mask {
          padding: 18px;
      }
  
      .header-search-modal,
      .header-language-modal {
          width: 100%;
          padding: 36px 24px 28px;
          border-radius: 18px;
      }
  
      .header-search-modal h2,
      .header-language-modal h2 {
          font-size: 24px;
      }
  
      .language-list {
          grid-template-columns: 1fr;
      }
}