/* styles extracted from index.html */
:root {
  --primary-color: #165DFF;
  --secondary-color: #0E2E91;
  --accent-color: #00D1FF;
  --light-color: #F5F7FA;
  --dark-color: #333647;
  --glass: rgba(255, 255, 255, 0.06);
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--dark-color);
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 93, 255, 0.02), transparent 10%),
    radial-gradient(circle at 90% 90%, rgba(0, 209, 255, 0.02), transparent 12%),
    linear-gradient(180deg, #FBFCFF 0%, #F7F9FC 100%);
  -webkit-font-smoothing: antialiased;
}

section {
  position: relative;
  padding: 4.5rem 0;
}

.py-7 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.9rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.08);
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.hero {
  background-image: url('/static/image/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 5rem 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -8%;
  width: 48%;
  height: 120%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 209, 255, 0.12), transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06), transparent 30%);
  transform: rotate(18deg);
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}

.hero .container,
.hero .row {
  position: relative;
  z-index: 1;
}

.hero .btn.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(4px);
}

.card {
  border: none;
  box-shadow: 0 8px 24px rgba(14, 46, 145, 0.06);
  border-radius: 12px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card p,
.card h3,
.card h4 {
  color: var(--dark-color);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 46, 145, 0.08);
}

.business-slider {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
  padding-top: 0.6rem;
  margin-top: 1rem;
  position: relative;
}

.business-slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: linear-gradient(90deg, rgba(22, 93, 255, 0.02), rgba(0, 209, 255, 0.02));
  pointer-events: none;
  z-index: 0;
}

.business-slider::-webkit-scrollbar {
  height: 6px;
}

.business-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 8px;
}

.business-slider-inner {
  display: flex;
  justify-content: space-around;
  gap: 1.2rem;
  min-width: max-content;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.business-card {
  width: 318px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.95;
  transform: scale(0.98);
}

.business-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 36px rgba(14, 46, 145, 0.12);
  border: 2px solid rgba(22, 93, 255, 0.14);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.48s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.case-data {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
}

/* 咨询文本块样式 */
.consult-block {
  color: var(--dark-color);
}
.consult-block .consult-title {
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}
.consult-block .consult-summary {
  line-height: 1.6;
  color: rgba(0,0,0,0.85);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.consult-block .consult-list {
  color: rgba(0,0,0,0.85);
  margin-left: 1rem;
  padding-left: 0.4rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.service-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  background: linear-gradient(90deg, rgba(22, 93, 255, 0.08), rgba(0, 209, 255, 0.04));
  color: var(--primary-color);
  border-radius: 14px;
  font-size: 0.82rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

#company {
  background: linear-gradient(180deg, rgba(14, 46, 145, 0.02), transparent 40%);
}

#business {
  background: linear-gradient(180deg, rgba(0, 209, 255, 0.03), transparent 40%);
}

#product {
  background: linear-gradient(180deg, rgba(22, 93, 255, 0.02), rgba(14, 46, 145, 0.01));
}

#cases {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    repeating-linear-gradient(-45deg, rgba(14, 46, 145, 0.02) 0 8px, transparent 8px 16px);
}

#contact .card {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.table-responsive {
  margin-top: 0.5rem;
}

.img-fluid.rounded {
  border-radius: 10px;
}

.zhihui-grid {
  align-items: center;
  gap: 1rem;
  row-gap: 1rem;
}

.zhihui-img {
  width: 90%;
  height: 80%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin: 0 auto 1rem;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(14,46,145,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

@media (min-width: 992px) {
  .zhihui-img {
    max-height: none;
  }
}

@media (max-width: 991px) {
  .zhihui-img {
    max-height: none;
  }
}

@media (max-width: 576px) {
  .zhihui-img {
    max-height: none;
    border-radius: 10px;
  }
}

.zhihui-img:hover {
  transform: scale(1.02);
}

footer {
  background: #000;
  padding: 2.5rem 0;
  margin-top: 2.5rem;
  border-top: 4px solid rgba(22, 93, 255, 0.06);
}

footer a {
  color: #cfe6ff;
  text-decoration: underline;
}

footer img {
  height: 18px;
  margin-right: 6px;
}

@media (max-width: 767px) {
  .hero {
    padding: 3.2rem 0;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .business-card {
    width: 260px;
  }
}

/* hero canvas styles: 背景连线绘制画布（覆盖 hero 区域，位于内容后面） */
.hero {
  position: relative;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 保持在 hero 内容后面 */
  pointer-events: none;
  display: block;
  background: transparent;
}

/* video overlay styles (moved from inline) */
#videoOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 20000;
  padding: 24px;
}

#videoOverlay .overlay-content {
  position: relative;
  width: min(1000px, 96%);
  max-height: 86vh;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

#videoOverlay video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  max-height: 86vh;
}

#videoOverlay .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#videoOverlay .close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

