/* 导航栏 */
.nav-dropdown {
    background: rgba(30, 41, 59, 0.98);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,255,255,0.10), 0 2px 8px rgba(0,0,0,0.18);
    padding: 32px 40px;
    min-width: 700px;
    display: flex;
    gap: 48px;
    color: #fff;
    border: 1.5px solid #0ff;
    position: absolute;
    left: 50%;
    top: 56px;
    transform: translateX(-50%) scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(.4,0,.2,1);
    z-index: 100;
  }
  .nav-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scaleY(1);
  }
  .nav-col {
    min-width: 180px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
  }
  .nav-col h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #7dd3fc;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }
  .nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .nav-col li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #e0f2fe;
    border-radius: 6px;
    padding: 4px 8px;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
  }
  .nav-col li:hover {
    background: linear-gradient(90deg,#0ff2,#38bdf8 80%);
    color: #222;
  }
  @media (max-width: 900px) {
    .nav-dropdown {
      flex-direction: column;
      min-width: 0;
      width: 95vw;
      gap: 24px;
      padding: 24px 10px;
    }
    .nav-col {
      min-width: 0;
    }
  }
body {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: #000;
    background-attachment: fixed;
    background-size: cover;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 255, 255, 0.15);
}
.glass {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.content-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.content-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.nav-item.active {
    background-color: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
    position: relative;
}
.nav-item.active::after {
    content: "\2192";
    position: absolute;
    right: 16px;
    color: #2563eb;
    font-weight: 700;
}

/*服务*/
.cyber-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            rgba(0, 255, 255, 0) 0%,
            rgba(0, 255, 255, 0.8) 50%,
            rgba(0, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s;
}

.cyber-card:hover::before {
    opacity: 0.6;
    animation: cyber-glow 2s linear infinite;
}

.cyber-card:hover {
    transform: translateY(-8px) perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.15);
}

.cyber-icon {
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

.cyber-card:hover .cyber-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.8));
}

@keyframes cyber-glow {
    0% { transform: rotate(45deg) translate(-20%, -20%); }
    100% { transform: rotate(45deg) translate(20%, 20%); }
}

/* 粒子装饰效果 */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/*首页特效*/
/* 新增科技感样式 */
.cyber-pulse {
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle, rgba(0,255,255,0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.6; }
    100% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.3; }
}

.cyber-button {
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent 25%,
    rgba(0,255,255,0.3) 50%,
    transparent 75%);
    transform: rotate(45deg);
    animation: flow 3s linear infinite;
}

@keyframes flow {
    0% { transform: rotate(45deg) translate(-20%, -20%); }
    100% { transform: rotate(45deg) translate(20%, 20%); }
}

/* 联系我们 */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* 控制项目之间的间距 */
}
.contact-item {
    position: relative;
    cursor: pointer;
    display: inline-block;
}
.qr-code {
    display: none;
    position: absolute;
    top: -160px; /* 调整位置以避免遮挡 */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}
.qr-code.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px); /* 添加动画效果 */
}

