/* package pages: in-page navigation */
:root{
  --pkg-fixed-header-bottom: 0px;
  --pkg-anchor-scroll-offset: 120px;
}

.pkg-anchor-nav{
  margin: 0 0 28px;
  padding: 15px 16px;
  border: 2px solid #91b6da;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f9ff 0%, #fbfdff 100%);
  box-shadow: 0 12px 30px rgba(17,57,97,.14);
  box-sizing: border-box;
}

.pkg-anchor-nav-float{
  display: none;
}

.pkg-anchor-nav-title{
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px !important;
  color: #245d95;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5 !important;
}

.pkg-anchor-nav-title i{
  color: #2f75b9;
}

.pkg-anchor-nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pkg-anchor-nav a{
  display: block;
  padding: 7px 10px;
  border: 1px solid #d4e1ed;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #315c86;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pkg-anchor-nav a:hover,
.pkg-anchor-nav a:focus-visible,
.pkg-anchor-nav a.is-current{
  border-color: #2f73b8;
  background: #2f73b8;
  color: #fff;
}

.package-detail-v2 .pkg-anchor-nav:not(.pkg-anchor-nav-float) a:hover,
.package-detail-v2 .pkg-anchor-nav:not(.pkg-anchor-nav-float) a:focus-visible,
.package-detail-v2 .pkg-anchor-nav:not(.pkg-anchor-nav-float) a.is-current{
  border-color: #2f73b8;
  background: #2f73b8;
  color: #fff;
}

.pkg-anchor-target,
.pkg-category,
.pkg-category [id],
#gocontact{
  scroll-margin-top: var(--pkg-anchor-scroll-offset);
}

/* Common categories keep the original detail sections and their anchor IDs. */
.pkg-category{
  margin: 46px 0;
}

.pkg-category > .pkg-category-title{
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 2px solid #9ebbd7 !important;
  background: none !important;
  color: #174f84;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.55 !important;
}

.pkg-section-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
}

.pkg-section-links a{
  color: #245d95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pkg-section-links a:focus-visible,
.pkg-anchor-nav a:focus-visible{
  outline: 3px solid #d89921;
  outline-offset: 3px;
}

.pkg-operation-summary{
  margin: 0 0 20px;
  line-height: 1.9;
}

.store-visit-page .pkg-category .indetail3-section > h3{
  margin: 0 0 18px;
  padding-left: 10px;
  border-left: 4px solid #3f4855;
  font-size: 20px;
  line-height: 1.7 !important;
}

.store-visit-page .pkg-category .inspection-card-grid h4{
  margin-top: 0;
  color: var(--inspection-ink);
  font-size: 18px;
  line-height: 1.7;
}

.store-visit-page .pkg-category .industry-scene-faq__item h4{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 9px !important;
  padding: 0 !important;
  color: #174f84 !important;
  background: none !important;
  border: 0 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.store-visit-page .pkg-category .industry-scene-faq__item h4 span{
  flex: 0 0 auto;
  color: #2f76b9;
}

@media (max-width:768px){
  .pkg-category{ margin: 34px 0; }
  .pkg-category > .pkg-category-title{ font-size: 21px; }
  /* One horizontal row keeps all six categories reachable without covering the page. */
  .package-detail-v2 .pkg-anchor-nav:not(.pkg-anchor-nav-float){
    margin-bottom: 20px;
    padding: 8px 10px;
  }
  .store-visit-page .pkg-category .industry-scene-faq__item h4{ font-size: 16px !important; }
}

@media (min-width:769px){
  .pkg-anchor-nav-float{
    display: block;
    position: fixed;
    z-index: 720;
    top: 120px;
    left: 16px;
    width: 260px;
    max-height: calc(100vh - 136px);
    margin: 0;
    padding: 17px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .pkg-anchor-nav-float.is-visible{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .pkg-anchor-nav-float .pkg-anchor-nav-links{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pkg-anchor-nav-float a{
    padding: 10px;
    border-radius: 7px;
    font-size: 14px;
  }
}

@media (max-width:768px){
  .pkg-anchor-nav{
    position: static;
    z-index: 850;
    top: var(--pkg-fixed-header-bottom);
    margin: 0 0 20px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 10px;
    box-shadow: 0 5px 13px rgba(31,69,116,.12);
  }

  .pkg-anchor-nav-title{
    margin: 0 0 6px !important;
    font-size: 12px;
  }

  .pkg-anchor-nav-links{
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .pkg-anchor-nav a{
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .pkg-anchor-nav-float{
    display: block;
    position: fixed;
    left: 10px;
    width: calc(100% - 20px);
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .pkg-anchor-nav-float.is-visible{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
