.welcome-text {
  text-align: center;
  margin-bottom: 20px;
}
.welcome-text .section-title {
  margin-bottom: 10px;
}
.welcome-text .section-subtitle {
  background: transparent;
  border-left: none;
  padding: 0;
  color: #666;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box .search-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}
.search-box .search-input:focus {
  border-color: #555;
}

.search-btn {
  padding: 10px 24px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
}
.search-btn:hover { background: #555; }
.search-btn:disabled { background: #aaa; cursor: not-allowed; }

.filters {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #555;
}
.filters select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.loading {
  text-align: center;
  padding: 30px;
  color: #888;
  font-size: 15px;
}

.results-count {
  max-width: 800px;
  margin: 16px auto 8px;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
}

.results-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.judgment-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.judgment-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.judgment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.judgment-jid {
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.court-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.court-badge.level-5 { background: #d32f2f; }
.court-badge.level-4 { background: #1976d2; }
.court-badge.level-3 { background: #f57c00; }
.court-badge.level-2 { background: #757575; }
.court-badge.level-1 { background: #bdbdbd; color: #333; }

.judgment-title {
  font-size: 14px;
  color: #555;
}

.judgment-score {
  margin-left: auto;
  font-size: 13px;
  color: #888;
}

.judgment-summary {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

.judgment-toggle {
  font-size: 13px;
  color: #1976d2;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.judgment-toggle:hover { text-decoration: underline; }

.judgment-fulltext {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .search-box { flex-direction: column; }
  .filters { flex-direction: column; gap: 10px; }
  .judgment-header { flex-direction: column; align-items: flex-start; }
  .judgment-score { margin-left: 0; }
}
