/* 引导页面专用样式 - 现代化设计 */
:root {
  --primary-color: #0366d6;
  --primary-hover: #0056b3;
  --secondary-color: #6f42c1;
  --accent-color: #28a745;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.18);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.45);
  }
}

/* 基础重置和字体 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* 容器布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero区域 */
.hero {
  background: var(--bg-gradient);
  color: white;
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* 功能特色区域 */
.features {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: var(--bg-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* 快速访问区域 */
.quick-access {
  padding: 60px 0;
  background: var(--bg-primary);
}

.quick-access h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.access-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.access-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.access-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.access-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.access-card p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.access-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.access-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--bg-primary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}

.access-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(3, 102, 214, 0.3);
}

/* 项目信息区域 */
.project-info {
  padding: 60px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.project-info .btn-secondary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(3, 102, 214, 0.3);
}

.project-info .btn-secondary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3, 102, 214, 0.4);
}

.project-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.project-info p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.github-stats {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.github-stat {
  background: var(--bg-primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.github-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.github-stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.github-stat span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* 页脚 */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
  color: #79c0ff;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  
  .feature-card {
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    min-width: 200px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .access-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .github-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .features,
  .quick-access,
  .project-info {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .features,
  .quick-access,
  .project-info {
    padding: 40px 0;
  }
  
  .feature-card,
  .access-card {
    padding: 1.2rem;
  }
  
  .btn {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* 选择文本样式 */
::selection {
  background: var(--primary-color);
  color: white;
}

/* 焦点样式 */
.btn:focus,
.access-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 加载动画 */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
} 