/* 
 * 企业官网 - 主样式文件
 * 高端、炫酷、响应式设计
 */

/* 基础样式 */
:root {
  --primary-color: #2874fc;
  --secondary-color: #7b42ff;
  --accent-color: #ff5e62;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #151b2b;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* 布局样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.section-padding {
  padding: 100px 0;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(40, 116, 252, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(40, 116, 252, 0.5);
  transform: translateY(-3px);
}

/* 页面加载动画 */
.preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  position: relative;
  width: 100px;
  height: 100px;
}

.spinner {
  width: 100%;
  height: 100%;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  background-color: var(--secondary-color);
  animation-delay: -1.0s;
}

@keyframes sk-bounce {

  0%,
  100% {
    transform: scale(0.0);
  }

  50% {
    transform: scale(1.0);
  }
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

.header.initial-state {
  background-color: rgba(21, 27, 43, 0.7);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.sticky {
  padding: 15px 0;
  background-color: rgba(21, 27, 43, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav .nav-link {
  color: var(--light-text);
  position: relative;
  padding: 5px 0;
  font-weight: 500;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 1001;
  padding: 70px 30px 30px;
  transition: var(--transition);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu .nav-link {
  color: #fff;
  font-size: 18px;
  display: block;
  padding: 5px 0;
}

/* Banner区块 */
.banner-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.banner-slider {
  height: 100%;
}

.banner-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(21, 27, 43, 0.9), rgba(21, 27, 43, 0.4));
}

.banner-content {
  position: relative;
  max-width: 700px;
}

.banner-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.banner-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.banner-slide .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(21, 27, 43, 1), transparent);
}

/* 粒子背景 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 区块标题样式 */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-heading p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.heading-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-heading.light h2,
.section-heading.light p {
  color: #fff;
}

/* 关于我们区块 */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-content {
  padding-right: 30px;
}

.about-text {
  margin-bottom: 30px;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(40, 116, 252, 0.2), rgba(123, 66, 255, 0.2));
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.about-image:hover::before {
  opacity: 1;
}

.about-image img {
  width: 100%;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.placeholder-image {
  background-color: #f5f5f5;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.placeholder-image i {
  font-size: 60px;
  color: #ddd;
}

/* 视差滚动效果 */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.03;
  transform: translateZ(-10px) scale(2);
}

/* 服务区块 */
.services-section {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 116, 252, 0.2), rgba(123, 66, 255, 0.2));
  top: -150px;
  left: -150px;
  z-index: 0;
}

.services-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 94, 98, 0.15), rgba(123, 66, 255, 0.15));
  bottom: -100px;
  right: -100px;
  z-index: 0;
}

.service-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
  margin-bottom: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(230, 230, 230, 0.7);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: all 0.4s ease;
  z-index: 1;
}

.service-box:hover::before {
  height: 100%;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(40, 116, 252, 0.1);
  border-color: rgba(40, 116, 252, 0.2);
}

.service-icon {
  font-size: 40px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 25px 0;
  color: var(--primary-color);
  transition: all 0.4s ease;
  position: relative;
  border-radius: 12px;
  background-color: rgba(40, 116, 252, 0.08);
}

.service-icon img {
  max-height: 40px;
  max-width: 40px;
}

.service-box:hover .service-icon {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.service-box:hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-box h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 12px;
}

.service-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
}

.service-box:hover h3::after {
  width: 60px;
}

.service-box p {
  transition: all 0.3s ease;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-box .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-box .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  z-index: -1;
}

.service-box:hover .btn {
  box-shadow: 0 5px 15px rgba(40, 116, 252, 0.2);
}

.service-box:hover .btn::before {
  width: 100%;
}

.service-box:hover .btn {
  color: #fff;
  border-color: var(--primary-color);
}

/* 翻转卡片效果改为现代悬停效果 */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: all 0.4s ease;
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: all 0.4s ease;
  padding: 30px;
  pointer-events: none;
  border-radius: 16px;
}

.service-box:hover .flip-card-back {
  opacity: 0;
}

/* 响应式调整 */
@media (max-width: 991px) {
  .service-box {
    padding: 30px 25px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
    margin: 0 0 20px 0;
  }

  .service-box h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .service-box {
    margin-bottom: 0;
    height: auto;
    min-height: 280px;
  }

  .col-lg-4 {
    margin-bottom: 25px;
  }
}

/* 团队区块 */
.team-section {
  background-color: var(--dark-bg);
  color: #fff;
}

.team-member {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.member-image {
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  transition: var(--transition);
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-info {
  padding: 25px 20px;
  text-align: center;
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.member-info .position {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 15px;
}

.member-info .bio {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 客户区块 */
.clients-section {
  position: relative;
}

.clients-carousel {
  margin: 0 -15px;
  display: flex;
  flex-wrap: wrap;
}

.client-item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 20px;
  text-align: center;
}

.client-item img {
  max-height: 60px;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.client-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.placeholder-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: var(--border-radius);
  color: #aaa;
}

/* 联系我们区块 */
.contact-section {
  background-color: var(--light-bg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  background-color: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.info-item:hover {
  transform: translateY(-5px);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-item p {
  margin-bottom: 0;
  color: #666;
}

.contact-map {
  height: 350px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #f5f5f5;
}

/* 地图错误状态 */
.map-error {
  background-color: #f5f5f5;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* 自定义地图标记 */
.custom-map-marker {
  background: none;
  border: none;
}

.custom-map-marker svg {
  width: 100%;
  height: 100%;
}

/* 页脚 */
.footer {
  background-color: var(--dark-bg);
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  margin-bottom: 0;
}

.back-to-top {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(40, 116, 252, 0.4);
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.back-to-top a {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(40, 116, 252, 0.6);
}

/* 动画元素 */
.animated-element {
  opacity: 0;
}

/* 响应式样式 */
@media (max-width: 991px) {
  .section-padding {
    padding: 80px 0;
  }

  .banner-content h1 {
    font-size: 2.8rem;
  }

  .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .client-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }

  .banner-content h1 {
    font-size: 2.2rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .service-box {
    margin-bottom: 0;
  }

  .client-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }

  .client-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* 炫酷特效 */
/* 鼠标跟踪效果 */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 9999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
}

/* 视差效果 */
.parallax-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

/* 3D卡片效果 */
.tilt-box {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-box-inner {
  transform: translateZ(0);
  transition: var(--transition);
}

/* 悬浮元素 */
.floating {
  animation-name: floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes floating {
  0% {
    transform: translate(0, 0px);
  }

  50% {
    transform: translate(0, 15px);
  }

  100% {
    transform: translate(0, -0px);
  }
}

/* 霓虹灯文字效果 */
.neon-text {
  text-shadow: 0 0 5px rgba(40, 116, 252, 0.7),
    0 0 10px rgba(40, 116, 252, 0.5),
    0 0 20px rgba(40, 116, 252, 0.3);
}

/* 光晕效果 */
.glow {
  position: relative;
  overflow: hidden;
}

.glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: glowAnimation 3s infinite linear;
}

@keyframes glowAnimation {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }

  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

/* 确保内容可见的辅助类，用于避免JavaScript未正确加载导致内容不可见 */
.force-visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

@media (max-width: 768px) {
  /* 添加新的媒体查询规则 */
}

.back-to-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top-button.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top-button i {
  font-size: 20px;
}

.back-to-top-button:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .back-to-top-button {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top-button i {
    font-size: 16px;
  }
}