/* ========= VitePress-style Homepage CSS for Gitea ========= */

/* ================================================================
   1. Hero Section - 左右分栏布局
   ================================================================ */
.vp-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* 桌面端：左右分栏 */
@media (min-width: 960px) {
  .vp-hero {
    flex-direction: row;
    align-items: center;
    padding: 5rem 2rem;
    gap: 4rem;
  }
}

/* --- 左侧文字区域 --- */
.vp-hero-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 960px) {
  .vp-hero-content {
    text-align: left;
    max-width: 36rem;
  }
}

/* 主标题 (Text) - 醒目大字 */
.vp-hero-text {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin: 0 0 0.5rem 0;
}

@media (min-width: 960px) {
  .vp-hero-text {
    font-size: 4rem;
  }
}

/* 品牌名称 (Name) - 主题渐变色 */
.vp-hero-name {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  background: linear-gradient(120deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 960px) {
  .vp-hero-name {
    font-size: 4rem;
  }
}

/* 标语 / 简介 (Tagline) */
.vp-hero-tagline {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #6b7280;
  margin: 0 0 2rem 0;
  max-width: 36rem;
}

@media (min-width: 960px) {
  .vp-hero-tagline {
    font-size: 1.35rem;
  }
}

/* --- 操作按钮 (Actions) --- */
.vp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 960px) {
  .vp-hero-actions {
    justify-content: flex-start;
  }
}

/* 主按钮 - 渐变圆角药丸 */
.vp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.vp-btn-primary:hover {
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* 次按钮 - 白底边框 */
.vp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #000000;
  transition: all 0.25s ease;
  cursor: pointer;
}

.vp-btn-secondary:hover {
  border-color: #818cf8;
  color: #4f46e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- 右侧图片区域 --- */
.vp-hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-hero-image img {
  width: 18rem;
  height: 18rem;
  object-fit: contain;
}

@media (min-width: 960px) {
  .vp-hero-image img {
    width: 22rem;
    height: 22rem;
  }
}


/* ================================================================
   2. Features Section - 3~4 列并排卡片
   ================================================================ */
.vp-features {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem 1.5rem;
}

.vp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* 平板：2 列 */
@media (min-width: 640px) {
  .vp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 桌面：4 列 */
@media (min-width: 1024px) {
  .vp-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 单张特性卡片 */
.vp-feature-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.vp-feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 卡片：图标 */
.vp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #ffffff;
}

/* 四种不同渐变背景 */
.vp-feature-icon.vp-icon-1 {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.vp-feature-icon.vp-icon-2 {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.vp-feature-icon.vp-icon-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.vp-feature-icon.vp-icon-4 {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

/* 卡片：标题 */
.vp-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* 卡片：描述 */
.vp-feature-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}