body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.el-header {
  background-color: #409EFF;
  color: white;
  text-align: center;
  line-height: 60px;
}

.el-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.el-footer {
  text-align: center;
  line-height: 60px;
  background-color: #f5f7fa;
  margin-top: auto;
}

.box-card {
  max-width: 600px;
  margin: 0 auto;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}
h1{
  margin: 20px 0;
}
h2{
  margin-bottom: 5px;
  margin-top: 5px;
}
.medicine-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 100vh;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .filter-section {
    grid-template-columns: 1fr 2fr;
  }
}

.search-box {
  display: flex;
  align-items: center;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
}

.medicine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.medicine-card {
  display: grid;
  grid-template-rows: 180px 1fr auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.medicine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.medicine-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.medicine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.medicine-card:hover .medicine-image img {
  transform: scale(1.05);
}

.prescription-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(245, 108, 108, 0.9);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.medicine-info {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.medicine-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generic-name {
  margin: 0;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.spec-row span:first-child {
  color: #999;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #f56c6c;
}

.manufacturer {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medicine-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  margin-top: 20px;
}