@import url(mainstyle.css);

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* icon BG */
.icon-bg {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--icon-text);
}

.icon-bg-lg {
  min-width: 50px;
  min-height: 50px;
}

header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  z-index: 999;
}

header .navbar {
  padding-block: 0.7rem;
  transition: padding 0.3s ease;
}

header.fix {
  background-color: var(--head-bg) !important;
  position: fixed !important;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header.fix .navbar {
  padding-block: 0.35rem;
}

/* Normal header nav */
.nav-link {
  color: var(--head-text);
  transition: color 0.25s ease;
}

header.fix .nav-link {
  color: var(--head-text) !important;
}

.nav-link.blog-highlight {
  color: var(--prime-text) !important;
}

header.fix .nav-link.blog-highlight {
  color: var(--prime-text) !important;
}

@media(min-width: 992px){
  .dropdown-hover:hover .dropdown-menu {
    display: block;
  }

}

.dropdown-menu {
  background-color: var(--head-bg);
  min-width: 200px;
  padding: 8px 0;
}

.offcanvas .dropdown-menu {
  position: absolute;
}


.dropdown-item {
  position: relative;
  color: var(--para-text) !important;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-family: var(--secondfont);
  font-weight: 400;
  text-transform: capitalize;
}

.dropdown-item:hover {
  color: var(--nav-alt-text) !important;
  padding-left: 35px;
}

.dropdown-item:hover::before {
  content: "//";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nav-alt-text);
  font-weight: 600;
}

.dropdown-item:focus,
.dropdown-item:active {
  background-color: transparent !important;
  color: var(--nav-alt-text) !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Show active menu clearly */
.nav-link.active {
  color: var(--nav-alt-text) !important;
}

/* Parent dropdown active */
.nav-item.active > .nav-link {
  color: var(--nav-alt-text) !important;
}



/* header CSS */
.nav-link {
  color: var(--nav-text);
  font-weight: 500;
}
.nav-item.active .nav-link,
.nav-item:hover .nav-link,
.nav-item .nav-link:focus,
.social-icon a:hover {
  color: var(--prime-text) !important;
}
@media (max-width: 1199.98px) {
  .offcanvas-body {
    background-color: var(--head-bg);
  }
  .nav-link {
    color: var(--head-text);
  }
}

#banner-slider {
  min-height: clamp(600px, 80vh, 820px);
}

/* Slide backgrounds（背景层独立，供 Ken Burns 动画作用） */
.banner-bg .splide__slide {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, 80vh, 820px);
}

.slide-inner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.banner-bg .splide__slide > .container {
  position: relative;
  z-index: 2;
}

.slide-inner-bg.slide-1 {
  background: linear-gradient(115deg,
      rgba(6, 14, 31, 0.97) 0%,
      rgba(16, 54, 101, 0.82) 38%,
      rgba(30, 58, 110, 0.55) 68%,
      rgba(91, 142, 230, 0.22) 100%),
    url("../../assets/images/slide-1.webp") no-repeat;
  background-size: cover;
  background-position: top center;
}

.slide-inner-bg.slide-2 {
  background: linear-gradient(115deg,
      rgba(6, 14, 31, 0.97) 0%,
      rgba(16, 54, 101, 0.82) 38%,
      rgba(30, 58, 110, 0.55) 68%,
      rgba(91, 142, 230, 0.22) 100%),
    url("../../assets/images/slide-2.webp") no-repeat;
  background-size: cover;
  background-position: center bottom;
}

.slide-inner-bg.slide-3 {
  background: linear-gradient(115deg,
      rgba(6, 14, 31, 0.97) 0%,
      rgba(16, 54, 101, 0.82) 38%,
      rgba(30, 58, 110, 0.55) 68%,
      rgba(91, 142, 230, 0.22) 100%),
    url("../../assets/images/slide-3.webp") no-repeat;
  background-size: cover;
  background-position: bottom center;
}

@media (max-width: 991.98px) {
  #banner-slider,
  .banner-bg .splide__slide {
    min-height: 70vh;
  }
}

@media (max-width: 767.98px) {
  #banner-slider,
  .banner-bg .splide__slide {
    min-height: 75vh;
  }
}

@media (max-width: 575.98px) {
  #banner-slider,
  .banner-bg .splide__slide {
    min-height: 80vh;
  }
  .banner-bg::after {
    height: 120px;
    opacity: 0.6;
  }
  .py-6{
    padding: 40px 0 !important;
  }
}
.theme-btn {
  width: 52px;
  height: 42px;
}

/* Content container */
.splide-container {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent-bg) !important;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.04em;
}

.hero-kicker::before {
  content: "";
  width: 2.75rem;
  height: 2px;
  background: var(--accent-bg);
  box-shadow: 0 0 18px rgba(255, 181, 71, 0.65);
}

.hero-title {
  max-width: 760px;
  font-size: clamp(2.75rem, 5.7vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.hero-description {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .prime-btn-2 {
  margin: 0 !important;
}

.hero-actions .hero-primary {
  background: var(--accent-bg);
  color: #101827 !important;
  box-shadow: 0 12px 30px rgba(232, 153, 54, 0.24);
}

.hero-actions .hero-primary::before {
  background: #ffd477;
}

.hero-actions .hero-primary:hover,
.hero-actions .hero-primary:focus {
  color: #101827 !important;
}

.hero-actions .hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions .hero-secondary::before {
  background: rgba(69, 129, 226, 0.9);
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.7;
  }

  .hero-actions .prime-btn-2 {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
  }
}

/* Navigation Arrows */
.splide__arrow {
  display: none;
}
.banner-bg {
  overflow: hidden !important;
  position: relative;
}

.banner-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 228px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-image: url("../../assets/images/banner_shape.svg");
    transition: height 0.4s ease, opacity 0.4s ease;
}

/* Dark theme override */
[data-nanobytech-theme="dark"] .banner-bg::after {
    background-image: url("../../assets/images/banner_shape_dark.svg");
}

/* 上移 Hero 内容：下方 about-card-section 以负 margin 重叠 banner，
   预留底部空间避免按钮与卡片贴太近（垂直居中下内容自动上移一半） */
@media (min-width: 992px) {
  .banner-bg .splide__slide > .container {
    padding-bottom: 140px;
  }
}


/* about-card */
.about-card-section {
  margin-top: -10%;
}
@media (max-width: 991.98px) {
  .about-card-section {
    margin-top: -40px;
  }
}
@media (max-width: 767.98px) {
  .about-card-section {
    margin-top: 0;
  }
}

.box-item {
  position: relative;
  width: 100%;
  margin-bottom: 35px;
  max-width: 100%;
}

.flip-box {
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
}

.flip-box-front,
.flip-box-back {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  min-height: 350px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-box-front {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;

  background: linear-gradient(135deg, rgba(58, 112, 200, 0.08), rgba(91, 142, 230, 0.04));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

/* Dark 主题：flip-box-front 深玻璃质感 */
[data-nanobytech-theme="dark"] .flip-box-front {
  background: linear-gradient(135deg, rgba(79, 134, 209, 0.10), rgba(111, 168, 230, 0.05));
  border: 1px solid var(--card-border);
}

/* 桌面 hover 翻转 + JS .is-flipped 翻转（双触发） */
@media (hover: hover) and (pointer: fine) {
  .flip-box:hover .flip-box-front {
    -ms-transform: rotateY(-180deg);
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-lg);
  }
}

.flip-box.is-flipped .flip-box-front {
  -ms-transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.flip-box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .flip-box:hover .flip-box-back {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
}

.flip-box.is-flipped .flip-box-back {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

.flip-box .inner {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 35px;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;

  transform: translateY(-50%) translateZ(60px) scale(0.94);
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  -ms-transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
}

.flip-box-icon {
  position: relative;
  width: 120px;
  height: 120px;
  background-color: var(--prime-bg);
  border-radius: 22% 78% 70% 30% / 29% 59% 41% 71%;
}
.flip-box-icon img {
  position: absolute;
  top: 18px;
  left: -8px;
}

/* 移动端：放弃翻转，背面内容永远可见（信息完整、布局稳定） */
@media (max-width: 767.98px) {
  .flip-box {
    cursor: default;
  }
  .flip-box-front,
  .flip-box-back {
    position: relative;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    min-height: auto;
  }
  .flip-box-back {
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .flip-box .inner {
    position: relative;
    transform: none;
    -webkit-transform: none;
    -ms-transform: none;
    top: auto;
    padding: 28px;
  }
}

/* experience section */
.img-block-1 {
  background-image: url(../../assets/images/experience-image-2.webp);
  background-size: cover;
  background-position: center;
  height: 300px;
  width: 65%;
  margin-left: 0%;
  z-index: 2;
  position: relative;
}
.img-block-2 {
  background-image: url(../../assets/images/experience-image-1.webp);
  background-size: cover;
  background-position: center;
  height: 300px;
  width: 65%;
  margin-top: -100px;
  margin-left: 20%;
  z-index: 1;
  position: relative;
}
.experience-imge-container::before {
  content: "";
  position: absolute;
  bottom: 40px;
  left: -50px;
  background: url("../../assets/images/circle-shape.webp") no-repeat center;
  background-size: contain;
  width: 300px;
  height: 300px;
  z-index: 0;
  animation: floatShape 3s ease-in-out infinite;
}
@media (max-width: 991.98px) {
  .experience-imge-container::before {
    left: 0;
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 767.98px) {
  .experience-imge-container::before {
    display: none;
  }
}
@keyframes floatShape {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.horizontal-spinner {
  max-width: 80px;
  height: 3px;
  margin-top: 12px;
  background: var(--accent-bg);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.horizontal-spinner.is-in,
[data-aos].aos-animate .horizontal-spinner {
  transform: scaleX(1);
}

/* service-section */
.service-section {
  background: linear-gradient(170deg, rgb(36 36 36), rgba(36, 36, 36, 0.4)),
    url("../../assets/images/service-banner.webp") no-repeat center/cover;
  min-height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dark 主题：service-section 更深渐变 */
[data-nanobytech-theme="dark"] .service-section {
  background: linear-gradient(170deg, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.6)),
    url("../../assets/images/service-banner.webp") no-repeat center/cover;
}

.flip-box-bg-1 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-1.webp");
}
.flip-box-bg-2 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-2.webp");
}
.flip-box-bg-3 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-3.webp");
}
.flip-box-bg-4 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-4.webp");
}
.flip-box-bg-5 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-5.webp");
}
.flip-box-bg-6 {
  background: linear-gradient(to top, #1d47cfec, #5b8ee663),
    url("../../assets/images/service-image-6.webp");
}

/* team section */
.team-section {
  background: linear-gradient(
      170deg,
      rgba(244, 248, 252, 0.78),
      rgba(244, 248, 252, 0.78)
    ),
    url("../../assets/images/map-1.webp") no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}
.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--body-bg), transparent);
  z-index: 0;
  pointer-events: none;
}
[data-nanobytech-theme="dark"] .team-section {
  background: linear-gradient(
      170deg,
      rgba(11, 18, 32, 0.85),
      rgba(0, 0, 0, 0.89),
      rgba(0, 0, 0, 0.911)
    ),
    url("../../assets/images/map-2.webp") no-repeat;
  background-size: cover;
  background-position: center;
}

.team-manager {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-manager .card-image img {
  width: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.team-manager:hover .card-image img {
  transform: scale(1.02);
}

.team-manager:hover {
  box-shadow: var(--shadow-lg);
}

.social-bar {
  position: absolute;
  top: 20px;
  right: -60px;
  width: 60px;
  background: var(--prime-bg);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  transition: right 0.4s ease;
  z-index: 10;
}

.team-manager:hover .social-bar {
  right: 0;
}
/* feature */
.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  max-height: 450px !important;
  width: 100%;
  overflow: hidden;
  object-fit: cover;
}

/* Overlay */
.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Content */
.feature-content {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* feature 案例标题前的辅助色短线装饰 */
.feature-content h4::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent-bg);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

/* Hover effect */
.feature-image:hover::after {
  opacity: 1;
}

.feature-image:hover .feature-content {
  opacity: 1;
  transform: translateY(0);
}

/* feature-process */
.process-card {
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  padding: 20px;
  border-radius: var(--radius-md);
}

.process-card:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  transform: translate(-3px, -3px);
  border: 1px solid var(--prime-border);
}

/* counter section  */
.counter-section {
  background:
    linear-gradient(
      270deg,
      rgba(58, 112, 200, 0.918),
      rgba(46, 100, 187, 0.959),
      rgba(58, 112, 200, 0.945)
    ),
    url('../../assets/images/world-map-1.webp') no-repeat top center;

  background-size: cover;
}

/* counter 数字辅助色点缀 */
.counter-section .counter {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}
.counter-section .counter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-bg);
  border-radius: var(--radius-pill);
}

[data-nanobytech-theme="dark"] .counter-section {
  background:
    linear-gradient(
      270deg,
      rgba(58, 112, 200, 0.918),
      rgba(46, 100, 187, 0.959),
      rgba(58, 112, 200, 0.945)
    ),
    url('../../assets/images/world-map-2.webp') no-repeat top center;

  background-size: cover;
}
/* testimonial */
.testimonial-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-pill);
  outline: 2px solid var(--prime-border);
  outline-offset: 2px;
  overflow: hidden;
}
.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tooltip box */
.testimonial-box {
  position: relative;
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--prime-border);
}

/* Tooltip arrow */
.testimonial-box::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 40px; /* adjust position */
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--card-bg);
}

/* Border for arrow (optional but recommended) */
.testimonial-box::before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 39px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--prime-border);
}

.testimonial-user {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 35px;
}
/* Consultant-from */
.Consultant-section {
  background: linear-gradient(180deg, rgb(65, 152, 233), rgba(75, 100, 129, 0.3)),
    url("../../assets/images/Consultant-section.webp") no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Consultant-section .form-control::placeholder{
  color: var(--white-text) !important;
}
.Consultant-section .form-control,
.Consultant-section .form-control input,
.Consultant-section .form-control textarea {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white-text);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark 主题：Consultant-section 背景叠加深色保证可读 */
[data-nanobytech-theme="dark"] .Consultant-section {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85), rgba(75, 100, 129, 0.5)),
    url("../../assets/images/Consultant-section.webp") no-repeat;
  background-size: cover;
  background-position: center center;
}

/* article */
.article-card {
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
  transform 0.3s ease;
  border-radius: var(--radius-md);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translate(-3px, -3px);
   background: var(--card-bg);
}
/* news latter */
.animated-gradient {
  background: linear-gradient(270deg, #3a70c8, #5f9cff, #3a70c8);
  background-size: 400% 400%;
  animation: gradientMove 5s ease infinite;
}

/* Dark 主题：animated-gradient 色调协调 */
[data-nanobytech-theme="dark"] .animated-gradient {
  background: linear-gradient(270deg, #0B1220, #1B2A45, #0B1220);
  background-size: 400% 400%;
  animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.f-menu a {
  position: relative;
    display: inline-block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.f-menu a:hover {
  color: var(--prime-text);
  padding-left: 6px;
}

.footer-section {
  background:
  linear-gradient( to top,
    rgba(11, 18, 32, 0.85) 0%,
    rgba(11, 18, 32, 0.85) 50%,
    rgba(11, 18, 32, 0.85) 100%
  ),
    url('../../assets/images/map-1.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}
.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--footer-bg), transparent);
  z-index: 0;
  pointer-events: none;
}
[data-nanobytech-theme="dark"] .footer-section {
    background-image:  linear-gradient( to top,
    rgba(11, 18, 32, 0.9) 0%,
    rgba(11, 18, 32, 0.9) 50%,
    rgba(11, 18, 32, 0.9) 100%
  ), url("../../assets/images/map-2.webp");
}

.footer-records {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-record-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  transition: color 0.25s ease;
}

.footer-record-link:hover,
.footer-record-link:focus-visible {
  color: var(--prime-text) !important;
}

.footer-record-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-record-divider {
  width: 1px;
  height: 1rem;
  background-color: currentColor;
  opacity: 0.25;
}

.footer-public-security-link img {
  width: 18px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .footer-records {
    gap: 0.35rem 0.65rem;
    font-size: 0.8125rem;
  }

  .footer-record-divider {
    display: none;
  }
}

.post-card .image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.post-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#backtotop {
  position: fixed;
  bottom: 52px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  width: 50px !important;
  min-width: unset;
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  border: 0;
}

@media (max-width: 575.98px) {
  #backtotop {
    right: 12px;
    bottom: 88px;
  }
}

#backtotop.show {
  opacity: 1;
  visibility: visible;
}

#backtotop:hover {
  transform: translateY(-3px);
}

.prime-btn-2 {
  background: var(--prime-btn);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 500;
  display: inline-block;
  transition: 0.5s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: var(--radius-sm);
  color: var(--prime-btn-text) !important;
}

/* Keep text color white on hover */
.prime-btn-2:hover,
.prime-btn-2:focus {
  color: var(--prime-btn-text) !important;
}

/* Sliding overlay */
.prime-btn-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  height: 100%;
  width: 150%;
  background: var(--prime-btn2);
  transform: skew(50deg) translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

/* Hover animation */
.prime-btn-2:hover::before {
  transform: skew(50deg) translateX(0%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .banner-bg::after,
  .horizontal-spinner::before {
    animation: none !important;
  }
}

/* About-Page */
.about-banner{
  background:linear-gradient( to top,
    rgba(17, 26, 58, 0.644) 0%,
    rgba(17, 26, 58, 0.644) 50%,
    rgba(17, 26, 58, 0.63) 100%
  ), url('../../assets/images/about-banner.webp') no-repeat;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.about-menu{
  max-width: 400px;
}
/* about-content */
.about-image-container .image-block-2{
  position: absolute;
  top: 15px;
  right: 10px;
}

/* call-section */
.call-section{
  background: url('../../assets/images/call-banner.webp') no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.call-icon {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-icon a {
  width: 100px;
  height: 100px;
  background-color: var(--prime-bg);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.call-icon::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  border: 2px dashed var(--white-text);
  animation: rotateRing 6s linear infinite;
}


.call-icon::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  animation: pulseRing 2.5s ease-out infinite;
  z-index: 0;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.call-modal-container {
  position: absolute;
  bottom: -47px;
  right: 0px;
  max-width: 100%;
  text-align: end;
}

.call-modal-container img {
  max-width: 100%;
  max-height: 550px;
}

@media (max-width: 991.98px) {
  .call-modal-container {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 40px;
    text-align: center;
  }

  .call-modal-container img {
    height: 480px;
  }
}


@media (max-width: 575.98px) {
  .call-modal-container img {
    height: 350px;
  }
  .call-content {
    text-align: center;
  }

  .call-icon {
    margin-left: auto;
    margin-right: auto;
  }
}


.counter-section-2 {
  background:
    linear-gradient(
      270deg,
      rgba(58, 112, 200, 0.918),
      rgba(46, 100, 187, 0.959),
      rgba(58, 112, 200, 0.945)
    ),
    url('../../assets/images/world-map-1.webp') no-repeat top center;

  background-size: cover;
}
[data-nanobytech-theme="dark"] .counter-section-2 {
  background:
    linear-gradient(
      270deg,
      rgba(58, 112, 200, 0.918),
      rgba(46, 100, 187, 0.959),
      rgba(58, 112, 200, 0.945)
    ),
    url('../../assets/images/world-map-2.webp') no-repeat top center;

  background-size: cover;
}
.pricing-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
    color: var(--head-text);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: var(--card-alt-bg);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.pricing-card:hover::before {
  transform: translateX(0);
}

.pricing-card:hover {
  color: var(--white-text) !important;
}

/* service-page */
.service-Source-card {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
  position: relative;
  border: 1px solid var(--prime-border);
}

.service-Source-card::after{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.45s ease;
  z-index: -1;
}

.service-Source-card:hover{
  transform: translateY(-10px);
}

.service-Source-card:hover::after{
  box-shadow: var(--shadow-lg);
}


/* Project-Page */
.project-card{
  position: relative;
}
.project-image img{
  display: block;
}
.project-content{
  position: absolute;
  left: 20px;
  bottom: 0px;
  background: var(--card-bg);
  padding: 18px 22px;
  width: calc(100% - 40px);
  border-radius: var(--radius-md);
  z-index: 2;
  border: 2px solid var(--prime-border);
}
/* project slider pagination */
.splide__pagination__page {
    background: #ccc;
    border: 0;
    border-radius: var(--radius-pill);
    display: inline-block;
    height: 8px;
    margin: 3px;
    opacity: 0.7;
    padding: 0;
    position: relative;
    bottom: -32px;
    transition: transform 0.2s linear, background-color 0.3s ease;
    width: 8px;
}
#Feature-slider .splide__pagination,
#project-slider .splide__pagination,
#testimonial-slider .splide__pagination {
    padding-bottom: 40px;
}
@media (max-width: 767.98px) {
    .splide__pagination__page {
        bottom: 0;
    }
}
.splide__pagination__page.is-active {
    background: var(--prime-bg);
    transform: scale(1.4);
    z-index: 1;
}
.contact-card{
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-md);
}
.contact-card::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:var(--prime-bg);
  transform:scaleY(0);
  transition:0.3s;
  border-radius: var(--radius-pill);
}
.contact-card:hover::before{
  transform:scaleY(1);
}
.contact-form .form-control::placeholder{
  color: var(--head-text);
}
.alertmsg{
  z-index: 9999;
}

/* ==========================
   logo 文字样式（从 index.html 行内样式迁移）
   ========================== */
.logo-text {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
/* 适配暗色主题下的 logo 文字 */
[data-nanobytech-theme="dark"] .logo-text {
  color: var(--prime-text) !important;
}
/* 顶部 banner 上文字为白色；滚动 fix 后及 offcanvas 内跟随主题色 */
header .navbar-brand .logo-text {
  color: #fff;
}
header.fix .navbar-brand .logo-text,
.offcanvas .logo-text {
  color: var(--head-text) !important;
}

/* ===== 阶段2: Task 5 Hero 区创意 ===== */
/* 网格层 */
.banner-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, black 30%, transparent 75%);
}

/* 鼠标跟随光晕层 */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(91, 142, 230, 0.22) 0%, rgba(255, 181, 71, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  transform: translate(-50%, -50%);
  left: 30%;
  top: 40%;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 字符级标题揭示 */
.hero-title {
  overflow: hidden;
}
.hero-title .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.hero-title.is-in .char {
  transform: translateY(0);
  opacity: 1;
}

/* Ken Burns 轮播背景 */
.splide__slide.is-active .slide-inner-bg {
  animation: kenburns 6.5s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* 磁吸按钮回弹 */
.hero-primary {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* ===== 阶段2: Task 6 滚动叙事与进度 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10000;
  background: linear-gradient(90deg, var(--prime-bg), var(--accent-bg));
  transition: width 0.08s linear;
}

/* stagger fade-up */
.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-item.stagger-in {
  opacity: 1;
  transform: none;
}

/* back-to-top 进度环 */
#backtotop .progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
#backtotop .progress-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
}
#backtotop .progress-ring-bar {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
}

/* ===== 阶段2: Task 7 服务网络 ===== */
.network-section {
  position: relative;
  overflow: hidden;
}
.network-map-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  background: url("../../assets/images/world-map-1.webp") no-repeat center / contain;
  opacity: 0.9;
}
[data-nanobytech-theme="dark"] .network-map-wrap {
  background-image: url("../../assets/images/world-map-2.webp");
}
.network-map-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--body-bg);
  opacity: 0.35;
  pointer-events: none;
}
.network-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent-bg);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.25);
}
.network-node::before,
.network-node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent-bg);
  opacity: 0;
  animation: nodePulse 2.4s ease-out infinite;
}
.network-node::after {
  animation-delay: 1.2s;
}
@keyframes nodePulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.network-node:hover::before,
.network-node:hover::after {
  animation-play-state: paused;
}
.network-node .tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--head-bg);
  color: var(--head-text);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  box-shadow: var(--shadow-md);
}
.network-node:hover .tooltip,
.network-node:focus-visible .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.network-city-list {
  display: none;
}
@media (max-width: 767px) {
  .network-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    list-style: none;
    padding: 0;
  }
  .network-city-list li {
    padding: 6px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    background: var(--card-bg);
    color: var(--para-alt-text);
    font-size: 13px;
    font-weight: 600;
  }
}

/* ===== 阶段2: Task 8 合作伙伴 marquee ===== */
.partner-marquee {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partner-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--para-alt-text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

/* ===== 阶段2: Task 9 服务卡片微交互 ===== */
.flip-box-front {
  position: relative;
}
.flip-box-front::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 180deg, transparent 0%, var(--prime-bg) 25%, var(--accent-bg) 50%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.flip-box:hover .flip-box-front::after,
.flip-box.is-flipped .flip-box-front::after {
  opacity: 0.7;
}
.box-item {
  transition: transform 0.3s ease;
}

/* ===== 阶段2: prefers-reduced-motion 兜底 ===== */
@media (prefers-reduced-motion: reduce) {
  .splide__slide.is-active .slide-inner-bg,
  .network-node::before,
  .network-node::after,
  .partner-track {
    animation: none !important;
  }
  .hero-glow {
    transition: none !important;
  }
  .hero-title .char {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress {
    transition: none !important;
  }
  .hero-primary,
  .box-item {
    transition: none !important;
  }
}


/* ===== 阶段3: Task 10 为什么选择我们 ===== */
.why-us-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.why-us-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--prime-bg), var(--accent-bg));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.why-us-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--prime-border);
}
.why-us-card:hover::before { transform: scaleX(1); }
.why-us-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--prime-bg), var(--second-bg));
  color: #fff;
  margin-bottom: 20px;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(58, 112, 200, .28);
}
.why-us-icon .icon { font-size: 26px; }
.why-us-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.why-us-card p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.why-us-metric { font-weight: 700; font-size: 18px; letter-spacing: .02em; }

/* ===== 阶段3: Task 11 服务保障 ===== */
.guarantee-section { background: var(--alt-bg); }
.guarantee-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.guarantee-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--alt-bg);
  border-radius: var(--radius-md);
  transition: background .3s ease, transform .3s ease;
  height: 100%;
}
.guarantee-item:hover { background: var(--prime-bg); transform: translateX(4px); }
.guarantee-item:hover h5, .guarantee-item:hover p { color: #fff !important; }
.guarantee-item .icon { flex-shrink: 0; color: var(--prime-bg); font-size: 24px; margin-top: 2px; transition: color .3s ease; }
.guarantee-item:hover .icon { color: #fff; }
.guarantee-item h5 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.guarantee-item p { font-size: 14px; margin: 0; }

/* ===== 阶段3: Task 12 案例元信息 ===== */
.feature-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -40px;
  padding: 8px 14px;
  background: rgba(11, 18, 32, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease .1s, transform .35s ease .1s, bottom .35s ease .1s;
  z-index: 3;
}
.feature-image:hover .feature-meta { opacity: 1; transform: translateY(0); bottom: 20px; }
.feature-content { transition: opacity .4s ease, transform .4s ease, bottom .35s ease .1s; }
@media (hover: hover) {
  .feature-image:hover .feature-content { bottom: 64px; }
}
@media (max-width: 767.98px) {
  .feature-image { max-height: none !important; display: flex; flex-direction: column; }
  .feature-image img { flex: 0 0 auto; height: 220px !important; max-height: 220px; object-fit: cover; }
  .feature-image::after { opacity: 0; }
  .feature-content {
    position: static;
    opacity: 1;
    transform: none;
    padding: 14px 16px 0;
  }
  .feature-content h5, .feature-content h6 { color: var(--head-text) !important; }
  .feature-meta {
    position: static;
    opacity: 1;
    transform: none;
    margin: 10px 16px 16px;
    background: var(--card-alt-bg);
    color: #fff;
    bottom: auto;
    left: auto;
    right: auto;
  }
}

/* ===== 阶段3: Task 13 联系卡片 ===== */
.contact-cards-row { position: relative; z-index: 2; }
.contact-card-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-md);
  color: #fff;
  text-align: left;
  width: 100%;
  min-height: 76px;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
  cursor: pointer;
  position: relative;
  font: inherit;
  text-decoration: none;
}
.contact-card-mini:hover,
.contact-card-mini:focus-visible {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.contact-card-mini .icon { flex-shrink: 0; font-size: 26px; }
.contact-card-mini h5 { font-size: 15px; font-weight: 600; margin: 0 0 2px; color: #fff; }
.contact-card-mini p { font-size: 13px; margin: 0; opacity: .85; color: #fff; word-break: break-all; }
.contact-card-wechat .wechat-qr-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 10;
}
.contact-card-wechat:hover .wechat-qr-pop,
.contact-card-wechat:focus-visible .wechat-qr-pop,
.contact-card-wechat:focus-within .wechat-qr-pop {
  opacity: 1;
  transform: translate(-50%, 0);
}
.wechat-qr-placeholder {
  width: 160px;
  height: 160px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  line-height: 1.6;
  padding: 12px;
}
.wechat-qr-image {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ===== 阶段3: Task 14 团队社交图标本土化 ===== */
.social-bar { gap: 12px; padding: 12px 0; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  position: relative;
  font-size: 16px;
  padding: 0;
  text-decoration: none;
}
.social-btn:hover { background: var(--accent-bg); color: #101827; transform: translateX(-3px); }
.social-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%) translateX(6px);
  background: var(--head-bg);
  color: var(--head-text);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  box-shadow: var(--shadow-md);
  z-index: 5;
}
.social-btn[data-tip]:hover::after,
.social-btn[data-tip]:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ===== 阶段4: Task 15 响应式打磨 ===== */
/* 小屏 section padding 统一（576px 以下） */
@media (max-width: 575.98px) {
  .why-us-section,
  .guarantee-section,
  .network-section,
  .partner-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  /* Hero 容器在小屏补内边距，避免 splide-container 720px 边缘溢出 */
  .splide-container { padding: 0 16px; }
  /* 地图 tooltip 不超出屏幕 */
  .network-node .tooltip { font-size: 11px; padding: 3px 8px; }
}

/* 触摸目标 ≥ 44px */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .social-btn,
  .contact-card-mini,
  .partner-badge,
  .prime-btn,
  .prime-btn-2,
  .theme-btn,
  .navbar-toggler,
  #backtotop {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-link { padding: .65rem .5rem; }
}

/* 全局防横向溢出兜底 */
img, svg, video { max-width: 100%; height: auto; }
/* logo 固定高度：上面的 height:auto 会覆盖 height="56" 属性，需显式还原 */
img[data-logo] { height: 56px; width: auto; }
.container { padding-left: 16px; padding-right: 16px; }

/* ===== 阶段4: Task 17 暗主题补齐 ===== */
[data-nanobytech-theme="dark"] .why-us-card {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--para-text);
}
[data-nanobytech-theme="dark"] .why-us-card h4 { color: var(--head-text); }
[data-nanobytech-theme="dark"] .why-us-card p { color: var(--para-alt-text); }
[data-nanobytech-theme="dark"] .why-us-metric { color: var(--prime-bright); }

[data-nanobytech-theme="dark"] .guarantee-inner {
  background: var(--card-bg);
  border-color: var(--card-border);
}
[data-nanobytech-theme="dark"] .guarantee-item {
  background: var(--alt-bg);
  color: var(--para-text);
}
[data-nanobytech-theme="dark"] .guarantee-item h5 { color: var(--head-text); }
[data-nanobytech-theme="dark"] .guarantee-item p { color: var(--para-alt-text); }

[data-nanobytech-theme="dark"] .partner-badge {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--para-alt-text);
}

[data-nanobytech-theme="dark"] .network-node .tooltip {
  background: var(--card-alt-bg);
  color: var(--head-text);
}

[data-nanobytech-theme="dark"] .contact-card-mini {
  background: var(--card-alt-bg);
  border-color: var(--card-border);
}
