* {
  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;
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
}

.wiki-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(45deg, #36c, #447ff5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-container {
  display: flex;
  gap: 10px;
}

#searchInput {
  width: 300px;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

#searchInput:focus {
  border-color: #36c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

#searchButton {
  padding: 12px 24px;
  background: linear-gradient(45deg, #36c, #447ff5);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

#searchButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 102, 204, 0.2);
}

.welcome-screen {
  text-align: center;
  padding: 100px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-screen h2 {
  font-size: 36px;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #36c, #447ff5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article {
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article h1 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.article-introduction {
  font-size: 18px;
  color: #444;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.loading-animation {
  margin: 60px auto;
  text-align: center;
}

.loading-animation.hidden {
  display: none;
}

.pulse {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #36c, #447ff5);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.article-references {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #eee;
}

.article-references h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.article-references ol {
  padding-left: 24px;
  color: #666;
}

.article-references li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
  }
  
  .search-container {
    width: 100%;
  }
  
  #searchInput {
    flex: 1;
  }
  
  .article {
    padding: 20px;
  }
}