/*
 * LoongValve brand refresh.
 * Public header/footer HTML remains unchanged; desktop presentation is overridden here.
 */

@media (min-width: 769px) {
  :root {
    --c1: #062d55;
    --c2: #086bff;
    --loong-navy: #062d55;
    --loong-blue: #086bff;
    --loong-sky: #38a9ff;
    --loong-steel: #657487;
  }

  .garment-header {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    background: rgba(3, 22, 42, 0.16);
    backdrop-filter: blur(8px);
  }

  .garment-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(6, 45, 85, 0.1);
    box-shadow: 0 12px 34px rgba(6, 45, 85, 0.1);
  }

  .garment-logo {
    width: 224px;
    height: 62px;
  }

  .garment-logo img {
    object-fit: contain !important;
    object-position: left center;
  }

  .garment-nav > a::after,
  .dropdown-trigger::after {
    background: var(--loong-blue);
  }

  .zw {
    height: 0 !important;
  }

  .dibu {
    min-height: 360px;
    padding-top: 58px;
    background-image:
      linear-gradient(90deg, rgba(2, 17, 32, 0.98) 0%, rgba(2, 23, 43, 0.94) 42%, rgba(3, 30, 57, 0.8) 100%),
      url('../img/home-20260916/footer-valve-production.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .dibu .bls {
    display: none !important;
  }

  .dibu .footer-l .logo {
    width: 230px;
    height: 72px;
  }

  .dibu .footer-l .logo img {
    object-fit: contain !important;
    object-position: left center;
  }

  .dibu .footer-r h3,
  .dibu .footer-r a:hover {
    color: #68c5ff;
  }
}

.contact-panel::before {
  background-image: url('../img/loongvalve/mark-square.png') !important;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #38a9ff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .garment-header .logo-light {
    opacity: 0 !important;
  }

  .garment-header .logo-dark {
    opacity: 1 !important;
  }
}

/*
 * The legacy mobile homepage was authored for 700px. Extend that same
 * presentation through the agreed 768px mobile boundary without editing it.
 */
@media (min-width: 701px) and (max-width: 768px) {
  body:has(.mo) {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  body:has(.mo) .mo {
    display: block;
    margin-top: 78px;
  }

  body:has(.mo) .pc_,
  body:has(.mo) #kf,
  body:has(.mo) .dibu {
    display: none !important;
  }

  body:has(.mo) .zw {
    height: 3rem !important;
  }

  body:has(.mo) .garment-header {
    background: #fff;
  }

  body:has(.mo) .banner-swiper {
    position: relative;
    overflow: hidden;
  }

  body:has(.mo) .banner-swiper .swiper-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  body:has(.mo) .banner-swiper .swiper-pagination {
    bottom: 12px;
  }

  body:has(.mo) .banner-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
  }

  body:has(.mo) .banner-swiper .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
  }

  body:has(.mo) .social-section {
    padding: 16px;
    background: #f5f7fa;
  }

  body:has(.mo) .social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body:has(.mo) .social-label {
    color: var(--c2);
    font-size: 20px;
    font-weight: 600;
  }

  body:has(.mo) .social-icons {
    display: flex;
    gap: 10px;
  }

  body:has(.mo) .social-icon-item {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
  }

  body:has(.mo) .social-youtube {
    background: #e53935;
  }

  body:has(.mo) .social-tiktok {
    background: #010101;
  }

  body:has(.mo) .social-facebook {
    background: #3b5998;
  }

  body:has(.mo) .social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }

  body:has(.mo) .promo-banner {
    padding: 12px 0 0;
    background: #f5f7fa;
  }

  body:has(.mo) .promo-banner img {
    width: 100%;
  }

  body:has(.mo) .category-section {
    padding: 24px 16px;
    background: #fff;
  }

  body:has(.mo) .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  body:has(.mo) h2.section-title {
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid var(--c1);
    color: #1a1a1a;
    font-size: 18px;
    line-height: normal;
    font-weight: 700;
  }

  body:has(.mo) .section-more {
    color: var(--c1);
    font-size: 13px;
    font-weight: 500;
  }

  body:has(.mo) .category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body:has(.mo) .category-item {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--c1);
    border-radius: 4px;
    flex-direction: column-reverse;
    justify-content: space-around;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  body:has(.mo) .category-img {
    position: relative;
    width: 100%;
    max-height: 180px;
    overflow: hidden;
    aspect-ratio: 1;
  }

  body:has(.mo) .category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body:has(.mo) .category-name {
    display: block;
    overflow: hidden;
    padding: 6px 4px;
    color: #fff;
    background: var(--c1);
    font-size: 12px;
    line-height: normal;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.mo) .category-count {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    font-size: 9px;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
  }

  body:has(.mo) .oem-section {
    position: relative;
    overflow: hidden;
    padding: 32px 20px 89px;
    color: #fff;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  }

  body:has(.mo) .oem-section::before,
  body:has(.mo) .oem-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }

  body:has(.mo) .oem-section::before {
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
  }

  body:has(.mo) .oem-section::after {
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    opacity: 0.75;
  }

  body:has(.mo) .oem-content {
    position: relative;
    z-index: 1;
  }

  body:has(.mo) .oem-content h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 22px;
    line-height: normal;
  }

  body:has(.mo) .oem-content p {
    margin-bottom: 16px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
  }

  body:has(.mo) .oem-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  body:has(.mo) .oem-features span {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
  }

  body:has(.mo) .oem-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  body:has(.mo) .oem-link-btn {
    display: flex;
    height: 34px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: normal;
    font-weight: 600;
  }
}
