/* 信息查询页面样式 */

/* 搜索表单样式 */
.search-form {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.search-input {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-search {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-search:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-search:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 结果容器样式 */
.results {
  margin-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.results-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.results-count {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.count-number {
  font-weight: 600;
  color: #4CAF50;
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-table th {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.results-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  color: #333;
  font-size: 14px;
}

.results-table tr.even {
  background-color: #f8f9fa;
}

.results-table tr.odd {
  background-color: white;
}

.results-table tr:hover {
  background-color: #f0f8f0;
}

/* 分页控件样式 */
.pagination-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pagination-info {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f0f0f0;
  border-color: #999;
}

.pagination-btn.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-size-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.page-size-selector select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 无结果样式 */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 30px;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.no-results-hint {
  font-size: 12px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-fields {
    grid-template-columns: 1fr;
  }
  
  .btn-search {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .pagination-controls {
    gap: 4px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .page-size-selector {
    flex-direction: column;
    gap: 8px;
  }
  
  .no-results {
    padding: 40px 15px;
  }
  
  .no-results-icon {
    font-size: 36px;
  }
  
  .no-results h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .search-form {
    padding: 15px;
  }
  
  .search-input {
    padding: 10px;
    font-size: 14px;
  }
  
  .results-table th,
  .results-table td {
    padding: 8px;
    font-size: 13px;
  }
}
