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

:root {
  /* iOS 品牌色 */
  --cp-orange: #FF9500;
  --cp-text-primary: #FFFFFF;
  --cp-text-secondary: rgba(255, 255, 255, 0.8);

  /* 字体 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  color: var(--cp-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* 背景图片 */
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('./images/background-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

/* 导航栏 */
.cp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
}

.cp-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.cp-header-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cp-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  /* 确保文字垂直居中 */
}

.cp-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.cp-nav a {
  color: var(--cp-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
  border-radius: 6px;
}

.cp-nav a:hover {
  color: white;
}

.cp-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  color: white;
}

/* 主内容区 */
.cp-main-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 2rem;
}

.cp-hero-content {
  max-width: 1000px;
  animation: fadeIn 1s ease-out;
}

.cp-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cp-title-main {
  color: white;
  margin-right: 0;
  /* 移除右边距，因为换行了 */
  display: block;
  /* 强制换行 */
}

.cp-title-sub {
  color: var(--cp-orange);
  display: block;
  /* 强制换行 */
}

/* App Store Badge */
.cp-app-store-badge img {
  height: 56px;
  width: auto;
  transition: transform 0.2s ease;
}

.cp-app-store-badge a:hover img {
  transform: scale(1.05);
}

/* 语言切换按钮 */
.cp-lang-switcher {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.cp-lang-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.cp-lang-switcher:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* 响应式 */
@media (max-width: 768px) {
  .cp-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    /* 移动端增加背景增加可读性 */
    backdrop-filter: blur(10px);
  }

  .cp-nav {
    display: flex;
    gap: 1rem;
  }

  .cp-nav a {
    display: none;
    /* 移动端隐藏导航链接，保留语言切换按钮 */
  }

  .cp-lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cp-hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
