/* AssetRadar 官网自定义样式 */

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
}

/* 渐变背景 */
.gradient-blur {
  background: linear-gradient(
    45deg,
    rgba(34, 197, 94, 0.2),
    rgba(59, 130, 246, 0.2),
    rgba(168, 85, 247, 0.2)
  );
  filter: blur(40px);
}

/* 悬停效果 */
.hover-lift:hover {
  transform: translateY(-4px);
}

.transition-all {
  transition: all 0.3s ease;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 手机模拟器样式 */
.phone-mockup {
  background: linear-gradient(135deg, #374151, #1f2937);
  border-radius: 2.5rem;
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-inner {
  background: #000;
  border-radius: 2rem;
  padding: 0.25rem;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/19.5;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7rem;
  height: 1.5rem;
  background: #000;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  z-index: 10;
}

/* 资产卡片 */
.asset-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* 功能卡片 */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(210, 40%, 90%);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* 按钮样式 */
.btn-primary {
  background: hsl(142, 76%, 36%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: hsl(142, 76%, 30%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: hsl(142, 76%, 36%);
  padding: 1rem 2rem;
  border: 2px solid hsl(142, 76%, 36%);
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: hsl(142, 76%, 36%);
  color: white;
  transform: translateY(-1px);
}

/* 容器边距优化 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* 响应式网格 */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 移动端额外边距 */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Phone Slider Styles */
.slide-indicator {
  transition: all 0.3s ease;
  cursor: pointer;
}

.slide-indicator:hover {
  transform: scale(1.2);
}

.slide-indicator.active {
  transform: scale(1.3);
}

/* Language Selector - COMPLETELY FIXED */
.language-selector {
  position: relative;
  z-index: 9999;
}

.language-dropdown {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 0.5rem) !important;
  width: 16rem !important;
  background: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e5e7eb !important;
  z-index: 9999 !important;
  max-height: 20rem !important;
  overflow-y: auto !important;

  /* Default hidden state */
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.language-dropdown.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.language-option {
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  user-select: none !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  text-align: left !important;
}

.language-option:hover {
  background-color: #f8fafc !important;
  color: #1f2937 !important;
}

.language-option:active {
  background-color: #f1f5f9 !important;
}

/* Mobile Navigation Styles */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

.mobile-language-option {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.mobile-language-option:hover {
  background-color: #e5e7eb !important;
}

.language-option {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.language-option:last-child {
  border-bottom: none !important;
}

.language-option:hover {
  background-color: #f8fafc !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch optimization for mobile */
@media (max-width: 768px) {
  .language-dropdown {
    width: 14rem;
    max-height: 16rem;
  }

  .language-option, .mobile-language-option {
    padding: 0.875rem 1rem !important;
    font-size: 0.9rem;
  }

  /* Better mobile touch targets */
  button {
    min-height: 44px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
