

.homepage {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 隐藏导航栏和页脚 */
.homepage nav.navbar,
.homepage footer.footer,
.homepage .navbar-sidebar, 
.homepage .theme-doc-sidebar-container, 
.homepage .theme-doc-footer {
  display: none !important;
}

/* 首页模式下的body样式 */
:global(body.homepage-mode) {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

:global(body.homepage-mode) nav.navbar,
:global(body.homepage-mode) footer.footer,
:global(body.homepage-mode) .navbar-sidebar,
:global(body.homepage-mode) .theme-doc-sidebar-container,
:global(body.homepage-mode) .theme-doc-footer {
  display: none !important;
}

:global(body.homepage-mode) #__docusaurus {
  margin: 0 !important;
  padding: 0 !important;
}

:global(body.homepage-mode) .main-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.homepage main {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero 区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, 
      #ffffff 0%, 
      #f5f7ff 30%,
      #e8f0ff 70%,
      #dde9ff 100%
    );
  position: relative;
}

[data-theme='dark'] .hero {
  background: 
    linear-gradient(135deg, 
      #0a0a0b 0%, 
      #0d1420 30%,
      #1a1d29 70%,
      #262b3d 100%
    );
}

/* 微妙的背景点缀 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.06) 0%, transparent 30%);
  pointer-events: none;
}

[data-theme='dark'] .hero::before {
  background: 
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 30%);
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.content {
  text-align: center;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--ifm-color-primary-hue, 221) 100% 96%);
  color: var(--ifm-color-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(var(--ifm-color-primary-hue, 221) 90% 90%);
}

[data-theme='dark'] .badge {
  background: hsl(var(--ifm-color-primary-hue, 217) 100% 8%);
  border-color: hsl(var(--ifm-color-primary-hue, 217) 60% 15%);
}

/* 主标题 */
.title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--ifm-font-color-base);
  margin: 0 0 1rem 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* 描述文字 */
.description {
  font-size: 1.125rem;
  color: var(--ifm-color-emphasis-600);
  margin: 0 0 2.5rem 0;
  line-height: 1.5;
  font-weight: 400;
}

/* 主要操作按钮 */
.cta {
  margin-bottom: 3rem;
}

.primaryBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--ifm-color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.primaryBtn:hover {
  background: var(--ifm-color-primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primaryBtn svg {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.primaryBtn:hover svg {
  transform: translateX(2px);
}

/* 快速访问链接 */
.quickAccess {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quickItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ifm-color-emphasis-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.quickItem:hover {
  color: var(--ifm-color-primary);
  text-decoration: none;
  background: hsl(var(--ifm-color-primary-hue, 221) 100% 97%);
}

[data-theme='dark'] .quickItem:hover {
  background: hsl(var(--ifm-color-primary-hue, 217) 100% 8%);
}

.quickItem svg {
  font-size: 1rem;
  opacity: 0.7;
}

.quickItem:hover svg {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .primaryBtn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .quickAccess {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .quickItem {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .primaryBtn {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* 优雅的动画 */
.content > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.badge {
  animation-delay: 0.1s;
}

.title {
  animation-delay: 0.2s;
}

.description {
  animation-delay: 0.3s;
}

.cta {
  animation-delay: 0.4s;
}

.quickAccess {
  animation-delay: 0.5s;
}

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

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .content > * {
    animation: none;
    opacity: 1;
  }
  
  .primaryBtn,
  .quickItem {
    transition: none;
  }
  
  .primaryBtn:hover {
    transform: none;
  }
  
  .primaryBtn:hover svg {
    transform: none;
  }
}