/* ===== 全局重置与基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1225;
  --bg-card: rgba(15, 22, 45, 0.8);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent-blue: #00d4ff;
  --accent-purple: #7b61ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #7b61ff);
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-blue: rgba(0, 212, 255, 0.3);
  --glow-purple: rgba(123, 97, 255, 0.3);
}

html {
  scroll-behavior: smooth;
  background-color: #001236;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

body::before {
  top: 0;
  height: min(100vh, 920px);
  background-image: url('../images/bg1.jpg');
  background-position: center top;
}

body::after {
  bottom: 0;
  height: min(100vh, 820px);
  background-image: url('../images/bg2.jpg');
  background-position: center bottom;
}

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

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #20DDFD, #10A3FF);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

.nav-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 114, 255, 0.5);
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* overflow: hidden; */
  background: transparent;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 100, 200, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(123, 97, 255, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(0, 180, 255, 0.08), transparent);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #b0c4de 100%);
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, 246px);
  gap: 12px;
  max-width: 504px;
}

.download-btn-wrap {
  position: relative;
  width: 246px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 246px;
  height: 60px;
  padding: 0 22px;
  background: rgba(143, 143, 143, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-icon-img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.download-icon-img {
  width: 20px;
  height: 20px;
  margin-left: auto;
  object-fit: contain;
}

/* Windows/Android hover - 亮蓝色 */
.download-btn.windows:hover,
.download-btn.android:hover {
  background: rgba(0, 120, 212, 0.7);
  border-color: rgba(0, 140, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 120, 212, 0.3);
}

/* iOS/Mac OS 默认也用深蓝背景 */
/* .download-btn.ios,
.download-btn.macos {
  background: rgba(13, 25, 55, 0.8);
} */

/* iOS/Mac OS hover */
.download-btn.ios:hover,
.download-btn.macos:hover {
  background: rgba(0, 120, 212, 0.7);
  border-color: rgba(0, 140, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 120, 212, 0.3);
}

/* ===== QR 码弹出层 ===== */
.qr-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.download-btn-wrap:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.qr-popup-inner {
  width: 216px;
  height: 216px;
  padding: 20px 18px 14px;
  background: url('../images/down_card.png') no-repeat center center;
  background-size: 184px 184px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.qr-code-svg {
  width: 164px;
  height: 164px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  object-fit: contain;
}

.qr-text {
  display: none;
}

/* ===== 3D 立方体图片 ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.5s ease;
}

.hero-cube-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== 通用区块样式 ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-title.left-align {
  text-align: left;
}

.section-subtitle {
  font-size: 36px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.8;
}

/* ===== 用户评价区 ===== */
.testimonials {
  padding: 100px 0;
  position: relative;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  width: 270px;
  position: relative;
  background: rgba(10, 21, 50, 0.92);
  border-radius: 16px;
  padding: 24px 24px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(45, 92, 255, 0.12) 0%, rgba(72, 198, 255, 0.92) 50%, rgba(45, 92, 255, 0.12) 100%);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.testimonial-text {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.stars {
  color: #ffc107;
  font-size: 14px;
  letter-spacing: 2px;
}

.stars-img {
  margin-top: 2px;
}

.stars-img img {
  height: 14px;
  width: auto;
  object-fit: contain;
}

/* ===== 全球节点区 ===== */
.global-nodes {
  position: relative;
  overflow: hidden;
}

.global-nodes .section-container {
  position: relative;
  z-index: 1;
}

.nodes-content {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.nodes-text {
  max-width: 420px;
}

.global-nodes .section-title {
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.35;
}

.nodes-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 44px;
  line-height: 1.9;
  max-width: 420px;
}

.nodes-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 460px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  background: transparent;
  border-color: transparent;
  transform: translateY(-4px);
}

.feature-icon {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-item span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.nodes-map {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nodes-map-image {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 140, 255, 0.16));
}

.world-map {
  display: none;
}

.node-dot {
  filter: drop-shadow(0 0 6px currentColor);
}

.node-ring {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.3; r: 8; }
  50% { opacity: 0.8; r: 12; }
}

/* ===== 加密安全区 ===== */
.security {
  padding: 80px 0;
  position: relative;
}

.security-content {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(420px, 1fr);
  gap: 72px;
  align-items: center;
}

.security-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.shield-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shield-glow {
  display: none;
}

@keyframes shieldGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.shield-icon {
  display: none;
}

.shield-main-image {
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  object-fit: contain;
}

.shield-orbit {
  display: none;
}

.orbit-1 {
  width: 240px;
  height: 240px;
  animation: rotateOrbit 10s linear infinite;
}

.orbit-2 {
  width: 280px;
  height: 280px;
  animation: rotateOrbit 15s linear infinite reverse;
  border-color: rgba(123, 97, 255, 0.12);
}

.orbit-dot {
  display: none;
}

.dot-1 {
  animation: orbitDot1 10s linear infinite;
}

.dot-2 {
  animation: orbitDot2 15s linear infinite reverse;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

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

@keyframes orbitDot1 {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes orbitDot2 {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

.security-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 34px;
  line-height: 1.9;
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(3, 156px);
  justify-content: center;
  gap: 24px;
}

.sec-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 156px;
  min-height: 176px;
  padding: 28px 18px 24px;
  background: rgba(11, 20, 45, 0.92);
  /* border: 1px solid rgba(255, 255, 255, 0.04); */
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  text-align: center;
}

.sec-feature:hover {
  background: rgba(15, 26, 58, 0.96);
  /* border-color: rgba(255, 255, 255, 0.1); */
  transform: translateY(-4px);
}

.sec-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}

.sec-icon svg {
  display: none;
}

.sec-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sec-feature span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.security-text {
  max-width: 440px;
  margin-left: auto;
  text-align: right;
}

.security .section-title {
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.35;
}

.security .section-title.left-align {
  text-align: right;
}

.footer-download {
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-download .section-container {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.5;
}

.footer-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 42px;
  line-height: 1.8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer-buttons {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  justify-content: center;
  gap: 14px;
}

.footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 150px;
  min-height: 100px;
  padding: 18px 12px;
  background: rgba(8, 18, 44, 0.96);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background: rgba(10, 24, 58, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12);
}

.footer-btn-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-btn span {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-btn-wrap {
  position: relative;
  width: 150px;
}

.footer-qr-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  pointer-events: none;
}

.footer-btn-wrap:hover .footer-qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.footer-qr-popup-inner {
  width: 216px;
  height: 216px;
  padding: 14px 18px 20px;
  background: url('../images/up_card.png') no-repeat center center;
  background-size: 184px 184px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1921px) {
  .nav-container,
  .hero-container,
  .section-container,
  .testimonials-grid {
    max-width: 1400px;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    max-width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr;
    max-width: 246px;
  }

  .download-btn-wrap {
    width: 246px;
  }

  .hero-visual {
    order: -1;
  }

  .cube-container {
    width: 240px;
    height: 240px;
  }

  .glowing-cube {
    width: 70px;
    height: 70px;
  }

  .cube-face {
    width: 70px;
    height: 70px;
  }

  .cube-face.front  { transform: translateZ(35px); }
  .cube-face.back   { transform: translateZ(-35px) rotateY(180deg); }
  .cube-face.left   { transform: translateX(-35px) rotateY(-90deg); }
  .cube-face.right  { transform: translateX(35px) rotateY(90deg); }
  .cube-face.top    { transform: translateY(-35px) rotateX(90deg); }
  .cube-face.bottom { transform: translateY(35px) rotateX(-90deg); }

  .testimonials-grid {
    justify-content: center;
  }

  .testimonial-card {
    width: calc(50% - 7px);
  }

  .nodes-content,
  .security-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nodes-text {
    max-width: none;
    text-align: center;
  }

  .section-title.left-align {
    text-align: center;
  }

  .global-nodes .section-title {
    font-size: 44px;
  }

  .nodes-desc {
    max-width: none;
  }

  .nodes-features {
    max-width: 520px;
    margin: 0 auto;
  }

  .nodes-map {
    justify-content: center;
  }

  .security-features {
    max-width: 640px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 138px);
    gap: 16px;
  }

  .security-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .security-visual {
    justify-content: center;
  }

  .shield-main-image {
    max-width: 420px;
  }

  .security .section-title {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    max-width: 246px;
  }

  .download-btn-wrap {
    width: 246px;
  }

  .section-title {
    font-size: 28px;
  }

  .global-nodes {
    padding: 80px 0 90px;
  }

  .global-nodes .section-title {
    font-size: 38px;
  }

  .nodes-desc {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .nodes-features {
    gap: 16px;
  }

  .feature-icon {
    width: 72px;
    height: 72px;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .feature-icon-img {
    width: 100%;
    height: 100%;
  }

  .feature-item span {
    font-size: 13px;
  }

  .security .section-title {
    font-size: 38px;
  }

  .security-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .security-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sec-feature {
    width: 100%;
    max-width: 220px;
    min-height: 136px;
    padding: 20px 16px;
    margin: 0 auto;
  }

  .sec-icon {
    width: 48px;
    height: 48px;
  }

  .shield-main-image {
    max-width: 360px;
  }

  .testimonials-grid {
    justify-content: center;
  }

  .testimonial-card {
    width: 100%;
  }

  .footer-title {
    font-size: 32px;
  }

  .footer-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .footer-buttons {
    grid-template-columns: repeat(2, 150px);
    gap: 12px;
  }
}

/* ===== 粒子效果 ===== */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(50px);
  }
}
