/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.logo-sub {
  font-size: 12px;
  color: #888;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: #888;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.btn-qq {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  background: #0055D9;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-qq:hover {
  background: #1A6AFF;
  transform: scale(1.02);
}

.btn-qq-img {
  height: 78px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-qq-img:hover {
  transform: scale(2.04);
}

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-content > div {
  max-width: 640px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  color: #888;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0055D9;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-desc {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.btn-primary {
  padding: 12px 32px;
  border-radius: 100px;
  border: none;
  background: #0055D9;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #1A6AFF;
  transform: scale(1.02);
}

.btn-ghost {
  padding: 12px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  transform: scale(1.02);
}

.hero-glow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,85,217,0.3) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
}

/* ===== 特权服务 ===== */
.services {
  position: relative;
  padding: 120px 0;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.section-header.center {
  text-align: center;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-wrap.center {
  justify-content: center;
}

.title-bar {
  width: 4px;
  height: 32px;
  background: #0055D9;
  border-radius: 2px;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
}

.section-subtitle {
  font-size: 16px;
  color: #888;
  margin-left: 16px;
}

.section-header.center .section-subtitle {
  margin-left: 0;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: #151515;
  border: 1px solid #202020;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.service-card:hover {
  border-color: rgba(0, 85, 217, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 85, 217, 0.3), 0 0 30px rgba(0, 85, 217, 0.1);
}

.service-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #151515, transparent);
}

.service-num {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 85, 217, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.service-card:hover .service-body h3 {
  color: #0055D9;
}

.service-body p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,85,217,0.3), transparent);
}

/* ===== 安全服务 ===== */
.security {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.security-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,85,217,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.security-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tilt-container {
  display: grid;
  place-items: center;
  perspective: 1000px;
  padding: 40px 0;
}

.tilt-card {
  width: 360px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transform-style: preserve-3d;
  position: relative;
  transform: rotateX(var(--rX, 0deg)) rotateY(var(--rY, 0deg)) scale(var(--s, 1));
  transition: transform 0.1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  mix-blend-mode: overlay;
  transform: translateZ(1px);
}

.tilt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.security-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 85, 217, 0.15);
  border: 1px solid rgba(0, 85, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0055D9;
  margin-bottom: 24px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.tilt-inner h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.tilt-inner > p {
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
  gap: 8px;
}

.qr-placeholder span {
  font-size: 12px;
  color: #666;
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: #888;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 85, 217, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 85, 217, 0.6); }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .tilt-card {
    width: 300px;
    height: 440px;
  }
}
