/* 自定义样式 - 美化 just-the-docs 主题 */

/* Hero 区域样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin: -1rem -1rem 2rem -1rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #ffffff;
  color: #667eea;
  border-color: #ffffff;
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #667eea;
}

/* 特性网格样式 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.feature h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  }
  
  .feature {
    background: #1e293b;
    border-color: #334155;
  }
  
  .feature h3 {
    color: #f1f5f9;
  }
  
  .feature p {
    color: #cbd5e1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
    margin: -1rem -1rem 1.5rem -1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1.5rem;
  }
}

/* 代码块美化 */
.highlight {
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航美化 */
.site-nav {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 页脚美化 */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 3rem;
}

/* 搜索框美化 */
.search-input {
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 链接美化 */
a {
  color: #667eea;
  transition: color 0.3s ease;
}

a:hover {
  color: #5a67d8;
}

/* 表格美化 */
table {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th {
  background: #667eea;
  color: white;
  font-weight: 600;
}

/* 警告框样式 */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-success {
  background: #f0fdf4;
  border-color: #10b981;
  color: #065f46;
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #667eea;
  color: white;
}

.badge-secondary {
  background: #64748b;
}

.badge-success {
  background: #10b981;
}

.badge-warning {
  background: #f59e0b;
}
