/* 业财AI 自定义样式 */

/* 颜色变量 */
:root {
  --vp-c-brand-1: #667eea;
  --vp-c-brand-2: #764ba2;
  --vp-c-brand-3: #8b5cf6;
  --vp-c-brand-soft: rgba(102, 126, 234, 0.1);
}

/* 颜色变量 - 更柔和的配色 */
:root {
  --vp-c-brand-1: #2563eb;
  --vp-c-brand-2: #1d4ed8;
  --vp-c-brand-3: #1e40af;
  --vp-c-brand-soft: rgba(37, 99, 235, 0.1);
}

/* Hero 区域优化 */
.VPHome {
  .VPHero {
    background-image: url('/screenshots/airobot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 !important;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
  }

  .VPHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.4) 60%, transparent 100%);
    z-index: 0;
  }

  .VPHero .container {
    position: relative;
    z-index: 2;
    width: 45%;
    padding: 80px 64px 80px 5%;
    text-align: left;
    margin-left: 15%;
  }

  .VPHero .name {
    color: #1e3a5f !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px;
  }

  .VPHero .text {
    display: none !important;
  }

  .VPHero .tagline {
    color: #374151 !important;
    font-size: 1.05rem !important;
    max-width: 480px;
    line-height: 1.8;
  }

  .VPHero .actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
  }

  .VPHero .action.primary .VPButton {
    background: #1e3a5f !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
  }

  .VPHero .action.alt .VPButton {
    background: transparent !important;
    border: 2px solid #1e3a5f !important;
    color: #1e3a5f !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
  }

  .VPHero .image {
    display: none !important;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .VPHome .VPHero {
    background-size: 100% auto !important;
    background-position: center bottom !important;
  }

  .VPHome .VPHero .container {
    max-width: 100% !important;
    padding: 40px 20px !important;
  }
}

/* 功能卡片优化 */
.VPHome .VPFeatures {
  padding: 80px 24px !important;
}

.VPHome .VPFeatures .title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
}

.VPFeature {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  border: 1px solid #e5e7eb !important;
}

.VPFeature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15) !important;
  border-color: var(--vp-c-brand-soft) !important;
}

.VPFeature .icon {
  font-size: 2.5rem !important;
  margin-bottom: 16px !important;
}

.VPFeature .title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 8px !important;
}

.VPFeature .details {
  color: #6b7280 !important;
  line-height: 1.6 !important;
}

/* 定价卡片样式 */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 48px 24px;
  flex-wrap: wrap;
}

.pricing-cards h3 {
  font-size: 1.3rem !important;
  color: #1e3a5f !important;
  margin-bottom: 8px !important;
}

.pricing-cards p {
  color: #6b7280 !important;
  margin-bottom: 16px !important;
}

.pricing-cards a {
  display: inline-block;
  padding: 10px 24px;
  background: #1e3a5f;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.pricing-cards > div {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* 页面通用样式 */
.VPDoc {
  background: #f8fafc;
}

.VPDoc .container {
  max-width: 1200px !important;
}

.VPDoc h1 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  text-align: center !important;
  margin-bottom: 16px !important;
}

.VPDoc .content-container .markdown-section > p:first-of-type {
  text-align: center !important;
  color: #6b7280 !important;
  font-size: 1.1rem !important;
}

/* 功能页样式 */
.features-page h2 {
  font-size: 1.75rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--vp-c-brand-soft) !important;
}

.features-page h2:first-child {
  margin-top: 0 !important;
}

.features-page ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.features-page li {
  padding: 8px 0 !important;
  padding-left: 24px !important;
  position: relative !important;
}

.features-page li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--vp-c-brand-1) !important;
  font-weight: bold !important;
}

/* 定价页样式 */
.pricing-page table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 32px 0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.pricing-page th {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  padding: 16px !important;
  font-weight: 600 !important;
}

.pricing-page td, .pricing-page th {
  padding: 16px !important;
  text-align: center !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.pricing-page tr:last-child td {
  border-bottom: none !important;
}

.pricing-highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
}

/* 场景页流程图样式 */
.flow-diagram {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 32px;
  border-radius: 16px;
  margin: 32px 0;
  font-family: monospace;
}

.flow-diagram pre {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 页脚优化 */
.VPFooter {
  background: #1e3a5f !important;
  color: #9ca3af !important;
  padding: 48px 24px !important;
}

.VPFooter .message,
.VPFooter .copyright {
  color: #9ca3af !important;
  font-size: 0.9rem !important;
}

/* 导航栏优化 */
.VPNav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.VPNavBar .title {
  font-weight: 700 !important;
  color: #667eea !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .VPHome .VPHero .name {
    font-size: 2.5rem !important;
  }

  .VPHome .VPHero .text {
    font-size: 1.2rem !important;
  }

  .VPHome .VPFeatures {
    padding: 40px 16px !important;
  }

  .VPDoc h1 {
    font-size: 2rem !important;
  }

  .VPFeature {
    padding: 24px !important;
  }
}