/* 现代化大气主页设计 - ClimbPin */

:root {
  /* iOS 品牌色 */
  --cp-blue: #007AFF;
  --cp-purple: #AF52DE;
  --cp-orange: #FF9500;

  /* 背景色 */
  --cp-bg-dark: #000000;

  /* 文字颜色 */
  --cp-text-primary: #FFFFFF;
  --cp-text-secondary: rgba(255, 255, 255, 0.7);
  --cp-text-muted: rgba(255, 255, 255, 0.5);

  /* 字体 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background: var(--cp-bg-dark);
  color: var(--cp-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰层 - 动态渐变光晕 */
.cp-bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(175, 82, 222, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(255, 149, 0, 0.1) 0%, transparent 40%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* 主容器 */
.cp-main-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cp-hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

/* Logo 样式 - 更大更突出 */
.cp-logo-wrapper {
  position: relative;
}

.cp-logo-modern {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0, 122, 255, 0.4));
  animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoEntrance {
  from {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 核心内容区 */
.cp-hero-content {
  text-align: center;
  max-width: 900px;
}

.cp-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cp-title-line {
  display: block;
  animation: titleSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.cp-title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.cp-title-line:nth-child(2) {
  animation-delay: 0.5s;
}

.cp-title-highlight {
  background: linear-gradient(135deg, var(--cp-blue), var(--cp-purple), var(--cp-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation:
    titleSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards,
    gradientFlow 8s ease infinite;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cp-hero-desc {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--cp-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.7s backwards;
}

.cp-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--cp-text-muted);
  font-style: italic;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease 0.9s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA 按钮区 */
.cp-cta-section {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 1.1s backwards;
}

.cp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--cp-blue), var(--cp-purple));
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cp-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cp-purple), var(--cp-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}

.cp-btn-primary:hover::before {
  opacity: 1;
}

.cp-btn-primary span,
.cp-btn-primary svg {
  position: relative;
  z-index: 1;
}

.cp-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cp-text-primary);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.cp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 底部导航 */
.cp-footer-modern {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cp-footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cp-footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cp-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cp-footer-links a:hover {
  color: var(--cp-text-primary);
}

.cp-footer-info {
  font-size: 0.875rem;
  color: var(--cp-text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cp-logo-modern {
    width: 100px;
    height: 100px;
  }

  .cp-hero-container {
    gap: 3rem;
  }

  .cp-cta-section {
    flex-direction: column;
    width: 100%;
  }

  .cp-btn-primary,
  .cp-btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .cp-footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cp-main-hero {
    padding: 1.5rem;
  }

  .cp-footer-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

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

/* 选中文本样式 */
::selection {
  background: rgba(0, 122, 255, 0.3);
  color: white;
}

/* 语言切换按钮 */
.cp-lang-switcher {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;

  /* 样式 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 40px;
  padding: 0.5rem 0.75rem;

  /* 外观 */
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cp-text-primary);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);

  /* 动画 */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 重置默认按钮样式 */
  outline: none;
}

.cp-lang-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cp-lang-switcher:active {
  transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .cp-lang-switcher {
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 36px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .cp-lang-switcher {
    top: 1rem;
    right: 1rem;
  }
}
