html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

:root {
  --primary: #7000FF;
  --primary-glow: rgba(112, 0, 255, 0.4);
  --secondary: #00F0FF;
  --secondary-glow: rgba(0, 240, 255, 0.3);
  --accent: #ff00c8;
  --bg-dark: #050505;
  --text-main: #E0E0E0;
  --text-dim: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Gradient Background */
.bg-vortex {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(circle at var(--mouse-x, 15%) var(--mouse-y, 15%), rgba(125, 42, 232, 0.15), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 245, 255, 0.1), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 200, 0.05), transparent 60%);
  background-attachment: fixed;
  transition: background 0.5s ease;
}

@keyframes pulse-bg {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.bg-vortex::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 150%);
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.7);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
}

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

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.glass-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), transparent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px var(--primary-glow);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  background: var(--glass-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 10px var(--primary-glow);
}

.lang-divider {
  color: var(--glass-border);
  font-size: 0.8rem;
}

/* Navigation Button */
.nav-btn {
  padding: 0.6rem 1.5rem;
  margin-left: 1.5rem;
}


/* Sections */
section {
  padding: 120px 0;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  /* 增加顶部内边距，从 140px 增加到 160px，确保不被固定 Header 遮挡 */
  padding-bottom: 80px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(112, 0, 255, 0.15) 0%,
      rgba(112, 0, 255, 0.08) 30%,
      rgba(0, 240, 255, 0.04) 60%,
      transparent 80%);
  filter: blur(120px);
  /* 进一步增加模糊度并降低透明度，使光晕更加柔和 */
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

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

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-visual img {
  max-width: 90%;
  filter: drop-shadow(0 0 60px rgba(112, 0, 255, 0.3)) drop-shadow(0 0 100px rgba(0, 240, 255, 0.2));
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

#hero h1 {
  font-size: clamp(3.5rem, 12vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  font-weight: 900;
}

#hero p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

/* Vision Carousel */
.vision-carousel-container {
  width: 100%;
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
}

.vision-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}

.vision-nav button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.vision-carousel-container:hover .vision-nav button {
  opacity: 1;
}

.vision-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.vision-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.vision-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.vision-item {
  flex: 0 0 400px;
  scroll-snap-align: center;
}

.vision-card {
  padding: 1.5rem !important;
  text-align: left;
  height: 100%;
}

.vision-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.vision-card .mono {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.placeholder-concept {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px dashed var(--glass-border);
}

@media (max-width: 768px) {
  .vision-item {
    flex: 0 0 300px;
  }
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Footer */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
}

/* Animations */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Stagger delay for cards */
.features-grid .glass-card:nth-child(1) {
  transition-delay: 0.1s;
}

.features-grid .glass-card:nth-child(2) {
  transition-delay: 0.2s;
}

.features-grid .glass-card:nth-child(3) {
  transition-delay: 0.3s;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
select {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Large screens adjustment for navigation */
@media (min-width: 1000px) and (max-width: 1220px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

  .nav-btn {
    padding: 0.6rem 1.2rem;
    margin-left: 1rem;
  }

  .lang-switcher {
    margin-left: 1rem;
  }
}

/* Responsive */
@media (max-width: 992px) {
  #hero {
    text-align: center;
    padding-top: 180px;
  }

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

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 4rem;
  }

  .hero-visual img {
    max-width: 80%;
  }

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

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 0.8rem 0;
    gap: 0.6rem;
  }

  /* 导航两行布局 */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    row-gap: 0.6rem;
    width: 100%;
  }

  .nav-links a:not(.btn):not(.nav-btn) {
    margin-left: 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  /* 语言切换和按钮放在第二行，居中 */
  .lang-switcher {
    margin: 0;
    padding: 0.3rem 0.6rem;
  }

  .nav-links .nav-btn {
    padding: 0.5rem 1.5rem;
    margin: 0 0 0 0.5rem;
    font-size: 0.85rem;
  }

  .container {
    padding: 0 1rem;
  }

  #hero .container {
    padding: 0;
  }

  #hero .hero-content {
    padding: 0 1rem;
  }

  #hero {
    padding-top: 140px;
    padding-bottom: 40px;
    overflow: visible;
  }

  #hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  #hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .hero-visual {
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: visible;
  }

  .hero-visual img {
    max-width: 100%;
  }

  .hero-visual::before {
    width: 280px;
    height: 280px;
  }

  /* 防止 header 遮挡魔方 */
  header {
    position: fixed;
    z-index: 100;
  }

  .glass-card {
    padding: 1.5rem;
  }

  section {
    padding: 60px 0;
  }

  /* Vision section: 文字有边距，轮播图紧贴边缘 */
  #vision .container {
    padding: 0;
    max-width: 100%;
  }

  #vision>.container>.glass-card {
    border-radius: 0;
    padding: 2rem 1rem !important;
    border-left: none;
    border-right: none;
  }

  #vision>.container>.glass-card>h2,
  #vision>.container>.glass-card>p {
    padding: 0 0.5rem;
  }

  .vision-carousel-container {
    margin: 2rem -1rem 0 -1rem;
    width: calc(100% + 2rem);
  }

  .vision-carousel {
    padding: 0;
    gap: 0;
  }

  .vision-item {
    flex: 0 0 100vw;
    padding: 0;
  }

  .vision-card {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0;
  }

  .vision-card img {
    margin-bottom: 0.5rem;
    border-radius: 0 !important;
    width: 100%;
    display: block;
  }

  .vision-card .mono {
    padding: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .vision-item {
    flex: 0 0 calc(100vw - 1.5rem);
  }

  .vision-card {
    padding: 0.6rem !important;
  }
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 0;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  border-radius: 12px;
  color: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* FAQ Accordion */
.faq-item {
  cursor: pointer;
  padding: 2rem !important;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

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

.faq-question h4 {
  margin-bottom: 0 !important;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0, 1, 0, 1);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1.5rem;
  opacity: 1;
  transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

/* Hero Image Glimmer */
.glimmer-container {
  position: relative;
}

.glimmer-overlay {
  position: absolute;
  top: -100px;
  left: 0px;
  width: 140%;
  height: 144%;
  background: linear-gradient(135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 55%,
      transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}

.glimmer-container:hover .glimmer-overlay {
  animation: glimmer 1s ease-in-out;
}

@keyframes glimmer {
  100% {
    transform: translateX(100%);
  }
}

.toast-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

/* --- Contact Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 3.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  margin-top: 1rem;
}

.modal-body p {
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-email-box {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-email-box .mono {
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.copy-btn {
  background: var(--primary);
  color: #000;
  font-weight: 600;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.copy-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 3rem 1.5rem;
  }

  .contact-email-box {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .copy-btn {
    width: 100%;
  }
}