/* Kunyue project overrides live here to keep template assets untouched. */

html {
  scroll-behavior: smooth;
}

header .navbar .nav-link {
  font-size: 13px;
  white-space: nowrap;
}

header .navbar .nav-item.nav-active > .nav-link {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  opacity: 1;
}

header .navbar-brand img {
  max-height: 50px;
}

header .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

header .navbar-brand .brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  margin-left: 8px;
}

header .navbar-brand .brand-copy-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

header .navbar-brand .brand-copy-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-top: 6px;
}

header .navbar-brand .brand-copy-light {
  color: #fff;
}

header .navbar-brand .brand-copy-dark {
  color: #1d2b45;
  display: none;
}

.footer-logo {
  gap: 14px;
}

.footer-logo img {
  max-height: 92px;
  width: auto;
}

.footer-brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: #fff;
}

.footer-brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-brand-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-top: 8px;
}

.pricing-table .fs-36 {
  font-size: 2rem;
}

.swiper-slide .border-radius-100px {
  white-space: nowrap;
}

.process-flow-list {
  row-gap: 22px;
}

.process-flow-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(14, 22, 56, 0.05);
  max-width: 1140px;
  margin: 0 auto;
}

.process-step-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px 8px 4px;
}

.process-step-index {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 52, 122, 0.08);
  color: #334a9b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step-title {
  margin-bottom: 10px;
  color: #1d2b45;
  font-size: 1.7rem;
  line-height: 1.25;
}

.process-step-duration {
  color: rgba(29, 43, 69, 0.62);
  font-size: 14px;
  font-weight: 600;
}

.process-step-panels {
  display: flex;
  gap: 16px;
  width: 100%;
}

.process-step-panel {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.process-step-panel:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.process-panel-label {
  display: block;
  margin-bottom: 10px;
  color: #1d2b45;
  font-size: 14px;
  font-weight: 700;
}

.process-step-panel p {
  margin: 0;
  color: rgba(29, 43, 69, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.clients-style-08 .swiper-slide {
  width: auto !important;
  padding: 0 10px;
}

.clients-style-08 .swiper-wrapper {
  align-items: center;
}

.clients-style-08 .feather-shadow {
  mask-image: linear-gradient(to right, transparent 0%, #000000 8%, #000000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 8%, #000000 92%, transparent 100%);
}

.clients-style-08 .feather-shadow .swiper-slide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  text-align: center;
  white-space: nowrap;
}

/* Shared product mega menu, used by the home page and product pages. */
#megaMenuTrigger > .nav-link,
#aiMenuTrigger > .nav-link {
  cursor: pointer;
}

#megaMenuPanel {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  display: none;
  z-index: 99999999;
  padding: 28px 0 24px;
  background: #fff;
  border-top: 3px solid #1c6247;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

#megaMenuPanel.show {
  display: block;
}

/* AI能力 mega menu panel */
#aiMenuPanel {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  display: none;
  z-index: 99999999;
  padding: 28px 0 24px;
  background: #fff;
  border-top: 3px solid #7c3aed;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

#aiMenuPanel.show {
  display: block;
}

#aiMenuPanel .mega-menu-item:hover {
  color: #7c3aed !important;
}

.mega-menu-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  color: #1a1a2e !important;
  font-size: 13px;
  font-weight: 700;
}

.mega-menu-col-title .title-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1c6247;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  color: #444 !important;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s;
}

.mega-menu-item:hover {
  color: #1c6247 !important;
  transform: translateX(4px);
}

.mega-menu-item .item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
}

.mega-menu-desc {
  margin-top: -3px;
  margin-left: 33px;
  padding-bottom: 4px;
  color: #999 !important;
  font-size: 11px;
  line-height: 1.3;
}

header.sticky.sticky-active .navbar-brand .brand-copy-light {
  display: none;
}

header.sticky.sticky-active .navbar-brand .brand-copy-dark {
  display: inline-flex;
}

@media (max-width: 1199px) {
  header .navbar .nav-link {
    font-size: 15px;
  }

  header .navbar-brand img {
    max-height: 44px;
  }

  header .navbar-brand .brand-copy-title {
    font-size: 16px;
  }

  header .navbar-brand .brand-copy-subtitle {
    font-size: 10px;
    margin-top: 5px;
  }

  .footer-logo img {
    max-height: 80px;
  }

  .footer-brand-title {
    font-size: 20px;
  }

  .footer-brand-subtitle {
    font-size: 11px;
  }

  .process-flow-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .process-step-title {
    font-size: 1.5rem;
  }

  .process-step-panels {
    gap: 14px;
  }

  .process-step-panel {
    padding: 16px 18px;
  }

  .clients-style-08 .feather-shadow .swiper-slide span {
    padding: 16px 24px;
  }

}

@media (max-width: 991px) {
  header .navbar-brand .brand-copy-light {
    display: none;
  }

  header .navbar-brand .brand-copy-dark {
    display: inline-flex;
  }

  #megaMenuPanel,
  #aiMenuPanel {
    position: static;
    display: none;
    padding: 10px 0;
    border-top: none;
    box-shadow: none;
  }

  #megaMenuPanel.show,
  #aiMenuPanel.show {
    display: block;
  }

  .process-flow-card {
    grid-template-columns: 1fr;
  }

  .process-step-summary {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(21, 32, 76, 0.08);
  }

  .process-step-panels {
    flex-direction: column;
  }

}

@media (max-width: 767px) {
  header .navbar-brand {
    gap: 0;
}

  header .navbar-brand img {
    max-height: 38px;
  }

  header .navbar-brand .brand-copy-title {
    font-size: 14px;
  }

  header .navbar-brand .brand-copy-subtitle {
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .footer-logo {
    gap: 10px;
  }

  .footer-logo img {
    max-height: 64px;
  }

  .footer-brand-title {
    font-size: 16px;
  }

  .footer-brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .process-flow-list {
    row-gap: 16px;
  }

  .process-flow-card {
    padding: 20px;
    border-radius: 16px;
  }

  .process-step-index {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .process-step-title {
    font-size: 1.28rem;
  }

  .process-step-duration {
    font-size: 13px;
  }

  .process-step-panel {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .process-panel-label {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .process-step-panel p {
    font-size: 14px;
    line-height: 1.7;
  }

  .clients-style-08 .swiper-slide {
    padding: 0 8px;
  }

  .clients-style-08 .feather-shadow .swiper-slide span {
    padding: 14px 18px;
  }

}

/* Business System Feature Box Stability */
.feature-box {
  text-align: center; /* Ensures icon is centered */
}
.feature-box-content {
  display: grid !important;
  grid-template-columns: 1fr;
  text-align: center !important;
}
.feature-box-content > span {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}
.box-capability {
  grid-column: 1;
  grid-row: 2;
  transition: opacity 0.3s, visibility 0.3s;
}
.box-audience {
  grid-column: 1;
  grid-row: 2;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Hover States */
.feature-box:hover .box-capability {
  opacity: 0;
  visibility: hidden;
}
.feature-box:hover .box-audience {
  opacity: 1;
  visibility: visible;
}

/* Ensure text is dark when hover white overlay appears */
.feature-box.light-hover:hover .feature-box-content span,
.feature-box.light-hover:hover .feature-box-content p,
.feature-box.light-hover:hover .feature-box-content .box-audience {
  color: #232323 !important;
  opacity: 1 !important;
}
.feature-box.light-hover:hover .feature-box-icon i {
  color: #232323 !important;
}

/* Audience Tags */
.audience-tag {
  font-size: 11px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.4;
}
.feature-box.light-hover:hover .audience-tag {
  border-color: rgba(0, 0, 0, 0.15);
  color: #232323 !important;
}

/* Scroll to Top Floating Button */
.scroll-to-top-floating {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  color: #334a9b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform: translateY(20px);
}

.scroll-to-top-floating.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-floating:hover {
  background-color: #334a9b;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(51, 74, 155, 0.3);
}

.scroll-to-top-floating i {
  font-size: 20px;
}

@media (max-width: 767px) {
  .scroll-to-top-floating {
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
  }
}
