* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

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

.header {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  color: #333;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header h1 i {
  color: #667eea;
  margin-right: 15px;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

.search-section {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2em;
}

.search-input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.1em;
  transition: all 0.3s;
}

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

.filter-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label i {
  color: #667eea;
}

.category-select {
  flex: 1;
  min-width: 200px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

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

.stats {
  background: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  color: #666;
  font-size: 1em;
}

.loading {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  font-size: 1.2em;
  color: #667eea;
}

.loading i {
  margin-right: 10px;
}

.qa-list {
  display: grid;
  gap: 20px;
}

.qa-item {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.qa-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.qa-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.qa-code {
  font-family: 'Courier New', monospace;
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.9em;
  color: #666;
}

.qa-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.qa-date {
  color: #999;
  font-size: 0.9em;
}

.qa-question {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.5;
}

.qa-question i {
  color: #667eea;
  margin-right: 10px;
}

.qa-answer {
  font-size: 1em;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
  white-space: pre-wrap;
  border-left: 4px solid #667eea;
  padding-left: 20px;
  background: #f8f9ff;
  padding: 15px 20px;
  border-radius: 8px;
}

.qa-answer i {
  color: #764ba2;
  margin-right: 10px;
}

.qa-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.qa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.qa-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.qa-link-other {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.no-results {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.no-results i {
  font-size: 3em;
  color: #ccc;
  margin-bottom: 20px;
}

.no-results h2 {
  color: #666;
  margin-bottom: 10px;
}

.no-results p {
  color: #999;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .subtitle {
    font-size: 1em;
  }

  .search-section {
    padding: 20px;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .category-select {
    width: 100%;
  }

  .qa-item {
    padding: 20px;
  }

  .qa-question {
    font-size: 1.1em;
  }

  .qa-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
