/* Homepage solutions — kufanyun-style, load AFTER style.css */
.home-kf-sol {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 48%, #f7f9fc 100%);
}
.home-kf-sol::before,
.home-kf-sol::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.home-kf-sol::before {
  left: -4%;
  top: 18%;
  width: 42%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.7) 0%, transparent 70%);
}
.home-kf-sol::after {
  right: -6%;
  bottom: -10%;
  width: 48%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(22,119,255,.06) 0%, transparent 68%);
}
.home-kf-sol .kf-watermark {
  position: absolute;
  right: 2%;
  top: 38%;
  z-index: 0;
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 0.9;
  color: rgba(15, 35, 70, 0.045);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.home-kf-sol > .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}
.home-kf-sol .title-main {
  text-align: center;
  margin: 0 auto 36px;
}
.home-kf-sol .title-head {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1f2329 !important;
  margin: 0 !important;
  letter-spacing: 0.5px;
}

.kf-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #dbe3ee;
  margin: 0 auto 40px;
  max-width: 1080px;
}
.kf-tab {
  flex: 1 1 0;
  text-align: center;
  padding: 14px 8px 16px;
  margin-bottom: -1px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #4e5969;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  font-family: inherit;
  line-height: 1.4;
}
.kf-tab:hover { color: #1677ff; }
.kf-tab.active {
  color: #1677ff;
  font-weight: 600;
  border-bottom-color: #1677ff;
}

.kf-panel { display: none; }
.kf-panel.active { display: block; }

.kf-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}
.kf-intro-text { flex: 1 1 auto; min-width: 0; max-width: 780px; }
.kf-intro-text h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2329;
}
.kf-intro-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #4e5969;
}
.kf-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 40px;
  padding: 0 22px;
  background: #1677ff;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 2px;
  margin-top: 8px;
  white-space: nowrap;
}
.kf-more:hover { background: #0958d9; color: #fff !important; }

.kf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kf-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.kf-card:hover {
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.1);
  transform: translateY(-2px);
  color: inherit;
}
.kf-card-ico {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: #1677ff;
}
.kf-card-ico svg { width: 28px; height: 28px; display: block; }
.kf-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
  line-height: 1.4;
}
.kf-card p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.75;
  color: #86909c;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kf-card-link {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1677ff;
}
.kf-card:hover .kf-card-link { color: #0958d9; }

@media (max-width: 992px) {
  .kf-tabs { overflow-x: auto; justify-content: flex-start; }
  .kf-tab { flex: 0 0 auto; padding: 12px 16px 14px; font-size: 14px; }
  .kf-intro { flex-direction: column; gap: 16px; }
  .kf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-kf-sol .kf-watermark { font-size: 72px; }
}
@media (max-width: 640px) {
  .home-kf-sol { padding: 48px 0 56px; }
  .home-kf-sol .title-head { font-size: 24px !important; }
  .kf-cards { grid-template-columns: 1fr; }
}

/* Footer: kufanyun-style industry banner (replaces dark service strip) */
.kf-industry-banner,
footer.footer .kf-industry-banner {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(105deg, #0a5fff 0%, #1677ff 38%, #2f8bff 68%, #0d6eff 100%) !important;
  border: 0 !important;
}
.kf-industry-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.kf-industry-geo span {
  position: absolute;
  top: 50%;
  left: 0;
  height: 280%;
  transform: translateY(-50%) skewX(-28deg);
  border-right: 70px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.035);
}
.kf-industry-geo span:nth-child(1) { width: 18%; left: -8%; border-right-width: 90px; opacity: .9; }
.kf-industry-geo span:nth-child(2) { width: 28%; left: 2%; border-right-width: 80px; opacity: .75; }
.kf-industry-geo span:nth-child(3) { width: 38%; left: 12%; border-right-width: 70px; opacity: .6; }
.kf-industry-geo span:nth-child(4) { width: 50%; left: 22%; border-right-width: 64px; opacity: .5; }
.kf-industry-geo span:nth-child(5) { width: 62%; left: 34%; border-right-width: 56px; opacity: .38; }
.kf-industry-geo span:nth-child(6) { width: 78%; left: 48%; border-right-width: 48px; opacity: .22; }
.kf-industry-copy {
  position: relative;
  z-index: 1;
}
.kf-industry-copy h2 {
  margin: 0 0 10px;
  color: #fff !important;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.kf-industry-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .kf-industry-banner,
  footer.footer .kf-industry-banner {
    min-height: 132px;
    padding: 36px 16px;
  }
  .kf-industry-copy h2 { font-size: 22px; }
  .kf-industry-copy p { font-size: 14px; }
}
