/*
Theme Name: 会壹科技
Description: 现代科技商务风格的B2B外贸获客技术服务网站自定义主题
Author: 会壹科技
Version: 1.0
*/

:root {
  --primary-blue: #0044ff;
  --bg-dark: #090a17;
  --bg-light: #F8F9FA;
  --text-dark: #111;
  --text-gray: #555555;
  --text-light: #fff;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius-pill: 50px;
  --radius-card: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  color: var(--text-gray);
  line-height: 1.6;
}

main {
  position: relative;
  z-index: 10;
}

h1,
h2,
h3 {
  color: var(--text-dark);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* BUTTON */
.btn-creative {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--primary-blue, #0044ff);
  border-radius: 99px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid var(--primary-blue);
  overflow: hidden;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header.sticky .btn-creative:hover {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.btn-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.btn-text span {
  display: inline-block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-text::after {
  content: attr(data-text);
  position: absolute;
  top: 150%;
  left: 0;
  width: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-creative:hover .btn-text span {
  transform: translateY(-150%);
}

.btn-creative:hover .btn-text::after {
  transform: translateY(-150%);
}

.btn-icon {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.btn-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.arrow-out {
  transform: translate(0, 0);
}

.arrow-in {
  transform: translate(-150%, 150%);
}

.btn-creative:hover .arrow-out {
  transform: translate(150%, -150%);
}

.btn-creative:hover .arrow-in {
  transform: translate(0, 0);
}

/* HEADER */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: transparent;
  color: #fff;
  transition: background-color 0.4s ease, height 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.header:hover {
  background-color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.header.sticky {
  position: fixed;
  background-color: #fff;
  height: 80px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}



.logo,
.divider,
.slogan,
.nav-menu li a {
  transition: color 0.4s ease, opacity 0.3s ease;
}

.header.sticky .logo,
.header.sticky .nav-menu li a,
.header:hover .logo,
.header:hover .nav-menu li a {
  color: #111;
}

.header.sticky .slogan,
.header:hover .slogan {
  color: #555555;
}

.header.sticky .divider,
.header:hover .divider {
  color: rgba(0, 0, 0, 0.1);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  letter-spacing: 1px;
}

.logo {
  display: flex;
  font-size: 0;
  align-items: center;
}

.logo img {
  max-height: 56px;
  width: auto;
  transition: filter 0.4s ease;
}

.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

.header.sticky .logo-light,
.header:hover .logo-light {
  display: none;
}

.header.sticky .logo-dark,
.header:hover .logo-dark {
  display: block;
}

.fallback-dark {
  filter: invert(1) brightness(0);
}

.divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  font-weight: 300;
}

.slogan {
  font-size: 15px;
  color: #e0e0e0;
  font-weight: 400;
}

.nav,
.nav-menu {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu>li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 24px;
}

.nav-menu>li>a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.nav-menu>li:hover>a {
  color: #0044FF;
}

.nav-menu li a span {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu li a::after {
  content: attr(data-text);
  position: absolute;
  top: 150%;
  left: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu>li:hover>a span {
  transform: translateY(-150%);
}

.nav-menu>li:hover>a::after {
  transform: translateY(-150%);
  color: #0044FF;
}

.header-action {
  margin-left: 80px;
}

.nav-menu li.has-mega-menu {
  position: static !important;
}

.nav-menu li.has-mega-menu>a {
  padding-right: 24px;
}

.nav-menu>li.has-mega-menu>a::before {
  content: '';
  position: absolute;
  left: 46px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  box-sizing: border-box;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.nav-menu>li.has-mega-menu:hover>a::before {
  transform: rotate(-135deg);
  color: #0044FF;
}

.mega-menu-panel {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid #EAEAEA;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  cursor: default;
}

.nav-menu li.has-mega-menu:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  color: #333333;
}

.mega-left-sidebar {
  flex: 0 0 320px;
  background-color: #F8F9FA;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.mega-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #111111;
}

.mega-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.mega-action-link {
  color: #00B368;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: auto;
}

.mega-feedback {
  font-size: 13px;
  color: #999999;
  cursor: pointer;
  margin-top: 40px;
}

.mega-center-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px;
}

.mega-col-title {
  font-size: 14px;
  color: #999999;
  font-weight: 500;
  margin: 0 0 24px 0;
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 12px;
}

.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #333333;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.mega-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0044FF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mega-list a:hover::after {
  transform: scaleX(1);
}

.mega-list a:hover {
  color: #0044FF;
}

.badge-hot {
  background-color: #FF3333;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Header Slide Animation */
@keyframes headerSlideUpIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

#main-header .logo,
#main-header .divider,
#main-header .slogan,
#main-header .nav-menu>li>a,
#main-header .header-action {
  opacity: 0;
  animation: headerSlideUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#main-header .logo {
  animation-delay: 0.1s;
}

#main-header .divider {
  animation-delay: 0.15s;
}

#main-header .slogan {
  animation-delay: 0.2s;
}

#main-header .nav-menu>li:nth-child(1)>a {
  animation-delay: 0.3s;
}

#main-header .nav-menu>li:nth-child(2)>a {
  animation-delay: 0.4s;
}

#main-header .nav-menu>li:nth-child(3)>a {
  animation-delay: 0.5s;
}

#main-header .nav-menu>li:nth-child(4)>a {
  animation-delay: 0.6s;
}

#main-header .nav-menu>li:nth-child(5)>a {
  animation-delay: 0.7s;
}

#main-header .header-action {
  animation-delay: 1.0s;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #fff;
  margin: 7px 0;
  transition: 0.3s ease;
}

.header.sticky .mobile-toggle span,
.header:hover .mobile-toggle span {
  background-color: #111;
}

.mobile-simplified-menu {
  display: none;
}

@media (max-width: 1024px) {
  .header {
    position: fixed !important;
    height: 70px;
    background-color: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: none !important;
  }

  .header .logo {
    color: #111 !important;
  }

  .logo img {
    max-height: 48px;
  }

  .header .logo-light {
    display: none !important;
  }

  .header .logo-dark {
    display: block !important;
  }

  .header .mobile-toggle span {
    background-color: #111 !important;
  }

  .desktop-only,
  .hide-on-mobile {
    display: none !important;
  }

  .header-inner {
    padding: 0 20px;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav.main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .header.menu-open .nav.main-navigation {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li a span {
    transform: none !important;
  }

  .nav-menu li a::after {
    display: none !important;
  }

  .nav-menu>li {
    display: block !important;
    width: 100%;
    height: auto;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 500;
    color: #111;
    box-sizing: border-box;
  }

  .nav-menu>li>a span {
    order: 1;
  }

  .nav-menu>li.has-mega-menu>a {
    padding-right: 0;
  }

  .nav-menu>li.has-mega-menu>a::before {
    position: static !important;
    order: 2;
    margin-left: auto;
    margin-right: 4px;
    transform: translateY(0) rotate(45deg);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .nav-menu li.has-mega-menu .mega-menu-panel {
    position: static !important;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-top: 0;
    transform: none !important;
    display: grid !important;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .nav-menu li.has-mega-menu .mega-menu-panel>div {
    min-height: 0;
  }

  .nav-menu li.has-mega-menu.mobile-open .mega-menu-panel {
    grid-template-rows: 1fr;
  }

  .nav-menu li.has-mega-menu.mobile-open>a {
    color: #0044ff;
  }

  .nav-menu li.has-mega-menu.mobile-open>a::before {
    transform: rotate(-135deg);
    color: #0044ff;
  }

  .nav-menu li.has-mega-menu.mobile-open .mega-menu-panel {
    display: block;
    opacity: 1 !important;
    visibility: visible;
  }

  .mobile-simplified-menu {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    margin: 0;
    padding-left: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-simplified-menu a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px dashed #eaeaea;
    border-radius: 0;
    transition: color 0.3s ease;
    box-sizing: border-box;
  }

  .mobile-simplified-menu a:last-child {
    border-bottom: none;
    padding-bottom: 20px;
  }

  .mobile-simplified-menu a:active,
  .mobile-simplified-menu a:hover {
    color: #00B368 !important;
    background-color: transparent;
  }

  .header-action {
    margin: 30px 0 40px 0;
    width: 100%;
  }
}

/* FOOTER */
.tech-vanguard-footer {
  position: relative;
  margin-top: -48px;
  padding-top: 48px;
  background-color: #000;
  color: #888;
  overflow: hidden;
}

.footer-cta-banner {
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.cta-banner-title {
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 16px 0;
  letter-spacing: 1px;
}

.cta-banner-desc {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 40px 0;
}

.btn-cta-white {
  display: inline-block;
  background-color: #fff;
  color: #0044FF;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 44px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tech-vanguard-footer .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 35%;
}

.footer-logo img {
  max-height: 64px;
  width: auto;
  margin-bottom: 8px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.brand-slogan {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.social-text-links {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.social-text-links a {
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-text-links a:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  gap: 80px;
  flex: 0 0 55%;
}

.contact-col-1,
.contact-col-2 {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-col-2 {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 14px;
  color: #d7e7ff;
  margin-bottom: 6px;
}

.contact-value {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-value:hover {
  color: #8a73ff;
}

.qr-code-box {
  margin-top: 12px;
  width: 80px;
  height: 80px;
  background-color: #111;
  border: 1px solid #333;
  padding: 4px;
  border-radius: 4px;
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.phone-number {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.phone-number:hover {
  color: #8a73ff;
}

.address-zh {
  color: #888;
  font-size: 16px;
  margin: 0 0 4px 0;
}

.address-en {
  color: #555;
  font-size: 11px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
}

.copyright-text {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.footer-separator {
  margin: 0 10px;
  color: #333;
}

.copyright-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright-text a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-layout {
    flex-direction: column;
    gap: 60px;
    padding: 60px 0;
  }

  .footer-left {
    flex: none;
  }

  .social-text-links {
    margin-top: 20px;
  }

  .footer-right {
    flex: none;
    flex-wrap: wrap;
    gap: 40px;
  }

  .cta-banner-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .footer-right {
    flex-direction: column;
    gap: 40px;
  }

  .phone-number {
    font-size: 24px;
  }

  .footer-bottom-bar {
    text-align: left;
    line-height: 1.8;
  }

  .footer-separator {
    display: none;
  }

  .copyright-text a {
    display: block;
    margin-top: 6px;
  }
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ====================
   全局入场动画系统 (防冲突优化版)
==================== */
/* 强制保护过渡时间和延迟不被组件自带的 hover transition 覆盖 */
.reveal-up, 
.reveal-down, 
.reveal-left, 
.reveal-right {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-delay: var(--reveal-delay, 0s) !important;
}

.reveal-up { transform: translateY(50px); }
.reveal-down { transform: translateY(-50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* 终极显示状态 */
.is-revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}