.page {
  min-height: 100vh;
  padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.topbar {
  background: #69c3aa;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18rpx 24rpx 22rpx;
  box-sizing: border-box;
}

.topbar-title {
  color: #fff;
  font-size: 34rpx;
  font-weight: 600;
  text-align: center;
}

.search-row {
  margin-top: 18rpx;
}

.search-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 72rpx;
  padding: 0 20rpx 0 24rpx;
  background: #fff;
  border-radius: 36rpx;
  box-sizing: border-box;
}

.search-icon {
  font-size: 28rpx;
  margin-right: 12rpx;
  line-height: 1;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  height: 72rpx;
  line-height: 72rpx;
  font-size: 28rpx;
  color: #333;
}

.search-placeholder {
  color: #b0b8c2;
}

.search-clear {
  width: 44rpx;
  height: 44rpx;
  line-height: 40rpx;
  text-align: center;
  font-size: 36rpx;
  color: #999;
  flex-shrink: 0;
}

.content {
  padding: 26rpx 24rpx 0;
}

.section {
  background: #fff;
  border-radius: 10rpx;
  overflow: hidden;
}

.section-title {
  padding: 18rpx 18rpx;
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
  background: #f2f4f7;
}

.empty-tip {
  padding: 32rpx 18rpx;
  font-size: 26rpx;
  color: #8a8f98;
  text-align: center;
}

.med-list {
  padding: 12rpx 18rpx 24rpx;
}

.med-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18rpx 0;
  border-bottom: 1rpx solid #f0f1f3;
}

.med-item:last-child {
  border-bottom: none;
}

.med-left {
  width: 110rpx;
}

.med-icon {
  width: 78rpx;
  height: 78rpx;
  border-radius: 18rpx;
  background: #e8f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-icon-text {
  color: #69c3aa;
  font-weight: 700;
}

.med-mid {
  flex: 1;
  min-width: 0;
  padding-right: 14rpx;
}

.med-name {
  font-size: 26rpx;
  color: #333;
  line-height: 1.4;
}

.med-price {
  margin-top: 8rpx;
  font-size: 24rpx;
  color: #ff6b6b;
}

.med-actions {
  width: 232rpx;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.stepper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8rpx 10rpx;
  background: #f7f8fa;
  border-radius: 12rpx;
  box-sizing: border-box;
}

.step-btn {
  flex-shrink: 0;
  width: 52rpx;
  height: 52rpx;
  padding: 0;
  margin: 0;
  line-height: normal;
  border-radius: 10rpx;
  background: #fff;
  color: #69c3aa;
  font-size: 30rpx;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.step-btn::after {
  border: none;
}

.step-btn-hover {
  opacity: 0.85;
}

.step-num {
  flex: 1;
  text-align: center;
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56rpx;
  padding: 0;
  margin: 14rpx 0 0;
  line-height: normal;
  border-radius: 28rpx;
  background: #69c3aa;
  color: #fff;
  font-size: 22rpx;
  box-sizing: border-box;
}

.add-btn::after {
  border: none;
}

.content-bottom-space {
  height: 24rpx;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16rpx 24rpx;
  padding-bottom: calc(16rpx + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1rpx solid #eef0f3;
  box-shadow: 0 -4rpx 16rpx rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.bottom-bar-left {
  display: flex;
  flex-direction: column;
}

.bottom-bar-label {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
}

.bottom-bar-count {
  margin-top: 6rpx;
  font-size: 24rpx;
  color: #8a8f98;
}

.bottom-bar-btn {
  padding: 20rpx 32rpx;
  background: #69c3aa;
  color: #fff;
  font-size: 26rpx;
  border-radius: 40rpx;
  font-weight: 600;
}
